/********** Template CSS **********/
:root {
    --primary: #00313D;
    --light: #F4F3FF;
    --dark: #00313D;
    --accent: #FF5414;
    --accent-hover: #E04A10;
    --neon-blue: #4B3CFF;
    --bs-primary: #00313D;
    --bs-primary-rgb: 0, 49, 61;
    --bs-light: #F4F3FF;
    --bs-light-rgb: 244, 243, 255;
}

/* Bootstrap primary palette override */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

body {
    font-family: 'Host Grotesk', sans-serif;
    background-color: #ffffff;
    color: #00313D;
}

a:not(.btn) {
    color: var(--primary);
}

a:not(.btn):hover {
    color: var(--accent);
}


h1, h2, h3, h4, h5, h6,
.section-title,
.navbar-brand h2 {
    font-family: 'Host Grotesk', sans-serif;
}

.navbar-brand h2 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.navbar-brand .site-logo {
    display: block;
    height: 92px;
    width: auto;
    max-width: 560px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .navbar-brand .site-logo {
        height: 78px;
        max-width: 460px;
    }
}

/* 320px phones: compact navbar */
@media (max-width: 360px) {
    .navbar-brand .site-logo {
        height: 58px;
        max-width: 210px;
    }

    .navbar-light .navbar-brand {
        height: 68px;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }

    .navbar-light .navbar-toggler {
        margin-right: 0.6rem !important;
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 600;
}

/*** WOW.js animation speed override (animate.css default is 1s — too slow for cards) ***/
.animated {
    animation-duration: 0.45s !important;
    animation-fill-mode: both !important;
}

/* Section headings can be slightly slower */
h1.animated, h2.animated, h3.animated,
.section-title.animated {
    animation-duration: 0.55s !important;
}


/*** Spinner ***/
#spinner {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-out, visibility 0s linear 0.4s;
    z-index: 99999;
    pointer-events: none;
}

#spinner.hide {
    opacity: 0;
    visibility: hidden;
}


/*** Scrollable regions — shared utility ***/
.custom-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 0.35rem;
    outline: none;
}

.custom-scroll::-webkit-scrollbar { width: 8px; }

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

.custom-scroll:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}


/*** Button ***/
.btn {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

/* Contact page social buttons */
.contact-social-orange {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.contact-social-orange:hover,
.contact-social-orange:focus {
    color: #ffffff !important;
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Outline button using site accent (orange) — Bootstrap outline-primary follows --bs-primary (teal) */
.btn-outline-accent {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background-color: transparent !important;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus,
.btn-outline-accent:active {
    color: #ffffff !important;
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}

/* Back to top — after .btn-lg-square; opacity/transform anim (display:none can't ease) */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1080;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(0.9);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.42s,
        box-shadow 0.25s ease;
}

.fab-whatsapp,
.fab-instagram {
    position: fixed;
    right: 28px;
    z-index: 1080;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.42s,
        box-shadow 0.25s ease;
}

.fab-whatsapp {
    bottom: 92px;
    background: #25D366 !important;
}

.fab-instagram {
    bottom: 156px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.back-to-top.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s,
        box-shadow 0.25s ease;
}

/* Hover yalnız real mouse olan cihazlarda (touch-da ilişib qalmır) */
@media (hover: hover) and (pointer: fine) {
    .back-to-top.back-to-top--visible:hover {
        transform: translate3d(0, -3px, 0) scale(1.03);
        background: var(--accent-hover) !important;
        box-shadow: 0 12px 32px rgba(255, 84, 20, 0.30), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .fab-whatsapp:hover {
        transform: translate3d(0, -3px, 0) scale(1.03);
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .fab-instagram:hover {
        transform: translate3d(0, -3px, 0) scale(1.03);
        box-shadow: 0 12px 32px rgba(214, 36, 159, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
    }
}

.back-to-top.back-to-top--visible:active {
    transform: translate3d(0, -1px, 0) scale(0.98);
}

.fab-whatsapp.back-to-top--visible:active,
.fab-instagram.back-to-top--visible:active {
    transform: translate3d(0, -1px, 0) scale(0.98);
}

/* Klaviatura focus ring (touch/mouse klikdə göstərilmir) */
.back-to-top:focus-visible {
    outline: 3px solid rgba(75, 60, 255, 0.45);
    outline-offset: 3px;
}

.fab-whatsapp:focus-visible,
.fab-instagram:focus-visible {
    outline: 3px solid rgba(75, 60, 255, 0.45);
    outline-offset: 3px;
}

/* Mouse/touch klikdən sonra focus ilişib qalmasın */
.back-to-top:focus:not(:focus-visible),
.fab-whatsapp:focus:not(:focus-visible),
.fab-instagram:focus:not(:focus-visible) {
    outline: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .fab-whatsapp,
    .fab-instagram {
        transition-duration: 0.01ms !important;
        transform: none !important;
    }

    .back-to-top:not(.back-to-top--visible) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .back-to-top.back-to-top--visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 575.98px) {
    /* Eyni sağ/boşluq və ölçü — scroll ilə paralel sütun */
    :root {
        --fab-safe-right: max(16px, env(safe-area-inset-right, 0px));
        --fab-safe-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        --fab-btn-size: 52px;
        --fab-stack-gap: 12px;
    }

    .back-to-top {
        right: var(--fab-safe-right) !important;
        bottom: var(--fab-safe-bottom) !important;
        width: var(--fab-btn-size) !important;
        height: var(--fab-btn-size) !important;
    }
    .fab-whatsapp,
    .fab-instagram {
        right: var(--fab-safe-right) !important;
        width: var(--fab-btn-size) !important;
        height: var(--fab-btn-size) !important;
    }
    .fab-whatsapp {
        bottom: calc(var(--fab-safe-bottom) + var(--fab-btn-size) + var(--fab-stack-gap)) !important;
    }
    .fab-instagram {
        bottom: calc(var(--fab-safe-bottom) + (var(--fab-btn-size) + var(--fab-stack-gap)) * 2) !important;
    }

}

/* Header: Courses dropdown — çox kursda sürüşdürmə */
.nav-courses-dropdown {
    max-height: min(70vh, 420px);
    overflow-y: auto;
    min-width: 12rem;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 21px 0;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.25;
    text-transform: uppercase;
    outline: none;
    font-weight: 600;
    /* Yalnız rəng keçidi — ölçü/çəki/kölgə sabit qalsın */
    transition: color 0.15s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.25;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link.show {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.25;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    height: 92px;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-brand {
        height: 78px;
    }
}

.navbar-light a.btn {
    height: auto;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.navbar-light a.btn.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.navbar-light a.btn.btn-primary:hover,
.navbar-light a.btn.btn-primary:focus:not(:focus-visible),
.navbar-light a.btn.btn-primary:active {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.navbar-light a.btn.btn-primary:focus-visible {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .navbar-light .navbar-collapse > a.btn.btn-primary.d-none.d-lg-block {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 92px !important;
        min-height: 92px;
        margin: 0 !important;
        border-radius: 0 !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Laptop breakpoint fix: 992px–1199px (e.g. 1024px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand .site-logo {
        height: 68px;
        max-width: 220px;
    }

    .navbar-light .navbar-brand {
        height: 68px;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 14px;
        font-size: 13px;
        line-height: 1.25;
        padding: 16px 0;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active,
    .navbar-light .navbar-nav .nav-link:focus,
    .navbar-light .navbar-nav .show > .nav-link,
    .navbar-light .navbar-nav .nav-link.show {
        font-size: 13px;
        line-height: 1.25;
    }

    .navbar-light .navbar-collapse > a.btn.btn-primary.d-none.d-lg-block {
        height: 68px !important;
        min-height: 68px;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        font-size: 13px;
    }
}

.navbar.navbar-light {
    background-color: #00313D !important;
}

.navbar .dropdown-item.lang-option.active {
    color: var(--accent) !important;
    background-color: #FFF0EB !important;
    font-weight: 600;
}

.navbar-light .navbar-toggler {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.35);
    background-color: transparent;
}

.navbar-light .navbar-toggler:hover {
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

/* Klaviatura naviqasiyası üçün focus ring (accessibility) */
.navbar-light .navbar-toggler:focus-visible {
    color: rgba(255, 255, 255, 0.95);
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.20);
    outline: none;
}

/* Mouse/touch klikdən sonra Bootstrap-in default :focus box-shadow-unu sıfırla */
.navbar-light .navbar-toggler:focus:not(:focus-visible) {
    background-color: transparent;
    box-shadow: none;
    outline: none;
}

.navbar-light .navbar-toggler-icon {
    filter: invert(1) brightness(1.7);
}


/* Dropdown readability fix */
.navbar .dropdown-menu,
.navbar .nav-courses-dropdown {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.navbar .dropdown-item {
    color: #00313D;
    font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    color: var(--accent);
    background-color: #FFF0EB;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: top .5s ease;
}

.navbar-light.sticky-top.sticky-navbar--revealed {
    top: 0;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel (index): lower band, inset in page, crop image; smaller tagline type ***/
.header-carousel-section {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.header-carousel-section .container-xxl > .header-carousel {
    border-radius: clamp(0.5rem, 1.1vw, 0.85rem);
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(24, 29, 56, 0.12);
}

@media (max-width: 767.98px) {
    .header-carousel-section .container-xxl {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }

    .header-carousel-section .container-xxl > .header-carousel {
        box-shadow: none;
        border-radius: 0;
    }

    .header-carousel-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-carousel-section.mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/* Hero overlay: no color wash over the photo; text-shadow keeps titles readable */
.carousel-hero-overlay {
    background: transparent;
    padding-top: 18%;
}

.carousel-hero-overlay .text-white {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.65),
        0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .carousel-hero-overlay {
        padding-top: 6%;
        align-items: flex-end !important;
        padding-bottom: 0.85rem;
    }
}

/* Owl: before JS runs, hide extra slides so N× hero height is not stacked (major CLS + LCP jump) */
.header-carousel.owl-carousel:not(.owl-loaded) .owl-carousel-item:not(:first-of-type) {
    display: none;
}

/* Mirror .header-carousel .owl-carousel-item height breakpoints so the track matches before Owl paints */
.header-carousel.owl-carousel:not(.owl-loaded) {
    min-height: clamp(390px, 56vh, 560px);
    min-width: 0;
}

@media (min-width: 576px) {
    .header-carousel.owl-carousel:not(.owl-loaded) {
        min-height: clamp(430px, 58vh, 620px);
    }
}

@media (max-width: 767.98px) {
    /* Short band: height tracks width (~1.94:1); slightly taller than before for more hero image */
    .header-carousel.owl-carousel:not(.owl-loaded) {
        min-height: clamp(218px, calc(100vw / 1.94), min(42vh, 308px));
    }
}

@media (min-width: 992px) {
    .header-carousel.owl-carousel:not(.owl-loaded) {
        min-height: clamp(500px, 63vh, 720px);
    }
}

.categories-carousel.owl-carousel:not(.owl-loaded) .item:not(:first-of-type),
.team-carousel.owl-carousel:not(.owl-loaded) .item:not(:first-of-type),
.testimonial-carousel.owl-carousel:not(.owl-loaded) .testimonial-item:not(:first-of-type) {
    display: none;
}

.courses-alt__carousel-shell .categories-carousel.owl-carousel:not(.owl-loaded) {
    min-height: 22rem;
}

.team-carousel-wrap .team-carousel.owl-carousel:not(.owl-loaded) {
    min-height: 24rem;
}

.testimonial-carousel.owl-carousel:not(.owl-loaded) {
    min-height: 14rem;
}

.contact-map-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    min-width: 0;
    aspect-ratio: 4 / 3;
}

.contact-map-embed > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.header-carousel .owl-carousel-item {
    position: relative;
    height: clamp(390px, 56vh, 560px);
    overflow: hidden;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
}

@media (min-width: 576px) {
    .header-carousel .owl-carousel-item {
        height: clamp(430px, 58vh, 620px);
    }
}

@media (max-width: 767.98px) {
    .header-carousel .owl-carousel-item {
        height: clamp(218px, calc(100vw / 1.94), min(42vh, 308px));
        background-color: transparent;
    }

    /* Slight top bias: more of the upper “hero” area stays visible when the band is short */
    .header-carousel .owl-carousel-item img {
        object-fit: cover;
        object-position: center 30%;
    }
}

@media (min-width: 992px) {
    .header-carousel .owl-carousel-item {
        height: clamp(500px, 63vh, 720px);
    }
}

/* Hero titles + buttons: slight right and down together */
.header-carousel .owl-carousel-item .position-absolute .container > .row > [class*="col-"] {
    transform: translate(clamp(0.45rem, 1.5vw, 1.1rem), clamp(0.85rem, 2.5vh, 1.85rem));
}

@media (max-width: 767.98px) {
    .header-carousel .owl-carousel-item .position-absolute .container > .row > [class*="col-"] {
        transform: translate(clamp(0.35rem, 1.1vw, 0.65rem), clamp(0.2rem, 0.9vh, 0.55rem));
    }

    .header-carousel .owl-carousel-item .position-absolute h1.display-3,
    .header-carousel .owl-carousel-item .position-absolute h2.display-3 {
        margin-bottom: 0.35rem !important;
    }

    .header-carousel .owl-carousel-item .position-absolute p.fs-5 {
        margin-bottom: 0.55rem !important;
        font-size: 0.82rem !important;
        line-height: 1.45;
    }

    .header-carousel .owl-carousel-item .position-absolute h5.text-primary {
        margin-bottom: 0.25rem !important;
    }
}

@media (min-width: 768px) {
    .header-carousel .owl-carousel-item .position-absolute .container > .row > [class*="col-"] {
        transform: translate(clamp(0.65rem, 2vw, 1.5rem), clamp(1rem, 2.8vh, 2.1rem));
    }
}

.header-carousel .owl-carousel-item .position-absolute h5.text-primary {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--accent) !important;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem !important;
}

.header-carousel .owl-carousel-item .position-absolute h1.display-3,
.header-carousel .owl-carousel-item .position-absolute h2.display-3 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem !important;
}

.header-carousel .owl-carousel-item .position-absolute p.fs-5 {
    font-size: 0.9rem !important;
    line-height: 1.55;
    margin-bottom: 1rem !important;
}

@media (min-width: 768px) {
    .header-carousel .owl-carousel-item .position-absolute h1.display-3,
    .header-carousel .owl-carousel-item .position-absolute h2.display-3 {
        font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    }

    .header-carousel .owl-carousel-item .position-absolute p.fs-5 {
        font-size: 0.95rem !important;
    }
}

@media (min-width: 992px) {
    .header-carousel .owl-carousel-item .position-absolute h1.display-3,
    .header-carousel .owl-carousel-item .position-absolute h2.display-3 {
        font-size: 2.5rem;
        max-width: 36rem;
    }

    .header-carousel .owl-carousel-item .position-absolute p.fs-5 {
        font-size: 1rem !important;
        max-width: 32rem;
    }
}

.header-carousel .owl-carousel-item .position-absolute .btn {
    font-size: 0.9rem;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
}

@media (max-width: 767.98px) {
    .header-carousel .owl-carousel-item .position-absolute .btn {
        font-size: 0.78rem;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        line-height: 1.25;
    }

    .header-carousel .owl-carousel-item .position-absolute .btn.me-3 {
        margin-right: 0.4rem !important;
    }
}

@media (min-width: 768px) {
    .header-carousel .owl-carousel-item .position-absolute .btn {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        padding-left: 1.35rem !important;
        padding-right: 1.35rem !important;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 70%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 767.98px) {
    .header-carousel .owl-nav {
        top: 50%;
        right: 0.35rem;
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 34px;
        height: 34px;
        margin: 4px 0;
        font-size: 16px;
    }
}

.page-header {
    background-image: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), var(--page-header-image, url(../img/carousel-1.jpg));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
}

/* Inner-page hero band: mirror .header-carousel .owl-carousel-item heights + crop so the photo matches the home hero */
.page-header.page-header-hero-band {
    min-height: clamp(315px, 45vh, 450px);
    max-height: none;
    overflow: hidden;
    box-sizing: border-box;
    background-image: var(--page-header-image, url(../img/carousel-1.jpg));
}

@media (min-width: 576px) {
    .page-header.page-header-hero-band {
        min-height: clamp(345px, 46vh, 495px);
    }
}

@media (max-width: 767.98px) {
    .page-header.page-header-hero-band {
        min-height: clamp(180px, calc(100vw / 2.35), min(34vh, 248px));
        background-position: center 30%;
    }
}

@media (min-width: 992px) {
    .page-header.page-header-hero-band {
        min-height: clamp(174px, 22vh, 250px);
        max-height: none;
    }
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: #ffffff !important;
    color: var(--accent) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.section-title::before {
    content: none;
}

.section-title::after {
    content: none;
}

.section-title.text-start::before {
    content: none;
}

.section-title.text-start::after {
    content: none;
}

.section-title + h1,
.section-title + h2 {
    color: #00313D !important;
}


/*** Service Category Cards ***/
.service-highlights-grid > [class*="col-"] {
    display: block;
}

@media (max-width: 575.98px) {
    .service-highlights-grid {
        --bs-gutter-x: 0.6rem;
        --bs-gutter-y: 0.6rem;
    }
}

.service-highlights-grid a.svc-card-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.svc-card {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary);
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

.svc-card__img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.svc-card__img--placeholder {
    background: #2a5060;
}

.svc-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 49, 61, 0.50);
    transition: background .4s ease;
}

.svc-card:hover .svc-card__overlay {
    background: rgba(0, 49, 61, 0.78);
}

.svc-card:hover .svc-card__img {
    transform: scale(1.07);
}

.svc-card__body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2;
}

.svc-card__title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
    transition: letter-spacing .3s ease;
}

.svc-card:hover .svc-card__title {
    letter-spacing: .04em;
}

.svc-card__role {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.85rem;
    display: block;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.svc-card--active .svc-card__overlay {
    background: rgba(0, 49, 61, 0.78);
}

.svc-card__pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Service listing cards: no thumbnail (images only on course detail) */
.svc-card--text-only:hover {
    filter: brightness(1.06);
}

.svc-card--text-only.svc-card--active {
    box-shadow: 0 0 0 3px var(--accent);
}

/* Orange arrow CTA — always visible; whole card is the link */
.svc-card__cta {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 7px 11px 7px 13px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 84, 20, 0.85);
    background: linear-gradient(
        145deg,
        rgba(255, 84, 20, 0.22) 0%,
        rgba(255, 84, 20, 0.06) 100%
    );
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1;
    box-shadow:
        0 2px 8px rgba(0, 49, 61, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.svc-card__cta i {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.svc-card-link:hover .svc-card__cta,
.svc-card-link:focus-visible .svc-card__cta {
    border-color: var(--accent);
    background: linear-gradient(
        145deg,
        rgba(255, 84, 20, 0.38) 0%,
        rgba(255, 84, 20, 0.14) 100%
    );
    box-shadow:
        0 4px 14px rgba(255, 84, 20, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.svc-card-link:hover .svc-card__cta i,
.svc-card-link:focus-visible .svc-card__cta i {
    transform: translateX(3px);
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}

/* Courses page alternate design */
.courses-alt {
    position: relative;
}

.courses-alt::before {
    content: none;
}

.courses-alt__heading {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.courses-alt__carousel-shell {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    padding: clamp(10px, 2vw, 18px);
    background: transparent;
    border: none;
}

.course-alt-card {
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 49, 61, 0.1);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.course-alt-card:hover {
    transform: translateY(-8px) rotate(-0.6deg);
    box-shadow: 0 20px 42px rgba(16, 24, 40, 0.18);
    border-color: rgba(255, 84, 20, 0.45);
}

.course-alt-card.is-selected {
    border-color: rgba(75, 60, 255, 0.65);
    box-shadow: 0 18px 40px rgba(75, 60, 255, 0.2);
}

.course-alt-card__link {
    color: inherit;
}

.course-alt-card__media {
    position: relative;
}

.course-alt-card__media.ratio-1x1 {
    --bs-aspect-ratio: 125%;
}

.course-alt-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.5) 100%);
}

.course-alt-card__pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4B3CFF 0%, #3528d9 100%);
    box-shadow: 0 8px 22px rgba(75, 60, 255, 0.45);
}

.course-alt-card__body {
    padding: 0.95rem 0.95rem 1.05rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.course-alt-card__body h5 {
    color: #0d2f3c;
    margin-bottom: 0.15rem;
}

.course-alt-card__cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent);
}

.course-alt-card__cta i {
    transition: transform .25s ease, opacity .25s ease;
}

.course-alt-card:hover .course-alt-card__cta i,
.course-alt-card:focus-within .course-alt-card__cta i {
    transform: translateX(6px);
    opacity: 0.95;
}

.courses-alt__rich {
    border: 1px solid rgba(75, 60, 255, 0.12);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}

/*** Categories carousel (square cards) ***/
.category-square-card__media img {
    transition: transform .45s ease;
}

.category-square-card:hover .category-square-card__media img {
    transform: scale(1.08);
}

.categories-carousel .owl-nav {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.categories-carousel .owl-nav .owl-prev,
.categories-carousel .owl-nav .owl-next {
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 1.25rem;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.categories-carousel .owl-nav .owl-prev:hover,
.categories-carousel .owl-nav .owl-next:hover {
    opacity: .9;
    transform: scale(1.05);
}

.categories-carousel .owl-dots {
    margin-top: 0.75rem;
}

.categories-carousel .owl-dot.active span {
    background: var(--neon-blue) !important;
}


/*** Team (photos: portrait area; reviews have no avatars) ***/
.team-item-photo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.team-item-photo-link:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

.team-item-photo-link:hover .team-item-photo-img {
    opacity: 0.92;
    transform: scale(1.02);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.team-item-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e9ecef;
}

.team-item-photo-img {
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.team-item:not(.team-item--no-photo) .team-item-social-wrap {
    z-index: 2;
}

/*** Team carousel (Owl) ***/
.team-carousel-wrap {
    padding-bottom: 0.5rem;
}

.team-carousel .owl-stage-outer {
    padding-top: 4px;
    padding-bottom: 8px;
}

.team-carousel .item {
    height: 100%;
}

.team-carousel-item-inner {
    min-height: 100%;
}

.team-carousel .owl-nav {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 1.25rem;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    opacity: 0.92;
    transform: scale(1.05);
}

.team-carousel .owl-dots {
    margin-top: 0.75rem;
}

.team-carousel .owl-dot.active span {
    background: var(--neon-blue) !important;
}

.team-item--no-photo {
    display: flex;
    flex-direction: column;
}

/* Team detail: fixed portrait frame (3:4), typical profile width ~320px (WCAG-friendly sizing) */
.team-detail-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #e9ecef;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.team-detail-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Home index: team carousel cards slightly shorter portrait than full team page */
.index-team-section .team-item-photo-wrap {
    aspect-ratio: 4 / 5;
}

@media (min-width: 992px) {
    .team-detail-sidebar {
        position: sticky;
        top: 96px;
    }
}

.team-detail-description {
    font-size: 1.05rem;
}

.about-page-description {
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-intro-image-card {
    position: relative;
    width: 100%;
    min-width: 0;
    height: clamp(320px, 44vw, 460px);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 0.35rem 1.2rem rgba(24, 29, 56, 0.12);
    background: #e9ecef;
}

.about-intro-image {
    object-fit: cover;
    object-position: center center;
}

@media (min-width: 992px) {
    .about-intro-image-card {
        height: auto;
        min-height: 320px; /* reserves space before image loads, prevents 0→full-height CLS */
    }

    .about-intro-image {
        position: static !important;
        display: block;
        width: 100%;
        height: auto !important;
        object-fit: contain;
        object-position: center center;
    }
}

@media (max-width: 991.98px) {
    .about-intro-image-card {
        height: auto;
        min-height: 240px; /* prevents collapse on smaller screens while image loads */
    }

    .about-intro-image {
        position: static !important;
        display: block;
        width: 100%;
        height: auto !important;
        object-fit: contain;
        object-position: center center;
    }
}


.about-page-description img {
    max-width: 100%;
    height: auto;
    background-color: #f0f0f0; /* visible placeholder while image fetches, prevents flash of empty space */
}

/* Home index: full About rich text, same as About page, in a bounded scroll area */
.index-about-description-scroll {
    max-height: min(50vh, 440px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    margin-right: -0.15rem;
    margin-bottom: 0;
}

/* Team detail: long bio scrolls inside About box (shorter page) */
.team-detail-description-scroll {
    max-height: min(58vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    margin-right: -0.15rem;
}


/*** Reviews (carousel) ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

/* Standart kart ölçüsü */
.testimonial-item {
    display: flex;
    flex-direction: column;
}

.testimonial-item .testimonial-text {
    flex: 1;
    min-height: 160px;
    max-height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item .testimonial-text p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
}

/*** Reviews page — review submit form ***/
.review-form-section {
    background: #F4F3FF;
}

.review-form-section .lead-small {
    font-size: 0.95rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.review-form-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.review-form-floating-textarea textarea.form-control {
    min-height: 148px;
    height: auto;
}


/*** Footer ***/
.footer {
    background-color: #00313D !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer::before,
.footer::after {
    content: none;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--accent);
}

/* Brand column (right) */
.footer .footer-brand-col {
    max-width: 100%;
}

/* Footer logo */
.footer .footer-logo {
    height: 36px;
    width: auto;
    transition: opacity 0.2s ease;
}

@media (min-width: 576px) {
    .footer .footer-logo {
        height: 46px;
    }
}

@media (min-width: 992px) {
    .footer .footer-logo {
        height: 58px;
    }
}

.footer .footer-logo-link:hover .footer-logo {
    opacity: 0.75;
}

.footer .footer-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #ffffff;
}

/* Copyright logo */
.footer .footer-copy-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.45;
}

/* Social column */
.footer .footer-social-col .footer-title {
    font-size: clamp(1.1rem, 1.2rem, 1.35rem);
}

.footer .footer-social-wrap {
    margin-top: 0.35rem;
}

.footer .footer-social-title {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.footer .btn.btn-social {
    width: 38px;
    height: 38px;
    border-width: 1px;
}

.footer .btn.btn-social i {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .footer .btn.btn-social {
        width: 50px;
        height: 50px;
    }

    .footer .btn.btn-social i {
        font-size: 1.25rem;
    }

    .contact-social-orange {
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .contact-social-orange i {
        font-size: 1.25rem;
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .footer-content-row {
    --bs-gutter-y: clamp(1.4rem, 4vw, 2.5rem);
}

.footer .container.py-5 {
    padding-top: clamp(1.35rem, 4vw, 2.4rem) !important;
    padding-bottom: clamp(1.35rem, 4vw, 2.4rem) !important;
}

.footer .footer-title {
    font-size: clamp(1.1rem, 1.2rem, 1.35rem);
    line-height: 1.25;
    margin-bottom: 0.95rem !important;
}

.footer .footer-quick-link {
    width: fit-content;
    min-height: 2rem;
    display: inline-flex !important;
    align-items: center;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    width: 0.7rem;
    flex-shrink: 0;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.6;
    margin-bottom: 0.65rem !important;
}

.footer .footer-contact-item i {
    width: 1.1rem;
    min-width: 1.1rem;
    text-align: center;
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.86);
}

.footer .footer-contact-link,
.footer .footer-contact-item span {
    color: #fff;
    overflow-wrap: anywhere;
}

.footer .footer-contact-link:hover,
.footer .footer-contact-link:focus {
    color: #fff;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .footer-copy {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    letter-spacing: 0.01em;
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

@media (max-width: 991.98px) {
    .footer .btn.btn-link {
        font-size: 0.95rem;
    }

    .footer .copyright {
        padding: 18px 0;
    }
}

/* Quick links: 2-col grid on md+ */
@media (min-width: 576px) {
    .footer .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1rem;
    }
}

@media (max-width: 767.98px) {
    .footer {
        margin-top: 2.75rem !important;
        padding-top: 0.45rem !important;
    }
}

@media (max-width: 575.98px) {
    .footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer .footer-tagline {
        font-size: 1.05rem;
    }

    .footer .footer-contact-item {
        gap: 0.6rem;
        line-height: 1.5;
    }

    .footer .btn.btn-link {
        margin-bottom: 0.35rem;
        font-size: 0.92rem;
    }

    .footer .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 0.75rem;
    }
}

/* ---- Footer formula image (bottom-right corner accent) ---- */
/*
 * Anchored absolutely inside .footer (which already has
 * position:relative; overflow:hidden; isolation:isolate).
 * Sized with clamp() so it scales with the viewport without
 * ever reaching into the Bootstrap container text columns.
 * z-index 1 puts it above the ::before / ::after overlays
 * but the .container also has z-index 1, so text stays readable.
 */
.footer-formula-img {
    position: absolute;
    top: clamp(1.5rem, 4vw, 3.5rem);
    right: clamp(0.25rem, 1.5vw, 1.75rem);
    width: clamp(180px, 26vw, 420px);
    height: auto;
    max-height: 65%;
    object-fit: contain;
    object-position: top right;
    opacity: 0.82;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    display: block;
    transform-origin: top right;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.30));
    transition: opacity 0.3s ease;
}

/* Tablet */
@media (max-width: 991.98px) {
    .footer-formula-img {
        width: clamp(220px, 34vw, 400px);
        opacity: 0.75;
        right: clamp(0.25rem, 1vw, 1rem);
        max-height: 75%;
    }
}

/* Mobile-landscape / small tablet */
@media (max-width: 767.98px) {
    .footer-formula-img {
        width: clamp(200px, 46vw, 320px);
        opacity: 0.68;
        right: 0.5rem;
        max-height: 65%;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .footer-formula-img {
        width: clamp(180px, 52vw, 260px);
        opacity: 0.60;
        right: 0.25rem;
        max-height: 58%;
    }
}

/* 320px screens: slightly reduce formula image to prevent layout break */
@media (max-width: 360px) {
    .footer-formula-img {
        width: 150px;
        max-height: 48%;
        opacity: 0.55;
        top: 1rem;
        right: 0.15rem;
    }
}

/*** Course category detail ***/
.course-detail-page .course-detail-breadcrumb .breadcrumb-item a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.course-detail-page .course-detail-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.course-detail-page .course-detail-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.course-detail-page .course-detail-gallery:focus {
    outline: none;
}

.course-detail-page .course-detail-gallery:focus-visible {
    box-shadow: 0 0 0 3px rgba(75, 60, 255, 0.35);
    border-radius: 0.5rem;
}

.course-detail-page .course-detail-gallery__viewport {
    padding: 0.75rem 0.75rem 0;
}

@media (min-width: 768px) {
    .course-detail-page .course-detail-gallery__viewport {
        padding: 1rem 1rem 0;
    }
}

.course-detail-page .course-detail-gallery__frame {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 0.35rem 1.25rem rgba(24, 29, 56, 0.08);
}

.course-detail-page .course-detail-gallery__img {
    object-fit: cover;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.course-detail-page .course-detail-gallery__img.is-fading {
    opacity: 0.55;
}

.course-detail-page .course-detail-gallery__empty {
    z-index: 0;
}

.course-detail-page .course-detail-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 0.25rem 0.85rem rgba(24, 29, 56, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.course-detail-page .course-detail-gallery__arrow:hover {
    opacity: 0.92;
    transform: translateY(-50%) scale(1.05);
    color: #fff !important;
}

.course-detail-page .course-detail-gallery__arrow--prev {
    left: 0.5rem;
}

.course-detail-page .course-detail-gallery__arrow--next {
    right: 0.5rem;
}

@media (min-width: 768px) {
    .course-detail-page .course-detail-gallery__arrow--prev {
        left: 1rem;
    }

    .course-detail-page .course-detail-gallery__arrow--next {
        right: 1rem;
    }
}

.course-detail-page .course-detail-gallery__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.course-detail-page .course-detail-gallery__meta {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.course-detail-page .course-detail-gallery__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.course-detail-page .course-detail-gallery__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.course-detail-page .course-detail-gallery__dot:hover {
    border-color: var(--neon-blue);
}

.course-detail-page .course-detail-gallery__dot.is-active {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    transform: scale(1.15);
}

.course-detail-page .course-detail-description-scroll {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    margin-right: -0.15rem;
    padding-right: 0.35rem;
}

.course-detail-page .course-detail-description {
    line-height: 1.75;
}

.course-detail-page .course-detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.35rem;
    background-color: #f0f0f0; /* visible placeholder while image fetches */
}

.course-detail-page .course-detail-description p:last-child {
    margin-bottom: 0;
}

/*** Abroad cards ***/
.abroad-section {
    position: relative;
}

.abroad-section::before {
    content: none;
}

.universities-list {
    margin-top: -10px;
}

.universities-list__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.universities-list__item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.universities-carousel {
    overflow: hidden;
}

.universities-carousel .universities-list__track {
    width: max-content;
    flex-wrap: nowrap;
    animation: universities-carousel-scroll 28s linear infinite;
}

@keyframes universities-carousel-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 7px));
    }
}

.university-flag-card {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 49, 61, 0.12);
    box-shadow: 0 8px 20px rgba(24, 29, 56, 0.10);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-flag-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.abroad-card {
    background: #fff;
    border: 1px solid rgba(0, 49, 61, 0.12);
    border-radius: 14px;
    padding: 26px 20px;
    color: var(--dark);
    box-shadow: 0 6px 16px rgba(24, 29, 56, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

.abroad-card:hover {
    border-color: rgba(0, 49, 61, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(24, 29, 56, 0.1);
}

.abroad-card__icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: #f7f8fb;
    border: 1px solid rgba(0, 49, 61, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abroad-card__icon-wrap--detail {
    width: min(100%, 980px);
    min-width: 0;
    min-height: 200px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    margin: 0 auto 22px;
}

.abroad-card__icon {
    color: var(--accent);
    font-size: 2.1rem;
    line-height: 1;
}

.abroad-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abroad-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0;
}

.abroad-card__title--detail {
    text-align: center;
    letter-spacing: 0.01em;
    font-size: clamp(1.8rem, 3.1vw, 2.8rem);
    font-weight: 800;
}

.abroad-card--detail {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 34px;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(24, 29, 56, 0.08);
}

.abroad-detail-page__content {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: #27313a;
    line-height: 1.9;
    font-size: 1.06rem;
}

.abroad-detail-page__content p {
    margin-bottom: 1rem;
}

.abroad-detail-page__content h2,
.abroad-detail-page__content h3,
.abroad-detail-page__content h4 {
    color: #00313d;
    margin-top: 1.4rem;
    margin-bottom: 0.85rem;
}

.abroad-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.abroad-card:hover .abroad-card__cta,
.abroad-card:focus-visible .abroad-card__cta {
    transform: translateX(5px);
    opacity: 1;
}

.abroad-card__subtitle {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: #6a6f78;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .abroad-card__icon-wrap--detail {
        width: min(100%, 860px);
    }

    .abroad-card__title {
        font-size: 1.25rem;
    }

    .abroad-card--detail {
        padding: 28px 24px;
    }
}

@media (max-width: 575.98px) {
    .abroad-card__icon-wrap--detail {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .abroad-card--detail {
        padding: 20px 16px;
    }

    .abroad-detail-page__content {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (max-width: 767.98px) {
    .universities-list {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .universities-list__track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
    }

    .universities-carousel {
        overflow: hidden;
    }

    .universities-carousel .universities-list__track {
        animation-duration: 24s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .universities-carousel .universities-list__track,
    .universities-list__track {
        animation: none !important;
        transform: none !important;
    }
}

/* Course detail badges (below image) */
.course-detail-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.course-detail-badge__icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 12px;
    background: rgba(var(--bs-primary-rgb), .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--bs-primary);
}

.course-detail-badge__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.course-detail-badge__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    line-height: 1;
}

.course-detail-badge__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Level test — tez bitirmə (stepper-dən ayrıca) */
.test-questions-toolbar {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 49, 61, 0.08);
}

/* Level test — bir sual, yuxarıda nömrə, Back / Next */
.test-stepper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.test-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.35rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    font-family: inherit;
    background: #e9ecef;
    color: var(--primary);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

.test-stepper-num:focus {
    outline: none;
}

.test-stepper-num:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* Cavab verilməyib (hazırda bu addımda deyilsiniz) — boş / gözləyir */
.test-stepper-num:not(.is-active):not(.is-answered) {
    background: #f1f3f5;
    color: #868e96;
    border: 2px dashed #adb5bd;
}

/* Cavab verilib, başqa addımdasınız */
.test-stepper-num:not(.is-active).is-answered {
    background: #d1e7dd;
    color: #0f5132;
    border: 2px solid #198754;
}

/* Hazırkı sual */
.test-stepper-num.is-active {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent-hover);
    border-style: solid;
    transform: scale(1.06);
}

/* Hazırkı sual + artıq cavab seçilib */
.test-stepper-num.is-active.is-answered {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(25, 135, 84, 0.55);
}

.test-question-step {
    display: none;
}

.test-question-step.is-active {
    display: block;
}

.test-question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.test-question-nav .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}