/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

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

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

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


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

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

.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;
}


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

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 20px;
    padding: 22px 0;
    color: #3C3C3C;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@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-nav .nav-link.active::after {
        display: none;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 65px;
}

.navbar-light .navbar-nav .nav-link {
    color: #3C3C3C;
    font-weight: 600;
}

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

.navbar .btn-get-started {
    background: var(--primary);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    height: auto !important;
}

.navbar .btn-get-started:hover {
    background: var(--dark);
    color: #FFFFFF !important;
}

@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 ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    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(--primary);
    border-color: var(--primary);
}

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

.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-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


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

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


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.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;
}

.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(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.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(--primary);
}

.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 .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

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

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

.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;
}
/*** Premium visual upgrade (graphics polish only) ***/
.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: cover;
    transform: scale(1.02);
    animation: kisZoom 18s ease-in-out infinite alternate;
}

@keyframes kisZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.12); }
}

.header-carousel .owl-carousel-item h1 {
    text-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.header-carousel .owl-carousel-item p {
    text-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.service-item,
.course-item,
.team-item,
.testimonial-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 24, 48, .08);
    transition: transform .4s ease, box-shadow .4s ease;
}

.service-item:hover,
.course-item:hover,
.team-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(16, 24, 48, .16);
}

.course-item img,
.team-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .6s ease;
}

.course-item:hover img,
.team-item:hover img {
    transform: scale(1.08);
}

.category a {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 24, 48, .1);
}

.category a img {
    transition: transform .6s ease, filter .6s ease;
}

.category a:hover img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

.category a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 40, 0) 45%, rgba(11, 17, 40, .55) 100%);
    pointer-events: none;
}

.category a > div {
    z-index: 2;
    border-radius: 8px 0 0 0;
    box-shadow: 0 -6px 20px rgba(16, 24, 48, .12);
}

.about img,
#about img {
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(16, 24, 48, .18);
}

.footer .row img {
    border-radius: 6px;
    height: 68px;
    object-fit: cover;
    transition: transform .4s ease, opacity .4s ease;
}

.footer .row img:hover {
    transform: scale(1.06);
    opacity: .9;
}

.testimonial-item img {
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(16, 24, 48, .14);
}

.btn-primary,
.btn-get-started {
    box-shadow: 0 10px 24px rgba(6, 163, 218, .28);
}

/*** ===== Premium refinement layer ===== ***/
:root {
    --ink: #0B1128;
    --gold: #C9A54A;
    --grad-primary: linear-gradient(120deg, #06BBCC 0%, #0B8FD6 100%);
}

body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, .navbar-brand span { letter-spacing: -.02em; }

/*** Hero ***/
.hero-wrap { position: relative; }

.hero-overlay {
    background:
      radial-gradient(900px 520px at 12% 40%, rgba(6,187,204,.20) 0%, rgba(6,187,204,0) 70%),
      linear-gradient(100deg, rgba(8,13,32,.95) 0%, rgba(8,13,32,.80) 45%, rgba(8,13,32,.30) 100%);
}

.hero-wrap .header-carousel .owl-carousel-item img {
    max-height: 760px;
    min-height: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    margin-bottom: 22px;
    border-radius: 100px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-badge i { color: var(--primary); }

.hero-title {
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    text-shadow: 0 18px 44px rgba(0,0,0,.5);
}

.hero-accent {
    background: linear-gradient(100deg, #06BBCC 0%, #7FE7F1 55%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 640px;
    color: rgba(255,255,255,.86);
    font-size: 1.12rem;
    line-height: 1.85;
    margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-hero {
    background: var(--grad-primary);
    color: #FFFFFF !important;
    border: none;
    border-radius: 100px;
    padding: 14px 34px;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(6,187,204,.35);
}

.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(6,187,204,.45); }

.btn-hero-ghost {
    border-radius: 100px;
    padding: 14px 34px;
    color: #FFFFFF !important;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
}

.btn-hero-ghost:hover { background: #FFFFFF; color: var(--ink) !important; transform: translateY(-3px); }

.hero-trust { position: relative; margin-top: -60px; z-index: 5; padding-bottom: 10px; }

.hero-trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(11,17,40,.06);
    border-radius: 18px;
    padding: 26px 20px;
    box-shadow: 0 28px 60px rgba(11,17,40,.16);
    backdrop-filter: blur(10px);
}

.hero-trust-item { display: flex; align-items: center; gap: 14px; padding: 4px 12px; }
.hero-trust-item + .hero-trust-item { border-left: 1px solid rgba(11,17,40,.08); }
.hero-trust-item i { font-size: 22px; color: var(--primary); }
.hero-trust-item strong { display: block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1.2; }
.hero-trust-item span { font-size: 13px; color: #6B7280; }

@media (max-width: 991.98px) {
    .hero-trust { margin-top: -30px; }
    .hero-trust-inner { grid-template-columns: repeat(2, 1fr); }
    .hero-trust-item:nth-child(odd) { border-left: none; }
}

@media (max-width: 575.98px) {
    .hero-trust-inner { grid-template-columns: 1fr; }
    .hero-trust-item + .hero-trust-item { border-left: none; border-top: 1px solid rgba(11,17,40,.08); padding-top: 14px; }
    .hero-lead { font-size: 1rem; }
}

.header-carousel .owl-nav { right: 4%; }
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
}

/*** Premium cards section ***/
.premium-cards { padding-top: 90px !important; }

.premium-card {
    position: relative;
    height: 100%;
    padding: 38px 28px 32px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(11,17,40,.07);
    box-shadow: 0 14px 34px rgba(11,17,40,.07);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease, border-color .45s ease;
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}

.premium-card:hover { transform: translateY(-12px); box-shadow: 0 34px 64px rgba(11,17,40,.16); border-color: rgba(6,187,204,.35); }
.premium-card:hover::before { transform: scaleX(1); }

.premium-card-index {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    color: rgba(11,17,40,.06);
    transition: color .4s ease;
}

.premium-card:hover .premium-card-index { color: rgba(6,187,204,.18); }

.premium-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(6,187,204,.14), rgba(11,143,214,.14));
    color: var(--primary);
    font-size: 26px;
    transition: background .45s ease, color .45s ease, transform .45s ease;
}

.premium-card:hover .premium-icon { background: var(--grad-primary); color: #FFFFFF; transform: rotate(-6deg) scale(1.05); }

.premium-card h5 { font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.premium-card p { color: #6B7280; font-size: 15px; margin-bottom: 18px; }

.premium-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.premium-link i { transition: transform .35s ease; font-size: 12px; }
.premium-link:hover { color: #0B8FD6; }
.premium-link:hover i { transform: translateX(5px); }

/*** Global polish ***/
.section-title { letter-spacing: .16em; font-weight: 800; }
.navbar { box-shadow: 0 6px 24px rgba(11,17,40,.06) !important; }
.btn { border-radius: 8px; }
.btn-primary { background: var(--grad-primary); border: none; }
.btn-primary:hover { transform: translateY(-2px); }
