/********** Template CSS **********/

/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

/* when your JS adds bg-white */
.sticky-top.bg-white .navbar-nav .nav-link {
    color: #222;
    font-weight: 700;
}

.sticky-top.bg-white .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

/* optional: dropdown caret/toggler icon, if needed */
.sticky-top.bg-white .navbar-toggler,
.sticky-top.bg-white .dropdown-toggle {
    color: #222;
}

.navbar {
    padding: 15px 0;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 520;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: #fff;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

/* MOBILE */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
        color: #0D6B68 !important;
        border-bottom: 1px solid #eee;
    }

    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: 0;
    }

    .navbar .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    /* remove any default dropdown spacing on mobile */
    .navbar .nav-item,
    .navbar .nav-item.dropdown {
        margin: 0 !important;
    }

    .navbar .dropdown-menu {
        --bs-dropdown-spacer: 0;
    }

    .navbar .dropdown-menu {
        position: static;
        float: none;

        display: block;
        /* keep in flow so we can animate */
        height: 0;
        /* << use height to ensure zero space */
        max-height: 0;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden;

        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;

        transition:
            height .25s ease,
            opacity .2s ease,
            transform .25s ease;
    }

    .navbar .dropdown-menu.show {
        height: auto;
        /* let it expand to content */
        max-height: 420px;
        /* safety cap for animation */
        padding: .5rem 0 !important;
        margin: .25rem 0 .75rem !important;
        border: 1px solid #e9ecef !important;
        border-radius: .5rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .06);

        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* caret rotates when open */
    .navbar .nav-link[data-bs-toggle="dropdown"]::after {
        transition: transform .2s ease;
    }

    .navbar .dropdown.show>.nav-link[data-bs-toggle="dropdown"]::after {
        transform: rotate(180deg);
    }



    /* items */
    .navbar .dropdown-item {
        padding: .6rem 1rem;
        color: #0D6B68;
        transition: background-color .15s ease, padding-left .2s ease;
    }


    .navbar .dropdown-item+.dropdown-item {
        border-top: 1px solid #f0f2f2;
    }

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: #f7f9f9;
        padding-left: 1.25rem;
    }


    /* Panel base (hidden) */
    .navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -8px);
        /* start slightly up */
        width: 100vw;
        max-width: 100vw;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
        padding: 16px 20px;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
    }

    /* During Bootstrap's collapsing phase, cancel height anim */
    .navbar .navbar-collapse.collapsing {
        height: auto !important;
        overflow: visible !important;
        transform: translate(-50%, -8px);
        opacity: 0;
        visibility: visible;
        /* allow fade/slide */
        pointer-events: none;
    }

    /* Open (visible) */
    .navbar .navbar-collapse.show,
    .navbar .navbar-collapse.collapsing.show {
        transform: translate(-50%, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform .25s ease, opacity .25s ease;
    }

    /* Ensure it renders while animating */
    .navbar .navbar-collapse.collapsing,
    .navbar .navbar-collapse.show {
        display: block !important;
    }

    /* Keep toggler above panel */
    .navbar .navbar-toggler {
        z-index: 1040;
    }

    /* Optional: stagger links for a nicer reveal */
    .navbar .navbar-nav>.nav-item {
        transform: translateY(-4px);
        opacity: 0;
        transition: transform .25s ease, opacity .25s ease;
    }

    .navbar .navbar-collapse.show .nav-item {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar .navbar-collapse.show .nav-item:nth-child(1) {
        transition-delay: .03s;
    }

    .navbar .navbar-collapse.show .nav-item:nth-child(2) {
        transition-delay: .06s;
    }

    .navbar .navbar-collapse.show .nav-item:nth-child(3) {
        transition-delay: .09s;
    }

    .navbar .navbar-collapse.show .nav-item:nth-child(4) {
        transition-delay: .12s;
    }

    .navbar .navbar-collapse.show .nav-item:nth-child(5) {
        transition-delay: .15s;
    }

    .navbar .navbar-collapse.show .nav-item:nth-child(6) {
        transition-delay: .18s;
    }
}

/* DESKTOP (unchanged from yours) */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        transition: .5s;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    position: relative;
    overflow: hidden;
}

/* --- Responsive hero untuk mobile --- */
@media (max-width: 767.98px) {

    .hero-inner-head {
        padding: 10%;
    }
    
    .hero-header .hero-inner-page {
        padding-top: 3.9rem;
        padding-bottom: 3rem;
        /* kalau mau kiri/kanan juga: */
        /* padding-left: 1.5rem;
       padding-right: 1.5rem; */
    }

    /* tinggi jangan dipaksa 70vh di mobile */
    .hero-header .row.align-items-center {
        height: auto !important;
    }

    /* judul lebih kecil di mobile */
    .hero-header h1.display-3 {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* paragraf lebih enak dibaca */
    .hero-header p.lead {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }

    /* text & badge di-center */
    .hero-header .col-lg-6.text-white {
        text-align: center;
    }

    .hero-header .d-flex.flex-wrap.gap-2 {
        justify-content: center;
    }

    .hero-header .col-lg-6:last-child {
        margin-top: 2rem;
    }

    .blob-1,
    .blob-2 {
        opacity: 0.25;
        transform: scale(0.7);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-header .hero-inner-page {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-inner-head {
        padding: 10%;
    }

    .hero-header .row.align-items-center {
        height: auto !important;
    }

    .hero-header h1.display-3 {
        font-size: 2.6rem;
    }
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 10;
    pointer-events: none;
}

.hero-header-karakteristik {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/home/karakteristik_ruhama.png) top center no-repeat;
    background-size: cover;
    min-height: 120vh;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/* Slider
================================================== */
/*-- Main slide --*/
.banner-carousel .banner-carousel-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-carousel .banner-carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: block;
}

.banner-carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%); */
}

@media (max-width: 991px) {
    .banner-carousel .banner-carousel-item {
        height: auto;
    }

    .banner-carousel .banner-carousel-item img {
        width: 100%;
        height: 500px;
        display: block;
    }
}

@media (max-width: 575px) {
    .banner-carousel .banner-carousel-item {
        height: auto;
    }

    .logo-nav {
        margin-top: -20px;
    }

    .banner-carousel .banner-carousel-item img {
        width: 100%;
        height: 500px;
        display: block;
    }
}

/* Carousel control */
.banner-carousel .carousel-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-block;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: transparent;
    opacity: 0;
    filter: alpha(opacity=0);
    text-shadow: none;
    transition: all .25s ease;
    padding: 0;
    outline: 0;
    border: 0;
}

@media (max-width: 575px) {
    .banner-carousel .carousel-control {
        display: none !important;
    }
}

.banner-carousel .slick-dots {
    opacity: 0;
    filter: alpha(opacity=0);
    bottom: 60px;
}

.banner-carousel:hover .carousel-control,
.banner-carousel:hover .carousel-control,
.banner-carousel:hover .slick-dots {
    opacity: 1;
    filter: alpha(opacity=100);
}

.banner-carousel .carousel-control.left {
    left: 20px;
}

.banner-carousel .carousel-control.right {
    right: 20px;
}

.banner-carousel .carousel-control i {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    line-height: 58px;
    width: 60px;
    height: 60px;
    font-size: 22px;
    border-radius: 0;
    transition: all 500ms ease;
}

.banner-carousel .carousel-control i:hover {
    background: #0D6B68;
    color: #fff;
}

/*-- Animation */
.banner-carousel [data-animation-in] {
    opacity: 0;
}

/* ===== Base layout ===== */
.uq-why {
    margin-top: -150px;
    position: relative;
    min-height: 72vh;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
}

.uq-why .container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

.uq-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(16px, 4vw, 48px);
    align-items: center;
}

/* ===== Background slideshow ===== */
.uq-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 900ms ease;
    z-index: -3;
}

.uq-bg.active {
    opacity: 1;
}

.uq-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* subtle dark gradient overlay */
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .55));
}

/* ===== Left text ===== */
.uq-eyebrow {
    color: #fff;
    letter-spacing: .08em;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.uq-title {
    color: #fff;
    margin: 0;
    font-size: clamp(22px, 3.6vw, 52px);
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

/* ===== Right pills ===== */
.uq-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uq-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #e8e8e8;
    border-radius: 14px;
    text-decoration: none;
    color: #0D6B68;
    /* deep purple-ish like the sample */
    font-weight: 650;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
    backdrop-filter: blur(3px);
    transform: translateY(10px);
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
}

.uq-pill:hover {
    background: #0D6B68;
    color: #fff;
}

.uq-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    background: linear-gradient(135deg, #b54aa5, #7e2c74);
    color: #fff;
}

/* stagger animation */
.uq-pill.reveal {
    animation: uq-fadeUp .5s ease forwards;
}

.uq-pill:nth-child(1).reveal {
    animation-delay: .05s;
}

.uq-pill:nth-child(2).reveal {
    animation-delay: .10s;
}

.uq-pill:nth-child(3).reveal {
    animation-delay: .15s;
}

.uq-pill:nth-child(4).reveal {
    animation-delay: .20s;
}

@keyframes uq-fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .uq-row {
        grid-template-columns: 1fr;
    }

    .uq-title {
        text-align: left;
    }
}

/* Section background + blobs */
.mading-hero {
    position: relative;
    background: url(../img/hero-bg.jpg) center center / cover no-repeat;
    overflow: clip;
    isolation: isolate;
    margin-top: -100px;
    margin-bottom: 140px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mading-hero h1 {
    color: var(--brand-ink);
    letter-spacing: .01em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.mading-hero h1::after {
    content: "";
    display: block;
    width: 88px;
    height: 4px;
    margin: .6rem auto 0;
    border-radius: 4px;
    /* background: linear-gradient(90deg, var(--brand), rgba(13, 107, 104, .35)); */
}

.mading-hero h2 {
    color: var(--brand);
    font-weight: 700;
    letter-spacing: .06em;
    opacity: .9;
}

.mading-hero .blob {
    position: absolute;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    z-index: -1;
    animation: blobFloat 14s ease-in-out infinite;
    opacity: .12;
    filter: blur(60px);
}

.mading-hero .blob-a {
    background: #0D6B68;
    left: -120px;
    top: -120px;
}

.mading-hero .blob-b {
    background: #7e2c74;
    right: -140px;
    bottom: -140px;
    animation-delay: -5s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-16px)
    }
}

/* Grid: 2 cols desktop; becomes swipeable on mobile */
.mading-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(18px, 2vw, 28px);
    padding-bottom: 100px;
}

/* 
@media (max-width: 767.98px) {
    .mading-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }
} */

/* Card */
.mading-card {
    display: flex;
    flex-direction: column;
    position: relative;
    display: block;
    scroll-snap-align: center;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    transform: perspective(900px) translateZ(0) rotateX(0) rotateY(0);
    transition: transform .35s ease, box-shadow .35s ease, background .2s ease;
    width: 100%;
    height: auto;
}

.mading-card:hover {
    /* transform: perspective(900px) translateY(-4px) rotateX(1deg) rotateY(-1deg); */
    /* box-shadow: 0 26px 60px rgba(0, 0, 0, .12); */
    background: #fff;
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(3, 40, 39, .12);
    border-color: rgba(13, 107, 104, .24);
    background: #fff;
}

.mading-card figure {
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* ← change to 4 / 3 if you prefer */
    overflow: hidden;
    border-radius: 14px;
}

.mading-card img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.01);
    transition: transform .45s ease;
    object-fit: cover;
}

.mading-card:hover img {
    transform: scale(1.04);
}

/* overlay button */
.mading-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--brand), #0b5452);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    border-radius: .7rem;
    padding: .42rem .66rem;
    box-shadow: 0 8px 20px rgba(13, 107, 104, .25);
}

.mading-card:hover .mading-zoom {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal on scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(16px);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all .55s cubic-bezier(.2, .8, .2, 1);
}

/* Make each second card offset slightly for visual rhythm (desktop) */
@media (min-width: 768px) {
    .mading-card:nth-child(2n) {
        margin-top: 0;
    }
}


/* ===== ENHANCED COLOR VARIABLES ===== */
:root {
    --brand: #0D6B68;
    --brand-ink: #093C3B;
    --ink: #183233;
    --bg-1: #F3FAF9;
    --bg-2: #FFFFFF;
    --ring: rgba(13, 107, 104, .14);
    --shadow-sm: 0 2px 8px rgba(13, 107, 104, 0.08);
    --shadow-md: 0 4px 16px rgba(13, 107, 104, 0.12);
    --shadow-lg: 0 8px 32px rgba(13, 107, 104, 0.16);
    --shadow-xl: 0 16px 48px rgba(13, 107, 104, 0.2);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: var(--brand);
    color: white;
}

/* ===== ENHANCED NAVBAR IMPROVEMENTS ===== */

.sticky-top.bg-white {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 24px rgba(13, 107, 104, 0.08);
}


/* .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand);
    transform: translateX(-50%);
    transition: width 0.3s ease;
} */

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ===== ENHANCED HERO SECTION ===== */
.banner-carousel-item {
    position: relative;
}


/* ===== ENHANCED MADING SECTION ===== */
.mading-hero {
    overflow: hidden;
}

.mading-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mading-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 107, 104, 0.9) 0%, rgba(9, 60, 59, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    border-radius: 14px;
}

.mading-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.mading-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ===== ENHANCED WHY SECTION ===== */
.uq-why {
    position: relative;
}

.uq-pill {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.uq-pill:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}


/* ===== ENHANCED TESTIMONIAL CARDS ===== */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(13, 107, 104, 0.18);
    border-color: var(--brand);
}

.author-avatar {
    box-shadow: 0 4px 16px rgba(13, 107, 104, 0.25);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

/* ===== ENHANCED OUTLINE BUTTONS (PRIMARY, SUCCESS, WARNING, DANGER) ===== */

/* Base state (boleh sesuaikan warna sesuai brand) */
.btn-outline-primary {
    color: var(--brand);            /* misal #0d9488 */
    border-color: var(--brand);
}

.btn-outline-success {
    color: #22c55e;
    border-color: #22c55e;
}

.btn-outline-warning {
    color: #f59e0b;
    border-color: #f59e0b;
}

.btn-outline-danger {
    color: #dc2626;
    border-color: #dc2626;
}

/* Hover state: background ikut warna, teks putih */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Primary */
.btn-outline-primary:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 12px 32px rgba(13, 107, 104, 0.3);
}

/* Success */
.btn-outline-success:hover {
    background-color: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.3);
}

/* Warning */
.btn-outline-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3);
}

/* Danger */
.btn-outline-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.3);
}


/* ===== BACK TO TOP ENHANCEMENT ===== */
.back-to-top {
    background: linear-gradient(135deg, var(--brand), #0A8A86);
    border: none;
    box-shadow: 0 8px 24px rgba(13, 107, 104, 0.35);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(13, 107, 104, 0.45);
    background: linear-gradient(135deg, #0A8A86, var(--brand));
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #0A8A86);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== LOADING SPINNER ENHANCEMENT ===== */
#spinner {
    background: linear-gradient(135deg, #F3FAF9 0%, white 100%);
}

.spinner-grow {
    background-color: var(--brand) !important;
}

/* ===== LIGHTBOX STYLES ===== */
.mading-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mading-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.mading-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.mading-lb-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.mading-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mading-lb-close:hover {
    background: var(--brand);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

/* ===== SECTION TITLE ANIMATIONS ===== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

/* ===== REVEAL ON SCROLL ENHANCEMENT ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CARD HOVER TILT EFFECT ===== */
.latest-post,
.testimonial-card,
.small-card {
    transition: transform 0.1s ease;
}

/* ===== ISLAMIC DECORATIVE ELEMENTS ===== */
.section-decorator {
    position: relative;
}

.section-decorator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 991.98px) {
    .about-image {
        margin-bottom: 2rem;
        transform: none;
    }

    .mading-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .slide-title {
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }

    .slide-sub-title {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .scroll-progress {
        display: none;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
.mading-card,
.project-img-container,
.latest-post {
    will-change: transform;
}

/* ===== CUSTOM CURSOR (DESKTOP ONLY) ===== */
@media (min-width: 1024px) {
    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        border: 2px solid var(--brand);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transition: all 0.1s ease;
        transform: translate(-50%, -50%);
        opacity: 0;
    }

    body.show-cursor .custom-cursor {
        opacity: 1;
    }
}

/* ================================================
   ENHANCED STYLES FOR UNIT PAGES (TKIT, SDIT, etc)
   Modern, clean, and professional design for school units
   ================================================ */

/* ===== ANIMATIONS ===== */
@keyframes animate-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: animate-slide-up 0.8s ease-out;
}

.animate-zoom-in {
    animation: animate-zoom-in 0.8s ease-out;
}

.min-vh-60 {
    min-height: 60vh;
}


/* ===== WHY SECTION ===== */
.unit-why-section {
    position: relative;
    background: linear-gradient(135deg, #0D6B68 0%, #093C3B 100%);
    overflow: hidden;
}

.unit-why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255, 255, 255, 0.02) 60px, rgba(255, 255, 255, 0.02) 120px);
    pointer-events: none;
}

.unit-why-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.05), transparent);
}

.unit-why-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.unit-why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    background: white;
}

.unit-why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D6B68, #0A8A86);
    border-radius: 20px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(13, 107, 104, 0.3);
    transition: all 0.3s ease;
}

.unit-why-card:hover .unit-why-icon {
    transform: scale(1.1) rotate(5deg);
}

.unit-why-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #093C3B;
    margin-bottom: 1rem;
    text-align: center;
}

.unit-why-desc {
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}


/* ===== REVEAL ANIMATION ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .unit-hero-header {
        min-height: auto;
        padding: 150px 0 80px;
    }

    .unit-hero-title {
        font-size: 2.5rem;
    }

    .unit-floating-image {
        display: none;
    }

    .unit-stats {
        margin-top: 0;
    }

    .unit-cta-box {
        padding: 3rem 2rem;
    }

    .wa-float {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .unit-hero-actions {
        flex-direction: column;
    }

    .unit-hero-actions .btn {
        width: 100%;
    }

    .unit-vm-card {
        padding: 2rem 1.5rem;
    }

    .unit-gallery-item img {
        height: 200px;
    }

    .wa-float {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .unit-hero-header,
    .unit-cta-section {
        background: white;
        color: black;
    }

    .unit-stats,
    .unit-gallery-overlay,
    .unit-cta-box .btn {
        display: none;
    }
}


.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-float:hover {
    background-color: #1ebe5d;
    text-decoration: none;
}

.wa-icon {
    line-height: 1;
}