:root {
    /* University palette - Navy & Gold */
    --brand-navy: #0b2547;
    --brand-gold: #d4af37;
    --light-color: #ffffff;
    --bg-light: #f7f9fb;
    --bg-subtle: #f1f5f9;
    --bg-accent: #eef2ff;
    --bg-secondary-light: #f8fafc;
    --bg-tertiary-light: #fff7ed;
    --text-dark: #0f172a;
    --text-light: #4b5563;
    --text-muted: #6b7280;
    --secondary-color: #0747a6; /* deep blue */
    --tertiary-color: #e56a00; /* warm gold/orange */
    --accent-color: #f97316;
    --muted-color: #6b7280;
    --shadow-sm: 0 6px 18px rgba(2,6,23,0.08);
    --shadow-md: 0 12px 30px rgba(2,6,23,0.12);
    --transition-fast: 180ms;
    --transition-base: cubic-bezier(.22,1,.36,1);
    --pattern-lines: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    --pattern-dot: radial-gradient(#0000 20%, rgba(0,0,0,0.02) 21%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
}

/* Headings use a classic serif for an academic feel */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--tertiary-color);
}

/* Modern Header Styles */
.header-top {
    background-color: var(--bg-subtle);
    color: var(--text-dark);
    padding: 6px 0;
    font-size: 0.9rem;
}

.header-top a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-top a:hover {
    color: var(--secondary-color);
}

.navbar {
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    color: var(--text-dark);
    transition: color var(--transition-fast) ease;
    position: relative;
    margin: 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Minimalistic dropdown style for university look */
.navbar-nav .dropdown-menu {
    background: var(--light-color);
    min-width: 220px;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.08);
    transition: opacity 180ms var(--transition-base), transform 180ms var(--transition-base);
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: rgba(7,71,166,0.06);
}

/* Chevron icon next to dropdown links */
.dropdown-caret {
    font-size: 0.7rem;
    color: var(--muted-color);
}

/* Show dropdowns on hover for larger screens (desktop behavior) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block; /* ensure Bootstrap doesn't hide it */
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    /* keep toggles from showing default caret (we use fa-chevron-down) */
    .navbar-nav .dropdown-toggle::after { display: none; }
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

/* ============================================
   HERO SECTION - PRODUCTION READY
   ============================================ */
.hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(180deg, rgba(11,37,71,0.85), rgba(11,37,71,0.7)), url('../site/images/banner/banner_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--light-color);
    padding: 100px 0;
    text-align: left; /* left align for a more academic hero */
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-section h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--light-color);
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.6px;
    line-height: 1.05;
}

.hero-section p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    line-height: 1.6;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--brand-navy);
    color: var(--light-color);
    border-color: transparent;
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 8px; /* more formal */
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.12);
    color: var(--light-color);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast) ease;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e56a00;
    border-color: #e56a00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:focus-visible {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    border-color: white;
    background-color: transparent;
    border: 2px solid white;
    cursor: pointer;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:focus-visible {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

/* ============================================
   SECTION STYLING - ENHANCED BACKGROUNDS
   ============================================ */
section {
    padding: 4rem 0;
    position: relative;
}

section:nth-child(1) {
    background-color: var(--bg-light);
}

section:nth-child(2) {
    background-color: var(--bg-subtle);
    background-image: var(--pattern-lines);
}

section:nth-child(3) {
    background-color: var(--bg-secondary-light);
    background-image: var(--pattern-dot);
}

section:nth-child(4) {
    background-color: var(--bg-accent);
    background-image: var(--pattern-grid);
}

section:nth-child(5) {
    background-color: var(--bg-tertiary-light);
}

section:nth-child(6) {
    background-color: var(--bg-light);
}

section:nth-child(n+7) {
    background-color: var(--bg-subtle);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 2px;
}

/* Course Cards */
.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-card .card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card .card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.course-card .card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Quick Action Bar */
.quick-action-bar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: scale(1.12);
    color: white;
}

.quick-action-btn:focus-visible {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

.quick-action-btn.enroll {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.quick-action-btn.search {
    background: linear-gradient(135deg, var(--tertiary-color), #f97316);
}

.quick-action-btn.email {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.quick-action-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128C7E);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--tertiary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--secondary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0b1220 0%, #122235 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 2rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
}

footer h3 {
    color: var(--tertiary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

footer ul li a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

footer ul li a:hover {
    color: white;
    padding-left: 20px;
}

footer ul li a:hover::before {
    transform: translateX(5px);
}

footer ul li a:focus-visible {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 3px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.social-icons a:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.social-icons a:focus-visible {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 2px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E, #25d366);
    color: white;
    text-decoration: none;
    transform: scale(1.12);
}

.whatsapp-float:focus-visible {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 99;
}

.scroll-top-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.scroll-top-btn:focus-visible {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.focus-visible:focus {
    outline: 3px solid var(--tertiary-color);
    outline-offset: 2px;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-light);
}

.modal-header {
    border-bottom: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, var(--bg-light), var(--bg-subtle));
    border-radius: 15px 15px 0 0;
}

.modal-body {
    color: var(--text-dark);
}

/* Course Ticker/Carousel */
.course-ticker {
    width: 100%;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.04), rgba(255, 122, 0, 0.02));
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    height: 56px; /* reduced height for a subtler strip */
    display: flex;
    align-items: center;
    padding: 6px 0; /* top/bottom padding to center items visually */
    z-index: 60;
    border-radius: 6px; /* softer edge */
}

.course-ticker .ticker-track {
    display: flex;
    gap: 0.75rem; /* slightly tighter spacing */
    padding: 0 1rem;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* vertically center the moving track */
    /* fade edges so moving items feel less abrupt */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem; /* reduced padding */
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.06); /* softer shadow */
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    margin-right: 0.75rem;
    transition: transform 180ms var(--transition-base), box-shadow 180ms var(--transition-base);
}

.ticker-item:hover {
    transform: translateY(-1px); /* subtler lift */
    box-shadow: 0 6px 12px rgba(15,23,42,0.08);
}

.ticker-item .course-code {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.ticker-item .ticker-enroll {
    border-radius: 24px;
    padding: 4px 12px;
    font-size: 0.85rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.ticker-item .ticker-enroll:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(99,102,241,0.08);
}

/* Enrollment Overlay */
.enrollment-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.enrollment-overlay.open {
    display: block;
}

.enrollment-overlay .overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.enrollment-overlay .overlay-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.2);
}

.enrollment-overlay.open .overlay-panel {
    transform: translateY(0);
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.overlay-body {
    padding: 1rem 1.25rem 2rem;
    color: var(--text-dark);
}

.overlay-close {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-close:hover {
    color: var(--secondary-color);
}

.overlay-close:focus-visible {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
        min-height: auto;
        background-image: 
            linear-gradient(180deg, rgba(13, 110, 253, 0.75), rgba(13, 110, 253, 0.8)),
            url('../site/images/banner/banner_mobile.jpg');
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .scroll-top {
        bottom: 80px;
        right: 20px;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .quick-action-bar {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .course-ticker .ticker-track {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }

    .ticker-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .enrollment-overlay .overlay-panel {
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .enrollment-overlay.open .overlay-panel {
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .enrollment-overlay .overlay-panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100%);
        width: 720px;
        border-radius: 12px 12px 0 0;
    }

    .enrollment-overlay.open .overlay-panel {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline-primary,
    .btn-outline-light {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .quick-action-bar {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .course-ticker {
        display: block;
    }

    .course-ticker .ticker-track {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }

    .ticker-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    section {
        padding: 2rem 0;
    }

    .course-card .card-body {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #1f2937;
        --bg-light: #111827;
        --bg-subtle: #1f2937;
        --bg-accent: #374151;
        --bg-secondary-light: #1e3a5f;
        --bg-tertiary-light: #42280f;
        --text-dark: #f3f4f6;
        --text-light: #d1d5db;
        --text-muted: #9ca3af;
    }

    body {
        background-color: var(--bg-light);
        color: var(--text-dark);
    }

    .navbar {
        background: rgba(17, 24, 39, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav .nav-link {
        color: var(--text-dark);
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(13, 110, 253, 0.15);
    }

    .dropdown-menu {
        background-color: var(--bg-light);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .dropdown-item {
        color: var(--text-dark);
    }

    .dropdown-item:hover {
        background-color: var(--secondary-color);
        color: white;
    }

    .course-card {
        background: var(--bg-subtle);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .course-card:hover {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }

    .course-card .card-text {
        color: var(--text-light);
    }

    .testimonial-card {
        background-color: var(--bg-subtle);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .testimonial-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .modal-content {
        background-color: var(--bg-light);
        color: var(--text-dark);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .modal-header {
        background: linear-gradient(135deg, var(--bg-subtle), #1f2937);
        border-bottom: 2px solid var(--secondary-color);
    }

    .course-ticker {
        background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), rgba(255, 122, 0, 0.05));
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ticker-item {
        background: rgba(31, 41, 55, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .enrollment-overlay .overlay-panel {
        background: var(--bg-light);
        box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
    }

    .overlay-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .overlay-body {
        color: var(--text-dark);
    }

    .overlay-close {
        color: var(--text-dark);
    }

    .overlay-close:hover {
        color: var(--tertiary-color);
    }

    .btn-primary {
        background-color: var(--bg-subtle);
        color: var(--secondary-color);
        border-color: var(--bg-subtle);
    }

    .btn-primary:hover {
        background-color: var(--bg-accent);
        color: var(--secondary-color);
    }

    .btn-outline-light {
        color: var(--text-dark);
        border-color: var(--bg-accent);
    }

    .btn-outline-light:hover {
        background-color: var(--bg-accent);
        color: var(--text-dark);
    }

    footer {
        background: linear-gradient(135deg, #0b1220 0%, #1a2635 100%);
    }

    section:nth-child(2) {
        background-color: var(--bg-subtle);
    }

    section:nth-child(3) {
        background-color: var(--bg-secondary-light);
    }

    section:nth-child(4) {
        background-color: var(--bg-accent);
    }

    section:nth-child(5) {
        background-color: var(--bg-tertiary-light);
    }
}

/* UPDATED: 2025-10-11 - cache-bust marker: v20251011 */

/* Additional form and motion polish for the glow-up */
.form-control {
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 18px rgba(13,110,253,0.12);
    transform: translateY(-1px);
}
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 18px rgba(13,110,253,0.08);
}

.btn .loading-spinner {
    vertical-align: middle;
    margin-right: 8px;
}

/* subtle entrance animation for cards and important panels */
@keyframes subtleEntrance {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.card, .modal-content, .course-card {
    animation: subtleEntrance 420ms cubic-bezier(.22,1,.36,1) both;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* improved focus outlines for keyboard users */
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid rgba(255,122,0,0.95);
    outline-offset: 2px;
}

/* Small utility for empty-state messaging */
.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}