/* ==========================================================================
   Medifly Homepage - High-End On-Scroll Transitions & Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Base Setup & Progressive Enhancement
   -------------------------------------------------------------------------- */
/* Only elements with .reveal-ready will be hidden initially by JS */
html.transitions-enabled [data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition-property: transform, opacity, filter, box-shadow;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   1. Transition Types (Initial Hidden States)
   -------------------------------------------------------------------------- */

/* Type A: Fade Up (Clean, vertical lift) */
html.transitions-enabled [data-reveal="fade-up"] {
    transform: translate3d(0, 32px, 0);
}

/* Type B: Fade Down */
html.transitions-enabled [data-reveal="fade-down"] {
    transform: translate3d(0, -32px, 0);
}

/* Type C: Slide Left (Enters from left to right) */
html.transitions-enabled [data-reveal="slide-left"] {
    transform: translate3d(-45px, 0, 0);
}

/* Type D: Slide Right (Enters from right to left) */
html.transitions-enabled [data-reveal="slide-right"] {
    transform: translate3d(45px, 0, 0);
}

/* Type E: Card Stagger (Subtle scale + lift) */
html.transitions-enabled [data-reveal="card-stagger"] {
    transform: translate3d(0, 36px, 0) scale(0.96);
    transition-duration: 0.75s;
    transition-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Type F: Depth 3D Card (Tilt perspective) */
html.transitions-enabled [data-reveal="depth-card"] {
    transform: perspective(1000px) rotateX(10deg) translate3d(0, 38px, 0);
    transform-origin: center bottom;
    transition-duration: 0.85s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type G: Pop Bounce (Spring scale for badges & stat counters) */
html.transitions-enabled [data-reveal="pop-bounce"] {
    transform: scale(0.8) translate3d(0, 20px, 0);
    transition-duration: 0.75s;
    transition-timing-function: cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* Type H: Zoom Fade (Soft zoom for testimonials/media) */
html.transitions-enabled [data-reveal="zoom-fade"] {
    transform: scale(0.92);
    transition-duration: 0.85s;
}

/* Type I: Section Headline Left to Right (with sleek motion blur) */
html.transitions-enabled [data-reveal="headline-ltr"] {
    transform: translate3d(-70px, 0, 0);
    filter: blur(4px);
    transition-duration: 0.9s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type J: Section Headline Right to Left (with sleek motion blur) */
html.transitions-enabled [data-reveal="headline-rtl"] {
    transform: translate3d(70px, 0, 0);
    filter: blur(4px);
    transition-duration: 0.9s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type K: Description Text Left to Right */
html.transitions-enabled [data-reveal="text-ltr"] {
    transform: translate3d(-50px, 0, 0);
    transition-duration: 0.85s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type L: Description Text Right to Left */
html.transitions-enabled [data-reveal="text-rtl"] {
    transform: translate3d(50px, 0, 0);
    transition-duration: 0.85s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Type M: Badge Tag Left to Right */
html.transitions-enabled [data-reveal="badge-ltr"] {
    transform: translate3d(-40px, 0, 0) scale(0.9);
    transition-duration: 0.75s;
    transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Type N: Badge Tag Right to Left */
html.transitions-enabled [data-reveal="badge-rtl"] {
    transform: translate3d(40px, 0, 0) scale(0.9);
    transition-duration: 0.75s;
    transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Active Revealed State
   -------------------------------------------------------------------------- */
html.transitions-enabled [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg) !important;
    filter: blur(0) !important;
}

/* --------------------------------------------------------------------------
   3. Section Titles Enhancement & Animated Accent Line
   -------------------------------------------------------------------------- */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(31, 30, 97, 0.06);
    color: #1f1e61;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(31, 30, 97, 0.08);
    position: relative;
    overflow: hidden;
}

.section-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: badgeShine 4s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.section-title-bar {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1f1e61 0%, #3b82f6 100%);
    border-radius: 4px;
    margin: 14px auto 16px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, opacity 0.5s ease;
}

.section-title-bar.bar-ltr {
    transform-origin: left center !important;
}

.section-title-bar.bar-rtl {
    transform-origin: right center !important;
}

.section-title-bar.bar-left {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.section-title-bar.bar-right {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.section-title-bar.bar-center {
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-title.is-revealed .section-title-bar,
.section-title-bar.is-revealed {
    transform: scaleX(1) !important;
    opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   4. Card Hover & Micro-Interactions
   -------------------------------------------------------------------------- */

/* Why Choose Us Cards */
.main-services-box {
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease !important;
}

.main-services-box:hover {
    transform: translateY(-10px) scale(1.01) !important;
    box-shadow: 0 20px 45px rgba(31, 30, 97, 0.14) !important;
    border-color: #3b82f6 !important;
}

.main-services-box .icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease !important;
}

.main-services-box:hover .icon {
    transform: scale(1.1) rotate(6deg) !important;
}

/* About Section Floating Experience Badge */
.about-image-new .experience-badge {
    animation: floatingBadge 4s ease-in-out infinite alternate;
}

@keyframes floatingBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.about-features .feature-item {
    padding: 14px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.about-features .feature-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(6px);
}

.about-features .feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-top: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.about-features .feature-item:hover .feature-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.12);
}

/* Fun Facts Stat Cards */
.single-fun-facts {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.single-fun-facts:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 18px 40px rgba(31, 30, 97, 0.12) !important;
    border-color: #3b82f6 !important;
}

.single-fun-facts .icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease !important;
}

.single-fun-facts:hover .icon {
    transform: scale(1.12) translateY(-2px) !important;
}

/* Featured Treatment Cards */
.single-services-box {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.single-services-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 48px rgba(31, 30, 97, 0.18) !important;
}

.single-services-box .read-more-btn i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.single-services-box:hover .read-more-btn i {
    transform: translateX(6px);
}

/* Hospital Cards */
.hospital-card-new {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease !important;
}

.hospital-card-new:hover {
    transform: translateY(-7px) scale(1.015) !important;
    box-shadow: 0 16px 36px rgba(31, 30, 97, 0.14) !important;
    border-color: #3b82f6 !important;
}

.hospital-card-new .hospital-icon-wrapper {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hospital-card-new:hover .hospital-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: #1f1e61;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. Hero Banner Multi-Directional Entrance Animations
   -------------------------------------------------------------------------- */

/* Tagline Badge Polish */
.main-banner-content span {
    display: inline-block;
    padding: 7px 22px;
    background: rgba(31, 30, 97, 0.08);
    color: #1f1e61;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(31, 30, 97, 0.12);
    box-shadow: 0 4px 15px rgba(31, 30, 97, 0.06);
}

/* Default state when in slider and not active */
.home-slides .owl-item:not(.active) .main-banner-content span,
.home-slides .owl-item:not(.active) .main-banner-content h1,
.home-slides .owl-item:not(.active) .main-banner-content p,
.home-slides .owl-item:not(.active) .main-banner-content .btn-box {
    opacity: 0;
}

/* Reset / Initial State before animation trigger */
.home-slides .main-banner-content:not(.hero-animate-in) span,
.home-slides .main-banner-content:not(.hero-animate-in) h1,
.home-slides .main-banner-content:not(.hero-animate-in) p,
.home-slides .main-banner-content:not(.hero-animate-in) .btn-box {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* === Slide 1 (.item-bg1): Left-to-Right Hero Flow === */
.home-slides .owl-item.active .item-bg1 .main-banner-content.hero-animate-in span {
    animation: heroTagSlideDown 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-slides .owl-item.active .item-bg1 .main-banner-content.hero-animate-in h1 {
    animation: heroTitleSlideLTR 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.home-slides .owl-item.active .item-bg1 .main-banner-content.hero-animate-in p {
    animation: heroDescSlideRTL 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.home-slides .owl-item.active .item-bg1 .main-banner-content.hero-animate-in .btn-box {
    animation: heroBtnPop 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) 0.4s both;
}

/* === Slide 2 (.item-bg2): Right-to-Left Hero Flow === */
.home-slides .owl-item.active .item-bg2 .main-banner-content.hero-animate-in span {
    animation: heroTagSlideRTL 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-slides .owl-item.active .item-bg2 .main-banner-content.hero-animate-in h1 {
    animation: heroTitleSlideRTL 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.home-slides .owl-item.active .item-bg2 .main-banner-content.hero-animate-in p {
    animation: heroDescSlideLTR 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.home-slides .owl-item.active .item-bg2 .main-banner-content.hero-animate-in .btn-box {
    animation: heroBtnPop 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) 0.4s both;
}

/* === Slide 3 (.item-bg3): 3D Depth & Expansion Hero Flow === */
.home-slides .owl-item.active .item-bg3 .main-banner-content.hero-animate-in span {
    animation: heroTagExpand 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-slides .owl-item.active .item-bg3 .main-banner-content.hero-animate-in h1 {
    animation: heroTitleLift3D 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.home-slides .owl-item.active .item-bg3 .main-banner-content.hero-animate-in p {
    animation: heroDescSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.home-slides .owl-item.active .item-bg3 .main-banner-content.hero-animate-in .btn-box {
    animation: heroBtnPop 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) 0.4s both;
}

/* Generic active fallback if item class varies */
.home-slides .owl-item.active .main-banner-content:not(.hero-animate-in) span,
.home-slides .owl-item.active .main-banner-content:not(.hero-animate-in) h1,
.home-slides .owl-item.active .main-banner-content:not(.hero-animate-in) p,
.home-slides .owl-item.active .main-banner-content:not(.hero-animate-in) .btn-box {
    opacity: 1;
}

/* Hero Keyframes */
@keyframes heroTagSlideDown {
    0% {
        opacity: 0;
        transform: translate3d(0, -30px, 0) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroTagSlideRTL {
    0% {
        opacity: 0;
        transform: translate3d(45px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroTagExpand {
    0% {
        opacity: 0;
        letter-spacing: 4px;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        letter-spacing: 1.5px;
        transform: scale(1);
    }
}

@keyframes heroTitleSlideLTR {
    0% {
        opacity: 0;
        transform: translate3d(-80px, 0, 0);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes heroTitleSlideRTL {
    0% {
        opacity: 0;
        transform: translate3d(80px, 0, 0);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes heroTitleLift3D {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(15deg) translate3d(0, 50px, 0);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes heroDescSlideRTL {
    0% {
        opacity: 0;
        transform: translate3d(60px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroDescSlideLTR {
    0% {
        opacity: 0;
        transform: translate3d(-60px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroDescSlideUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 35px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroBtnPop {
    0% {
        opacity: 0;
        transform: translate3d(0, 30px, 0) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Hero Button Micro-Interactions */
.main-banner-content .btn-box .btn {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                color 0.3s ease !important;
}

.main-banner-content .btn-box .btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(31, 30, 97, 0.22) !important;
}

/* Prevent horizontal scrollbars during lateral animations */
.main-services-area,
.about-area,
.about-section,
.about-cta,
.page-title-area,
.fun-facts-area,
.services-area,
.feedback-area,
.partner-area,
.faq-area,
.contact-area,
.social-section,
.error-area,
.footer-area,
.ptb-100,
.ptb-70 {
    overflow-x: clip;
}

/* Global Interactive Card Micro-Interactions */
.treatment-card,
.hospital-directory-card,
.destination-card,
.journey-step-card-v2,
.tele-service-card,
.story-card,
.guide-card,
.legal-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease !important;
}

.treatment-card:hover,
.hospital-directory-card:hover,
.destination-card:hover,
.journey-step-card-v2:hover,
.tele-service-card:hover,
.story-card:hover,
.guide-card:hover,
.legal-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 22px 50px rgba(31, 30, 97, 0.12) !important;
}

/* About Page Card Micro-Interactions */
html.transitions-enabled .mv-card.is-revealed:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(31, 30, 97, 0.14) !important;
}

html.transitions-enabled .cta-glass-card.is-revealed:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 35px 70px rgba(31, 30, 97, 0.12) !important;
}

html.transitions-enabled .about-intro-image.is-revealed:hover .image-card {
    transform: translateY(-5px) !important;
    box-shadow: 0 30px 60px rgba(31, 30, 97, 0.22) !important;
}

html.transitions-enabled .value-item.is-revealed:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(31, 30, 97, 0.12) !important;
}

/* About Page Feature Pills & Highlights */
.about-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: default;
}

.about-pill i {
    color: #2563eb;
    font-size: 13px;
}

.about-pill:hover {
    transform: translateY(-3px) scale(1.03) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
    color: #2563eb !important;
}

/* Promise Feature List */
.promise-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.promise-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 30, 97, 0.08);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1e61;
    transition: all 0.3s ease !important;
}

.promise-tag i {
    color: #10b981;
    font-size: 15px;
}

.promise-tag:hover {
    transform: translateX(6px) !important;
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15) !important;
}

/* Floating Badge on Logo Card */
.logo-floating-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1f1e61, #2563eb);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(31, 30, 97, 0.25);
    border: 2px solid #ffffff;
    white-space: nowrap;
    z-index: 5;
    animation: floatingLogoBadge 3.5s ease-in-out infinite alternate;
}

@keyframes floatingLogoBadge {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-6px); }
}

html.transitions-enabled .logo-floating-badge.is-revealed {
    transform: translateX(-50%) translate3d(0, 0, 0) scale(1) !important;
    animation: floatingLogoBadge 3.5s ease-in-out infinite alternate;
}

/* CTA Feature List Micro-Interactions */
.cta-features li {
    transition: transform 0.3s ease, color 0.3s ease !important;
    cursor: default;
}

.cta-features li:hover {
    transform: translateX(6px) !important;
    color: #1f1e61 !important;
}

.cta-features li:hover i {
    transform: scale(1.2) !important;
    transition: transform 0.3s ease;
}

/* Mission & Vision Card Icons Animation */
.mv-card-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.mv-card:hover .mv-card-icon {
    transform: scale(1.15) rotate(-6deg) !important;
}

.mission-card:hover .mv-card-icon {
    background: #1f1e61 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(31, 30, 97, 0.25);
}

.vision-card:hover .mv-card-icon {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

/* --------------------------------------------------------------------------
   6. Responsive & Accessibility Adjustments
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
    html.transitions-enabled [data-reveal="headline-ltr"] {
        transform: translate3d(-30px, 0, 0) !important;
    }
    html.transitions-enabled [data-reveal="headline-rtl"] {
        transform: translate3d(30px, 0, 0) !important;
    }
    html.transitions-enabled [data-reveal="text-ltr"] {
        transform: translate3d(-20px, 0, 0) !important;
    }
    html.transitions-enabled [data-reveal="text-rtl"] {
        transform: translate3d(20px, 0, 0) !important;
    }
    html.transitions-enabled [data-reveal="badge-ltr"],
    html.transitions-enabled [data-reveal="badge-rtl"] {
        transform: translate3d(0, 16px, 0) !important;
    }

    html.transitions-enabled [data-reveal="slide-left"],
    html.transitions-enabled [data-reveal="slide-right"] {
        transform: translate3d(0, 24px, 0) !important;
    }
    
    html.transitions-enabled [data-reveal="depth-card"] {
        transform: translate3d(0, 24px, 0) !important;
    }
    
    .about-image-new {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-content-new {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.transitions-enabled [data-reveal],
    .main-banner-content span,
    .main-banner-content h1,
    .main-banner-content p,
    .main-banner-content .btn-box,
    .about-image-new .experience-badge,
    .section-title-bar {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   7. Professional Medical Color Palette for Homepage Cards
   ========================================================================== */

/* --- 7.1 Why Choose Us Cards Palette --- */
/* Blue - Accredited Hospitals */
.main-services-box.service-card-blue {
    border-top: 4px solid #2563eb !important;
}
.main-services-box.service-card-blue .icon {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
}
.main-services-box.service-card-blue:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16) !important;
}
.main-services-box.service-card-blue::before {
    background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%) !important;
}
.main-services-box.service-card-blue:hover .icon {
    background: #ffffff !important;
    color: #1d4ed8 !important;
}

/* Teal - Expert Specialists */
.main-services-box.service-card-teal {
    border-top: 4px solid #0d9488 !important;
}
.main-services-box.service-card-teal .icon {
    background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28) !important;
}
.main-services-box.service-card-teal:hover {
    border-color: #14b8a6 !important;
    box-shadow: 0 20px 45px rgba(13, 148, 136, 0.16) !important;
}
.main-services-box.service-card-teal::before {
    background: linear-gradient(145deg, #115e59 0%, #0f766e 100%) !important;
}
.main-services-box.service-card-teal:hover .icon {
    background: #ffffff !important;
    color: #0f766e !important;
}

/* Indigo - Visa Assistance */
.main-services-box.service-card-indigo {
    border-top: 4px solid #6366f1 !important;
}
.main-services-box.service-card-indigo .icon {
    background: linear-gradient(135deg, #4f46e5, #818cf8) !important;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28) !important;
}
.main-services-box.service-card-indigo:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.16) !important;
}
.main-services-box.service-card-indigo::before {
    background: linear-gradient(145deg, #312e81 0%, #4338ca 100%) !important;
}
.main-services-box.service-card-indigo:hover .icon {
    background: #ffffff !important;
    color: #4f46e5 !important;
}

/* Amber - Transparent Pricing */
.main-services-box.service-card-amber {
    border-top: 4px solid #f59e0b !important;
}
.main-services-box.service-card-amber .icon {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28) !important;
}
.main-services-box.service-card-amber:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 20px 45px rgba(217, 119, 6, 0.16) !important;
}
.main-services-box.service-card-amber::before {
    background: linear-gradient(145deg, #78350f 0%, #b45309 100%) !important;
}
.main-services-box.service-card-amber:hover .icon {
    background: #ffffff !important;
    color: #b45309 !important;
}

/* --- 7.2 Fun Facts — Medium Deep Clean Card Style --- */

/* Base Medium Deep Card for Fun Facts */
.fun-facts-area .single-fun-facts {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    padding: 34px 20px !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.14) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.fun-facts-area .single-fun-facts:hover {
    background: #27354f !important;
    transform: translateY(-7px) !important;
    box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.22) !important;
}

/* Stat Number & Label in Medium Deep Card */
.fun-facts-area .single-fun-facts h3 {
    color: #ffffff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.5px;
}

.fun-facts-area .single-fun-facts h3 .optional-icon {
    color: #38bdf8 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.fun-facts-area .single-fun-facts p {
    color: #cbd5e1 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

/* Icon Base */
.fun-facts-area .single-fun-facts .icon {
    width: 62px !important;
    height: 62px !important;
    line-height: 62px !important;
    font-size: 28px !important;
    border-radius: 50% !important;
    margin-bottom: 16px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

/* 1. Blue Theme Card */
.fun-facts-area .single-fun-facts.fact-card-blue {
    border-top: 4px solid #3b82f6 !important;
}
.fun-facts-area .single-fun-facts.fact-card-blue .icon {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #60a5fa !important;
}
.fun-facts-area .single-fun-facts.fact-card-blue:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 20px 38px -6px rgba(59, 130, 246, 0.24) !important;
}
.fun-facts-area .single-fun-facts.fact-card-blue:hover .icon {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: scale(1.1) translateY(-2px) !important;
}

/* 2. Teal Theme Card */
.fun-facts-area .single-fun-facts.fact-card-teal {
    border-top: 4px solid #14b8a6 !important;
}
.fun-facts-area .single-fun-facts.fact-card-teal .icon {
    background: rgba(20, 184, 166, 0.16) !important;
    color: #2dd4bf !important;
}
.fun-facts-area .single-fun-facts.fact-card-teal:hover {
    border-color: #2dd4bf !important;
    box-shadow: 0 20px 38px -6px rgba(20, 184, 166, 0.24) !important;
}
.fun-facts-area .single-fun-facts.fact-card-teal:hover .icon {
    background: #0d9488 !important;
    color: #ffffff !important;
    transform: scale(1.1) translateY(-2px) !important;
}

/* 3. Indigo/Purple Theme Card */
.fun-facts-area .single-fun-facts.fact-card-indigo {
    border-top: 4px solid #8b5cf6 !important;
}
.fun-facts-area .single-fun-facts.fact-card-indigo .icon {
    background: rgba(139, 92, 246, 0.16) !important;
    color: #a78bfa !important;
}
.fun-facts-area .single-fun-facts.fact-card-indigo:hover {
    border-color: #a78bfa !important;
    box-shadow: 0 20px 38px -6px rgba(139, 92, 246, 0.24) !important;
}
.fun-facts-area .single-fun-facts.fact-card-indigo:hover .icon {
    background: #7c3aed !important;
    color: #ffffff !important;
    transform: scale(1.1) translateY(-2px) !important;
}

/* 4. Coral/Orange Theme Card */
.fun-facts-area .single-fun-facts.fact-card-coral {
    border-top: 4px solid #f97316 !important;
}
.fun-facts-area .single-fun-facts.fact-card-coral .icon {
    background: rgba(249, 115, 22, 0.16) !important;
    color: #fb923c !important;
}
.fun-facts-area .single-fun-facts.fact-card-coral:hover {
    border-color: #fb923c !important;
    box-shadow: 0 20px 38px -6px rgba(249, 115, 22, 0.24) !important;
}
.fun-facts-area .single-fun-facts.fact-card-coral:hover .icon {
    background: #ea580c !important;
    color: #ffffff !important;
    transform: scale(1.1) translateY(-2px) !important;
}

/* --- 7.3 Featured Treatments Cards Palette --- */
.single-services-box .treatment-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 1. Cardiology: Rose / Medical Crimson */
.single-services-box.treatment-card-rose {
    border-top: 4px solid #f43f5e !important;
}
.single-services-box.treatment-card-rose .treatment-badge {
    background: rgba(255, 241, 242, 0.95);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.25);
}
.single-services-box.treatment-card-rose .icon {
    background: linear-gradient(135deg, #e11d48, #fb7185) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3) !important;
}
.single-services-box.treatment-card-rose:hover::before {
    background: linear-gradient(145deg, rgba(159, 18, 57, 0.94), rgba(190, 18, 60, 0.9)) !important;
}
.single-services-box.treatment-card-rose:hover {
    box-shadow: 0 20px 48px rgba(225, 29, 72, 0.22) !important;
}

/* 2. Orthopedics: Emerald / Jade */
.single-services-box.treatment-card-emerald {
    border-top: 4px solid #10b981 !important;
}
.single-services-box.treatment-card-emerald .treatment-badge {
    background: rgba(236, 253, 245, 0.95);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.single-services-box.treatment-card-emerald .icon {
    background: linear-gradient(135deg, #059669, #34d399) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3) !important;
}
.single-services-box.treatment-card-emerald:hover::before {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.94), rgba(4, 120, 87, 0.9)) !important;
}
.single-services-box.treatment-card-emerald:hover {
    box-shadow: 0 20px 48px rgba(5, 150, 105, 0.22) !important;
}

/* 3. Oncology: Royal Violet / Indigo */
.single-services-box.treatment-card-purple {
    border-top: 4px solid #8b5cf6 !important;
}
.single-services-box.treatment-card-purple .treatment-badge {
    background: rgba(245, 243, 255, 0.95);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.single-services-box.treatment-card-purple .icon {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3) !important;
}
.single-services-box.treatment-card-purple:hover::before {
    background: linear-gradient(145deg, rgba(76, 29, 149, 0.94), rgba(109, 40, 217, 0.9)) !important;
}
.single-services-box.treatment-card-purple:hover {
    box-shadow: 0 20px 48px rgba(124, 58, 237, 0.22) !important;
}

/* 4. Neurology: Cyan / Deep Ocean */
.single-services-box.treatment-card-cyan {
    border-top: 4px solid #06b6d4 !important;
}
.single-services-box.treatment-card-cyan .treatment-badge {
    background: rgba(240, 249, 255, 0.95);
    color: #0284c7;
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.single-services-box.treatment-card-cyan .icon {
    background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3) !important;
}
.single-services-box.treatment-card-cyan:hover::before {
    background: linear-gradient(145deg, rgba(12, 74, 110, 0.94), rgba(2, 132, 199, 0.9)) !important;
}
.single-services-box.treatment-card-cyan:hover {
    box-shadow: 0 20px 48px rgba(2, 132, 199, 0.22) !important;
}

/* 5. Cosmetic: Orchid / Magenta */
.single-services-box.treatment-card-magenta {
    border-top: 4px solid #d946ef !important;
}
.single-services-box.treatment-card-magenta .treatment-badge {
    background: rgba(253, 244, 255, 0.95);
    color: #c026d3;
    border: 1px solid rgba(217, 70, 239, 0.25);
}
.single-services-box.treatment-card-magenta .icon {
    background: linear-gradient(135deg, #c026d3, #f0abfc) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(192, 38, 211, 0.3) !important;
}
.single-services-box.treatment-card-magenta:hover::before {
    background: linear-gradient(145deg, rgba(112, 26, 117, 0.94), rgba(162, 28, 175, 0.9)) !important;
}
.single-services-box.treatment-card-magenta:hover {
    box-shadow: 0 20px 48px rgba(192, 38, 211, 0.22) !important;
}

/* 6. Fertility: Tangerine / Coral */
.single-services-box.treatment-card-amber {
    border-top: 4px solid #f97316 !important;
}
.single-services-box.treatment-card-amber .treatment-badge {
    background: rgba(255, 247, 237, 0.95);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}
.single-services-box.treatment-card-amber .icon {
    background: linear-gradient(135deg, #ea580c, #fdba74) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3) !important;
}
.single-services-box.treatment-card-amber:hover::before {
    background: linear-gradient(145deg, rgba(124, 45, 18, 0.94), rgba(194, 65, 12, 0.9)) !important;
}
.single-services-box.treatment-card-amber:hover {
    box-shadow: 0 20px 48px rgba(234, 88, 12, 0.22) !important;
}

/* --- 7.4 Hospital Network Cards Palette --- */
/* Blue */
.hospital-card-new.hospital-theme-blue {
    border-left: 4px solid #2563eb !important;
}
.hospital-card-new.hospital-theme-blue .hospital-icon-wrapper {
    background: #eff6ff !important;
    color: #2563eb !important;
}
.hospital-card-new.hospital-theme-blue:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14) !important;
}
.hospital-card-new.hospital-theme-blue:hover .hospital-icon-wrapper {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Teal */
.hospital-card-new.hospital-theme-teal {
    border-left: 4px solid #0d9488 !important;
}
.hospital-card-new.hospital-theme-teal .hospital-icon-wrapper {
    background: #f0fdfa !important;
    color: #0d9488 !important;
}
.hospital-card-new.hospital-theme-teal:hover {
    border-color: #14b8a6 !important;
    box-shadow: 0 16px 36px rgba(13, 148, 136, 0.14) !important;
}
.hospital-card-new.hospital-theme-teal:hover .hospital-icon-wrapper {
    background: #0d9488 !important;
    color: #ffffff !important;
}

/* Indigo */
.hospital-card-new.hospital-theme-indigo {
    border-left: 4px solid #6366f1 !important;
}
.hospital-card-new.hospital-theme-indigo .hospital-icon-wrapper {
    background: #f5f3ff !important;
    color: #6366f1 !important;
}
.hospital-card-new.hospital-theme-indigo:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.14) !important;
}
.hospital-card-new.hospital-theme-indigo:hover .hospital-icon-wrapper {
    background: #6366f1 !important;
    color: #ffffff !important;
}

/* Amber */
.hospital-card-new.hospital-theme-amber {
    border-left: 4px solid #f59e0b !important;
}
.hospital-card-new.hospital-theme-amber .hospital-icon-wrapper {
    background: #fffbeb !important;
    color: #d97706 !important;
}
.hospital-card-new.hospital-theme-amber:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.14) !important;
}
.hospital-card-new.hospital-theme-amber:hover .hospital-icon-wrapper {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* Rose */
.hospital-card-new.hospital-theme-rose {
    border-left: 4px solid #f43f5e !important;
}
.hospital-card-new.hospital-theme-rose .hospital-icon-wrapper {
    background: #fff1f2 !important;
    color: #e11d48 !important;
}
.hospital-card-new.hospital-theme-rose:hover {
    border-color: #f43f5e !important;
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.14) !important;
}
.hospital-card-new.hospital-theme-rose:hover .hospital-icon-wrapper {
    background: #e11d48 !important;
    color: #ffffff !important;
}

/* Emerald */
.hospital-card-new.hospital-theme-emerald {
    border-left: 4px solid #10b981 !important;
}
.hospital-card-new.hospital-theme-emerald .hospital-icon-wrapper {
    background: #ecfdf5 !important;
    color: #059669 !important;
}
.hospital-card-new.hospital-theme-emerald:hover {
    border-color: #10b981 !important;
    box-shadow: 0 16px 36px rgba(5, 150, 105, 0.14) !important;
}
.hospital-card-new.hospital-theme-emerald:hover .hospital-icon-wrapper {
    background: #059669 !important;
    color: #ffffff !important;
}

/* Cyan */
.hospital-card-new.hospital-theme-cyan {
    border-left: 4px solid #06b6d4 !important;
}
.hospital-card-new.hospital-theme-cyan .hospital-icon-wrapper {
    background: #f0f9ff !important;
    color: #0284c7 !important;
}
.hospital-card-new.hospital-theme-cyan:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.14) !important;
}
.hospital-card-new.hospital-theme-cyan:hover .hospital-icon-wrapper {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* Purple */
.hospital-card-new.hospital-theme-purple {
    border-left: 4px solid #a855f7 !important;
}
.hospital-card-new.hospital-theme-purple .hospital-icon-wrapper {
    background: #faf5ff !important;
    color: #9333ea !important;
}
.hospital-card-new.hospital-theme-purple:hover {
    border-color: #a855f7 !important;
    box-shadow: 0 16px 36px rgba(147, 51, 234, 0.14) !important;
}
.hospital-card-new.hospital-theme-purple:hover .hospital-icon-wrapper {
    background: #9333ea !important;
    color: #ffffff !important;
}

/* Coral */
.hospital-card-new.hospital-theme-coral {
    border-left: 4px solid #f97316 !important;
}
.hospital-card-new.hospital-theme-coral .hospital-icon-wrapper {
    background: #fff7ed !important;
    color: #ea580c !important;
}
.hospital-card-new.hospital-theme-coral:hover {
    border-color: #f97316 !important;
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.14) !important;
}
.hospital-card-new.hospital-theme-coral:hover .hospital-icon-wrapper {
    background: #ea580c !important;
    color: #ffffff !important;
}

/* ==========================================================================
   8. Testimonials Section — Bold Card Grid Redesign
   ========================================================================== */

/* ── Section Shell ── */
.testi-section-new {
    position: relative;
    background: #060c17;
    padding: 110px 0 100px;
    overflow: hidden;
    z-index: 1;
}

/* Grid-pattern mesh overlay */
.testi-bg-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Soft ambient orbs */
.testi-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
}
.testi-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
    top: -100px; left: -100px;
}
.testi-orb-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
    bottom: -80px; right: -80px;
}

.testi-section-new .container {
    position: relative;
    z-index: 2;
}

/* ── Header ── */
.testi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 14px;
}
.testi-eyebrow-dot {
    width: 7px; height: 7px;
    background: #38bdf8;
    border-radius: 50%;
    animation: testiDotPulse 2s ease-in-out infinite;
}
@keyframes testiDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.testi-main-heading {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.testi-heading-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testi-subtext {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 0;
}

/* ── Rating Pill ── */
.testi-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 14px 24px;
    backdrop-filter: blur(10px);
}
.testi-pill-stars { color: #fbbf24; font-size: 13px; letter-spacing: 2px; }
.testi-pill-info { display: flex; flex-direction: column; gap: 1px; }
.testi-pill-score { color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1; }
.testi-pill-label { color: #64748b; font-size: 11.5px; font-weight: 500; }

/* ── Owl Carousel Wrapper ── */
.testi-owl-wrap { margin-top: 10px; }

/* Owl nav arrows — hidden */
.testi-owl-wrap .owl-nav { display: none !important; }
.testi-owl-wrap .owl-dots { margin-top: 36px !important; }
.testi-owl-wrap .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.15) !important;
    width: 24px !important; height: 4px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    margin: 0 4px !important;
}
.testi-owl-wrap .owl-dots .owl-dot.active span,
.testi-owl-wrap .owl-dots .owl-dot:hover span {
    background: #38bdf8 !important;
    width: 36px !important;
}

/* ── Testimonial Card ── */
.testi-card {
    background: #0d1a2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.testi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -10px rgba(0,0,0,0.6);
}

/* Color top-border per card theme */
.testi-card-blue::before  { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.testi-card-purple::before{ background: linear-gradient(90deg, #7c3aed, #c084fc); }
.testi-card-cyan::before  { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.testi-card-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.testi-card-green::before { background: linear-gradient(90deg, #047857, #34d399); }

.testi-card-blue:hover  { border-color: rgba(37,99,235,0.35); }
.testi-card-purple:hover{ border-color: rgba(124,58,237,0.35); }
.testi-card-cyan:hover  { border-color: rgba(8,145,178,0.35); }
.testi-card-amber:hover { border-color: rgba(217,119,6,0.35); }
.testi-card-green:hover { border-color: rgba(4,120,87,0.35); }

/* Card Top Row */
.testi-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testi-card-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.12);
}
.testi-card-avatar svg { width: 100%; height: 100%; display: block; }

.testi-card-identity {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testi-card-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin: 0;
}
.testi-card-location { display: none !important; }

.testi-card-verified {
    font-size: 10.5px;
    font-weight: 600;
    color: #34d399;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: 100px;
    padding: 3px 9px;
    white-space: nowrap;
    flex-shrink: 0;
}
.testi-card-verified i { font-size: 9px; margin-right: 2px; }

/* Stars */
.testi-card-stars {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 2px;
    display: flex;
    gap: 2px;
}

/* Quote text */
.testi-card-quote {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.72;
    flex: 1;
    margin: 0;
    font-weight: 400;
}

.testi-card-tag { display: none !important; }

/* ── Bottom Trust Strip ── */
.testi-bottom-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 56px;
    padding: 22px 32px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
}
.testi-strip-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 24px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}
.testi-strip-item i {
    color: #38bdf8;
    font-size: 15px;
}
.testi-strip-sep {
    width: 1px; height: 28px;
    background: rgba(255,255,255,0.1);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .testi-main-heading { font-size: 2rem; }
    .testi-rating-pill { margin-top: 24px; }
    .testi-strip-sep { display: none; }
    .testi-strip-item { padding: 8px 16px; }
}

@media (max-width: 767px) {
    .testi-section-new { padding: 72px 0 72px; }
    .testi-main-heading { font-size: 1.75rem; }
    .testi-bottom-strip { gap: 4px; border-radius: 12px; padding: 18px 20px; }
    .testi-card { padding: 24px 20px 22px; }
    .testi-card-quote { font-size: 14px; }
}

@media (max-width: 480px) {
    .testi-main-heading { font-size: 1.5rem; }
    .testi-rating-pill { flex-direction: column; text-align: center; border-radius: 16px; padding: 16px 20px; }
    .testi-strip-item span { font-size: 12px; }
}

