/* --- HERO SECTION BASE ARCHITECTURE --- */
#hero-slider {
    height: 80vh; /* Scaled hero frame layout */
    min-height: 550px;
    background-color: var(--brand-primary);
    overflow: hidden;
}

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

.carousel-item {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* --- CINEMATIC TEXT ANIMATIONS --- */
/* Elements start hidden/shifted and animate forward when slide becomes active */
.hero-content .hero-badge,
.hero-content .hero-title,
.hero-content .hero-desc,
.hero-content .hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.carousel-item.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.carousel-item.active .hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.carousel-item.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* --- DESIGN SUB-ELEMENTS --- */
.hero-badge {
    background: rgba(0, 168, 150, 0.2);
    border: 1px solid rgba(0, 168, 150, 0.4);
    color: #00ffd5;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: calc(1.8rem + 1.5vw); /* Responsive scale text resizing */
    font-weight: 700;
    line-height: 1.2;
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 15px;
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 620px;
}

/* --- HERO CTA BUTTONS --- */
.btn-hero-primary {
    background-color: var(--brand-secondary);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.btn-hero-primary:hover {
    background-color: #009484;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-hero-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.btn-hero-outline:hover {
    background-color: #ffffff;
    color: var(--brand-primary);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- CUSTOM NAVIGATION ARROWS --- */
.custom-control-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}
.carousel-control-prev:hover .custom-control-icon,
.carousel-control-next:hover .custom-control-icon {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: scale(1.1);
}

/* --- CAROUSEL INDICATOR DOTS --- */
.carousel-indicators [button] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}
.carousel-indicators .active {
    width: 28px;
    background-color: var(--brand-secondary);
    border-radius: 5px;
}

/* Mobile Screen Fixing adjustments */
@media (max-width: 768px) {
    #hero-slider { height: 70vh; }
    .hero-desc { margin-bottom: 20px; font-size: 15px; }
    .custom-control-icon { display: none; } /* Hide side arrows on small mobile devices */
}

/* --- ABOUT US Master Frame Setup --- */
.about-section-frame {
    padding: 20px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* --- LEFT SIDE: GEOMETRIC LAYERING MESH --- */
.image-wrapper-mesh{
    position:relative;
    padding:0;
    margin:0;
}

.main-clinical-img{
    width:100%;
    height:auto;
    overflow:hidden;
    border-radius:20px;
}

.main-clinical-img img{
    width:100%;
    height:auto;
    display:block;
}

.accent-mesh-box{
    display:none;
}

.about-motion-left{
    margin-bottom:20px;
}

@media(max-width:768px){
    .row.g-5{
        --bs-gutter-y:1rem;
    }
}
/* --- RIGHT SIDE: TYPOGRAPHY ARCHITECTURE --- */
.section-micro-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 68, 108, 0.06);
    color: #1a446c;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-main-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-body-paragraph {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Doctor Profile Identity Block styling */
.doctor-credential-card {
    background: #f8fafc;
    border-left: 4px solid #00a896;
    padding: 16px 24px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 32px;
}

.dr-avatar-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 168, 150, 0.1);
    color: #00a896;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a446c;
    margin: 0 0 2px 0;
}

.dr-title {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.divider-line {
    border-top: 1px solid #e2e8f0;
    margin: 32px 0;
    opacity: 1;
}

/* Core Value Items styling */
.value-card-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.value-icon-box.blue-theme { background: rgba(26, 68, 108, 0.1); color: #1a446c; }
.value-icon-box.teal-theme { background: rgba(0, 168, 150, 0.1); color: #00a896; }

.value-card-item h5 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.value-card-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Master About Us Action Link Button */
a.btn-about-cta {
    background: #1a446c;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(26, 68, 108, 0.15);
    transition: all 0.25s ease;
}

a.btn-about-cta:hover {
    background: #00a896;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 168, 150, 0.25);
}

/* --- SCROLL ANIMATION INITIAL HIDDEN CONFIGURATIONS --- */
.about-motion-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-motion-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global triggering class appended via vanilla JS utility below */
.about-section-frame.reveal-active .about-motion-left,
.about-section-frame.reveal-active .about-motion-right {
    opacity: 1;
    transform: translateX(0);
}


/* --- SLATE CHARCOAL BACKGROUND CONFIGURATION --- */
.marquee-strip-wrapper {
    padding: 50px 0;
    background-color: #1e2530; /* Premium Deep Slate Charcoal - strictly NO pure black */
    overflow: hidden;
    position: relative;
}

.marquee-header-padding {
    position: relative;
    z-index: 5;
}

/* --- TYPOGRAPHY ARCHITECTURE --- */
.media-micro-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.15); /* YouTube Red Alpha background */
    color: #ef4444; /* YouTube Red text */
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-main-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.media-sub-narrative {
    font-size: 16px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
}

/* --- THE INFINITE TICKER ENGINE --- */
.infinite-marquee-zone {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Soft side blending filters using slate background color instead of black */
.infinite-marquee-zone::before,
.infinite-marquee-zone::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}
.infinite-marquee-zone::before {
    left: 0;
    background: linear-gradient(to right, #1e2530 0%, rgba(30,37,48,0) 100%);
}
.infinite-marquee-zone::after {
    right: 0;
    background: linear-gradient(to left, #1e2530 0%, rgba(30,37,48,0) 100%);
}

.marquee-track-engine {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: lateralMarqueeMove 28s linear infinite;
}

@keyframes lateralMarqueeMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-2184px, 0, 0); }
}

.marquee-track-engine:hover {
    animation-play-state: paused;
}

/* --- ROYAL BLUE CARD HOVER SHELLS --- */
.video-marquee-card {
    width: 340px;
    height: 210px;
    background: #283141; /* Slightly lighter slate for card depth */
    border: 3px solid #1a56db; /* Sharp Royal Blue Frame */
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.thumbnail-canvas {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-dark-overlay {
    position: absolute;
    inset: 0;
    background-color: #1e2530;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

/* Bright YouTube Crimson Play Core */
.play-node-trigger {
    position: relative;
    z-index: 3;
    width: 58px;
    height: 58px;
    background: #ef4444; /* Clean YouTube Crimson Red */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- CAROUSEL ELEMENT HOVER REACTIONS --- */
.video-marquee-card:hover {
    border-color: #ef4444; /* Card frame changes from Royal Blue to YouTube Red */
    transform: scale(1.04);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2);
}

.video-marquee-card:hover .card-dark-overlay { 
    opacity: 0.1; /* Unveils clinical thumbnail clearly */
}

.video-marquee-card:hover .play-node-trigger { 
    background: #ffffff; 
    color: #ef4444; /* Inverts color layout on hover */
    transform: scale(1.1); 
    box-shadow: 0 10px 25px rgba(255,255,255,0.25);
}

/* --- YOUTUBE RED CHANNEL CTA BUTTON --- */
a.btn-youtube-marquee-hub {
    position: relative;
    background: #ef4444; /* YouTube Red Core color */
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 36px;
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glossy-shine-over {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: marqueeBtnShine 3.5s infinite linear;
}

@keyframes marqueeBtnShine {
    0% { left: -100%; }
    30% { left: 160%; }
    100% { left: 160%; }
}

a.btn-youtube-marquee-hub:hover {
    background: #dc2626; /* Darker vibrant red shift */
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.45);
}

.action-arrow-icon { transition: transform 0.2s ease; }
a.btn-youtube-marquee-hub:hover .action-arrow-icon { transform: translateX(4px); }

/* Mobile Adjustments */
@media (max-width: 767px) {
    .marquee-strip-wrapper { padding: 70px 0; }
    .media-main-headline { font-size: 26px; }
    .video-marquee-card { width: 280px; height: 180px; }
    @keyframes lateralMarqueeMove {
        0% { transform: translate3d(0, 0, 0); }
        100% { transform: translate3d(-1824px, 0, 0); } 
    }
}


/* --- FEATURES GRID CORE LAYOUT --- */
.features-matrix-section {
    padding: 20px 0;
    background: radial-gradient(120% 120% at 50% 50%, #fcfdfe 0%, #f4f7fb 100%);
    position: relative;
    overflow: hidden;
}

.relative-z {
    position: relative;
    z-index: 3;
}

.matrix-ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.03) 0%, rgba(255,255,255,0) 75%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* --- THE VIEWPORT WINDOW WINDOWS --- */
.matrix-view-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    /* Softly blurs the edges into the viewport background */
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.text-strip-row {
    padding: 15px 0;
    margin-bottom: 45px;
}

.image-strip-row {
    padding: 25px 0;
}

.matrix-track-stream {
    display: flex;
    width: max-content;
    will-change: transform;
}

/* Pause animations instantly when cursor hovers over the images row */
.image-strip-row:hover .image-track-dir {
    animation-play-state: paused;
}

/* --- THE KINETIC MOTOR DIRECTIONS --- */
/* Top Row: Right to Left */
.text-track-dir {
    gap: 50px;
    animation: streamingRightToLeft 30s linear infinite;
}

/* Bottom Row: Left to Right */
.image-track-dir {
    gap: 35px;
    align-items: center;
    animation: streamingLeftToRight 26s linear infinite;
}

/* --- TIMELINE ANIMATION MATRIX --- */
@keyframes streamingRightToLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); }
}

@keyframes streamingLeftToRight {
    0% { transform: translateX(calc(-50% - 17.5px)); }
    100% { transform: translateX(0); }
}

/* --- TEXT BADGES DESIGN SYSTEM --- */
.feature-text-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    background: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(142, 153, 165, 0.06);
   border: 1px solid black;
}

.feature-text-badge i {
    color: #1a56db; /* Royal Blue Clinical Accent */
    font-size: 16px;
}
.feature-text-badge:hover{
    border: 1px solid  #1a56db;
}
/* --- SHRINK-WRAPPED IMAGE CARDS --- */
.tight-image-card {
    width: 310px; /* Locked precise width */
    height: auto; /* Shrink-wraps container directly to dynamic image landscape height */
    background: #ffffff;
    border-radius: 20px;
    padding: 8px; /* Frame Border Framing gap */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
}

.tight-canvas-frame {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    display: block;
}

.matrix-img-asset {
    width: 100%;
    height: auto; /* Eliminates top and bottom empty white blocks */
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.lens-glare-film {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
    z-index: 2;
    pointer-events: none;
}

/* Action expansion node icons */
.action-scan-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(8px);
    z-index: 3;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme Dynamic Accents */
.blue-glow { border: 2px solid rgba(26, 86, 219, 0.08); }
.blue-glow .action-scan-badge { background: #1a56db; }

.red-glow { border: 2px solid rgba(239, 68, 68, 0.08); }
.red-glow .action-scan-badge { background: #ef4444; }

/* HOVER REFINEMENTS */
.tight-image-card:hover {
    transform: translateY(-8px) scale(1.02);
}
.blue-glow:hover { border-color: #1a56db; box-shadow: 0 15px 35px rgba(26, 86, 219, 0.12); }
.red-glow:hover { border-color: #ef4444; box-shadow: 0 15px 35px rgba(239, 68, 68, 0.12); }

.tight-image-card:hover .matrix-img-asset { transform: scale(1.03); }
.tight-image-card:hover .action-scan-badge { opacity: 1; transform: translateY(0); }


/* ==========================================
   NATIVE POPUP LIGHTBOX MODAL DIALOG
========================================== */
.matrix-lightbox-window {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    outline: none;
}

.matrix-lightbox-window::backdrop {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
}

.matrix-lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matrix-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    background: #ffffff;
    padding: 6px;
}

.matrix-close-trigger {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
}

/* Responsiveness adjustments */
@media(max-width: 767px) {
    .tight-image-card { width: 250px; }
    .text-track-dir { gap: 30px; }
    .image-track-dir { gap: 20px; }
    .feature-text-badge { font-size: 13px; padding: 8px 18px; }
}

 /* --- CANVAS LAYOUT BASE --- */
    .services-section-wrapper {
        padding: 100px 0;
        background-color: #f8fafc;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .services-micro-badge {
        display: inline-flex;
        align-items: center;
        background: rgba(15, 23, 42, 0.06);
        color: #0f172a;
        padding: 7px 20px;
        border-radius: 40px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .services-main-headline {
        font-size: 36px;
        font-weight: 800;
        color: #1a446c;
        letter-spacing: -0.8px;
    }

    .services-headline-line {
        width: 70px;
        height: 4px;
        background: #4873d7;
        margin: 18px auto 0 auto;
        border-radius: 20px;
    }

    /* ==========================================
       THE ULTRA-SMOOTH DOUBLE AXIS PERSPECTIVE ENGINE
    ========================================== */
/* ==========================================
   SERVICE FLIP CARD SYSTEM — FULL CORRECTED VERSION
========================================== */

.service-card-container {
    perspective: 1500px;
    height:300px; /* adjust to match your design */
}

.service-kinetic-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

/* ===== CRITICAL: stack front/back exactly on top of each other ===== */
.card-side-front,
.card-side-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

/* ===== FRONT FACE ===== */
.card-side-front {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.front-medical-icon {
    font-size: 28px;
    color: #1AB1E8;
    margin-bottom: 12px;
    line-height: 1;
}

.front-visible-media-box {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;      /* should already be there — but confirm it's not being overridden */
    margin-bottom: 10px;
    background: #f0f6fa;
    flex-shrink: 0;
    position: relative;    /* ADD: creates a containment boundary for any absolutely-positioned children */
}

.front-visible-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;   /* ADD: ensures consistent cropping regardless of image's natural focal point */
    display: block;
    position: relative;
    z-index: 2;                /* ADD: keeps image above any background decoration */
}

/* If there's a decorative circle/blob element inside the media box, force it to stay contained */
.front-visible-media-box::before,
.front-visible-media-box > *:not(img) {
    position: absolute;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
}
.front-heading-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== BACK FACE ===== */
.card-side-back {
    background: linear-gradient(145deg, #1AB1E8, #015498);
    color: #fff;
    transform: rotateY(180deg);
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.back-mini-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.back-heading-text {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
}

.back-body-narrative {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.back-action-button {
    margin-top: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.back-action-button:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== FLIP TRIGGERS ===== */


/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .service-card-container {
        height: 340px;
    }
    .front-visible-media-box {
        height: 130px;
    }
    .front-heading-text {
        font-size: 15px;
    }
    .back-heading-text {
        font-size: 16px;
    }
    .back-body-narrative {
        font-size: 13px;
    }
}

/* Desktop: hover flips */
@media (hover: hover) and (pointer: fine) {
    .service-card-container:hover .service-kinetic-card {
        transform: rotateY(180deg);
    }
}

/* Touch devices: JS-added class flips */
.service-kinetic-card.is-flipped {
    transform: rotateY(180deg);
}

/* Little tap hint on touch devices only */
@media (hover: none) and (pointer: coarse) {
    .card-side-front::after {
        content: "Tap to view details";
        position: absolute;
        bottom: 12px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 12px;
        color: #015498;
        opacity: 0.7;
    }
}

.back-action-button {
    margin-top: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-mini-icon {
    font-size: 28px;
    margin-bottom: 12px;
}
    

     /* --- CANVAS LAYOUT & BACKGROUND SYSTEM --- */
    .brand-explorer-section {
        padding: 20px 0;
        background-color: #ffffff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        position: relative;
        overflow: hidden;
    }

    /* Minimal Technical Geometric Blueprint Grid Layer */
    .brand-explorer-section::before {
        content: "";
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        opacity: 0.6;
        background-image: 
            linear-gradient(to right, #f1f5f9 1px, transparent 1px),
            linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
        background-size: 50px 50px;
    }

    .explorer-content-container {
        position: relative;
        z-index: 3;
    }

    /* --- EDITORIAL HEADER --- */
    .explorer-micro-badge {
        display: inline-flex;
        align-items: center;
        background: rgba(26, 68, 108, 0.08);
        color: #1a446c;
        padding: 7px 20px;
        border-radius: 40px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .explorer-main-headline {
        font-size: 42px;
        font-weight: 800;
        color: #1a446c;
        letter-spacing: -1.5px;
    }

    .explorer-headline-line {
        width: 60px;
        height: 4px;
        background: #1a446c;
        margin: 20px 0 50px 0;
        border-radius: 20px;
    }

    /* --- LEFT SIDE: NEWS MATRIX DIAL --- */
    .brand-selector-matrix {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .brand-trigger-node {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 1.25rem;
        height: 160px; /* Enhanced height for clear preview */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px; /* Reduced padding so thumbnail fills space better */
        cursor: pointer;
        user-select: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
    }

    .brand-trigger-node img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Keeps original proportions sharp */
        filter: grayscale(15%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    /* Hover State */
    .brand-trigger-node:hover {
        border-color: #1a446c;
    }
    
    .brand-trigger-node:hover img {
        opacity: 1;
    }

    /* Active Lock State */
    .brand-trigger-node.active-node {
        border-color: #1a446c;
        background-color: #ffffff;
        border-width: 2px;
        box-shadow: 0 12px 30px rgba(26, 68, 108, 0.12);
    }

    .brand-trigger-node.active-node img {
        filter: grayscale(0%);
        opacity: 1;
    }

    /* --- RIGHT SIDE: MAXIMUM PREVIEW CANVAS PANEL --- */
    .explorer-preview-panel {
        position: sticky;
        top: 40px;
        width: 100%;
        height: 580px; /* Robust height to display the full news clipping format */
        background: #ffffff;
        border: 1.5px solid #1a446c; /* Clean premium frame border */
        border-radius: 2rem;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px; /* Minimal padding so the image scales up as large as possible */
        box-shadow: 0 25px 50px rgba(15, 23, 42, 0.06);
    }

    /* Force image to stretch and use every pixel available inside the container */
    .explorer-preview-panel img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ensures image completely expands without cropping out text */
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 1;
    }

    /* Animation Transition Utility Class */
    .explorer-preview-panel img.fade-out {
        opacity: 0;
        transform: scale(0.98);
    }

    /* --- RESPONSIVE LAYOUTS --- */
    @media (max-width: 991px) {
        .brand-selector-matrix {
            grid-template-columns: repeat(3, 1fr);
            margin-bottom: 30px;
        }
        .explorer-preview-panel {
            position: relative;
            top: 0;
            height: 520px;
        }
    }

    @media (max-width: 575px) {
        .brand-selector-matrix {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .brand-trigger-node {
            height: 130px;
        }
        .explorer-main-headline { font-size: 30px; }
        .explorer-preview-panel {
            height: 420px;
        }
    }
.brands-slider-section {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: #fff;
}

.brands-track {
    display: flex;
    width: max-content;
    animation: moveBrands 45s linear infinite;
}

.brands-slider-section:hover .brands-track {
    animation-play-state: paused;
}

.brand-item {
    flex: 0 0 auto;
    width: 220px;
    height: 120px;
    margin: 0 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
}

.brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.brand-item img {
    max-width: 80%;
    max-height: 70px;
    object-fit: contain;
}

/* Infinite Animation */
@keyframes moveBrands {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Popup */
.brand-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.brand-popup.active {
    display: flex;
}

.brand-popup img {
    max-width: 90%;
    max-height: 85vh;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Responsive */
@media(max-width:768px) {
    .brand-item {
        width: 150px;
        height: 90px;
    }

    .brand-item img {
        max-height: 50px;
    }

    .brands-track {
        animation-duration: 18s;
    }
}
    .brands-header{
    margin-bottom: 40px;
}

.brands-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 18px;
    background:#f1f5f9;
    color:#0f172a;
    border-radius:50px;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}

.brands-title{
    font-size:42px;
    font-weight:800;
    color:#0f172a;
    text-transform:uppercase;
    letter-spacing:2px;
    margin:0;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
}

.brands-title i{
    color:#2563eb;
    font-size:36px;
}

/* Mobile */
@media(max-width:768px){
    .brands-title{
        font-size:30px;
        gap:10px;
    }

    .brands-title i{
        font-size:26px;
    }

    .brands-badge{
        font-size:12px;
        padding:7px 15px;
    }
}
/* Extra Small Devices (576px and below) */
@media (max-width: 576px) {

    .brands-header {
        margin-bottom: 25px;
    }

    .brands-badge {
        font-size: 11px;
        padding: 6px 14px;
        gap: 6px;
        text-align: center;
    }

    .brands-title {
        font-size: 24px;
        letter-spacing: 1px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .brands-title i {
        font-size: 22px;
    }

    .brand-item {
        width: 130px;
        height: 80px;
        margin: 0 10px;
    }

    .brand-item img {
        max-width: 75%;
        max-height: 40px;
    }

    .brands-track {
        animation-duration: 15s;
    }

    .brand-popup img {
        max-width: 95%;
        max-height: 70vh;
        padding: 15px;
    }

    .close-popup {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }
}
     

         :root {
            --brand-dark-radial: radial-gradient(circle at 0% 30%, #0c111f, #070b14);
            --text-primary: #eef2ff;
            --text-muted: #b9c3db;
            --accent-blue: #4facfe;
            --accent-cyan: #00e0fa;
            --glass-bg: linear-gradient(145deg, rgba(18, 27, 45, 0.45), rgba(10, 16, 28, 0.75));
            --glass-bg-hover: linear-gradient(145deg, rgba(18, 27, 45, 0.6), rgba(10, 16, 28, 0.85));
            --border-glow: rgba(79, 172, 254, 0.18);
            --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }


        .matrix-title-inline{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:50px;
    padding:0 15px;
}

.matrix-title-inline .matrix-title-icon{
    width:55px;
    height:55px;
    border-radius:50%;
    background:linear-gradient(135deg,#1a56db,#2563eb);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
    box-shadow:0 10px 25px rgba(26,86,219,.25);
}

.matrix-title-inline .matrix-title-tag{
    padding:10px 18px;
    border-radius:50px;
    background:rgba(26,86,219,.08);
    color:#1a56db;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    white-space:nowrap;
}

.matrix-title-inline .matrix-main-title{
    margin:0;
    font-size:clamp(1.6rem,3vw,3rem);
    font-weight:800;
    color:#1f2937;
}

/* Mobile */
@media(max-width:768px){

    .matrix-title-inline{
        flex-direction:column;
        gap:12px;
        margin-bottom:35px;
    }

    .matrix-title-inline .matrix-main-title{
        text-align:center;
        font-size:1.8rem;
    }
}

.gallery-view-btn-wrapper{
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.gallery-view-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;

  background: #1a446c;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(26, 68, 108, 0.15);
    transition: all 0.25s ease;

  

    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}



.gallery-view-btn:hover::before{
    left: 120%;
}

.gallery-view-btn:hover{
    transform: translateY(-4px);
    background: linear-gradient(
        135deg,
        #00e0fa 0%,
        #4facfe 100%
    );
    box-shadow:
        0 15px 35px rgba(79, 172, 254, 0.45),
        0 0 35px rgba(0, 224, 250, 0.4);
}

.gallery-view-btn i{
    transition: transform 0.3s ease;
}

.gallery-view-btn:hover i{
    transform: translateX(5px);
}
/* --- Master Contact Section Layout --- */
.premium-contact-section {
    width: 100%;
    padding: 100px 0;
    background-color: #f8fafc; /* Crisp, clean clinical light gray surface */
    position: relative;
}

.contact-workspace-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Clean, asymmetric horizontal split layout */
    gap: 60px;
    align-items: start;
}

/* --- Left Column Info Frame --- */
.contact-info-panel .contact-mini-badge {
    color: #00a896;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.contact-info-panel h2 {
    font-size: 2.4rem;
    color: #1a446c;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.contact-panel-lead {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Communication Stack Cards */
.contact-method-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.method-icon-frame {
    width: 52px;
    height: 52px;
    background: rgba(26, 68, 108, 0.06);
    color: #1a446c;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.method-details h4 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 4px;
}

.method-details p a {
    color: #1a446c;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.method-details p a:hover {
    color: #00a896;
}

.method-details span {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Interactive Brand Highlights (WhatsApp Customizing) */
.method-card.whatsapp-highlight {
    border-color: rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, rgba(37, 211, 102, 0.02) 100%);
}

.method-card.whatsapp-highlight .method-icon-frame {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.method-card.whatsapp-highlight .method-details p a {
    color: #25D366;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(26, 68, 108, 0.05);
}

/* --- Right Column Form Panel Card --- */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.01);
}

.form-title-area {
    margin-bottom: 30px;
}

.form-title-area h3 {
    font-size: 1.35rem;
    color: #1a446c;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-title-area p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}

/* Structural Field Styling Groups */
.contact-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.contact-field-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a446c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-field-group label i {
    color: #00a896;
    font-size: 0.85rem;
}

.contact-field-group input,
.contact-field-group select,
.contact-field-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.25s ease;
}

.contact-field-group input::placeholder,
.contact-field-group textarea::placeholder {
    color: #94a3b8;
}

/* Focused Interactive states */
.contact-field-group input:focus,
.contact-field-group select:focus,
.contact-field-group textarea:focus {
    border-color: #00a896;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.08);
}

/* Elegant Submission Action Button */
.contact-submit-btn {
    width: 100%;
    background: #00a896;
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0, 168, 150, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: #1a446c;
    box-shadow: 0 8px 22px rgba(26, 68, 108, 0.2);
    transform: translateY(-2px);
}

/* --- Responsive Fluid Breakpoints --- */
@media (max-width: 992px) {
    .contact-workspace-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-info-panel {
        text-align: center;
    }
    .method-card {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .premium-contact-section { padding: 60px 0; }
    .contact-form-card { padding: 30px 20px; border-radius: 24px; }
    .contact-info-panel h2 { font-size: 1.9rem; }
}