/* ===== RESET & VARIABLES ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-navy: #0b2c4d;
            --primary-blue: #1a4fa3;
            --accent-green: #2e8b57;
            --accent-red: #d62828;
            --sky-blue: #4da8da;
            --text-dark: #333;
            --text-light: #555;
            --bg-light: #f5f7fb;
            --white: #ffffff;
            --shadow: 0 8px 25px rgba(0, 20, 30, 0.08);
            --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            overflow-x: hidden;
            line-height: 1.6;
        }
        /* ===== TOP BAR ===== */
.top-bar {
    width: 100%;
    background: #0e7704;
    color: #ffffff;
    font-size: 0.9rem;
    
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255,255,255,0.92);
    font-weight: 400;
}

.top-contact i {
    color: rgba(255,255,255,0.92);
    font-size: 0.9rem;
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.top-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.top-socials a:hover {
   background: #02f7ff;
    color: #063970;
    transform: translateY(-3px);
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {

    .top-bar-container {
        justify-content: center;
        padding: 0.55rem 1rem;
    }

    .top-contact {
        display: none;
    }

    .top-socials {
        width: 100%;
        justify-content: center;
    }

    .top-socials a {
        width: 36px;
        height: 36px;
    }
}

        /* ===== STICKY NAVBAR ===== */
        .navbar {
            position: sticky;
            top: 0;
            width: 100%;
            background: #0e7704;
            box-shadow: var(--shadow);
            z-index: 1200;
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1300px;
            margin: 0 auto;
            padding: 0.7rem 1.5rem;
        }

       .logo {
            height: 88px;
            width: auto;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .logo img {
            width: 88px;
            height: 88px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #ffffff;
            background-color: white;
            padding: 5px; 
        }

        .logo span {
            font-weight: 700;
            font-size: 3.8rem;
            color: #ffffff;
            letter-spacing: -0.5px;
            white-space: nowrap;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .nav-links a {
            text-decoration: none;
            color: #ffffff;
            font-weight: 500;
            font-size: 0.95rem;
            position: relative;
            transition: color 0.25s ease;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: #02f7ff;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2.5px;
            background: #ffffff;
            transition: width 0.3s ease;
            border-radius: 4px;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .apply-btn {
            background: var(--primary-blue);
            color: var(--whi);
            border: none;
            padding: 10px 15px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: 0.2s ease;
            box-shadow: 0 6px 14px rgba(26, 79, 163, 0.2);
            letter-spacing: 0.3px;
            white-space: nowrap;
        }

        .apply-btn:hover {
            background-color: #0b3a7a;
            transform: translateY(-3px);
            box-shadow: 0 12px 20px rgba(26, 79, 163, 0.25);
            padding: 10px 15px;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 22px;
            cursor: pointer;
            z-index: 1300;
            flex-shrink: 0;
        }

        .hamburger span {
            display: block;
            width: 100%;
            height: 3px;
            background: #ffffff;
            border-radius: 3px;
            transition: all 0.3s;
        }

        .hamburger.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
            background: var(--primary-blue);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
            background: var(--primary-blue);
        }

         @media (max-width: 1024px) {
            .nav-links {
                gap: 1rem;
            }
            
            .nav-links a {
                font-size: 0.9rem;
            }
            
            .apply-btn {
                padding: 6px 16px;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 900px) {
            .nav-links {
                display: none;
            }
            
            .hamburger {
                display: flex;
            }
            
            .nav-container {
                padding: 0.7rem 1.5rem;
            }
            
            .logo span {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 480px) {

    .nav-container{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo{
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .logo img{
        width: 58px;
        height: 58px;
    }

    .logo span{
        font-size: 2.5rem;
        font-weight: 700;
        color: #ffffff;
        flex: 1;
        text-align: center;
        margin-left: -40px;
    }

    .hamburger{
        margin-left: auto;
    }
}
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -320px;
            width: 280px;
            height: 100%;
            background: var(--white);
            box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
            padding: 2rem 1.8rem;
            transition: right 0.35s ease-in-out;
            z-index: 11000;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 40px;
            border-bottom: 1px solid #eef2f6;
            padding-bottom: 20px;
        }

        .mobile-header img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 2px solid green;
        }

        .mobile-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary-navy);
            line-height: 1.2;
        }

        .mobile-menu a {
            text-decoration: none;
            color: #1f2a44;
            font-size: 1.2rem;
            font-weight: 500;
            padding: 14px 10px;
            border-radius: 14px;
            transition: 0.2s;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .mobile-menu a i {
            width: 28px;
            color: green;
            font-size: 1.3rem;
        }

        .mobile-menu a:hover {
            background: #f0f5fe;
            color: var(--primary-blue);
        }

        .mobile-menu .apply-btn {
            margin-top: 30px;
            width: 100%;
            text-align: center;
            padding: 14px;
            font-size: 1.1rem;
            background-color: green;
            color: white;

        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(11, 44, 77, 0.5);
            backdrop-filter: blur(3px);
            opacity: 0;
            visibility: hidden;
            transition: 0.3s;
            z-index: 1300;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }


        /* ===== IMPROVED HERO SECTION WITH PROFESSIONAL FADE ===== */
        .hero {
            position: relative;
            min-height: 600px;
            height: 100vh;
            max-height: 800px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--white);
            padding: 2rem 1rem;
            width: 100%;
            overflow: hidden;
        }

        .hero-slides {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .hero-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: opacity;
        }

        .hero-slide.active {
            opacity: 1;
            z-index: 1;
        }

        .hero-slide {
            z-index: 0;
        }

        .hero-slide::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
        }

        .hero-content {
            max-width: 900px;
            margin: 0 auto;
            z-index: 2;
            position: relative;
            animation: fadeInUp 1s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            letter-spacing: -0.5px;
        }

        .hero-content p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }

        .hero-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-btn {
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .hero-btn-primary {
            background:  transparent;
            color: var(--white);
            border: 2px solid var(--accent-green);
        }

        .hero-btn-primary:hover {
             background: var(--white);
            color: var(--primary-navy);
            transform: translateY(-3px);
        }

        .hero-btn-secondary {
            background: transparent;
            color: var(--white);
            border: 2px solid var(--sky-blue);
        }

        .hero-btn-secondary:hover {
            background: var(--white);
            color: var(--primary-navy);
            transform: translateY(-3px);
        }

        /* ===== SECTION STYLES ===== */
        .container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--primary-navy);
            margin-bottom: 1rem;
            position: relative;
            padding-bottom: 1rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--accent-green);
            border-radius: 2px;
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-light);
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 3rem;
        }

        /* ===== CARDS GRID ===== */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .card {
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-top: 4px solid transparent;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .vision-card {
            border-top-color: var(--sky-blue);
        }

        .mission-card {
            border-top-color: var(--accent-green);
        }

        .motto-card {
            border-top-color: var(--primary-navy);
        }

        .card-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 2rem auto 1rem;
            color: var(--white);
            font-size: 2rem;
        }

        .vision-card .card-icon {
            background: var(--sky-blue);
        }

        .mission-card .card-icon {
            background: var(--accent-green);
        }

        .motto-card .card-icon {
            background: var(--primary-navy);
        }

        .card-content {
            padding: 1.5rem 2rem 2rem;
            text-align: center;
        }

        .card-content h3 {
            color: var(--primary-navy);
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }

        .card-content p {
            color: var(--text-light);
            line-height: 1.7;
        }

        .motto-card .card-content p {
            font-size: 1.6rem;
            font-weight: 600;
            font-style: italic;
            color: var(--primary-navy);
        }

        /* ===== VALUES SECTION ===== */
        .values-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            padding: 4rem 2rem;
        }

        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1300px;
            margin: 3rem auto 0;
        }

        .value-item {
            background: var(--white);
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border-left: 4px solid;
            height: 100%;
        }

        .value-item:hover {
            transform: translateY(-7px);
            box-shadow: var(--shadow-hover);
        }

        .value-item.discipline {
            border-left-color: var(--primary-navy);
        }

        .value-item.creativity {
            border-left-color: var(--sky-blue);
        }

        .value-item.punctuality {
            border-left-color: var(--accent-green);
        }

        .value-item.patriotism {
            border-left-color: var(--accent-red);
        }

        .value-item.team-spirit {
            border-left-color: #f77f00;
        }

        .value-item.god-fearing {
            border-left-color: #7209b7;
        }

        .value-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .value-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.3rem;
        }

        .discipline .value-icon {
            background: var(--primary-navy);
        }

        .creativity .value-icon {
            background: var(--sky-blue);
        }

        .punctuality .value-icon {
            background: var(--accent-green);
        }

        .patriotism .value-icon {
            background: var(--accent-red);
        }

        .team-spirit .value-icon {
            background: #f77f00;
        }

        .god-fearing .value-icon {
            background: #7209b7;
        }

        .value-header h3 {
            color: var(--primary-navy);
            font-size: 1.4rem;
            font-weight: 600;
        }

        .value-item p {
            color: var(--text-light);
            line-height: 1.7;
        }

        /* ===== ABOUT SECTION ===== */
        .about-section {
            background: var(--white);
            padding: 4rem 2rem;
        }

        .about-container {
            max-width: 1300px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 3rem;
        }

        .about-text h2 {
            color: var(--primary-navy);
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

        .about-text p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .highlight {
            background: rgba(77, 168, 218, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            color: var(--primary-navy);
        }

        .updf-badge {
            display: inline-flex;
            align-items: center;
            background: rgba(11, 44, 77, 0.08);
            padding: 0.8rem 2rem;
            border-radius: 30px;
            color: var(--primary-navy);
            font-weight: 600;
            margin-bottom: 2rem;
            border-left: 4px solid var(--accent-red);
        }

        .updf-badge i {
            margin-right: 10px;
            color: var(--accent-red);
        }

        .facts-sidebar {
            background: #f1f7fc;
            border-radius: 16px;
            padding: 2rem;
            border-top: 4px solid var(--accent-green);
        }

        .fact-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed #ddd;
        }

        .fact-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .fact-icon {
            width: 50px;
            height: 50px;
            background: var(--primary-navy);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .fact-text h4 {
            color: var(--primary-navy);
            margin-bottom: 0.3rem;
        }

        .fact-text p {
            color: var(--text-light);
        }

        /* ===== NOTICEBOARD ===== */
        .noticeboard-section {
            background: var(--white);
            padding: 4rem 2rem;
        }

        .noticeboard-container {
            max-width: 1300px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .notice-card {
            background: #f9f9f9;
            border-left: 4px solid var(--accent-green);
            border-radius: 12px;
            padding: 1.8rem;
            transition: all 0.3s ease;
        }

        .notice-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .notice-date {
            display: inline-block;
            background: var(--accent-green);
            color: var(--white);
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }

        .notice-card h3 {
            color: var(--primary-navy);
            margin-bottom: 0.8rem;
            font-size: 1.3rem;
        }

        .notice-card p {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* ===== COUNTER SECTION ===== */
        .counter-section {
            background: rgba(3, 139, 22, 0.993);
            color: var(--white);
            padding: 4rem 2rem;
            text-align: center;
        }

        .counter-container {
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: nowrap;
        }

        .counter-item {
            flex: 1;
            min-width: 150px;
        }

        .counter-number {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .counter-label {
            font-size: 1.5rem;
            font-weight: 500;
        }

        /* ===== APPLY SECTION ===== */
        .apply-section {
            background: linear-gradient(135deg, var(--accent-green) 0%, #004d33 100%);
            padding: 5rem 2rem;
            text-align: center;
            color: var(--white);
        }

        .apply-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .apply-container h2 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .apply-container p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            opacity: 0.95;
        }

        .apply-button {
            display: inline-block;
            background: transparent;
            color:  #f8f8f8;
            border: 2px solid var(--sky-blue); 
            font-size: 1.3rem;
            font-weight: 700;
            padding: 1.2rem 3.5rem;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        }

        .apply-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            background: #f8f8f8;
            padding: 0.8rem 2rem; 
            color: green; 
            text-decoration: none; 
            border-radius: 40px; 
            font-weight: 600;
            
        }

        .apply-button i {
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .apply-button:hover i {
            transform: translateX(5px);
        }

        /* ===== FOOTER ===== */
        .footer {
            background: #004d33;
            color: var(--white);
            padding: 4rem 2rem 2rem;
        }

        .footer-container {
            max-width: 1300px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
        }

        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.8rem;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--sky-blue);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.8rem;
        }

        .footer-section ul li a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section ul li a:hover {
            color: var(--white);
            text-decoration: underline;
        }

        .footer-section p {
            margin-bottom: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }

        .social-icon:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.2);
        }

        .footer-bottom {
            text-align: center;
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
        }

        /* ===== IMPROVED TOAST NOTIFICATION FOR ALL DEVICES ===== */
        .toast-container {
            position: fixed;
            z-index: 10000;
            bottom: 30px;
            right: 30px;
            left: auto;
            height: auto;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            pointer-events: none;
        }

        .toast {
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            padding: 1.5rem;
            width: 360px;
            position: relative;
            transform: translateX(0) translateY(20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: all;
            border-left: 4px solid #d4af37;
            margin-bottom: 20px;
        }

        .toast.visible {
            transform: translateX(0) translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .toast-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .toast-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .toast-title {
            color: var(--primary-navy);
            font-weight: 700;
            font-size: 1.1rem;
            line-height: 1.4;
        }

        .toast-message {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 1.2rem;
            line-height: 1.5;
        }

        .toast-actions {
            display: flex;
            gap: 0.8rem;
        }

        .toast-btn {
            padding: 0.8rem 1.2rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 1;
        }

        .btn-download {
            background: linear-gradient(135deg, #d4af37, #f7d154);
            color: var(--primary-navy);
        }

        .btn-download:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
        }

        .btn-close {
            background: #f1f5f9;
            color: #64748b;
        }

        .btn-close:hover {
            background: #e2e8f0;
        }

        .toast-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #f1f5f9;
            border: none;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.2s ease;
        }

        .toast-close:hover {
            background: #e2e8f0;
            color: #475569;
        }

        /* ===== IMPROVED RESPONSIVE STYLES ===== */
      @media (max-width: 900px) {
            .nav-links {
                display: none;
            }
            .hamburger {
                display: flex;
            }
            .nav-container {
                padding: 0.7rem 1.5rem;
            }
            
            .hero {
                min-height: 500px;
                height: 80vh;
            }
            
            .hero-content h1 {
                font-size: 2.5rem;
            }
            .hero-content p {
                font-size: 1.1rem;
            }
            .about-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 3rem 1.5rem;
            }
            .section-title {
                font-size: 2rem;
            }
            .counter-number {
                font-size: 3rem;
            }
            .counter-label {
                font-size: 1.2rem;
            }
            .apply-container h2 {
                font-size: 2.2rem;
            }
            
            .hero {
                min-height: 450px;
                height: 70vh;
                padding: 1rem;
            }
            
            .hero-slide {
                background-position: center center;
            }
        }

        @media (max-width: 480px) {
            .hero {
                min-height: 400px;
                height: 60vh;
            }
            
            .hero-content h1 {
                font-size: 1.8rem;
                line-height: 1.3;
            }
            
            .hero-content p {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                gap: 1rem;
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
            }
            
            .hero-btn {
                width: 100%;
                text-align: center;
                padding: 0.9rem 1.5rem;
                font-size: 1rem;
            }
            
            .counter-container {
                flex-direction: column;
                gap: 2rem;
            }
        }


        /* Landscape mode optimization */
        @media (max-height: 600px) and (orientation: landscape) {
            .hero {
                min-height: 350px;
                height: 100vh;
            }

            .hero-content h1 {
                font-size: 2rem;
            }

            .hero-content p {
                font-size: 0.95rem;
                margin-bottom: 1rem;
            }

            .hero-buttons {
                gap: 1rem;
            }

            .hero-btn {
                padding: 0.7rem 1.8rem;
                font-size: 0.95rem;
            }
        }

        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }

        /* News Section CSS (Aligned with news.html) */
        .news-section {
            padding: 4rem 1.5rem;
            max-width: 1280px;
            margin: 0 auto;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 2rem;
        }

        .news-card {
            background: var(--white);
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            border: 1px solid #e2e8f0;
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .news-image-wrapper {
            position: relative;
            height: 220px;
            overflow: hidden;
        }

        .news-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .news-card:hover .news-image {
            transform: scale(1.05);
        }

        .category-tag {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background-color: #0e7704;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .news-content {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .news-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8125rem;
            color: #64748b;
            margin-bottom: 0.75rem;
        }

        .news-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 0.75rem;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-summary {
            font-size: 0.9375rem;
            color: #64748b;
            margin-bottom: 1.5rem;
            line-height: 1.5;
            flex-grow: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .read-more {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #0e7704;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9375rem;
            transition: all 0.3s ease;
            margin-top: auto;
            border: none;
            background: none;
            padding: 0;
            cursor: pointer;
            width: fit-content;
        }

        .read-more:hover {
            gap: 0.75rem;
            color: #004d33;
        }

        @media (min-width: 768px) {
            .news-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 992px) {
            .news-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

/* ========================================= */

body {
            font-family: 'Segoe UI', 'Roboto', 'Poppins', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
            background-color: #fafaf5;   /* soft off-white, clean background */
            color: #1e2a2e;
            line-height: 1.4;
        }

        /* Container to align with typical school website width (consistent with MABSS theme) */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }
            /* ----- SECTION STYLES (green, gold, white - prestige theme) ----- */
        .gallery-section {
            padding: 70px 0 80px;
            background: linear-gradient(to bottom, #ffffff 0%, #fef9e6 100%);
            position: relative;
        }

       

        /* Section header with title */
        .section-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .section-titles {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: #1f3b2c;      /* deep army green */
            position: relative;
            display: inline-block;
            padding-bottom: 16px;
            font-family: inherit;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #d4af37;   /* gold accent */
            border-radius: 4px;
        }

        /* subtitle / optional short description */
        .section-sub {
            color: #5a6e53;
            margin-top: 12px;
            font-size: 1.1rem;
            font-weight: 400;
        }

        /* ---------- PHOTO GRID (modern masonry-like with CSS Grid) ---------- */
        .photo-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 28px;
            margin-bottom: 48px;
        }

        /* Image Card */
        .image-card {
            position: relative;
            background-color: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            transform: translateY(0);
        }

        /* hover lift effect */
        .image-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 40px -14px rgba(0, 0, 0, 0.2);
        }

        /* image wrapper for consistent sizing */
        .card-img-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 75%; /* 4:3 aspect ratio - classic, disciplined look */
            overflow: hidden;
            background-color: #e9ece5;
        }

        .card-img-wrapper img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        /* zoom effect on hover */
        .image-card:hover .card-img-wrapper img {
            transform: scale(1.08);
        }

        /* Overlay (gradient + title/caption) */
        .card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
            padding: 20px 16px 16px;
            color: white;
            transition: all 0.3s ease;
        }

        /* hover effect: darker gradient & more details appear */
        .image-card:hover .card-overlay {
            background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.2) 100%);
        }

        .overlay-title {
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: -0.2px;
            margin-bottom: 6px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
            color: #ffeaac; /* soft gold tint */
        }

        .overlay-caption {
            font-size: 0.85rem;
            opacity: 0.9;
            font-weight: 400;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* hidden extra details - appears on hover */
        .extra-details {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, opacity 0.3s ease;
            margin-top: 8px;
            font-size: 0.75rem;
            border-top: 1px solid rgba(255,255,240,0.3);
            padding-top: 0px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .image-card:hover .extra-details {
            max-height: 60px;
            opacity: 1;
            padding-top: 8px;
        }

        .detail-badge {
            background: rgba(212, 175, 55, 0.85);
            padding: 2px 8px;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #1f2e1a;
        }

       
        
        /* fade-in animation on scroll (intersection observer based or simple CSS visible) */
        .fade-scroll {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s ease;
        }

        .fade-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive grid */
        @media (max-width: 1024px) {
            .photo-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 24px;
            }
        }

        @media (max-width: 768px) {
            .photo-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
            .section-title {
                font-size: 2rem;
            }
            .overlay-title {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 540px) {
            .photo-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .container {
                padding: 0 16px;
            }
            .gallery-section {
                padding: 50px 0 60px;
            }
            .btn-view-gallery {
                padding: 10px 26px;
                font-size: 1rem;
            }
        }

        /* extra polish: images alt text accessible */
        .image-card:focus-visible {
            outline: 3px solid #d4af37;
            outline-offset: 2px;
        }

/* ========================================= */

/* ========== SECTION STYLES - MATCHING MABSS.AC.UG ========== */
        /* Color scheme: Green (#2c5e2e), Gold (#c9a03d), White, Light Gray */
        
        .featured-videos-section {
            background: #ffffff;
            padding: 4rem 2rem;
            font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        }

        .featured-videos-container {
            max-width: 1280px;
            margin: 0 auto;
        }

        /* Section Header - matches academic style */
        .featured-videos-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .featured-videos-header h2 {
            font-size: 2.2rem;
            font-weight: 600;
            color: #2c5e2e;
            margin: 0 0 0.5rem 0;
            letter-spacing: -0.3px;
            position: relative;
            display: inline-block;
            padding-bottom: 0.75rem;
        }

        .featured-videos-header h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 3px;
            background: #c9a03d;
            border-radius: 3px;
        }

        .featured-videos-header p {
            font-size: 1.1rem;
            color: #5a626e;
            max-width: 650px;
            margin: 1rem auto 0;
            line-height: 1.5;
        }

        /* Video Grid - Responsive */
        .videos-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        /* Video Card */
        .video-card {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid #eef2f0;
            position: relative;
        }

        .video-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 32px rgba(0, 0, 0, 0.12);
            border-color: #c9a03d40;
        }

        /* Video Wrapper - 16:9 Aspect Ratio */
        .video-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 */
            background: #1a2a1a;
            overflow: hidden;
            cursor: pointer;
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Custom Play Button Overlay (for better UX) */
        .video-play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.25s ease;
            pointer-events: none;
            z-index: 2;
        }

        .video-card:hover .video-play-overlay {
            opacity: 1;
        }

        .play-icon-bg {
            width: 60px;
            height: 60px;
            background: rgba(44, 94, 46, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .video-card:hover .play-icon-bg {
            transform: scale(1.1);
            background: #ff0000;
        }

        .play-icon-bg svg {
            width: 28px;
            height: 28px;
            fill: white;
            margin-left: 3px;
        }

        /* Card Content */
        .video-info {
            padding: 1.25rem 1.25rem 1.5rem;
        }

        .video-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c5e2e;
            margin: 0 0 0.5rem 0;
            line-height: 1.4;
        }

        .video-description {
            font-size: 0.9rem;
            color: #6c757d;
            line-height: 1.5;
            margin: 0 0 1rem 0;
        }

        /* Watch on YouTube Link */
        .watch-on-yt {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: #ff0000;
            font-size: 0.85rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            padding: 0.25rem 0;
            border-bottom: 1px solid transparent;
        }

        .watch-on-yt:hover {
            color: #2c5e2e;
            border-bottom-color: #ff0000;
            gap: 0.7rem;
        }

        .watch-on-yt svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        /* View All Button */
        .view-all-wrapper {
            text-align: center;
            margin-top: 2.5rem;
        }

        .btn-view-all {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            background: #2c5e2e;
            color: white;
            padding: 0.85rem 2rem;
            border-radius: 50px;
            font-weight: 500;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all 0.25s ease;
            border: 1px solid #ff0000;
            letter-spacing: 0.3px;
        }

        .btn-view-all:hover {
            background: #1f4521;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(44, 94, 46, 0.25);
            border-color: #ff0000;
        }

        /* Status indicator for playing video */
        .video-card.playing {
            border-color: #c9a03d;
            box-shadow: 0 12px 28px rgba(201, 160, 61, 0.2);
        }

        /* Responsive Breakpoints */
        @media (max-width: 992px) {
            .featured-videos-section {
                padding: 3rem 1.5rem;
            }
            .videos-grid {
                gap: 1.5rem;
            }
            .featured-videos-header h2 {
                font-size: 1.9rem;
            }
        }

        @media (max-width: 768px) {
            .videos-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }
            .featured-videos-header h2 {
                font-size: 1.7rem;
            }
            .featured-videos-header p {
                font-size: 1rem;
            }
            .video-title {
                font-size: 1rem;
            }
            .play-icon-bg {
                width: 50px;
                height: 50px;
            }
        }

        @media (max-width: 576px) {
            .featured-videos-section {
                padding: 2.5rem 1rem;
            }
            .videos-grid {
                grid-template-columns: 1fr;
                gap: 1.8rem;
            }
            .featured-videos-header h2 {
                font-size: 1.5rem;
            }
            .video-info {
                padding: 1rem;
            }
        }

        /* Loading state subtle */
        iframe {
            background: #f0f2f0;
        }

/* ========================================= */

/* =========================
   BASE STYLES
========================= */
.up-section {
  padding: 60px 20px;
  background: #f8fafc;
  font-family: 'Poppins', 'Open Sans', sans-serif;
}

.up-container {
  max-width: 1200px;
  margin: auto;
}

/* Header */
.up-header {
  text-align: center;
  margin-bottom: 40px;
}

.up-header h2 {
  color: #0b1f3a;
  font-size: 32px;
  margin-bottom: 10px;
}

.up-header p {
  color: #555;
  font-size: 16px;
}

/* =========================
   CAROUSEL
========================= */
.up-carousel {
  position: relative;
  overflow: hidden;
}

.up-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
}

/* Card */
.up-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  min-width: calc(33.333% - 13.33px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.up-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.up-card h3 {
  color: #0b1f3a;
  font-size: 18px;
  margin-bottom: 10px;
}

.up-date {
  color: #c9a227;
  font-weight: 600;
  margin-bottom: 10px;
}

.up-card p {
  color: #555;
  font-size: 14px;
}

/* =========================
   ARROWS
========================= */
.up-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0b1f3a;
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.up-left { left: 10px; }
.up-right { right: 10px; }

.up-arrow:hover {
  background: #c9a227;
}

/* =========================
   DOTS
========================= */
.up-dots {
  text-align: center;
  margin-top: 20px;
}

.up-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.up-dot.active {
  background: #0b1f3a;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .up-card {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .up-card {
    min-width: 100%;
  }
}

/* ========================================= */

/* ========== RESET & GLOBAL SCOPE (using unique prefix "up-") ========== */
    .up-programs-section * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .up-programs-section {
      font-family: 'Inter', 'Poppins', 'Roboto', system-ui, -apple-system, sans-serif;
      background: #f8fafc;   /* soft academic background */
      padding: 4rem 1.5rem;
      width: 100%;
      overflow-x: clip;
    }

    /* container for max width & centering */
    .up-container {
      max-width: 1280px;
      margin: 0 auto;
    }

    /* ========== HEADER STYLES ========== */
    .up-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .up-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: #0a2540;        /* deep navy / academic blue */
      letter-spacing: -0.02em;
      font-family: 'Poppins', 'Inter', sans-serif;
      margin-bottom: 0.5rem;
      position: relative;
      display: inline-block;
    }

    .up-title:after {
      content: '';
      display: block;
      width: 70px;
      height: 4px;
      background: #d4af37;   /* gold accent */
      margin: 0.6rem auto 0;
      border-radius: 4px;
    }

    .up-subtitle {
      font-size: 1.1rem;
      color: #2c3e66;
      font-weight: 400;
      margin-top: 1rem;
      opacity: 0.85;
    }

    /* ========== CAROUSEL WRAPPER (no overflow hidden issues) ========== */
    .up-carousel-wrapper {
      position: relative;
      margin: 2rem 0 1.5rem;
      padding: 0 2.5rem;    /* space for arrows */
    }

    /* viewport: hides overflow to show only visible cards */
    .up-carousel-viewport {
      overflow: hidden;
      border-radius: 28px;
    }

    /* track: flex row, smooth transition (transform) */
    .up-carousel-track {
      display: flex;
      gap: 1.8rem;
      transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      will-change: transform;
    }

    /* cards: flexible width based on count, responsive via media queries */
    .up-card {
      flex: 0 0 calc(33.333% - 1.2rem); /* default 3 cards (desktop) */
      background: white;
      border-radius: 1.5rem;
      padding: 1.8rem 1.5rem 2rem;
      box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
      transition: all 0.25s ease-out;
      cursor: pointer;
      border: 1px solid rgba(10, 37, 64, 0.05);
    }

    /* hover effect: slight lift + subtle shadow */
    .up-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.15);
      border-color: rgba(212, 175, 55, 0.2);
    }

    /* program title */
    .up-card-title {
      font-size: 1.45rem;
      font-weight: 700;
      font-family: 'Poppins', 'Inter', sans-serif;
      color: #0a2540;
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }

    /* date badge style */
    .up-card-date {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #eef2ff;
      color: #1e4a76;
      font-weight: 600;
      font-size: 0.85rem;
      padding: 0.3rem 1rem 0.3rem 0.9rem;
      border-radius: 40px;
      margin-bottom: 1rem;
      letter-spacing: -0.2px;
    }

    .up-card-date::before {
      content: "📅";
      font-size: 0.85rem;
    }

    .up-card-desc {
      color: #334155;
      font-size: 0.95rem;
      line-height: 1.45;
      font-weight: 400;
      opacity: 0.85;
      margin-top: 0.5rem;
    }

    /* ========== NAVIGATION ARROWS ========== */
    .up-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 12;
      transition: all 0.2s ease;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
      backdrop-filter: blur(2px);
      font-size: 1.5rem;
      font-weight: 500;
      color: #0a2540;
    }

    .up-arrow:hover {
      background: #0a2540;
      border-color: #0a2540;
      color: white;
      box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
    }

    .up-arrow-left {
      left: -12px;
    }

    .up-arrow-right {
      right: -12px;
    }

    /* ========== PAGINATION DOTS ========== */
    .up-pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      margin-top: 2rem;
      margin-bottom: 0.5rem;
    }

    .up-dot {
      width: 10px;
      height: 10px;
      background: #cbd5e1;
      border-radius: 50%;
      display: inline-block;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .up-dot.active {
      background: #d4af37;    /* gold accent */
      width: 28px;
      border-radius: 20px;
      background: #d4af37;
    }

    /* ========== RESPONSIVE BREAKPOINTS ========== */
    /* Tablet: show 2 cards */
    @media (max-width: 1024px) and (min-width: 641px) {
      .up-card {
        flex: 0 0 calc(50% - 0.9rem);
      }
      .up-carousel-wrapper {
        padding: 0 2rem;
      }
    }

    /* Mobile: show 1 card */
    @media (max-width: 640px) {
      .up-programs-section {
        padding: 2.5rem 1rem;
      }
      .up-title {
        font-size: 1.9rem;
      }
      .up-card {
        flex: 0 0 100%;
      }
      .up-carousel-wrapper {
        padding: 0 1.5rem;
      }
      .up-arrow-left {
        left: -8px;
      }
      .up-arrow-right {
        right: -8px;
      }
      .up-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
      }
    }

    /* small desktop adjustment gap */
    @media (min-width: 1025px) {
      .up-card {
        flex: 0 0 calc(33.333% - 1.2rem);
      }
    }

    /* additional touch-friendly */
    button.up-arrow {
      background: rgba(255,255,255,0.96);
      user-select: none;
    }

/* ========================================= */

.video-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.2s ease;
    }
    
    .video-card.playing {
        border-left: 3px solid #c9a03d;
        border-left-width: 3px;
        border-left-style: solid;
    }
    
    .watch-on-yt {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: #e90707;
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        padding: 0.5rem 0 0.25rem 0;
        border-bottom: 1px solid transparent;
    }
    
    .watch-on-yt:hover {
        color: #2c5e2e;
        border-bottom-color: #c9a03d;
        gap: 0.7rem;
    }
    
    .watch-on-yt svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }
    
    /* Ensure iframe container has proper background */
    .youtube-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Smooth loading state */
    .video-wrapper {
        background: #e9ecef;
    }
    
    /* Professional focus states */
    .btn-view-all:focus-visible,
    .watch-on-yt:focus-visible {
        outline: 2px solid #c9a03d;
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    /* Ensure cards are accessible */
    @media (prefers-reduced-motion: reduce) {
        .video-card,
        .btn-view-all,
        .watch-on-yt,
        .play-icon-bg {
            transition: none;
        }
    }