:root {
    --primary: #0a192f;
    --secondary: #172a45;
    --accent: #d4af37;
    --text-main: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--accent);
    z-index: 1100;
}

/* Hero & Internal Page Headers */
.hero, .about-hero, .board-header, .policy-header, .journal-hero, .proceedings-hero, .books-hero, .contact-hero, .publish-hero, .constitution-hero {
    background: linear-gradient(rgba(5, 14, 29, 0.72), rgba(10, 25, 47, 0.72)), url('images/press_hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: white;
    text-align: center;
    padding: 8rem 0 14rem;
    margin-bottom: 0;
    position: relative;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.4);
}

.overlap-content {
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

.hero h1, .about-hero h1, .board-header h1, .policy-header h1, .journal-hero h1, .proceedings-hero h1, .books-hero h1, .contact-hero h1, .publish-hero h1, .constitution-hero h1 {
    font-size: 3.5rem;
    color: white !important;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero p, .about-hero p, .board-header p, .policy-header p, .journal-hero p, .proceedings-hero p, .books-hero p, .contact-hero p, .publish-hero p, .constitution-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn:hover {
    background-color: #f1c40f;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* Publication Cards */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links li a {
        font-size: 0.85rem;
    }
}

@media (max-width: 868px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        z-index: 1050;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .logo {
        font-size: 1.4rem;
    }
}

/* =============================================
   CONFERENCE HISTORY & MOU STYLES
   ============================================= */

.history-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #eee;
}

.history-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.history-item:nth-child(even) {
    justify-content: flex-start;
}

.history-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.history-content {
    width: 45%;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    position: relative;
}

.history-year {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.history-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.history-venue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.history-venue svg {
    flex-shrink: 0;
    color: var(--accent);
}

@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }
    .history-dot {
        left: 20px;
    }
    .history-item {
        justify-content: flex-start !important;
        padding-left: 45px;
    }
    .history-content {
        width: 100%;
    }
}

/* Left-aligned section title support */
.section-title.left {
    text-align: left;
}
.section-title.left h2::after {
    left: 0;
    transform: none;
}

/* Partner Cards */
.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature-card {
    transition: var(--transition);
}

.about-feature-card:hover {
    transform: translateY(-5px);
}

.about-feature-icon {
    transition: var(--transition);
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
