/* ==========================================================================
   KM Moulavi – UI enhancements (design polish, scroll & hover animations)
   Loaded after style.css / responsive.css so it can refine the template.
   ========================================================================== */

:root {
    --brand: #134f98;
    --brand-dark: #0d3a72;
    --navy: #2c2b5e;
    --accent: #f2b632;
    --ink: #1f2433;
    --muted: #5f6577;
    --surface: #ffffff;
    --soft: #f4f7fc;
    --radius: 16px;
    --shadow-sm: 0 4px 14px rgba(19, 79, 152, .08);
    --shadow-md: 0 14px 34px rgba(19, 79, 152, .14);
    --shadow-lg: 0 26px 60px rgba(19, 79, 152, .22);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Poppins", sans-serif;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

img { max-width: 100%; }

a { transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }

/* --------------------------------------------------------------------------
   Scroll progress bar
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 100000;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--brand), var(--navy));
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header-area.two {
    transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}

.header-sticky.sticky.two {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 8px 30px rgba(15, 30, 70, .08);
    animation: headerDrop .5s var(--ease) both;
}

@keyframes headerDrop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-area .logo img { transition: transform .5s var(--ease), width .4s var(--ease); }
.header-area .logo a:hover img { transform: rotate(-4deg) scale(1.06); }
.header-sticky.sticky .logo img { width: 62px; }

.header-area.two .main-menu nav > ul > li > a {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .2px;
}

.header-area.two .main-menu nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 32%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: left .35s var(--ease), right .35s var(--ease);
}

.header-area.two .main-menu nav > ul > li:hover > a::after,
.header-area.two .main-menu nav > ul > li.active > a::after {
    left: 15px;
    right: 15px;
}

.main-menu ul li:last-child a::after { right: 50%; }
.header-area.two .main-menu nav > ul > li:last-child:hover > a::after,
.header-area.two .main-menu nav > ul > li:last-child.active > a::after { right: 0; }

.main-menu nav ul > li.active > a { color: var(--brand) !important; }

.header-btn a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand), var(--navy));
    box-shadow: 0 8px 20px rgba(19, 79, 152, .3);
    transition: transform .35s var(--ease-back), box-shadow .35s var(--ease);
}

.header-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(19, 79, 152, .38);
}

.header-btn a i { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 50%; }

@keyframes ring {
    0%, 60%, 100% { transform: rotate(0); }
    65% { transform: rotate(-18deg); }
    70% { transform: rotate(16deg); }
    75% { transform: rotate(-12deg); }
    80% { transform: rotate(8deg); }
    85% { transform: rotate(0); }
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */
.slider-area.two .single-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.18);
    will-change: transform;
}

.carousel-item.active .slide-bg { animation: kenburns 9s var(--ease) forwards; }

@keyframes kenburns {
    from { transform: scale(1.18) translate3d(0, 0, 0); }
    to { transform: scale(1.02) translate3d(0, -1.5%, 0); }
}

.slider-area.two .single-slide::after {
    z-index: 1;
    background: linear-gradient(115deg, rgba(13, 26, 66, .82) 0%, rgba(19, 79, 152, .55) 55%, rgba(0, 0, 0, .25) 100%);
}

.slider-area.two .slider-content-area {
    position: relative;
    z-index: 2;
    width: 100%;
}

.slide-content h2 {
    letter-spacing: 1px;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}

.slide-content .hero-kicker {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(242, 182, 50, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.slide-content p { color: rgba(255, 255, 255, .9); font-size: 17px; }

.carousel-item .slide-content > * { opacity: 0; }

.carousel-item.active .slide-content > * {
    animation: heroIn .9s var(--ease) forwards;
}

.carousel-item.active .slide-content > *:nth-child(1) { animation-delay: .15s; }
.carousel-item.active .slide-content > *:nth-child(2) { animation-delay: .35s; }
.carousel-item.active .slide-content > *:nth-child(3) { animation-delay: .55s; }
.carousel-item.active .slide-content > *:nth-child(4) { animation-delay: .75s; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.banner-btn {
    padding: 12px 34px;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy) !important;
    box-shadow: 0 10px 30px rgba(242, 182, 50, .35);
    transition: transform .35s var(--ease-back), box-shadow .35s var(--ease), background-color .3s;
}

.banner-btn:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
}

#customCarousel .carousel-control-prev,
#customCarousel .carousel-control-next {
    z-index: 3;
    width: 52px;
    height: 52px;
    top: 50%;
    margin: 0 24px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .4s, background-color .3s, transform .3s var(--ease);
}

#customCarousel:hover .carousel-control-prev,
#customCarousel:hover .carousel-control-next { opacity: 1; }

#customCarousel .carousel-control-prev:hover,
#customCarousel .carousel-control-next:hover {
    background: var(--brand);
    transform: translateY(-50%) scale(1.08);
}

#customCarousel .carousel-control-prev-icon,
#customCarousel .carousel-control-next-icon { width: 1.2rem; height: 1.2rem; }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 20px;
}

.scroll-cue::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: scrollCue 1.8s var(--ease) infinite;
}

@keyframes scrollCue {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   Inner page banner
   -------------------------------------------------------------------------- */
.banner-area {
    overflow: hidden;
    background-attachment: fixed;
}

.banner-area::after {
    background: linear-gradient(120deg, rgba(13, 26, 66, .85), rgba(19, 79, 152, .6)) !important;
}

.banner-content { position: relative; z-index: 2; padding: 110px 0 100px; }

.banner-content h2 {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    animation: heroIn 1s var(--ease) both .1s;
}

.banner-content h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), #fff);
    transform-origin: center;
    animation: growX .9s var(--ease) both .55s;
}

@keyframes growX {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   Section titles
   -------------------------------------------------------------------------- */
.section-title { position: relative; margin-bottom: 20px; }

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    font-size: 36px;
    color: var(--navy);
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 4px;
    margin-left: -40px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transition: transform .9s var(--ease) .25s;
}

.section-title.is-visible h2::after,
html:not(.reveal-ready) .section-title h2::after { transform: scaleX(1); }

.section-sub {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.about-content h2 span { color: var(--brand); position: relative; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.default-btn,
.view-all-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 50px;
}

.default-btn::before,
.view-all-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
    display: block !important;
}

.default-btn:hover::before,
.view-all-btn:hover::before { left: 140%; }

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 30px !important;
    font-weight: 600 !important;
    transition: background-color .35s var(--ease), color .35s, transform .35s var(--ease-back), box-shadow .35s;
}

.view-all-btn::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    transition: transform .35s var(--ease);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.view-all-btn:hover::after { transform: translateX(5px); }

.about-content .default-btn,
.event-btn .default-btn {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    padding: 10px 30px;
    transition: background-color .35s, color .35s, transform .35s var(--ease-back), box-shadow .35s;
}

.about-content .default-btn:hover,
.event-btn .default-btn:hover {
    background: var(--navy) !important;
    border-color: var(--navy);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Cards: courses & events
   -------------------------------------------------------------------------- */
.single-course,
.single-event {
    height: calc(100% - 40px);
    overflow: hidden;
    border-radius: var(--radius) !important;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(19, 79, 152, .07);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}

.single-course { margin-bottom: 40px !important; }
.single-event { margin-bottom: 40px !important; }

.single-course:hover,
.single-event:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(19, 79, 152, .18);
}

.course-img,
.event-img {
    position: relative;
    overflow: hidden;
}

.course-img img,
.event-img img {
    border-radius: 0 !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 1s var(--ease), filter .6s;
}

.single-course:hover .course-img img,
.single-event:hover .event-img img {
    transform: scale(1.1) rotate(.5deg);
}

.course-img a::before,
.event-img a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 30%, rgba(19, 79, 152, .75));
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.single-course:hover .course-img a::before,
.single-event:hover .event-img a::before { opacity: 1; }

.course-hover {
    top: 50% !important;
    left: 50% !important;
    z-index: 2 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(.4) !important;
    transition: opacity .45s var(--ease), transform .55s var(--ease-back) !important;
}

.course-hover i { color: var(--brand) !important; font-size: 18px; }

.single-course:hover .course-hover,
.single-event:hover .course-hover {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.course-content,
.event-content { padding: 24px 26px 28px !important; }

.course-content h3,
.event-content h4 { font-weight: 700; }

.course-content h3 a,
.event-content h4 a {
    color: var(--ink);
    background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 0 2px;
    transition: background-size .45s var(--ease), color .3s;
}

.single-course:hover .course-content h3 a,
.single-event:hover .event-content h4 a {
    color: var(--brand);
    background-size: 100% 2px;
}

.course-content p,
.event-content p { color: var(--muted); line-height: 1.75; }

/* --------------------------------------------------------------------------
   About / Principal
   -------------------------------------------------------------------------- */
.about-area { position: relative; }

.about-img,
.teacher-details-img {
    position: relative;
    border-radius: var(--radius);
}

.about-img img,
.teacher-details-img img {
    border-radius: var(--radius);
    transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}

.about-img:hover img { transform: translateY(-8px) scale(1.02); }

.teacher-details-area {
    position: relative;
    background: linear-gradient(180deg, var(--soft), #fff);
}

.teacher-details-img::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border-radius: var(--radius);
    border: 3px solid var(--accent);
    transition: inset .6s var(--ease);
}

.teacher-details-img { z-index: 1; }
.teacher-details-img:hover::before { inset: -12px 12px 12px -12px; }
.teacher-details-img img { width: 100%; object-fit: cover; box-shadow: var(--shadow-md); }

/* Vision / Mission / Values (About page) */
.service-area .single-service {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(19, 79, 152, .07);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.service-area .single-service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease);
}

.service-area .single-service:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-area .single-service:hover::before { transform: scaleX(1); }
.service-area .single-service .mb-3 i { transition: transform .7s var(--ease-back); }
.service-area .single-service:hover .mb-3 i { transform: scale(1.15) rotate(-10deg); }

.teacher-details-content h4 {
    position: relative;
    padding-left: 18px;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.teacher-details-content h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 5px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
}

.teacher-details-content p { color: var(--muted); line-height: 1.85; }

/* Founder cards */
.founder-card {
    position: relative;
    overflow: hidden;
    padding: 16px 16px 4px !important;
    border-radius: var(--radius) !important;
    background: #fff;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.founder-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease);
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.founder-card:hover::after { transform: scaleX(1); }

.team-single-img { border-radius: 12px; }
.team-single-img img { transition: transform 1s var(--ease) !important; }
.founder-card:hover .team-single-img img { transform: scale(1.08); }
.team-details { padding-top: 16px; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats-band {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    color: #fff;
    background: linear-gradient(120deg, var(--navy), var(--brand));
}

.stats-band::before,
.stats-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    animation: floaty 9s ease-in-out infinite;
}

.stats-band::before { width: 340px; height: 340px; top: -160px; left: -80px; }
.stats-band::after { width: 260px; height: 260px; bottom: -130px; right: 6%; animation-delay: -4s; }

@keyframes floaty {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

.stat-item {
    position: relative;
    z-index: 1;
    padding: 20px 10px;
    text-align: center;
    border-radius: var(--radius);
    transition: background-color .4s, transform .4s var(--ease);
}

.stat-item:hover { background: rgba(255, 255, 255, .08); transform: translateY(-6px); }

.stat-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--navy);
    background: var(--accent);
    transition: transform .6s var(--ease-back);
}

.stat-item:hover i { transform: rotateY(360deg); }

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-img-wrapper {
    border-radius: 14px;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.gallery-img-wrapper img {
    object-fit: cover;
    transition: transform 1s var(--ease), filter .6s;
}

.gallery-img-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(19, 79, 152, .1), rgba(13, 26, 66, .7));
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.gallery-img-wrapper::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--brand);
    background: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.3) rotate(-90deg);
    transition: opacity .4s, transform .55s var(--ease-back);
}

.gallery-img-wrapper:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg) !important; }
.gallery-img-wrapper:hover img { transform: scale(1.12); }
.gallery-img-wrapper:hover::before { opacity: 1; }
.gallery-img-wrapper:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }

.gallery-carousel .owl-stage-outer { padding: 10px 0 24px; }

#galleryModal .modal-content { border-radius: var(--radius); overflow: hidden; }
#galleryModal.fade .modal-dialog { transform: scale(.9); transition: transform .4s var(--ease-back); }
#galleryModal.show .modal-dialog { transform: scale(1); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
#testimoniyal .owl-stage-outer { padding: 16px 4px 30px; }

.testimonials-card {
    position: relative;
    overflow: hidden;
    padding: 40px 28px 30px !important;
    border: 0 !important;
    border-radius: var(--radius) !important;
    background: linear-gradient(145deg, var(--brand), var(--navy)) !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform .5s var(--ease), box-shadow .5s;
}

.testimonials-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 54px;
    color: rgba(255, 255, 255, .1);
    transition: transform .6s var(--ease), color .6s;
}

.testimonials-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg) !important; }
.testimonials-card:hover::before { transform: scale(1.2) rotate(-8deg); color: rgba(242, 182, 50, .35); }

.testimonials-card p { line-height: 1.8; opacity: .92; }

.testimonials-card h5 {
    position: relative;
    display: inline-block;
    padding-top: 14px;
    color: var(--accent) !important;
    font-weight: 600 !important;
}

.testimonials-card h5::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 2px;
    margin-left: -15px;
    background: rgba(255, 255, 255, .4);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.single-contact {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid rgba(19, 79, 152, .07);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.single-contact:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg) !important; }
.single-contact .contact-icon img { transition: transform .7s var(--ease-back); }
.single-contact:hover .contact-icon img { transform: scale(1.15) rotate(-8deg); }

.contact-area input,
.contact-area textarea,
.contact-form input,
.contact-form textarea {
    border-radius: 12px !important;
    transition: border-color .3s, box-shadow .3s !important;
}

.contact-area input:focus,
.contact-area textarea:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px rgba(19, 79, 152, .12) !important;
    outline: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-area {
    position: relative;
    border-top: 0 !important;
    background: radial-gradient(1200px 400px at 10% 0%, rgba(19, 79, 152, .55), transparent 60%), #10183a;
}

.footer-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--brand), var(--accent));
    background-size: 200% 100%;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% 0; }
}

.main-footer { padding-top: 70px !important; padding-bottom: 40px !important; }

.footer-area .single-widget p,
.footer-area .single-widget p a { color: rgba(255, 255, 255, .72); line-height: 1.8; }

.footer-area .single-widget h3 {
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.footer-area .single-widget h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.footer-area .single-widget ul li a {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, .72);
    transition: color .3s, transform .35s var(--ease);
}

.footer-area .single-widget ul li a:hover,
.footer-area .single-widget p a:hover { color: var(--accent); }

.footer-menu-widget ul li a:hover { transform: translateX(8px); }

.footer-menu-widget ul li a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--accent);
}

.footer-social ul li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    background: rgba(255, 255, 255, .06);
    transition: transform .4s var(--ease-back), background-color .3s, border-color .3s !important;
}

.footer-social ul li:hover a {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--navy) !important;
    transform: translateY(-5px) rotate(8deg);
}

.footer-logo img { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }

.footer-bottom {
    background: rgba(0, 0, 0, .25) !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom p { color: rgba(255, 255, 255, .65) !important; }
.footer-bottom p a { color: var(--accent) !important; }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
#scrollUp {
    width: 48px !important;
    height: 48px !important;
    right: 22px !important;
    bottom: 22px !important;
    border-radius: 50% !important;
    line-height: 48px !important;
    font-size: 22px !important;
    background: linear-gradient(135deg, var(--brand), var(--navy)) !important;
    box-shadow: 0 10px 26px rgba(19, 79, 152, .4) !important;
    transition: transform .35s var(--ease-back), box-shadow .35s;
}

#scrollUp:hover { transform: translateY(-5px); }
#scrollUp i { line-height: 48px; }

/* --------------------------------------------------------------------------
   Scroll reveal
   Hidden states only apply once JS has marked the document ready, so the
   page stays fully visible if scripts fail to load.
   -------------------------------------------------------------------------- */
.reveal-ready [data-reveal] {
    opacity: 0;
    transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal-ready [data-reveal="up"] { transform: translate3d(0, 50px, 0); }
.reveal-ready [data-reveal="down"] { transform: translate3d(0, -40px, 0); }
.reveal-ready [data-reveal="left"] { transform: translate3d(-60px, 0, 0); }
.reveal-ready [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.reveal-ready [data-reveal="zoom"] { transform: scale(.88); }
.reveal-ready [data-reveal="blur"] { filter: blur(10px); transform: translate3d(0, 20px, 0); }

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Hover effects on cards must not be overridden by the revealed transform */
.reveal-ready .single-course[data-reveal].is-visible:hover,
.reveal-ready .single-event[data-reveal].is-visible:hover,
.reveal-ready .founder-card[data-reveal].is-visible:hover,
.reveal-ready .single-contact[data-reveal].is-visible:hover,
.reveal-ready .single-service[data-reveal].is-visible:hover { transform: translateY(-10px); }
.reveal-ready .gallery-img-wrapper[data-reveal].is-visible:hover { transform: translateY(-6px); }

/* Once revealed, drop the long reveal transition so hovers feel snappy */
.reveal-ready [data-reveal].reveal-done {
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
    transition-delay: 0s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .banner-area { background-attachment: scroll; }
    .stat-number { font-size: 34px; }
}

@media (max-width: 767px) {
    .section-title h2 { font-size: 28px; }
    .slide-content h2 { font-size: 34px; line-height: 42px; }
    .slide-content p { font-size: 15px; }
    .banner-content { padding: 80px 0 70px; }
    .stats-band { padding: 50px 0; }
    .scroll-cue { display: none; }
    .teacher-details-img { margin-bottom: 40px; }
    .teacher-details-img::before { inset: 12px -10px -10px 12px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-ready [data-reveal] { opacity: 1; transform: none; filter: none; }
    .carousel-item .slide-content > * { opacity: 1; }
}
