:root {
    --primary-color: #201f65;
    --secondary-color: #ea1d2c;
    --light-bg: #f8fafc;
}

.text-primary {
    color: #201f65 !important;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    padding: 0 10px;
    line-height: 40px;
    height: 40px;
    width: auto;
    display: block;
    color: #222;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    background: rgba(0, 0, 0, 0);
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.navbar-collapse-custom {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    padding: 24px 24px 40px;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1060;
    overflow-y: auto;
    visibility: hidden;
}

.navbar-collapse-custom.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1055;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.mobile-nav-close {
    background: none;
    border: none;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    color: #111;
    cursor: pointer;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.navbar-collapse-custom .navbar-nav {
    width: 100%;
    margin: 0;
}

.navbar-nav .nav-item {
    width: 100%;
    margin: 0;
}

.navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 0;
}

.nav-item-cta {
    margin-top: 24px;
}

.nav-item-cta .btn {
    width: 100%;
    justify-content: center;
}

body.mobile-nav-open {
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    color: red !important;
}

.hero-section {
    position: relative;
}

/* Hero: default (desktop/large) - use wide desktop aspect and center crop */
.hero-swiper,
.heroCarousel,
.carousel-inner,
.carousel-item {
    overflow: hidden;
}
.heroCarousel .item {
    position: relative;
}
.hero-image {
    width: 100%;
    /* Force the desktop aspect ratio (2801x995) so images crop consistently on large screens */
    aspect-ratio: 2801 / 995;
    height: auto;
    object-fit: cover; /* cover ensures the image fills the box */
    /* "over center" interpreted as centered crop on desktop */
    object-position: center center;
    display: block;
}

/* Mobile: use taller portrait aspect (1536x1800) and keep cover + centered crop */
@media (max-width: 727.98px) {
    .hero-image {
        aspect-ratio: 1536 / 1800;
        object-fit: cover;
        object-position: center center; /* keep focal point centered on mobile */
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* About section specific styling to match provided design */
#about {
    padding: 60px 0;
}

#about .about-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 56px;
    line-height: 1.02;
    color: #201f65;
    display: inline-block;
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
    position: relative;
}

#about .display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 56px;
    line-height: 1.02;
    color: #201f65;
    display: inline-block;
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
    position: relative;
}

#about .display-4::after {
    display: none;
}

/* About Section Image */
#about .about-section-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* About Logos Container */
#about .about-logos-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    width: 100%;
}

#about .about-logo {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#about .about-logo-1 {
    max-width: 100%;
    width: auto;
}

#about .lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #374151;
    line-height: 1.95;
    margin-bottom: 28px;
}

/* About CTA overrides (blue button) */
#about .btn-primary-custom {
    background-color: #201f65;
    color: #fff;
    border: none;
    padding: 12px 34px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

#about .btn-primary-custom:hover {
    background-color: #201f65;
    color: #fff;
}

#about .register-btn {
    margin-top: 22px;
}

/* Desktop Layout - Image Left, Content Right */
@media (min-width: 992px) {
    #about .row {
        align-items: flex-start;
    }
    
    #about .about-section-image {
        max-width: 100%;
        width: 100%;
    }
    
    #about .lead {
        max-width: 560px;
    }
    
    #about .col-lg-6.order-lg-1 {
        padding-right: 30px;
    }
    
    #about .col-lg-6.order-lg-2 {
        padding-left: 30px;
    }
}

/* Tablet and Mobile */
@media (max-width: 991.98px) {
    #about {
        padding: 40px 0;
    }
    
    #about .about-section-title,
    #about .display-4 {
        font-size: 36px;
        line-height: 1.1;
        margin-bottom: 30px;
    }
    
    #about .about-logos-container {
        gap: 20px;
        margin-bottom: 25px;
        justify-content: flex-start;
    }
    
    #about .about-logo-1,
    #about .about-logo-2 {
        max-width: 100%;
    }
    
    #about .lead {
        font-size: 16px;
        line-height: 1.8;
        max-width: 100%;
    }
    
    #about .about-section-image {
        margin-top: 30px;
        width: 100%;
    }
    
    #about .col-lg-6.order-1 {
        margin-bottom: 0;
    }
    
    #about .col-lg-6.order-2 {
        margin-top: 30px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    #about .about-section-title,
    #about .display-4 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    #about .about-logos-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    #about .about-logo-1,
    #about .about-logo-2 {
        max-width: 100%;
    }
    
    #about .lead {
        font-size: 15px;
        line-height: 1.75;
    }
    
    #about .btn-primary-custom {
        padding: 10px 28px;
        font-size: 14px;
    }
}
.btn-primary-custom {
    background-color: #e21a22;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
}
.btn-primary-custom-nav {
    background-color: #201f65;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid #201f65;
}
.btn-primary-custom-nav:hover {
    border: 2px solid #201f65 !important;
}
.btn-primary-custom:hover {
    background-color: #e21a22;
    color: #fff;
}

.section-padding {
    padding: 40px 0;
}

/* Upcoming Exams section styling */
#exams .display-4 {
    color: #201f65 !important;
    font-weight: 800 !important;
    font-size: 42px;
}
#exams .lead {
    color: #111827;
    font-weight: 600;
}

#exams .exam-card {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(20, 36, 72, 0.06);
    overflow: hidden;
}
#exams .exam-card .card-header {
    background: transparent;
    color: #201f65;
    padding: 24px 28px;
}
#exams .exam-card .card-body {
    padding: 22px 28px 28px;
}
#exams .exam-card .card-title {
    color: #201f65;
    font-size: 22px;
    font-weight: 700;
}

#exams .exam-card .card-footer {
    background: transparent;
    border-top: none;
    padding: 18px 28px 28px;
}

#exams .exam-card .btn-primary-custom {
    background-color: #201f65;
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    color: #fff;
    display: inline-block;
}

#exams .text-center.mt-5 .btn-outline-primary {
    border-radius: 8px;
    padding: 12px 34px;
    border-color: #201f65;
    color: #201f65;
}

#exams .text-center.mt-5 .btn-outline-primary:hover {
    background-color: #201f65;
    color: #fff;
    border-color: #201f65;
}

@media (min-width: 768px) {
    /* ensure exam cards fill column height and align in two-column grid starting at md */
    #exams .exam-card {
        height: 100%;
    }
    #exams .row.g-4 {
        align-items: stretch;
    }
}

/* center the More Exams button and adjust spacing */
#exams .text-center.mt-5 {
    margin-top: 2.5rem;
}
#exams .text-center.mt-5 .btn-outline-primary {
    display: inline-block;
    min-width: 220px;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #fff;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card > h3 {
    padding-top: 10px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2rem;
}

/* Services section styling to match attached screenshot */
#services {
    background: #ffffff;
    padding: 80px 0;
}

.servicesCarousel {
    padding: 20px 0 40px;
}

.servicesCarousel .owl-stage-outer {
    padding: 20px 0;
}

.servicesCarousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.servicesCarousel .owl-item {
    display: flex;
    height: auto;
    align-items: stretch;
}

.servicesCarousel .owl-item > .item {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Service Card - Dark Blue Card with Rounded Corners */
.service-card-new {
    background: #201f65;
    border-radius: 32px;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 93, 172, 0.15);
    width: 100%;
    height: 100%;
    min-height: 420px;
    flex: 1;
}

.service-card-content {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 60px;
    flex-direction: row;
    flex: 1;
    height: 100%;
}

/* Text Section - Left Side on Desktop */
.service-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.2;
    text-align: left;
}

.service-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* Icon Section - Right Side on Desktop */
.service-icon-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px dashed #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-icon-img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

/* Desktop Layout - Text Left, Icon Right */
@media (min-width: 992px) {
    .service-card-content {
        flex-direction: row;
    }
    
    .service-text-section {
        text-align: left;
    }
    
    .service-title {
        text-align: left;
    }
    
    .service-description {
        text-align: left;
    }
}

/* Mobile Layout - Icon Top Center, Text Below */
@media (max-width: 991.98px) {
    #services {
        padding: 60px 0;
    }

    .service-card-new {
        padding: 40px 30px;
        border-radius: 24px;
        min-height: auto;
    }

    .service-card-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .service-text-section {
        text-align: center;
        width: 100%;
        order: 2;
    }

    .service-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }

    .service-description {
        font-size: 15px;
        line-height: 1.75;
        text-align: center;
    }

    .service-icon-section {
        order: 1;
        width: 100%;
    }

    .service-icon-wrapper {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .service-icon-wrapper::before {
        width: 160px;
        height: 160px;
    }

    .service-icon-img {
        max-width: 110px;
        max-height: 110px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    #services {
        padding: 40px 0;
    }

    .service-card-new {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .service-card-content {
        gap: 25px;
    }

    .service-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .service-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .service-icon-wrapper {
        width: 140px;
        height: 140px;
    }

    .service-icon-wrapper::before {
        width: 140px;
        height: 140px;
    }

    .service-icon-img {
        max-width: 100px;
        max-height: 100px;
    }
}

/* Owl Carousel - Remove dots */
.servicesCarousel .owl-dots {
    display: none !important;
}

/* Owl Carousel - Remove navigation arrows */
.servicesCarousel .owl-nav {
    display: none !important;
}

.exam-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.exam-card:hover {
    transform: translateY(-5px);
}
.exam-card .card-header {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 20px;
}

.cert-carousel {
    padding: 60px 0;
}
.certCarousel .item,
.cert-carousel .item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-logo {
    height: 80px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.cert-logo:hover {
    opacity: 1;
}

/* Certification carousel tweaks for consistent logo sizing and spacing */
.cert-carousel .owl-stage-outer {
    padding: 40px 0; /* reduce vertical crowding */
}
.certCarousel .item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}
.certCarousel .cert-logo {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .certCarousel .cert-logo {
        max-width: 140px;
        max-height: 60px;
    }
}

/* Owl nav customization */
.owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}
.owl-nav .owl-prev,
.owl-nav .owl-next {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}
.carousel-nav {
    font-weight: 700;
}

/* Bootstrap carousel custom indicators (centered bar with active pill) */
.carousel.carousel-dark .carousel-indicators {
    height: 6px;
    gap: 12px;
}

.carousel.carousel-dark .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    opacity: 0.8;
    transition: all 0.2s ease;
}
.carousel.carousel-dark .carousel-indicators .active {
    width: 28px !important;
    height: 6px !important;
    border-radius: 999px !important;
    background-color: #fff !important;
    opacity: 1 !important;
}

/* Circular prev/next overlay buttons */
.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
}
.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
    filter: invert(1) brightness(2);
}

/* Hide default Bootstrap dot spacing so the indicators appear centered */
.carousel.carousel-dark .carousel-indicators [data-bs-target]::before {
    display: none;
}

/* Controller bar centered near bottom of hero, matching attached UI */
.hero-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 34px; /* adjust vertical placement */
    width: 240px;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
}
.hero-controls .control-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-controls .control-dot.active {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: #fff;
    opacity: 1;
}

/* Place small left/right arrows just outside controller bar */
.hero-controls .control-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.hero-controls .control-arrow.left {
    left: -46px;
}
.hero-controls .control-arrow.right {
    right: -46px;
}

.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.news-card .card-body {
    padding: 18px 20px 24px;
}

/* Gallery: make gallery cards a consistent height and ensure images fill/crop */
.gallery-card {
    overflow: hidden; /* clip overflowing image corners */
    border-radius: 8px; /* match site card radius */
    min-height: 360px; /* give each gallery card a consistent height */
    display: block;
    background: #fff;
}
.gallery-card .gallery-img {
    width: 100%;
    height: 100%; /* fill the card so there's no empty space */
    object-fit: cover; /* crop to fill while preserving aspect */
    object-position: center center; /* center the focal point */
    display: block;
}

@media (max-width: 767.98px) {
    .gallery-card {
        min-height: 220px; /* smaller cards on mobile */
    }
}

.read-more-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 34px;
    border-color: #201f65;
    color: #201f65;
}
.read-more-link:hover {
    background-color: #201f65;
    color: #fff;
    border-color: #201f65;
}

.cta-section {
    background: transparent;
    position: relative;
    padding: 0;
    margin-bottom: -80px;
    z-index: 10;
}

/* CTA card that overlaps the footer and matches provided design */
.cta-section .cta-card {
    background: #ea1d2c; /* orange/yellow to match screenshot */
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}
.cta-section .cta-card .display-4 {
    color: #fff;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-section .cta-card .lead {
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: 18px;
    line-height: 1.6;
}
.cta-section .cta-btn {
    display: inline-block;
    background: #201f65;
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}
.cta-section .cta-btn:hover {
    background: #201f65;
    color: #fff;
    text-decoration: none;
}

.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-logo-container {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    width: min-content;
    background: white;
}

.footer-logo {
    height: 60px;
}

/* Footer columns and newsletter input styling to match screenshot */
.footer .container {
    padding-top: 80px;
}
.footer h5 {
    font-weight: 800;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer .contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}
.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}
.newsletter-form input {
    flex: 1;
    max-width: 260px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 16px;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}
.newsletter-form button {
    background: #ea1d2c; /* yellow to match CTA */
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.footer .social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

@media (max-width: 991.98px) {
    .cta-section .cta-card {
        padding: 40px 24px;
        margin: 0 16px;
    }
    .cta-section .cta-card .display-4 {
        font-size: 36px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        max-width: 100%;
        border-radius: 4px;
        margin-bottom: 12px;
    }
    .newsletter-form button {
        border-radius: 4px;
    }
}

.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
}
.newsletter-form button {
    background: var(--secondary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
}

/* Mega menu styles for Examinations */
.dropdown-mega {
    display: none; /* hidden by default; shown on hover for desktop */
    background: transparent;
    border: none;
    max-width: 1100px;
    position: relative;
    margin: auto;
}

.dropdown-mega.show {
    display: block;
}

/* Mega inner white card */
.dropdown-mega .mega-inner {
    padding-top: 48px;
    position: relative;
    top: -48px;
    margin: 8px auto 0;
    max-width: 1100px;
    background: #fff;
    border-radius: 10px;
    padding: 32px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.dropdown-mega .mega-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-mega .mega-subtitle {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.dropdown-mega .mega-section {
    margin-bottom: 1.5rem;
}

.dropdown-mega .mega-list {
    margin-left: 0;
    padding-left: 0;
}

.dropdown-mega .mega-list li {
    margin-bottom: 6px;
    padding-left: 0;
}

.dropdown-mega .mega-list li a {
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    display: block;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.dropdown-mega .mega-list li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Make sure the dropdown covers content without pushing it */
.dropdown-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1040;
}

/* Show mega menu on hover/focus for larger screens */
@media (min-width: 992px) {
    .navbar-collapse-custom {
        position: static;
        transform: none;
        transition: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        visibility: visible;
        overflow: visible;
        display: flex;
        align-items: center;
    }

    .mobile-nav-header,
    .mobile-nav-overlay {
        display: none !important;
    }

    .navbar-nav {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .navbar-nav .nav-item {
        width: auto;
        margin: 0 15px;
    }

    .navbar-nav .nav-link {
        padding: 0 10px;
        text-align: center;
    }

    .nav-item.dropdown.position-static .dropdown-mega {
        display: none;
    }

    .nav-item.dropdown.position-static.mega-open > .dropdown-mega {
        display: block;
    }

    .nav-item.dropdown.position-static .mobile-accordion {
        display: none !important;
    }
}

/* Mobile Accordion Styles */

.mobile-accordion {
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
    display: none;
}

.mobile-accordion.show {
    display: block;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-weight: 500;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.accordion-header i {
    transition: transform 0.2s ease;
    color: #666;
    font-size: 12px;
}

.accordion-header[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.accordion-content {
    background: #f8f9fa;
}

.accordion-subitem {
    border-bottom: 1px solid #e9ecef;
}

.accordion-subheader {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: none;
    border: none;
    text-align: left;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 15px;
    cursor: pointer;
}

.accordion-subheader i {
    transition: transform 0.2s ease;
    color: var(--primary-color);
    font-size: 10px;
}

.accordion-subheader[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.accordion-subcontent {
    background: #fff;
}

.mobile-exam-link {
    display: block;
    padding: 12px 32px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.mobile-exam-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-exam-link:last-child {
    border-bottom: none;
}

/* Hide desktop mega menu on mobile */
@media (max-width: 991.98px) {
    .dropdown-mega {
        display: none !important;
    }

    .navbar-nav .nav-link {
        line-height: 1.5;
        height: auto;
    }

    #examsDropdown.dropdown-toggle::after {
        transition: transform 0.2s ease;
    }

    #examsDropdown.is-open.dropdown-toggle::after {
        transform: rotate(180deg);
    }
}
