/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #004e8a;
    --accent-gold: #c59d5f;
    --accent-gold-dark: #a17a3e;
    --text-dark: #2c3e50;
    --text-light: #666;
    --bg-body: #f4f6f8;
    --bg-white: #ffffff;
    --sidebar-width: 260px;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a.with-line { text-decoration: underline; }
ul { list-style: none; }

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* =========================================
   2. HEADER
   ========================================= */
header {
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-white);
    display: flex;
    align-items: center;
}

.logo span { color: var(--accent-gold); }

/* Top Nav */
.top-nav ul { display: flex; gap: 20px; }
.top-nav a { 
    font-size: 0.95rem; 
    font-weight: 500; 
    opacity: 0.9; 
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.top-nav a:hover { opacity: 1; border-bottom: 2px solid var(--accent-gold); }

/* Mobile Menu Button (Header) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    background: var(--bg-white);
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #e1e1e1;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 300px;
    object-fit: cover;
}

/* =========================================
   4. MAIN LAYOUT
   ========================================= */
.main-wrapper {
    padding: 40px 0;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr; /* Defines sidebar and main content areas */
    gap: 40px;
    align-items: start;
}

/* --- SIDEBAR --- */
aside {
    /* Ensure aside takes up its grid column */
    grid-column: 1; 
}

.sidebar {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky; /* Sticky sidebar */
    top: 90px;
}

.sidebar h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 8px;
    display: inline-block;
}

.sidebar-menu li { margin-bottom: 4px; }

.sidebar-menu a {
    display: block;
    padding: 2px 10px;
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
    background: transparent;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: #f0f4f8;
    color: var(--primary-blue);
    border-left: 3px solid var(--primary-blue);
    padding-left: 12px;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle-mobile {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--bg-white);
    border: 1px solid #ddd;
    color: var(--text-dark);
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: var(--radius);
    align-items: center;
    justify-content: space-between;
}

/* --- IFRAME Container for the Main Content --- */
.content-iframe-wrapper {
    grid-column: 2; /* Ensures it takes up the second grid column */
    background: var(--bg-white); /* To give the iframe background like original card */
    padding: 25px; /* Add padding similar to your old card-text */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* Important for iframe */
}

.content-iframe-wrapper iframe {
    width: 100%;
    /* Set a min-height for the iframe to prevent layout collapse */
    min-height: 800px; /* Adjust as needed */
    border: none; /* Remove default iframe border */
    display: block; /* Remove any extra space below iframe */
}


/* =========================================
   6. FOOTER
   ========================================= */
footer {
    margin-top: auto;
    background: #1a252f;
    color: #bdc3c7;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer a { color: var(--bg-white); font-weight: bold; }
footer a:hover { color: var(--accent-gold); }

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */
@media screen and (max-width: 992px) {
    .main-wrapper { grid-template-columns: 220px 1fr; gap: 20px; }
}

@media screen and (max-width: 768px) {
    /* Header Changes */
    .mobile-menu-btn { display: block; }
    .top-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .top-nav.active { display: block; }
    .top-nav ul { flex-direction: column; text-align: center; gap: 10px; padding: 10px 0; }

    /* Layout Changes */
    .main-wrapper { display: block; } /* Reverts to block layout for small screens */
    
    /* Sidebar becomes an accordion on mobile */
    .sidebar-toggle-mobile { display: flex; }
    aside {
        /* Ensure aside is visible when sidebar is toggled on mobile */
        grid-column: auto; /* Remove grid column setting for mobile */
    }
    .sidebar {
        display: none; /* Hidden by default on mobile */
        width: 100%;
        margin-bottom: 20px;
        position: static;
    }
    .sidebar.show { display: block; animation: fadeIn 0.3s; }

    .hero-banner { width: 100%; height: auto; }

    /* IFRAME Container adjustments for mobile */
    .content-iframe-wrapper {
        grid-column: auto; /* Remove grid column setting for mobile */
        width: 100%;
        padding: 15px; /* Adjust padding for smaller screens */
        margin-top: 20px; /* Add some space above the iframe on mobile */
    }
}

@keyframes fadeIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); }}

/* =========================================
   8. MODAL STYLES (Keep as is)
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: #fff;
    width: 90%; max-width: 800px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.modal-header {
    padding: 10px 15px;
    background: #f1f1f1;
    display: flex; justify-content: flex-end;
}
.close-btn { font-size: 28px; cursor: pointer; color: #555; line-height: 1; }
.close-btn:hover { color: #000; }
#player-container { padding: 0; background: #000; }

video, audio { width: 100%; display: block; }
.iframe-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }