:root {
    --primary: #5a6e4e;
    --primary-light: #7a8f6e;
    --primary-dark: #4a5d40;
    --bg-warm: #f8f7f4;
    --bg-white: #ffffff;
    --text-dark: #2c3e2a;
    --text-body: #4a5548;
    --text-light: #7d8a7b;
    --border: #e8e6e1;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-weight: 600;
}

/* Navigation */
.top-bar {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--bg-white);
}

nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.logo span {
    font-weight: 400;
    font-style: italic;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.btn-primary {
    color: white !important;
}

.nav-links a.btn-primary::after {
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    display: inline-block;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white !important;
}

/* Page Headers */
.page-header {
    padding: 6rem 2rem 3rem;
    background: var(--bg-warm);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Publication Specific Styles */
.publications-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: -4rem auto 4rem;
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.stat-box {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stat-box .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    font-weight: 600;
}

.search-filter-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow);
    outline: none;
    transition: border-color 0.3s;
}

.search-bar i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.pub-item {
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.pub-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.pub-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--bg-warm);
    border-radius: 4px;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.pub-journal {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Service Hero (Specific to Service Pages) */
.service-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.service-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.service-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.breadcrumb {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 6rem 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.service-text {
    font-size: 1.15rem;
    line-height: 1.8;
}

.service-text p {
    margin-bottom: 2rem;
}

.cta-section {
    background: var(--bg-warm);
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer (Simplified for shared) */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand .logo { color: white; margin-bottom: 1.5rem; display: block; }
.footer-links h4 { color: white; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-contact p { margin-bottom: 1rem; display: flex; gap: 0.8rem; }
.footer-contact i { color: var(--primary-light); margin-top: 0.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .service-hero h1 { font-size: 2.5rem; }
}

/* Hero Section (Home) */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2ee 0%, #e8ebe5 100%);
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1559839734-2b71ea197ec2?auto=format&fit=crop&w=1600&q=80') center/cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(to left, rgba(90, 110, 78, 0.1), transparent);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-text {
    max-width: 550px;
}

.hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 em {
    color: var(--primary);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Services Grid */
.services-section { padding: 6rem 2rem; background: var(--bg-white); }
.services-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    background: var(--bg-white);
}

.service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(90, 110, 78, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Blog Section */
.blog-section { padding: 6rem 2rem; background: var(--bg-warm); }
.blog-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.blog-image { height: 220px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.5s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255, 255, 255, 0.95); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.blog-content { padding: 1.8rem; }
.blog-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; line-height: 1.3; }
.blog-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.read-more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; transition: gap 0.3s; }
.blog-card:hover .read-more { gap: 0.8rem; }
.text-center { text-align: center; margin-top: 3rem; }

/* Videos Section */
.videos-section { padding: 6rem 2rem; background: var(--bg-white); }
.videos-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) { .videos-grid { grid-template-columns: 1fr; } }

.video-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: all 0.3s; aspect-ratio: 16/10; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.video-thumb { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: white; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(255, 255, 255, 0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; transition: all 0.3s; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); background: white; }
.video-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.3rem; }
.video-desc { font-size: 0.85rem; opacity: 0.9; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 2000; align-items: center; justify-content: center; padding: 2rem; }
.modal.active { display: flex; }
.modal-content { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16/9; background: black; border-radius: 12px; overflow: hidden; }
.modal-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.modal iframe { width: 100%; height: 100%; border: none; }

.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); cursor: pointer; z-index: 999; transition: transform 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; inset: 0; background: white; z-index: 1500; padding: 2rem; flex-direction: column; }
.mobile-menu.active { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu-links a { font-size: 1.3rem; color: var(--text-dark); text-decoration: none; font-weight: 500; font-family: 'Playfair Display', serif; }
.close-menu { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
