/* =========================================
   1. Reset & Base Styles
   ========================================= */
:root {
    --primary-color: #0d2c56;
    /* Deep Navy */
    --secondary-color: #0088cc;
    /* Bright Blue */
    --accent-color: #f1c40f;
    /* Gold */
    --success-color: #27ae60;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-heading: 'Georgia', serif;
    /* Fallback for Playfair */
    --font-body: 'Arial', sans-serif;
    /* Fallback for Poppins */
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. Header & Navigation
   ========================================= */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.top-bar a {
    color: var(--white);
    font-weight: 500;
}

.top-bar a:hover {
    color: var(--accent-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.logo {
    flex: 0 1 auto;
    /* Allow shrinking but prioritize content */
    margin-right: 20px;
}

.logo img {
    max-height: 80px;
    /* Constraint height but allow smaller */
    width: auto;
    max-width: 100%;
    /* Ensure it doesn't overflow container */
    object-fit: contain;
    /* Maintain aspect ratio */
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.nav-link:hover,
.nav-item:hover>.nav-link {
    color: var(--secondary-color);
    background-color: var(--bg-light);
    border-radius: 4px;
}

/* Dropdown Menus */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-item:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.dropdown-item a:hover {
    background-color: #f9f9f9;
    color: var(--secondary-color);
    padding-left: 25px;
}

/* Nested Dropdowns */
.dropdown .dropdown {
    top: 0;
    left: 100%;
    margin-top: -3px;
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* =========================================
   3. Hero Section (Static Image)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    /* Remove fixed height to allow image to dictate height, or keep it if aspect ratio is important. 
       Let's keep a max-height to prevent it from being too tall on large screens. */
    max-height: 600px;
    overflow: hidden;
    background-color: #000;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.static-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Ensures image covers the area nicely */
}

/* =========================================
   4. Notices & Updates Section
   ========================================= */
.notice-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 60px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.notice-column {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.notice-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
}

.notice-content {
    padding: 20px;
    flex: 1;
}

.marquee-container {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.marquee-container marquee {
    height: 100%;
}

/* =========================================
   5. Highlights (About & Video)
   ========================================= */
.highlight-section {
    background-color: var(--white);
    padding: 60px 20px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   6. Features Grid (Our AAC)
   ========================================= */
.features-section {
    padding: 60px 20px;
    background-color: #f0f4f8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* .feature-image removed */

.feature-icon {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f8ff;
    color: var(--primary-color);
    font-size: 4rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

.feature-content {
    padding: 20px;
    text-align: center;
}

.feature-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-link {
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* =========================================
   7. Footer
   ========================================= */
.main-footer {
    background-color: #081b36;
    /* Darker navy based on image */
    color: #e0e0e0;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Identity Widget (Logo/Address) */
.identity-widget p {
    margin-bottom: 5px;
    line-height: 1.4;
    color: #cbd5e1;
}

.identity-widget a {
    color: #64b5f6;
}

.identity-widget a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-logo {
    margin-bottom: 20px;
}

/* Links Lists */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0bec5;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Contact Widget */
.contact-details p {
    margin-bottom: 5px;
    color: #b0bec5;
}

.contact-label {
    color: var(--white) !important;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 2px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1e3a5f;
    color: #78909c;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   8. Components (Buttons, Titles, etc.)
   ========================================= */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-family: var(--font-heading);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

/* =========================================
   9. Responsive Design
   ========================================= */
@media (max-width: 900px) {
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        /* Hide default menu */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .slide-title {
        font-size: 2rem;
    }
}