/* --- BRAND THEME DESIGN SYSTEM VARIABLES --- */
:root {
    --primary-teal: #008080;
    --accent-red: #ff0000;
    --dark-neutral: #111827;
    --light-neutral: #f9fafb;
    --gray-text: #6b7280;
}

/* 
   CRITICAL FIX: Enforces a solid, non-scrollable lateral baseline wall 
   to block any elements from causing the white margin space on mobile.
*/
html, body { 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    background: var(--light-neutral); 
    color: #1f2937;
}

/* Strict global text link decorations resets */
a { 
    text-decoration: none !important; 
    color: inherit; 
    transition: color 0.3s, border-color 0.3s;
}

/* Enforce icon layouts never inherit underlining behaviors */
i, .fa-solid, .fa-regular, .fa-brands {
    text-decoration: none !important;
    display: inline-block;
}
.text-teal { color: var(--primary-teal) !important; }
.bg-dark-neutral { background-color: var(--dark-neutral); }

/* --- 1. TOPBAR STYLES --- */
.topbar {
    font-size: 0.8rem;
    padding: 10px 0;
    color: #e5e7eb;
    position: relative;
    z-index: 101;
}
.topbar a:hover { color: var(--accent-red) !important; }

/* --- 2. STICKY HEADER & CONTAINMENT CORRECTIONS --- */
.header-navigation {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
}

/* Contain row grid layouts inside the navbar across all screen heights */
.header-navigation .container {
    position: relative !important;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--dark-neutral);
}
.logo-img {
    height: 60px; 
    width: auto;
    object-fit: contain;
    display: inline-block;
}

/* Navigation menu - underlinings explicitly reserved here */
.nav-link { 
    font-weight: 600; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: #374151 !important; 
    padding: 6px 0 !important;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { 
    color: var(--primary-teal) !important; 
    border-color: var(--primary-teal) !important; 
}

/* Offcanvas Drawer Fixes */
.offcanvas { 
    background-color: #ffffff; 
    width: 300px !important; 
    max-width: 100%; /* Safety lock if someone uses a tiny legacy device screen */
}
.btn-close:focus { box-shadow: none; }

@media (min-width: 992px) {
    /* Reveals custom mega panel container configuration on hover */
    .custom-mega-hover:hover .custom-mega-panel {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .custom-mega-panel {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        top: 100% !important;
        border-top: 3px solid var(--primary-teal) !important; 
        transform: translateY(8px);
        transition: all 0.2s ease-in-out;
    }
    
    .dropdown-toggle::after {
        display: none !important;
    }
}

/* Individual list layout spacing rules */
.mega-item-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333333 !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mega-item-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-teal) !important;
    transform: translateX(4px);
}

/* --- ADVANCED ECG MEDICAL LOADER SEPARATOR --- */
.ecg-timeline-container {
    width: 100%;
    height: 30px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 128, 128, 0.08);
    position: relative;
    z-index: 90;
    overflow: hidden; /* Prevent SVG track rendering calculations from overflowing */
}

.ecg-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ecg-back-track {
    stroke: #f3f4f6;
    stroke-width: 2;
    fill: none;
}
.ecg-pulse-track {
    stroke: var(--accent-red);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

/* --- 3. PREMIUM HERO SLIDER SYSTEM --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 155px);
    min-height: 600px;
    background: #ffffff;
    overflow: hidden; /* Rigid container crop prevents active image slide bleed */
}
.hero-slider-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.85)
        ),
        url("../img/hero-bg.jpg") center center/cover no-repeat;
    z-index: 0;
}
.hero-slider-container > * {
    position: relative;
    z-index: 1;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}
.slide.active { opacity: 1; visibility: visible; }

.tagline-badge {
    background: rgba(0, 128, 128, 0.08);
    color: var(--primary-teal);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.tagline-badge i {
    vertical-align: middle;
}
.slide-content h1 {
    font-size: 2.2rem;
    color: var(--dark-neutral);
    font-weight: 800;
    line-height: 1.15;
}
@media (min-width: 992px) { .slide-content h1 { font-size: 3.4rem; } }
.slide-content h1 em { font-style: normal; color: var(--primary-teal); }

/* Media Frame Panels Container */
.slide-media {
    position: relative;
    width: 100%;
    height: 85%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    border-radius: 12px;
    overflow: hidden;
}
.slide-media::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(0deg, rgba(17,24,39,0.8) 0%, rgba(17,24,39,0) 50%);
}

/* Floating Cards Design */
.floating-stat-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--accent-red);
    max-width: 100%; /* Prevents breaking small viewports */
    text-decoration: none !important;
}
.floating-stat-card i { font-size: 2rem; color: var(--primary-teal); vertical-align: middle; }
.stat-number { font-size: 1.8rem; font-weight: 900; color: var(--dark-neutral); line-height: 1; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--gray-text); letter-spacing: 0.5px; line-height: 1.3; }

/* Custom Theme Buttons classes */
.btn-teal {
    background: var(--primary-teal);
    color: #ffffff !important;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 128, 128, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.btn-teal:hover { background: #006666; transform: translateY(-2px); }
.btn-teal i { vertical-align: middle; }

.btn-outline-dark-custom {
    border: 2px solid var(--dark-neutral);
    color: var(--dark-neutral) !important;
    padding: 10px 28px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.btn-outline-dark-custom:hover { background: var(--dark-neutral); color: #ffffff !important; transform: translateY(-2px); }
.btn-outline-dark-custom i { vertical-align: middle; }

/* Controls Panel positioning */
.slider-controls-wrapper {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}
.slider-controls { pointer-events: auto; }

.arrow-btn {
    background: var(--dark-neutral);
    color: #ffffff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}
.arrow-btn:hover { background: var(--accent-red); transform: scale(1.05); }

/* Layout adjustment overrides across smaller screens */
@media (max-width: 991px) {
    .hero-slider-container { height: auto; min-height: 520px; }
    .slide-media { display: none; }
    .slider-controls-wrapper { bottom: 30px; }
}

/* --- ABOUT SECTION DESIGN SYSTEM --- */
.about-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden; /* Blocks column matrix pop-outs */
}

.about-ui-badge {
    background: rgba(0, 128, 128, 0.06);
    color: var(--primary-teal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.about-heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark-neutral);
    line-height: 1.25;
}
.about-heading em {
    font-style: normal;
    color: var(--primary-teal);
}

.about-lead {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
}

/* Feature Checklist Blocks */
.feature-check-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.feature-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature-check-icon {
    background: rgba(255, 0, 0, 0.08);
    color: var(--accent-red);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 3px;
}
.feature-check-text h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-neutral);
    margin-bottom: 2px;
}
.feature-check-text p {
    font-size: 0.870rem;
    color: var(--gray-text);
    margin: 0;
}

/* Visual Panel Matrix Layout */
.about-image-matrix {
    position: relative;
    padding-bottom: 40px;
}
.matrix-main-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(17, 24, 37, 0.08);
    width: 85%;
}
.matrix-overlay-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    background: var(--dark-neutral);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    border-bottom: 4px solid var(--primary-teal);
}
.matrix-overlay-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}
.matrix-overlay-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 991px) {
    .about-section { padding: 60px 0; }
    .matrix-main-frame { width: 100%; }
    .matrix-overlay-card { position: relative; width: 100%; right: auto; bottom: auto; margin-top: 20px; }
}

/* --- WHY CHOOSE US DESIGN SYSTEM --- */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--dark-neutral);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.why-choose-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.05) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.why-ui-badge {
    background: rgba(0, 128, 128, 0.2);
    color: #00b3b3; 
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.why-heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
.why-heading em {
    font-style: normal;
    color: #00b3b3;
}

/* Feature Grid Cards */
.why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 128, 128, 0.3);
    transform: translateY(-5px);
}

.why-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 128, 128, 0.15);
    color: #00b3b3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.why-card:hover .why-icon-box {
    background: var(--primary-teal);
    color: #ffffff;
}

.why-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}
.why-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* Mini Statistics Strip */
.why-stats-counter {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 50px;
}
.stat-strip-box h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 5px;
}
.stat-strip-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    margin: 0;
}

@media (max-width: 991px) {
    .why-choose-section { padding: 60px 0; }
    .why-stats-counter { gap: 30px; }
}

/* --- PILLARS / SERVICES SECTION DESIGN SYSTEM --- */
.pillars-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}
.pillar-row {
    align-items: center;
    margin-bottom: 90px;
}
.pillar-row:last-child {
    margin-bottom: 0;
}
.pillar-content-box {
    padding: 20px;
}
.pillar-step-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}
.pillar-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-neutral);
    margin-bottom: 20px;
}
.pillar-title em {
    font-style: normal;
    color: var(--primary-teal);
}
.pillar-desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Feature Spec Tags */
.pillar-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    list-style: none;
}
.pillar-spec-tag {
    background: var(--light-neutral);
    border: 1px solid #e5e7eb;
    color: var(--dark-neutral);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pillar-spec-tag i {
    color: var(--primary-teal);
}

/* Premium Visual Frame */
.pillar-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(17, 24, 37, 0.06);
}
.pillar-image-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-image-wrapper:hover img {
    transform: scale(1.04);
}

@media (max-width: 991px) {
    .pillars-section { padding: 60px 0; }
    .pillar-row { margin-bottom: 60px; }
    .pillar-image-wrapper img { height: 280px; }
}

/* --- VIDEO CTA DESIGN SYSTEM --- */
.video-cta-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--dark-neutral);
    overflow: hidden;
}

/* Background Video Container */
.cta-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Teal Overlay Layer */
.cta-teal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.50) 0%, rgba(17, 24, 37, 0.85) 100%);
    z-index: 2;
}

/* Content Container Layer */
.cta-content-wrapper {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 720px;
    margin: 0 auto;
}
.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}
.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* White Pulse Button Variant */
.btn-white-pulse {
    background: #ffffff;
    color: var(--dark-neutral) !important;
    padding: 14px 36px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.btn-white-pulse:hover {
    background: var(--light-neutral);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}
.btn-white-pulse i {
    color: var(--primary-teal);
    vertical-align: middle;
}

@media (max-width: 767px) {
    .video-cta-section { padding: 80px 0; }
    .cta-title { font-size: 1.85rem; }
    .cta-text { font-size: 1rem; }
}

/* --- PREMIUM ENTERPRISE FOOTER --- */
.site-footer {
    background-color: var(--dark-neutral);
    color: #9ca3af;
    font-size: 0.9rem;
    position: relative;
    border-top: 3px solid var(--primary-teal);
    overflow: hidden;
}
.footer-top {
    padding: 80px 0 50px 0;
}

/* Brand Column Branding */
.footer-brand-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.footer-brand-logo span { color: #00b3b3; }
.footer-brand-logo img { height: 60px; width: auto; object-fit: contain; }

.footer-brand-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #9ca3af;
}

/* Navigation Links Structure */
.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-list a {
    color: #9ca3af !important;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    display: inline-block;
}
.footer-links-list a:hover {
    color: #00b3b3 !important;
    transform: translateX(4px);
}

/* Contact Details Strip */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}
.footer-contact-item i {
    color: #00b3b3;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Certifications Pill Row */
.footer-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.footer-mini-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #0b0f19;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}
.footer-legal-links {
    display: flex;
    gap: 20px;
}
.footer-legal-links a {
    color: #6b7280 !important;
}
.footer-legal-links a:hover {
    color: #00b3b3 !important;
}

@media (max-width: 767px) {
    .footer-top { padding: 50px 0 30px 0; }
    .footer-bottom { text-align: center; }
    .footer-legal-links { justify-content: center; margin-top: 15px; }
}

/* ==========================================================
   BREADCRUMB
   ========================================================== */

.breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.breadcrumb-wrapper .container {
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

/* Breadcrumb Item */
.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    color: var(--gray-text);
}

/* Links */
.breadcrumb-item a {
    display: flex;
    align-items: center;
    color: var(--gray-text);
    text-decoration: none;
    transition: color .25s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-teal);
}

/* Home Icon */
.breadcrumb-item i {
    font-size: .85rem;
    margin-right: .45rem;
    color: var(--primary-teal);
}

/* Separator */
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 .8rem;
    color: #b8c0c8;
    font-size: .7rem;
    padding: 0;
}

/* Active Item */
.breadcrumb-item.active {
    color: var(--dark-neutral);
    font-weight: 600;
    pointer-events: none;
}

/* Remove Bootstrap default separator */
.breadcrumb-item::before {
    float: none;
}

/* Responsive */
@media (max-width: 768px) {

    .breadcrumb-wrapper {
        padding: 10px 0;
    }

    .breadcrumb-item {
        font-size: .82rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 .55rem;
        font-size: .65rem;
    }

    .breadcrumb-item i {
        margin-right: .35rem;
    }
}

@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid #e5e7eb !important;
    }
}

/* --- CONTACT MODULE STYLES --- */
.contact-info-section .why-card {
    padding: 20px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-section .why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 128, 128, 0.05);
}

.map-wrapper iframe {
    filter: grayscale(10%) contrast(105%);
}

/* --- BRANCH MODULE CUSTOM STYLES --- */
.bg-teal-light {
    background-color: rgba(0, 128, 128, 0.06);
}

.branch-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #fafafa;
}

.branch-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-teal) !important;
}

.branch-details-list li {
    line-height: 1.5;
}

.branch-details-list a:hover {
    color: var(--primary-teal) !important;
}

.btn-outline-teal {
    color: var(--primary-teal);
    border-color: rgba(0, 128, 128, 0.3);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 16px;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-teal:hover {
    color: #ffffff;
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

/* --- DYNAMIC CANVAS FLIPBOOK MATRIX --- */
.flipbook-viewport {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
}

.flipbook-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.flipbook {
    transition: margin-left 0.3s ease-in-out;
    /* Soft shadows to make it look like a physical catalog book */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
}

/* Ensure crisp layout scaling inside TurnJS frames */
.flipbook canvas {
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff;
    display: block;
}

/* --- MOBILE LAYOUT TRANSFORMS --- */
@media (max-width: 767px) {
    .flipbook-viewport {
        overflow: visible;
    }
    .flipbook-stage {
        transform: scale(0.9);
        transform-origin: center top;
    }
    .flipbook {
        margin-left: 0px !important; /* Force center alignment on mobile screens */
    }
}

/* --- FULLSCREEN OPTIMIZATION MAPS --- */
.flipbook-viewport:fullscreen {
    background-color: #1a1a1a !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.flipbook-viewport:fullscreen .flipbook-stage {
    transform: scale(1.15);
}