/* --- VARIABLES --- */
:root {
    --primary-dark: #0f172a;  /* Dark Blue */
    --text-dark: #111111;
    --text-grey: #555555;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --font-main: 'Inter', sans-serif;
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- REUSABLE UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.text-center { text-align: center; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn:hover { opacity: 0.9; }

.btn-white {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #ddd;
}
.btn-white:hover { background: #f0f0f0; }

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 20px; font-weight: 600; letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 30px; }

.nav-links a {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative; /* Needed for the underline */
    padding-bottom: 5px;
}

/* Nav Hover Animation: Sliding Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-dark);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%; /* Expands the line to full width */
}


.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background: #333; margin: 5px; }

/* --- HOME HERO --- */
.hero {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center; /* Vertically centers the content block */
}

.hero-overlay {
    background: rgba(0,0,0,0.3); /* Slight darkness */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px; /* Aligns with container */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 400;
    max-width: 700px; /* Allows text to stretch wide enough */
    margin-bottom: 40px; /* Space between title and card */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

/* FLOATING CARD */
.hero-card {
    position: relative; /* Removed absolute positioning */
    top: auto;
    background: var(--white);
    padding: 25px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 4px;
}
.card-item { display: flex; gap: 15px; margin-bottom: 20px; }
.card-icon { font-size: 20px; color: #777; }
.card-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.card-text { font-size: 14px; color: #555; }

/* --- SECTIONS --- */
.split-section { display: flex; align-items: center; gap: 60px; }
.split-section > div { flex: 1; }
.split-section h2 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-dark); }
.split-section p { margin-bottom: 20px; color: var(--text-grey); font-size: 15px; }

/* --- GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns */
    gap: 30px;
    margin-top: 40px;
}

.speaker-card {
    background: var(--white);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* CARDS */
/* Speaker Hover Effect */
.speaker-card:hover {
    transform: translateY(-10px); /* Moves up */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #2563eb; /* Blue border on hover */
}
.speaker-card { background: var(--white); border: 1px solid #eee; }
.speaker-card img { width: 100%; height: 320px; object-fit: cover; }
.speaker-info { padding: 20px; }
.speaker-info h4 { font-size: 16px; margin-bottom: 5px; color: var(--primary-dark); }
.speaker-info p { font-size: 13px; color: var(--text-grey); }

.program-card {
    border: 1px solid #eee;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
}
.program-card h3 { font-size: 18px; margin-bottom: 5px; }
.program-card h4 { font-size: 14px; color: var(--text-grey); margin-bottom: 15px; font-weight: 400; }
.program-card p { font-size: 13px; color: #555; margin-bottom: 20px; flex-grow: 1; }
.schedule-text { font-size: 12px; color: #444; line-height: 1.8; border-top: 1px solid #eee; padding-top: 15px; }

/* --- FORMS & FAQ --- */
input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
details {
    background: var(--white);
    border: 1px solid #eee;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
}
summary { font-weight: 600; }
details[open] { border-left: 4px solid var(--primary-dark); }
details p { margin-top: 10px; font-size: 14px; color: #555; }

/* --- FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 20px 30px;
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 { font-size: 16px; margin-bottom: 20px; }
.footer-col p, .footer-col a { font-size: 13px; color: #aaa; margin-bottom: 10px; display: block; }
.footer-col a:hover { color: var(--white); }
.copyright { text-align: center; font-size: 12px; color: #666; border-top: 1px solid #222; padding-top: 20px; }

/* Button Hover Effect */
.btn:hover, .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile Fix for Grid */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; left: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .split-section { flex-direction: column; }
    .hero-card { position: static; max-width: 100%; margin-top: 20px; }
    .hero { height: auto; padding-bottom: 40px; }
    .hero-content { display: flex; flex-direction: column; }
    .image-content { order: -1; width: 100%; }
}