/* --- CORE VARIABLES & RESET --- */
:root {
    --earthy-bg: #3a2a22; 
    --harvard-crimson: #A51C30;
    --accent-gold: #d4a373;
    --text-main: #f4f1ee;
    --nav-footer-dark: #1a1816; 
}

* { box-sizing: border-box; scroll-behavior: smooth; }

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

/* --- HEADER & NAV --- */
nav {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 25px 5%;
    display: flex; justify-content: space-between;
    align-items: center; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent; 
}

nav.scrolled {
    padding: 15px 5%;
    background: var(--nav-footer-dark); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    text-decoration: none; 
    font-weight: 700;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.8s ease forwards;
}

.nav-menu { display: flex; gap: 30px; align-items: center; }

.header-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s ease;
}

.header-link:hover, .header-link.active-page {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- MOBILE SIDE DRAWER --- */
.menu-icon { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--accent-gold); 
    cursor: pointer; 
    z-index: 1001; 
}

.side-drawer {
    position: fixed; top: 0; left: -100%;
    width: 280px; height: 100%;
    background: var(--nav-footer-dark);
    backdrop-filter: blur(15px); 
    z-index: 2000;
    padding: 80px 30px; display: flex; flex-direction: column; gap: 25px;
    transition: 0.5s; border-right: 1px solid var(--accent-gold);
}

.header-title { 
    color: var(--accent-gold); 
    cursor: pointer; 
    font-weight: 600; 
    text-decoration: none; 
    display: block;
    transition: color 0.3s ease;
}

.header-title:hover { color: #fff; }

.side-drawer.open { left: 0; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1999; display: none; }
.menu-overlay.active { display: block; }

@media (max-width: 992px) {
    .menu-icon { display: block; }
    .nav-menu { display: none; }
    nav { padding: 20px 5%; }
}

/* --- HERO --- */
.hero {
    position: relative; 
    height: 75vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; text-align: center; padding: 0 5%;
}

.hero-bg-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.5), var(--earthy-bg)); z-index: 1; pointer-events: none;}

.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 20px; color: var(--accent-gold); position: relative; z-index: 2;}
.hero-subtitle { font-size: 1.1rem; max-width: 600px; color: #ddd; position: relative; z-index: 2;}

/* --- SECTIONS & TITLES --- */
.container { max-width: 1200px; margin: -40px auto 60px auto; padding: 0 20px; position: relative; z-index: 10; }

.section-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-glass.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    border-bottom: 2px solid rgba(212, 163, 115, 0.2);
    padding-bottom: 8px;
    margin: 0 0 40px 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease 0.2s; 
}

.section-title.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- SPEAKER GRID STYLES --- */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    width: 100%;
}

@media (min-width: 1024px) {
    .speakers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 40px;
    }
}

.speaker-card {
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease; 
    display: flex;
    flex-direction: column;
}

.speaker-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.05);
}

.speaker-img-wrapper {
    width: 100%; 
    height: 250px; 
    overflow: hidden; 
    position: relative;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .speaker-img-wrapper { height: 300px; }
}

.speaker-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease; filter: grayscale(20%);
}

.speaker-card:hover .speaker-img-wrapper img {
    transform: scale(1.05); filter: grayscale(0%);
}

/* LEFT TEXT ALIGNMENT */
.speaker-info { 
    padding: 25px; 
    text-align: left; /* Text aligns left */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-family: 'Playfair Display', serif; color: var(--accent-gold);
    font-size: 1.3rem; margin: 0 0 5px 0; line-height: 1.2;
}

.speaker-role {
    font-size: 0.8rem; color: #aaa; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 10px; display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px;
}

/* --- UPDATED BIO & INLINE READ MORE BUTTON --- */
.speaker-bio {
    font-size: 0.9rem; 
    color: #ccc; 
    margin-bottom: 15px; 
    line-height: 1.6;
    text-align: left; 
    
    /* Logic for handling content */
    position: relative;
}

/* Scrollbar styles for when expanded */
.speaker-bio.expanded {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}
.speaker-bio.expanded::-webkit-scrollbar { width: 4px; }
.speaker-bio.expanded::-webkit-scrollbar-thumb { background-color: var(--accent-gold); border-radius: 2px; }
.speaker-bio.expanded::-webkit-scrollbar-track { background: transparent; }

/* NO BOX BUTTON STYLE (LOOKS LIKE LINK) */
.read-more-inline {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700; 
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    margin-left: 5px; /* Spacing from the ellipsis */
    display: inline;
    transition: color 0.3s ease;
}

.read-more-inline:hover {
    color: #fff;
    text-decoration: underline;
}

.speaker-socials {
    display: flex;
    justify-content: flex-start; /* Aligns Left */
    gap: 15px;
    margin-top: auto; 
}

.speaker-socials a {
    color: var(--text-main); font-size: 1.1rem; transition: color 0.3s;
}
.speaker-socials a:hover { color: var(--accent-gold); }

/* --- ANIMATIONS --- */
.card-reveal:nth-child(odd) { opacity: 0; transform: translateX(-100px); transition: all 0.8s ease; will-change: transform, opacity; }
.card-reveal:nth-child(even) { opacity: 0; transform: translateX(100px); transition: all 0.8s ease; will-change: transform, opacity; }
.card-reveal.active { opacity: 1; transform: translateX(0); }

/* --- FOOTER --- */
footer {
    background-color: #1a1816;
    padding: 60px 5% 48px; 
    border-top: 1px solid rgba(212, 163, 115, 0.15);
    width: 100%; position: relative; z-index: 100;
}

.footer-grid { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.footer-reveal.active { opacity: 1; transform: translateY(0); }

.footer-col { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-gold); margin-bottom: 8px; }
.footer-col p { font-size: 0.85rem; color: #999; margin: 0; }

.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links a { text-decoration: none; color: #ffffff; font-size: 1rem; font-family: 'Playfair Display', serif; }

.social-icons { display: flex; gap: 10px; margin-top: 5px; justify-content: center; }
.social-icons a { text-decoration: none !important; color: #fff; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }
.social-icons a:hover { border-color: var(--accent-gold); }

.footer-bottom { text-align: center; margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.65rem; color: #444; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    footer { padding: 15px 10px 10px; }
    .footer-grid { flex-direction: column; align-items: center; gap: 15px; }
    .section-glass { padding: 30px 15px; }
    .card-reveal:nth-child(odd) { transform: translateX(-30px); }
    .card-reveal:nth-child(even) { transform: translateX(30px); }
    .card-reveal.active { transform: translateX(0); }
}

@media screen and (min-width: 768px) and (max-width: 1180px) {
    .hero { height: 60vh; }
    .container { margin-top: -20px; }
}