/* Homepage-specific styles (based on original index inline CSS) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1e40af;
    --primary-dark: #172554;
    --secondary: #0f172a;
    --accent: #f97316;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark-gray: #64748b;
    --success: #10b981;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --nav-bg: #1e40af;
    --nav-hover: #1d4ed8;
    --login-bg: #1e40af;
    --login-hover: #1d4ed8;
}

html {
    scroll-behavior: smooth;
}

body.homepage {
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
    display: block; /* ensure homepage not affected by dashboard flex */
}

/* Smooth scroll offset for fixed header */
section[id], footer[id] {
    scroll-margin-top: 100px;
}

/* Make homepage content stretch wider and reduce side gutters to avoid large empty margins */
body.homepage .header-container,
body.homepage .main-content {
    max-width: none;      /* allow full-width layout on homepage */
    padding-left: 2%;
    padding-right: 2%;
}

/* Slightly reduce the overall page margins on homepage */
body.homepage .main-content {
    margin: 0 auto; /* remove bottom gap under the slider */
}

/* Header Styles */
header {
    background-color: var(--secondary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

/* When nav-container is placed inside header-container, push it to the right */
.header-container .nav-container {
    margin-left: auto;
    max-width: none; /* allow it to size naturally inside the header */
    padding: 0; /* header provides padding */
}

/* On mobile, nav-container should be positioned absolutely, not relative to header */
@media (max-width: 768px) {
    .header-container .nav-container {
        margin-left: 0 !important;
        padding: 20px !important;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: block;
    max-height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo span {
    white-space: nowrap;
    color: white !important; /* Ensure school name is visible */
    z-index: 1;
    position: relative;
}

.logo:hover {
    opacity: 0.8;
}

.advertisement {
    background: #333;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Navigation Styles */
nav {
    background: var(--nav-bg);
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav-links {
    display: flex !important;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none !important;
    color: white !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links a[href^="#"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.9rem;
    width: 200px;
}

.search-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
    display: inline-block;
}

.login-btn {
    background: var(--login-bg);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover { background: var(--login-hover); }

.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: white; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index:1000; border-radius:8px; overflow:hidden; margin-top:5px; }
.dropdown-content.show { display:block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(-10px);} to { opacity:1; transform: translateY(0); } }
.dropdown-item { padding: 12px 20px; text-decoration:none; display:flex; align-items:center; gap:12px; color:var(--secondary); transition: background-color 0.2s; }
.dropdown-item:hover { background-color: #f1f5f9; }
.dropdown-item i { width:20px; text-align:center; }

/* Main Content */
.main-content { max-width:1400px; margin:20px auto; padding:0 5%; display:grid; grid-template-columns:2fr 1fr; gap:20px; }

/* When homepage has no sidebar (we removed the advertisement), make slider full width */
body.homepage .main-content { grid-template-columns: 1fr; }

/* Slider Section */
.slider-section { background: transparent; border-radius:8px; overflow:hidden; position:relative; margin-bottom: 0; }
.slider-container { position:relative; height:700px; overflow:hidden; }
.slider-image { 
    width:100%; 
    height:100%; 
    object-fit:cover; 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); 
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease-in-out;
    z-index: 1;
}
.slider-image.active {
    transform: translateX(0);
    z-index: 2;
}
.slider-image.slide-out {
    transform: translateX(100%);
}
.slider-controls { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:10px; }
.slider-dot { width:12px; height:12px; border-radius:10%; background: var(--gray); cursor:pointer; }
.slider-dot.active { background: var(--primary); }
.slider-arrow { position:absolute; top:50%; transform:translateY(-50%); background: rgba(255,255,255,0.7); width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:10; }
.slider-arrow.prev { left:10px; }
.slider-arrow.next { right:10px; }

/* Make the slider span the full viewport width on the homepage (full-bleed) */
body.homepage .slider-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0; /* remove rounded corners so it aligns with the viewport edges */
}
/* keep a small separation between the header and the slider */
body.homepage .slider-section {
    margin-top: 6px;
}
/* Advertisement Sidebar */
.advertisement-sidebar { background:#f1f5f9; padding:20px; border-radius:8px; text-align:center; margin-top:20px; }

/* Footer */
footer { background: var(--secondary); color:white; padding:30px 0 15px; margin-top:3px; margin-bottom: 20px; }
.footer-content { max-width:1400px; margin:0 auto; padding:0 5%; display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:30px; }
.footer-column h3 { font-size:1.2rem; margin-bottom:15px; position:relative; padding-bottom:10px; }
.footer-column h3::after { content:""; position:absolute; bottom:0; left:0; width:50px; height:3px; background:var(--primary); border-radius:3px; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:10px; }
.footer-links a { color:var(--gray); text-decoration:none; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.copyright { text-align:center; padding-top:20px; border-top:1px solid #334155; color:var(--gray); font-size:0.9rem; margin-top:20px; }

/* Marquee Announcement Bar */
.marquee-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.marquee-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-label i {
    margin-right: 8px;
}

.marquee-text {
    overflow: hidden;
    flex: 1;
}

.marquee-text span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-size: 0.95rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(208, 223, 255, 0.7) 0%, rgba(134, 169, 249, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slider-content {
    text-align: left;
    color: white;
    padding: 40px;
    max-width: 800px;
}

.slider-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.slider-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-description {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-description {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-highlights {
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.highlight-item i {
    color: var(--success);
    font-size: 1.2rem;
}

/* Programs Section */
.programs-section {
    padding: 100px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.program-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.program-image {
    height: 250px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 30px;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

.program-description {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.program-features {
    list-style: none;
    padding: 0;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.program-features i {
    color: var(--success);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--dark-gray);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
}

.author-role {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.news-content {
    padding: 30px;
}

.news-category {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 12px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.gallery-cta {
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    background: white;
    color: var(--primary);
    border-color: white;
}

.cta-section .btn-outline:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    visibility: hidden !important;
}

.mobile-menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsive Styles */
/* ============================================
   TABLET VIEW (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 3%;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 8px 10px;
    }
    
    .search-input {
        width: 180px;
    }
    
    .logo span {
        font-size: 1.5rem;
    }
    
    .main-content { 
        grid-template-columns: 1fr; 
    }
    
    .about-content { 
        grid-template-columns: 1fr; 
    }
    
    .slider-title { 
        font-size: 2.5rem; 
    }
    
    .slider-subtitle { 
        font-size: 1.1rem; 
    }
    
    .section-title { 
        font-size: 2rem; 
    }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .programs-grid { 
        grid-template-columns: 1fr; 
    }
    
    .testimonials-grid { 
        grid-template-columns: 1fr; 
    }
    
    .news-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* ============================================
   MOBILE VIEW (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-container {
        flex-wrap: wrap;
        padding: 12px 15px;
        position: relative;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        visibility: visible !important;
    }
    
    /* Hide nav container by default on mobile */
    .nav-container {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--secondary) !important;
        flex-direction: column !important;
        padding: 20px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
        z-index: 1000 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .nav-container.active {
        display: flex !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Navigation links - vertical on mobile */
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        width: 100%;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 25px;
    }
    
    /* Header actions - vertical on mobile */
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
        order: 2;
    }
    
    .search-input {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .login-dropdown {
        width: 100%;
        order: 1;
    }
    
    .login-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .dropdown-content {
        width: 100%;
        right: 0;
        left: 0;
    }
    
    /* Slider adjustments */
    .slider-container { 
        height: 400px; 
    }
    
    .slider-title { 
        font-size: 2rem; 
    }
    
    .slider-subtitle { 
        font-size: 1rem; 
    }
    
    .slider-content { 
        padding: 20px; 
    }
    
    /* Stats grid */
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    
    .stat-number { 
        font-size: 2.5rem; 
    }
    
    /* Content grids */
    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .news-grid { 
        grid-template-columns: 1fr; 
    }
    
    .gallery-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* CTA section */
    .cta-title { 
        font-size: 2rem; 
    }
    
    .cta-buttons { 
        flex-direction: column; 
    }
    
    .cta-buttons .btn { 
        width: 100%; 
    }
    
    /* Marquee */
    .marquee-label { 
        font-size: 0.8rem; 
        padding: 4px 10px; 
    }
    
    .marquee-text span { 
        font-size: 0.85rem; 
    }
}

/* ============================================
   SMALL MOBILE VIEW (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .header-container {
        padding: 10px;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem !important;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
    }
    
    .nav-container {
        top: 60px;
    }
    
    .nav-links a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .login-text {
        display: none;
    }
    
    .slider-container { 
        height: 300px; 
    }
    
    .slider-title { 
        font-size: 1.5rem; 
    }
    
    .slider-subtitle { 
        font-size: 0.9rem; 
    }
    
    .stats-grid { 
        grid-template-columns: 1fr; 
    }
    
    .section-title { 
        font-size: 1.8rem; 
    }
    
    .cta-title { 
        font-size: 1.8rem; 
    }
    
    .marquee-content { 
        flex-direction: column; 
        gap: 10px; 
    }
    
    .marquee-label { 
        width: 100%; 
        text-align: center; 
    }
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-container {
        max-height: calc(100vh - 60px);
    }
    
    .slider-container {
        height: 350px;
    }
}
