/* ==========================================================================
   Assam GSM Team - Master Responsive Stylesheet
   Filename: responsive.css
   Author: Assam GSM Team Engineering
   Description: Complete mobile-first & adaptive responsive layout engine.
                Covers Ultra-wide, Desktop, Tablet, Mobile (Portrait & Landscape),
                and Small Phone screens with modern, pixel-perfect fluid layouts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Universal Viewport Resets & Fluid Utilities
   -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Prevent background scroll when mobile navigation is active */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Fluid Container Padding */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* Section Header Fluid Sizing */
.section-header {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-header h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.2;
}

.section-header p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    padding: 0 0.5rem;
}

/* Fluid Form Controls to prevent auto-zoom on iOS */
input, select, textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    max-width: 100%;
}

/* Touch friendly minimum tap targets */
.btn-primary, .btn-outline, .nav-links a, .social-links a {
    min-height: 42px;
}

/* --------------------------------------------------------------------------
   2. Modern Navigation & Hamburger System
   -------------------------------------------------------------------------- */
/* Hamburger Toggle Button - hidden on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    background: var(--bg-blue-tint, #f1f5fa);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-dark, #1e293b);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-btn:hover {
    background: var(--primary, #0a58ca);
    border-color: var(--primary, #0a58ca);
}

.hamburger-btn:hover span {
    background: #ffffff;
}

/* Animated Hamburger to 'X' */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--primary, #0a58ca);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--primary, #0a58ca);
}

/* Fullscreen Nav Overlay Backdrop */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   3. Tablet & Mobile Header Adaptations (max-width: 992px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .navbar {
        padding: 0.75rem clamp(0.85rem, 3.5vw, 1.75rem);
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar .logo {
        font-size: clamp(1.15rem, 3.2vw, 1.4rem);
        gap: 0.55rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .navbar .logo-img {
        height: clamp(32px, 6vw, 38px);
        width: auto;
        flex-shrink: 0;
    }

    .hamburger-btn {
        display: flex;
        flex-shrink: 0;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        margin-right: 0.65rem;
    }

    .nav-actions .btn-primary,
    .navbar .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        white-space: nowrap !important;
        flex-shrink: 0;
        padding: 0.46rem 1.05rem;
        font-size: 0.84rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1;
        border-radius: 50px;
        margin-left: 0;
        margin-right: 0;
        background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
        box-shadow: 0 2px 9px rgba(10, 88, 202, 0.25);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .lang-btn {
        padding: 0.42rem 0.75rem;
        font-size: 0.82rem;
    }

    .lang-dropdown {
        right: -30px;
    }

    .navbar .btn-primary i {
        font-size: 0.72rem;
        transition: transform 0.2s ease;
    }

    .navbar .btn-primary:hover i {
        transform: translateX(2px);
    }
    /* Mobile Navigation Drawer */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
        gap: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        border-bottom: 2px solid var(--border-color);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-dark);
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--primary);
        padding-left: 1rem;
        background: var(--bg-blue-tint);
    }
}

/* Specific Phone Navbar & CTA Enhancements */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.65rem clamp(0.75rem, 3vw, 1.25rem);
    }

    .navbar .logo {
        font-size: 1.18rem;
        gap: 0.45rem;
    }

    .navbar .logo-img {
        height: 33px;
    }

    .navbar .btn-primary {
        padding: 0.42rem 0.9rem;
        font-size: 0.8rem;
        margin-right: 0.5rem;
        gap: 0.35rem;
    }
}

@media screen and (max-width: 576px) {
    .navbar {
        padding: 0.6rem 0.85rem;
        gap: 0.4rem;
    }

    .navbar .logo {
        font-size: 1.12rem;
        gap: 0.4rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar .logo-img {
        height: 30px;
    }

    .navbar .btn-primary {
        padding: 0.38rem 0.82rem;
        font-size: 0.78rem;
        font-weight: 600;
        margin-right: 0.45rem;
        gap: 0.3rem;
        border-radius: 50px;
        box-shadow: 0 2px 7px rgba(10, 88, 202, 0.22);
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .navbar .btn-primary i {
        font-size: 0.68rem;
    }

    .hamburger-btn {
        width: 38px;
        height: 38px;
        padding: 9px 7px;
    }
}

@media screen and (max-width: 420px) {
    .navbar {
        padding: 0.55rem 0.65rem;
        gap: 0.3rem;
    }

    .navbar .logo {
        font-size: 1.05rem;
        gap: 0.35rem;
    }

    .navbar .logo-img {
        height: 28px;
    }

    .navbar .btn-primary {
        padding: 0.35rem 0.68rem;
        font-size: 0.74rem;
        margin-right: 0.35rem;
        gap: 0.25rem;
        border-radius: 50px;
    }

    .navbar .btn-primary i {
        font-size: 0.65rem;
    }

    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .lang-btn-text .lang-current-label {
        display: none;
    }

    .lang-dropdown {
        right: -65px;
        min-width: 245px;
    }

    .hamburger-btn {
        width: 36px;
        height: 36px;
        padding: 8px 6px;
    }
}

/* --------------------------------------------------------------------------
   4. Hero Sections Across All Pages
   -------------------------------------------------------------------------- */
/* Homepage Main Hero */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 7.5rem 5% 4rem;
        min-height: auto;
        gap: 3rem;
    }

    .hero-content {
        margin-bottom: 0;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(2.4rem, 6.5vw, 3.6rem);
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
        margin: 0 auto 2.25rem;
        max-width: 620px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .stats-row {
        justify-content: center;
        gap: clamp(1.5rem, 5vw, 3rem);
        padding-top: 1.5rem;
    }

    .hero-graphics {
        width: 100%;
        max-width: 580px;
        margin: 0 auto;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 6.5rem 4% 3rem;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 8vw, 2.8rem);
        line-height: 1.15;
    }

    .badge {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        padding: 0.4rem 0.9rem;
        margin-bottom: 1.2rem;
        white-space: normal;
        text-align: center;
    }

    .hero-image {
        border-width: 4px;
        border-radius: 16px;
    }

    /* Floating Card anchored neatly on mobile to avoid overflow */
    .floating-card.bottom-left {
        position: static;
        margin: 1.5rem auto 0;
        width: 100%;
        max-width: 340px;
        animation: none !important;
        transform: none !important;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        justify-content: center;
        padding: 1rem 1.4rem;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        text-align: center;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline,
    .hero-buttons .btn-review {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    .stats-row {
        gap: 0.5rem;
    }

    .stat-item h3 {
        font-size: 1.4rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }
}

/* Subpage Hero Banners (About, Courses, Contact, Gallery, Certificate, Enroll) */
@media screen and (max-width: 992px) {
    .about-hero,
    .courses-hero,
    .cert-hero,
    .gallery-hero,
    .contact-hero,
    .enroll-hero {
        min-height: auto !important;
        padding: 7.5rem 5% 3.5rem !important;
    }

    .about-hero .hero-title,
    .courses-hero .hero-title,
    .cert-hero .hero-title,
    .gallery-hero .hero-title,
    .contact-hero .hero-title,
    .enroll-hero .hero-title {
        font-size: clamp(2rem, 6vw, 3rem) !important;
        margin-bottom: 1rem;
    }

    .about-hero .hero-subtitle,
    .courses-hero .hero-subtitle,
    .cert-hero .hero-subtitle,
    .gallery-hero .hero-subtitle,
    .contact-hero .hero-subtitle,
    .enroll-hero .hero-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
    }
}

@media screen and (max-width: 480px) {
    .about-hero,
    .courses-hero,
    .cert-hero,
    .gallery-hero,
    .contact-hero,
    .enroll-hero {
        padding: 6.5rem 4% 2.5rem !important;
    }
}

/* --------------------------------------------------------------------------
   5. Modern Notification News Ticker Marquee
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .modern-ticker-wrapper {
        height: 48px;
    }

    .modern-ticker-label {
        font-size: 0.8rem;
        padding: 0 26px 0 16px;
        letter-spacing: 1px;
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    }

    .modern-ticker-content {
        margin-left: 115px;
        animation-duration: 40s;
    }

    .modern-ticker-item {
        font-size: 0.85rem;
        margin-right: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .modern-ticker-wrapper {
        height: 44px;
    }

    .modern-ticker-label {
        font-size: 0.75rem;
        padding: 0 18px 0 12px;
        letter-spacing: 0.5px;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    }

    .modern-ticker-content {
        margin-left: 95px;
        animation-duration: 35s;
    }

    .modern-ticker-item {
        font-size: 0.8rem;
        margin-right: 2.25rem;
    }

    .modern-ticker-item i {
        font-size: 0.95rem;
        margin-right: 6px;
    }
}

/* --------------------------------------------------------------------------
   6. Features Section & Cards
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .features-section {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .feature-card {
        padding: 2.5rem 1.8rem;
    }
}

@media screen and (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }
}

/* --------------------------------------------------------------------------
   7. Stats Counter Section (homepage)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .stats-section {
        padding: clamp(3.5rem, 6vw, 4.5rem) 0;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2.2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-icon {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        gap: 1.25rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   8. Courses Section & Course Cards
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .courses-section {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .course-card {
        padding: 2rem 1.75rem;
    }
}

@media screen and (max-width: 680px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.8rem 1.5rem;
        border-radius: 16px;
    }

    .course-card h3 {
        font-size: 1.45rem;
    }

    .specialized-badge {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    .course-price {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   9. Gallery Sections (Carousel on Homepage & Grid on Gallery page)
   -------------------------------------------------------------------------- */
/* Homepage Smooth Slider */
@media screen and (max-width: 992px) {
    .gallery-section {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .custom-gallery {
        padding: 3rem 0;
    }

    .gallery-card {
        padding: 0 1.25rem;
    }
}

@media screen and (max-width: 640px) {
    .custom-gallery {
        padding: 2rem 0;
    }

    .gallery-card {
        padding: 0 0.75rem;
    }

    .gallery-card img {
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }
}

/* Dedicated Gallery Page (gallery.html) */
@media screen and (max-width: 992px) {
    .gallery-page-section {
        padding: clamp(3rem, 6vw, 4.5rem) 0;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
        gap: 1.25rem;
    }
}

@media screen and (max-width: 640px) {
    .photo-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 1rem;
    }

    .photo-item.wide,
    .photo-item.large {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* On touch screens make overlay permanently visible for readability */
    .photo-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(10, 88, 202, 0.85) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
        padding: 1.2rem;
    }

    .photo-info {
        transform: translateY(0) !important;
    }

    .photo-info h4 {
        font-size: 1.15rem;
    }

    .photo-info p {
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   10. Reviews Section & Drag-to-Scroll Slider
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .reviews-section {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .reviews-grid {
        gap: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .review-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 290px;
        padding: 2rem 1.6rem;
    }
}

@media screen and (max-width: 640px) {
    .review-card {
        flex: 0 0 86%;
        min-width: 260px;
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .review-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   11. Student Success Stories (Video Grid)
   -------------------------------------------------------------------------- */
.success-section .container {
    max-width: 1440px;
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
    border: 4px solid #ffffff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 26px 52px rgba(10, 88, 202, 0.22);
    border-color: var(--primary);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

@media screen and (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 992px) {
    .success-section {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 680px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 560px;
        margin: 0 auto;
    }

    .video-card {
        border-radius: 18px;
        border-width: 3px;
    }
}

/* --------------------------------------------------------------------------
   12. Contact Section & Contact Page
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .contact-section,
    .contact-page-section {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .contact-info {
        max-width: 620px;
        margin: 0 auto;
    }

    .contact-info h2 {
        font-size: clamp(2rem, 5vw, 2.6rem);
    }

    .contact-details {
        display: inline-flex;
        flex-direction: column;
        text-align: left;
        margin: 0 auto;
    }

    .contact-form-container {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        padding: 2.5rem 2rem;
    }
}

@media screen and (max-width: 576px) {
    .contact-form-container {
        padding: 1.8rem 1.25rem;
        border-radius: 18px;
    }

    .contact-form h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-details li {
        font-size: 0.95rem;
        gap: 0.8rem;
    }

    .contact-details i {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .map-container {
        height: 300px !important;
        margin-top: 2rem !important;
        border-radius: 14px !important;
    }
}

/* --------------------------------------------------------------------------
   13. Certificate Verification & Download Portal (certificate.html)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .cert-section {
        padding: clamp(3rem, 6vw, 4.5rem) 0;
    }

    .verification-box {
        padding: 2.2rem 1.4rem !important;
        margin: 0 auto 3.5rem !important;
        border-radius: 18px !important;
    }

    .verification-box h3 {
        font-size: 1.6rem !important;
    }

    .verification-box p {
        font-size: 0.95rem !important;
        margin-bottom: 1.8rem !important;
    }

    .search-form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .search-form input {
        width: 100% !important;
        padding: 1rem 1.4rem !important;
        border-radius: 12px !important;
    }

    .search-form button {
        width: 100% !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .cert-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .cert-feature {
        padding: 1.75rem 1.25rem !important;
        border-radius: 16px !important;
    }
}

@media screen and (max-width: 500px) {
    .cert-feature {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .cert-feature .icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* --------------------------------------------------------------------------
   14. Student Enrollment Page (enroll.html)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .enroll-section {
        padding-bottom: 4rem;
    }

    .enroll-form-wrapper {
        margin: -3.5rem auto 0 !important;
        padding: 3rem 2rem !important;
        max-width: 720px !important;
    }
}

@media screen and (max-width: 768px) {
    .enroll-form-wrapper {
        margin: -2.5rem 0 0 !important;
        padding: 2rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .enroll-form-wrapper .section-header {
        margin-bottom: 2rem !important;
    }

    .enroll-form-wrapper .section-header h2 {
        font-size: 1.8rem;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .enroll-summary {
        padding: 1.25rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 12px !important;
    }

    .enroll-summary h4 {
        font-size: 1.1rem !important;
    }

    .enroll-summary p {
        font-size: 0.9rem !important;
    }

    .enroll-form-wrapper button[type="submit"] {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
}

/* --------------------------------------------------------------------------
   15. About Us Page (about.html)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .about-content-section {
        padding: clamp(3.5rem, 6vw, 5rem) 0;
    }

    .about-content-wrapper {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .about-text h2 {
        font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    }

    .about-list {
        text-align: left;
        display: inline-block;
        margin: 0 auto;
    }

    .about-image img {
        border-width: 5px;
        border-radius: 16px;
    }
}

@media screen and (max-width: 576px) {
    .about-image img {
        border-width: 3px;
    }

    .about-list li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   16. Site Footer (All Pages)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .site-footer {
        padding-top: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-about {
        max-width: 520px;
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   17. Ultra Small Phones (max-width: 380px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 380px) {
    .navbar .logo {
        font-size: 0.98rem;
        gap: 0.3rem;
    }

    .navbar .logo-img {
        height: 26px;
    }

    .navbar .btn-primary {
        padding: 0.32rem 0.6rem;
        font-size: 0.7rem;
        margin-right: 0.3rem;
        gap: 0.2rem;
    }

    .navbar .btn-primary i {
        font-size: 0.62rem;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
        padding: 7px 5px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .stat-number {
        font-size: 2.1rem;
    }
}

/* --------------------------------------------------------------------------
   18. Accessibility & High-Contrast / Reduced-Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .modern-ticker-content {
        animation: none !important;
        transform: none !important;
        overflow-x: auto;
    }
}

/* --------------------------------------------------------------------------
   19. Print Optimization
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    .hamburger-btn,
    .modern-ticker-wrapper,
    .hero-buttons,
    .site-footer,
    .nav-overlay {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   20. Floating Quick-Contact & Google Translate Responsive System
   -------------------------------------------------------------------------- */
.floating-contact-bar {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    z-index: 99999 !important;
    width: auto !important;
    max-width: 56px !important;
    pointer-events: auto !important;
}

.floating-btn {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
}

.floating-lang-wrap {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.floating-lang-menu {
    display: none !important;
    position: absolute !important;
    right: calc(100% + 14px) !important;
    bottom: 0 !important;
    left: auto !important;
    width: 275px !important;
    max-width: calc(100vw - 90px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(26, 115, 232, 0.22) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px -8px rgba(13, 71, 161, 0.28), 0 6px 18px rgba(0, 0, 0, 0.08) !important;
    padding: 0.75rem !important;
    z-index: 100000 !important;
    box-sizing: border-box !important;
}

.floating-lang-wrap.open .floating-lang-menu,
.floating-lang-menu.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    .floating-contact-bar {
        bottom: 20px !important;
        right: 18px !important;
        left: auto !important;
        gap: 10px !important;
        max-width: 50px !important;
    }
    .floating-lang-wrap {
        width: 50px !important;
        height: 50px !important;
    }
    .floating-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
    .floating-btn.translate-float-btn {
        font-size: 1.45rem !important;
    }
    .floating-tooltip {
        display: none !important;
    }
    .floating-lang-menu {
        position: fixed !important;
        right: 18px !important;
        bottom: 85px !important;
        left: auto !important;
        width: calc(100vw - 36px) !important;
        max-width: 280px !important;
        transform: translateY(12px) scale(0.95) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    }
    .floating-lang-wrap.open .floating-lang-menu {
        transform: translateY(0) scale(1) !important;
    }
}
