/* --- Variables --- */
:root {
    --veflox-black: #111111;
    --veflox-blue: #004dd5;
    --veflox-blue-hover: #004494;
    --primary-blue: #0044cc;
    --text-color: #333333;
    --clr-primary-dark: #0f172a; /* Deeper, more modern industrial slate */
    --clr-text-light: #64748b;
    --clr-bg-light: #f8fafc;
    --clr-white: #ffffff;
    --shadow-scrolled: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-header: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Snappier drawer */
    --clr-primary-blue: #0056b3; 
    --clr-primary-dark: #0f172a; /* Deeper, more modern industrial slate */
    --clr-text-main: #334155;
    --clr-text-light: #64748b;
    --clr-white: #ffffff;
    --clr-bg-light: #f8fafc;
    --clr-border: #e2e8f0;
    
    --font-primary: 'Inter', sans-serif;
    --fs-base: 16px;
    --fs-small: 13px;
    
    --container-max-width: 1280px; /* Slightly wider for modern screens */
    
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Snappier drawer */
    
    --shadow-header: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-scrolled: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--clr-text-main); background: var(--clr-white); overflow-x: hidden; }

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 24px; }


/* =========================================
   Header Wrapper (Sticky)
   ========================================= */
.header-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: var(--clr-white);
    box-shadow: var(--shadow-header);
    transition: box-shadow var(--transition-fast);
}
.header-wrapper.scrolled {
    box-shadow: var(--shadow-scrolled);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}
.btn-primary { background: var(--clr-primary-blue); color: var(--clr-white); }
.btn-primary:hover { background: var(--clr-primary-dark); transform: translateY(-2px); }
.full-width { width: 100%; }

/* =========================================
   Top Bar
   ========================================= */
.top-bar {
    background-color: var(--clr-primary-dark);
    color: #e2e8f0;
    font-size: var(--fs-small);
    padding: 8px 0;
    transition: margin-top var(--transition-smooth); /* For hiding on scroll */
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-info, .top-badges { display: flex; align-items: center; gap: 15px; }
.top-info a { transition: color var(--transition-fast); display: flex; align-items: center; gap: 6px; }
.top-info a:hover { color: var(--clr-primary-blue); }
.divider { color: #475569; }
.cert-text { font-weight: 600; letter-spacing: 0.5px; color: #fbbf24; /* Subtle gold for cert */ display: flex; align-items: center; gap: 6px; }
.top-socials { display: flex; gap: 12px; margin-left: 15px; border-left: 1px solid #475569; padding-left: 15px; }
.top-socials a:hover { color: var(--clr-primary-blue); }
/* Increase size of top bar social icons */
.top-socials a {
    font-size: 18px; /* You can bump this up to 20px if you want them even larger */
    display: flex;
    align-items: center;
}

/* =========================================
   Main Navigation
   ========================================= */
.main-nav {
    height: 85px;
    display: flex;
    align-items: center;
    transition: height var(--transition-smooth);
}
.header-wrapper.scrolled .main-nav { height: 70px; } /* Shrinks slightly on scroll */

.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo-img { height: 60px; width: auto; transition: height var(--transition-smooth); }
.header-wrapper.scrolled .logo-img { height: 60px; }

/* Desktop Menu */
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--clr-primary-dark);
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-fast);
}

/* Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary-blue);
    transition: width var(--transition-fast);
}
.nav-link:hover { color: var(--clr-primary-blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-icon { font-size: 10px; margin-left: 4px; transition: transform var(--transition-fast); }
.dropdown-menu {
    display: block !important; /* Overrides Bootstrap's default hiding */
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 240px;
    background: var(--clr-white);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-fast);
    border: 1px solid var(--clr-border);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}
.dropdown:hover .dropdown-icon { transform: rotate(180deg); }
.dropdown-link {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--clr-text-main);
    font-weight: 500;
    transition: var(--transition-fast);
}
.dropdown-link:hover {
    background: var(--clr-bg-light);
    color: var(--clr-primary-blue);
    padding-left: 30px; /* Indent effect */
}

/* Mobile Exclusives Hidden on Desktop */
.mobile-sidebar-header, .mobile-nav-footer, .hamburger { display: none; }

/* =========================================
   Mobile Responsiveness (Drawer)
   ========================================= */
@media (max-width: 1024px) {
    .top-bar { display: none; } /* Hide top bar on mobile for cleaner look, or keep it if preferred */
    .desktop-btn { display: none; }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 10001;
    }
    .hamburger .bar {
        height: 2px;
        width: 100%;
        background: var(--clr-primary-dark);
        border-radius: 4px;
        transition: var(--transition-fast);
    }

    /* Sidebar Drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--clr-white);
        flex-direction: column;
        transition: right var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 10000;
        display: flex;
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }

    /* Inside Mobile Sidebar */
    .mobile-sidebar-header {
        display: block;
        padding: 24px;
        border-bottom: 1px solid var(--clr-border);
        background: var(--clr-bg-light);
    }
    .mobile-logo-img { height: 40px; }

    .nav-list { flex-direction: column; gap: 0; padding: 10px 0; }
    .nav-item { width: 100%; border-bottom: 1px solid var(--clr-border); }
    .nav-link {
        padding: 16px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
    }
    .nav-link::after { display: none; } /* Disable underline on mobile */

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--clr-bg-light);
        display: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .dropdown:hover .dropdown-menu { display: none; } /* Disable hover on mobile */
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown.active .dropdown-icon { transform: rotate(180deg); }
    
    /* Mobile Sidebar Contact & Socials */
    .mobile-nav-footer {
        display: block;
        padding: 24px;
        margin-top: auto; /* Pushes to bottom */
        border-top: 1px solid var(--clr-border);
        background: var(--clr-bg-light);
    }

    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .mobile-contact-info a {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--clr-text-main);
        font-size: 15px;
        font-weight: 500;
        transition: var(--transition-fast);
    }

    .mobile-contact-info i {
        color: var(--clr-primary-blue);
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .mobile-contact-info a:hover {
        color: var(--clr-primary-blue);
    }

    .mobile-socials {
        display: flex;
        gap: 12px;
    }

    .mobile-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: var(--clr-white);
        border: 1px solid var(--clr-border);
        border-radius: 50%;
        color: var(--clr-primary-dark);
        font-size: 18px;
        transition: var(--transition-fast);
    }

    .mobile-socials a:hover {
        background: var(--clr-primary-blue);
        color: var(--clr-white);
        border-color: var(--clr-primary-blue);
        transform: translateY(-2px);
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6); /* Dark slate overlay */
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-fast);
        z-index: 9999;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }
}




/* =========================================
   Hero Slider Section
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    /* Top bar (~37px) + nav (85px) sit above the slider, so subtract both
       and cap the height so a slide is fully visible on first load */
    height: calc(100vh - 125px);
    min-height: 460px;
    max-height: 620px;
    background-color: var(--clr-primary-dark);
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

/* Background Image & Zoom Animation */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease; /* Slow Ken Burns zoom out */
}

/* Zoom out effect only when slide is active */
.swiper-slide-active .slide-bg {
    transform: scale(1.1);
}

/* Dark Overlay for Text Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

/* Text Content Container */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px; /* Offset to feel visually centered */
    max-width: 800px; /* Keep text readable */
}

/* Text Base Styling & Hidden State for Animation */
.slide-subtitle {
    display: inline-block;
    color: #fbbf24; /* Golden cert color */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    
    /* Animation start state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slide-title {
    color: var(--clr-white);
    font-size: clamp(2rem, 3.8vw, 3.4rem); /* Responsive fluid typography, sized for the shorter slider */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    
    /* Animation start state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slide-desc {
    color: #e2e8f0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.7;
    
    /* Animation start state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slide-btn-group {
    display: flex;
    gap: 15px;
    
    /* Animation start state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Outline Button Variant for Hero */
.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border: 2px solid var(--clr-white);
}
.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary-dark);
}

/* Active Slide Text Animations (Cascading Delays) */
.swiper-slide-active .slide-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.swiper-slide-active .slide-title { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.swiper-slide-active .slide-desc { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.swiper-slide-active .slide-btn-group { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }

/* Swiper UI Customization */
.swiper-button-next, .swiper-button-prev {
    color: var(--clr-white) !important;
    background: rgba(255, 255, 255, 0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--clr-primary-blue);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    background: var(--clr-white) !important;
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
    transition: var(--transition-fast);
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--clr-primary-blue) !important;
    width: 25px !important;
    border-radius: 5px !important; /* Makes the active bullet a pill shape */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh; /* Shorter slider on phones; fully visible under the mobile header */
        min-height: 420px;
        max-height: 560px;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    }

    .hero-content {
        align-items: center;
        text-align: center;
        padding-top: 0;
    }

    .slide-btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .swiper-button-next, .swiper-button-prev {
        display: none !important; /* Hide arrows on mobile to save space, relies on swipe */
    }
}


















/* =========================================
   About Us Section
   ========================================= */
.about-section {
    padding: 36px 0;
    background-color: var(--clr-white);
    overflow: hidden;
}

.about-container {
    display: grid;
    /* Slightly wider text column so the section heading fits on one line */
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}

/* Reusable Section Headers */
.section-subtitle {
    display: block;
    color: var(--clr-primary-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    color: var(--clr-primary-dark);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

/* Left Column: Image Stack Graphics */
.about-images {
    position: relative;
    padding-bottom: 60px; /* Space for the overlapping image */
}

.image-wrapper {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: var(--shadow-scrolled);
}

.about-webp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.main-img {
    width: 85%;
    height: 400px;
}

.sub-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 250px;
    border: 6px solid var(--clr-white);
}

/* Subtle hover interaction on images */
.image-wrapper:hover .about-webp {
    transform: scale(1.05);
}

/* Floating Certification Badge */
.cert-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--clr-primary-dark);
    color: var(--clr-white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-scrolled);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    border-top: 4px solid var(--clr-primary-blue);
    z-index: 10;
}

.badge-number {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24; /* Gold accent */
    line-height: 1;
    margin-bottom: 4px;
}

.badge-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: #e2e8f0;
}

/* Right Column: Text Layout */
.about-lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-primary-dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.about-text {
    color: var(--clr-text-light);
    margin-bottom: 35px;
}

/* Features Grid */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--clr-bg-light);
    border-radius: 6px;
    color: var(--clr-primary-blue);
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition-fast);
    border: 1px solid var(--clr-border);
}

.feature-item:hover .feature-icon {
    background: var(--clr-primary-blue);
    color: var(--clr-white);
    border-color: var(--clr-primary-blue);
}

.feature-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 14px;
    color: var(--clr-text-light);
}

/* Responsive Rules for About Section */
@media (max-width: 992px) {
    .about-section {
        padding: 28px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .main-img {
        width: 100%;
        height: 320px;
    }
    
    .sub-img {
        display: none; /* Hide secondary overlapping image on tablet/mobile for clean structure */
    }
    
    .cert-badge {
        top: 20px;
        left: 20px;
    }
}












/* --- SECTION 5: DYNAMIC SHOWCASE CONSOLE --- */
.services-section {
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 40px;
}

.text-navy {
    color: var(--veflox-blue-hover);
}

/* Custom left-side navigation pills */
.custom-service-pills {
    gap: 12px;
}

/* INACTIVE TAB STATE (Fixes visibility completely) */
.custom-service-pills .nav-link {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 18px 24px;
    color: var(--veflox-blue) !important; /* Force dark navy text for the heading */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

/* Ensure the heading specifically stays dark */
.custom-service-pills .nav-link .h6 {
    color: #4a4a4a !important;
}

/* Make the inactive icon clearly visible */
.custom-service-pills .pill-icon {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: var(--veflox-blue) !important; /* Force the electric blue color */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Ensure the subtext is a readable dark gray */
.custom-service-pills .nav-link .custom-subtext {
    color: #475569 !important; /* Slate-700 for better contrast */
    font-weight: 400;
}


/* --- HOVER EFFECT --- */
.custom-service-pills .nav-link:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
}


/* --- ACTIVE TAB STATE --- */
.custom-service-pills .nav-link.active {
    background-color: var(--veflox-blue) !important;
    border-color: var(--veflox-blue-hover) !important;
    box-shadow: 0 10px 25px rgba(4, 27, 51, 0.2);
    transform: translateX(8px);
}

/* Force active heading to be white */
.custom-service-pills .nav-link.active h6 {
    color: #ffffff !important;
}

/* Force active subtext to be light gray */
.custom-service-pills .nav-link.active .custom-subtext {
    color: #cbd5e1 !important; 
}
.custom-service-pills .nav-link.active .h6 {
    color: #ffffff !important; 
}

/* Force active icon box to invert colors */
.custom-service-pills .nav-link.active .pill-icon {
    background-color: rgb(10 92 237) !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* Right-Side Showcase Panel */
.showcase-panel-wrapper {
    height: 100%;
}

.showcase-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    transition: all 0.4s ease;
}

.showcase-img {
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.line-height-lg { line-height: 1.7; }
.showcase-specs li {
    font-size: 0.95rem;
    color: #475569;
}

/* Desktop Crossfade Speed */
@media (min-width: 992px) {
    .tab-pane.fade { transition: opacity 0.3s linear; }
}

/* --- MOBILE OVERRIDES (STACKED CARDS) --- */
@media (max-width: 991px) {
    /* Force all tab panes to display sequentially on mobile */
    .showcase-panel-wrapper .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 24px;
    }
    
    /* Adjust card height for stacked mobile view */
    .showcase-card {
        min-height: auto;
    }
}
.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(162 209 255) !important;
}

.text-accent{
    color: #3a90e5;
}









/* Bento Grid Layout */
.bento-section {
    background-color: var(--clr-bg-light, #f8f9fa);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

/* Bento Card Base Styling */
.bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 220px;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Background Image & Zoom Effect */
.bento-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.bento-card:hover .bento-bg {
    transform: scale(1.08);
}

/* Overlays for text readability */
.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 2;
}

.bento-overlay.dark {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}

.bento-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

/* Specific Sizes for the Grid */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* Icon Wrapper Styling */
.bento-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 1.2rem;
}

.supply-record-card .bento-icon-wrapper {
    background: var(--clr-primary-blue, #0d6efd);
    border: none;
}

/* Balanced 2 x 2 variant (home page industries grid) */
.bento-grid-four {
    grid-auto-rows: minmax(280px, auto);
}

.bento-grid-four .bento-card {
    min-height: 280px;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large, .bento-wide {
        grid-column: span 2;
    }
    /* Keep the 2 x 2 arrangement on tablets: one card per column */
    .bento-grid-four .bento-wide {
        grid-column: span 1;
    }
    .bento-grid-four {
        grid-auto-rows: minmax(240px, auto);
    }
    .bento-grid-four .bento-card {
        min-height: 240px;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-wide, .bento-card {
        grid-column: span 1;
        grid-row: auto;
        min-height: 250px;
    }
    .bento-content { padding: 1.5rem; }
}















/* =========================================
   INDUSTRIES SERVED SECTION (MODERN 8-GRID)
   ========================================= */
.industries-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Clean light background */
}

.industries-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--veflox-blue, #0056b3);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.industries-lead {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 4-Column Grid for 8 items */
.industries-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Tighter gap for a cohesive block look */
}

/* Modern Sleek Card */
.industry-card-modern {
    position: relative;
    height: 220px; /* Shorter, sleeker profile */
    border-radius: 8px;
    overflow: hidden;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

/* Background Image Layer */
.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Blue-Tinted Overlay (Matches the uploaded image style) */
.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

/* Content Container */
.industry-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Aligns Icon and Title horizontally in default state */
.industry-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.industry-icon {
    font-size: 20px;
    color: #3b82f6; /* Modern bright blue */
    transition: color 0.3s ease;
}

.industry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Hidden Description */
.industry-desc {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* =========================================
   Interactive Hover Behaviors
   ========================================= */
.industry-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.industry-card-modern:hover .industry-bg {
    transform: scale(1.08);
}

.industry-card-modern:hover .industry-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.industry-card-modern:hover .industry-icon {
    color: #ffffff; /* Icon turns white on hover */
}

.industry-card-modern:hover .industry-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 15px; /* Creates space between title and text on reveal */
}

/* =========================================
   Responsive Viewport Interventions
   ========================================= */
@media (max-width: 1200px) {
    .industries-grid-modern {
        grid-template-columns: repeat(3, 1fr); /* Drops to 3 columns on medium laptops */
    }
}

@media (max-width: 991px) {
    .industries-grid-modern {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .industries-grid-modern {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .industry-card-modern {
        height: 200px;
    }
    
    /* Auto-reveal text on touch screens */
    .industry-desc {
        max-height: 100px;
        opacity: 1;
        margin-top: 10px;
    }
}


















/* --- MODERN SITE FOOTER --- */
.site-footer {
    background-color: #111111; /* Deep industrial dark */
    color: #cccccc;
    padding-top: 32px;
    border-top: 4px solid var(--primary-blue);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 28px;
    margin-bottom: 22px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #aaaaaa;
}

.footer-desc strong {
    color: #ffffff;
}

/* Social Media Circles */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid #333333;
}

.footer-socials a:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Footer Headings */
.footer-heading {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.footer-links i {
    font-size: 10px;
    margin-right: 8px;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Contact List Formatting */
.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.footer-contact-list i {
    color: var(--primary-blue);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 4px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text strong {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-text span, 
.contact-text a {
    color: #aaaaaa;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-blue);
}

/* --- Footer Bottom Bar --- */
.footer-bottom {
    background-color: #0a0a0a;
    padding: 10px 0;
    border-top: 1px solid #222222;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #777777;
    font-size: 13px;
}

/* Back to Top Button */
.back-to-top {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #ffffff;
    color: var(--primary-blue);
}

/* --- Mobile Adjustments --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}



















/* Ensure the button is hidden on desktop by default */
.veflox-floating-btn {
    display: none; /* Default hidden */
}

/* Show only on mobile/tablet viewports */
@media (max-width: 991px) {
    .veflox-floating-btn {
        display: flex; /* Override hidden */
        position: fixed;
        bottom: 20px;
        right: 20px;
        height: 50px;
        padding-right: 20px;
        background: linear-gradient(135deg, var(--veflox-blue, #0056b3), #003d80);
        color: #ffffff !important;
        text-decoration: none;
        z-index: 1050;
        align-items: center;
        border-radius: 50px;
        box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
    }
    
    .veflox-floating-btn .btn-icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .veflox-floating-btn .btn-text {
        font-weight: 700;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}


/* =========================================
   HIDE BOTHELP WHATSAPP WIDGET ON MOBILE
   ========================================= */
@media (max-width: 991px) {
    /* Target the main wrapper injected by the external script */
    #bh-whatsapp-chat,
    .bh-whatsapp-chat,
    [id^="bh-"],
    [class^="bh-"] {
        display: none !important;
    }
}






















/* =========================================
   REUSABLE PAGE BANNER (About, Products, etc.)
   ========================================= */
.page-banner {
    height: 280px; /* Compact page banner */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-banner h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem); /* Keeps long page titles on one line */
    margin-bottom: 0.5rem !important;
}

.page-banner .breadcrumb {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .page-banner {
        height: 210px;
    }
}

/* Banner variant that carries the page's section intro (eyebrow + heading + text)
   in place of the breadcrumb, so the section below starts straight with content */
.page-banner--intro {
    height: auto;
    min-height: 280px;
    padding: 30px 0;
}
.page-banner--intro .banner-content {
    max-width: 920px;
    margin: 0 auto;
}
.page-banner--intro .banner-line {
    background: rgba(255, 255, 255, 0.55);
}
.page-banner--intro .banner-eyebrow {
    font-size: 0.8rem;
    color: #ff8f9c;
}
.page-banner--intro .banner-intro {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}
@media (max-width: 767.98px) {
    .page-banner--intro {
        height: auto;
        min-height: 210px;
        padding: 22px 0;
    }
    .page-banner--intro .banner-eyebrow { font-size: 0.72rem; }
    .page-banner--intro .banner-intro { font-size: 0.94rem; }
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Page-specific photo must be visible inside the short banner */
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Deep industrial gradient: dark black to VEFLOX blue */
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(0, 86, 179, 0.65) 100%);
    z-index: 0;
}

.banner-content {
    padding-top: 0; /* Header is sticky (in flow), so no offset is needed */
}

.tracking-tight { 
    letter-spacing: -0.03em; 
}

/* Customizing Bootstrap Breadcrumbs for Dark Backgrounds */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4); 
}























/* =========================================
   SECTION 1: ASYMMETRICAL & GEOMETRIC
   ========================================= */
/* Deep Navy to Cobalt Gradient for Text */
.tech-gradient-text {
    background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

.fw-black { font-weight: 900; }
.gradient-line { width: 40px; height: 3px; background: linear-gradient(90deg, #0056b3, transparent); }

/* The Machined Image Shape using clip-path */
.machined-image-wrapper {
    position: relative;
    padding: 20px;
}

.machined-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    /* Cuts the corners off the image to look like a machined metal plate */
    clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
    transition: transform 0.5s ease;
}

.machined-image-wrapper:hover .machined-img {
    transform: scale(1.02);
}

/* Glassmorphism Floating Detail Card */
.glass-detail-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 20px 30px;
    border-radius: 12px;
    border-left: 4px solid #0056b3;
    z-index: 2;
}

/* =========================================
   SECTION 2: HOVER-EXPAND PANELS (Optimized)
   ========================================= */
.tech-dark-bg {
    background: linear-gradient(135deg, #050505 0%, #0a1128 100%);
}

.expand-container {
    display: flex;
    width: 100%;
    height: 450px;
    gap: 15px;
}

.expand-panel {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    flex: 1; 
    overflow: hidden;
    /* Optimized transition and will-change to eliminate lag */
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: flex, height;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Desktop Hover & Active State */
@media (min-width: 992px) {
    .expand-panel:hover, 
    .expand-panel.active {
        flex: 5;
        border-color: #0056b3;
        box-shadow: 0 0 30px rgba(0, 86, 179, 0.4);
    }
}

.panel-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.expand-panel:hover .panel-icon,
.expand-panel.active .panel-icon {
    background: #0056b3;
    transform: scale(1.1);
}

.panel-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s; 
    visibility: hidden;
    z-index: 2;
}

.expand-panel:hover .panel-content,
.expand-panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Vertical Title for Desktop Collapsed State */
.panel-title-vertical {
    position: absolute;
    bottom: 30px;
    left: 45px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.expand-panel:hover .panel-title-vertical,
.expand-panel.active .panel-title-vertical {
    opacity: 0; 
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 991px) {
    .expand-container {
        flex-direction: column;
        height: auto; /* Let the container scale dynamically */
    }
    
    .expand-panel {
        height: 100px; /* Collapsed state on mobile */
        flex: none; /* Disable flex scaling on mobile */
    }

    .expand-panel.active {
        height: 320px; /* Expanded state on mobile */
        border-color: #0056b3;
    }

    .panel-icon {
        top: 25px;
        left: 20px;
    }

    .panel-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    /* Make the title horizontal on mobile for better readability */
    .panel-title-vertical {
        transform: none;
        left: 85px;
        bottom: 36px;
    }
}






















/* =========================================
   PRODUCT CATALOG: STICKY INDEX & CARDS
   ========================================= */

.py-6 {
    padding-top: 36px;
    padding-bottom: 36px;
}

@media (max-width: 767.98px) {
    .py-6 {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}

/* Sticky Header Logic */
.sticky-category-header {
    position: sticky;
    /* Important: Set this higher than your navbar height so it doesn't hide behind it */
    top: 110px; 
    z-index: 10;
}

/* Base Card Styling */
.tech-product-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Hover Elevation & Border Glow */
.tech-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.1);
    border-color: rgba(0, 86, 179, 0.3);
}

/* Image Wrapper & Zoom Effect */
.tech-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f4f6f9; /* Soft background in case of transparent PNG/WebP */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-product-card:hover .tech-img-wrapper img {
    transform: scale(1.08); /* Smooth zoom on hover */
}

/* Floating Badge */
.tech-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--veflox-blue, #0056b3);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Content Area */
.tech-content {
    padding: 25px;
}

.tech-action {
    transition: color 0.3s ease;
}

/* Arrow Interaction */
.tech-action i {
    transition: transform 0.3s ease;
}

.tech-product-card:hover .tech-action i {
    transform: translateX(6px); /* Arrow slides right to encourage clicking */
}

/* Mobile Responsiveness for Sticky Header */
@media (max-width: 991px) {
    .sticky-category-header {
        position: relative; /* Disable sticky on mobile so it flows naturally */
        top: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .tech-img-wrapper {
        height: 250px; /* Make images slightly taller on mobile */
    }
}




























/* Quality Policy Section Styling */
.quality-policy-section {
  background-color: #f8f9fa; /* Light, clean background */
  font-family: 'Inter', system-ui, sans-serif;
}

/* Interactive Cards */
.quality-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Hover Effects */
.quality-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(13, 110, 253, 0.2); /* Primary color hint */
}

/* Subtle accent bar on hover */
.quality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #0d6efd; /* Match your primary brand color */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.quality-card:hover::before {
  transform: scaleX(1);
}

/* Icon Wrapper Styling */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.05);
  transition: all 0.3s ease;
}

.quality-card:hover .icon-wrapper {
  background: #0d6efd;
  color: #ffffff; /* Make icon white on hover */
}

.quality-card:hover .icon-wrapper i {
  color: #ffffff !important;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Quality Guarantee Section Styles */
.quality-guarantee-section {
  background-color: #ffffff; /* Contrasts with the light gray of the previous section */
}

/* Make the image wrapper look premium */
.image-wrapper {
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* Glassmorphism Floating Card */
.floating-glass-card {
  bottom: -30px;
  left: -40px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); /* Creates the frosted glass effect */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 10;
  animation: floatCard 6s ease-in-out infinite;
}

/* Keyframes for the floating animation */
@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Mobile Responsiveness for the floating card */
@media (max-width: 991.98px) {
  .floating-glass-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: -50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  
  .image-wrapper {
    transform: none;
  }
}




















/* =========================================
   PRODUCT SIDEBAR: ENGINEERING NODE MENU
   ========================================= */

.catalog-sidebar {
    transition: all 0.3s ease;
}

.node-menu {
    margin-left: 5px;
}

.node-item {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}

.node-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Category Headers */
.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.node-header:hover {
    background: #f8f9fa;
}

.node-icon {
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.node-header:hover .node-icon {
    background: #0056b3;
    color: #ffffff;
}

.node-toggle {
    font-size: 0.8rem;
    color: #a0aec0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Blueprint / Piping Submenu Style */
.node-submenu {
    padding-left: 22px; /* Aligns under the icon */
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    max-height: 0; /* Hidden by default */
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The vertical connecting line */
.node-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22px;
    bottom: 20px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.node-submenu li {
    position: relative;
    padding-left: 20px;
    margin: 5px 0;
}

/* The horizontal connecting branches */
.node-submenu li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 2px;
    background: #e2e8f0;
    transform: translateY(-50%);
    border-radius: 2px;
    transition: background 0.3s ease;
}

/* Submenu Links */
.node-submenu a {
    display: block;
    padding: 8px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.node-submenu a:hover {
    color: #0056b3;
    background: rgba(0, 86, 179, 0.05);
    transform: translateX(5px);
}

/* Active State */
.node-submenu a.active {
    color: #0056b3;
    background: rgba(0, 86, 179, 0.08);
    font-weight: 700;
}

/* Highlight the branch line when active/hover */
.node-submenu a:hover::before,
.node-submenu a.active::before {
    background: #0056b3;
}

.node-submenu li:hover::before {
    background: #0056b3; /* branch color change on hover */
}

/* Expanded State Logic */
.node-item.expanded .node-submenu {
    max-height: 400px; /* Expands smoothly */
    padding-bottom: 10px;
}

.node-item.expanded .node-toggle {
    transform: rotate(180deg);
    color: #0056b3;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .catalog-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px;
    }
}























/* =========================================
   CLEAN & MINIMALIST PRODUCT PAGE
   ========================================= */

/* Typography & Base Variables */
.bg-white { background-color: #ffffff !important; }
.text-dark { color: #111111 !important; }
.fw-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.03em; }

.minimal-line {
    width: 40px;
    height: 3px;
    background-color: var(--veflox-blue); /* Just a small accent color line */
}

/* 1. Museum Showcase Box */
.showcase-frame {
    background-color: #f8f9fa !important; /* Extremely soft grey just to separate from white background */
    border: 1px solid rgba(0,0,0,0.03);
}

.showcase-img {
    max-height: 530px;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.1));
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-frame:hover .showcase-img {
    transform: scale(1.05) translateY(-5px);
}

/* 2. Ultra-Clean Table */
.clean-table th, 
.clean-table td {
    background-color: transparent !important; 
    padding-left: 0; 
}

.clean-table tbody tr {
    transition: background-color 0.3s ease;
}

.clean-table tbody tr:hover {
    background-color: #fafafa; 
}

/* 3. Sub-Types Minimal Cards */
.minimal-product-card {
    transition: transform 0.3s ease;
}

.card-img-area {
    height: 200px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.card-img-area img {
    max-height: 100%;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

.minimal-product-card:hover .card-img-area {
    background-color: #ffffff !important;
    border-color: rgba(0, 86, 179, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.minimal-product-card:hover .card-img-area img {
    transform: scale(1.1);
}

.minimal-product-card:hover h4 {
    color: var(--veflox-blue) !important;
}

/* Reset Body Background just in case */
body {
    background-color: #ffffff;
}








/* News Section Styling */
.news-section {
    background-color: var(--clr-white, #ffffff);
}

.news-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Image and Date Badge Overlay */
.news-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-img-wrapper img {
    object-fit: cover;
    height: 100%;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--clr-primary-blue, #0d6efd);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Typography and Links */
.news-title {
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: var(--clr-accent, #ff6b6b) !important;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    position: relative;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(5px);
}









/* Trend vs Response Section */
.trend-response-section {
    background-color: var(--clr-bg-light, #f8f9fa);
}

.trend-row {
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trend-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

/* Left Card (Industry News) */
.trend-card {
    background-color: #ffffff;
    border-left: 5px solid var(--clr-primary-blue, #0d6efd);
}

/* Right Card (Daiwa's Response) */
.response-card {
    background-color: var(--clr-navy, #0b1c3a); /* Dark Navy Blue */
    border-left: 5px solid var(--clr-accent, #ff6b6b);
}

/* Center Connector Icon (Desktop Only) */
.trend-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: var(--clr-accent, #ff6b6b);
    color: #ffffff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 0 6px #ffffff;
    font-size: 1.1rem;
}

/* Flip arrow direction for the reversed row */
.trend-connector.reverse {
    background: var(--clr-primary-blue, #0d6efd);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .trend-card {
        border-left: none;
        border-top: 5px solid var(--clr-primary-blue, #0d6efd);
    }
    .response-card {
        border-left: none;
        border-bottom: 5px solid var(--clr-accent, #ff6b6b);
    }
}









/* =========================================
   PREMIUM PRODUCT INTRO & SPECS
   ========================================= */

.mb-6 { margin-bottom: 5rem; }

/* Typography */
.catalog-eyebrow {
    color: var(--veflox-blue, #0056b3);
    font-size: 0.85rem;
}

.accent-bar {
    width: 60px;
    height: 4px;
    background-color: var(--veflox-blue, #0056b3);
    border-radius: 2px;
}

/* Product Pedestal Showcase */
.product-pedestal {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pedestal-backdrop {
    position: absolute;
    top: 10%;
    right: 0;
    width: 80%;
    height: 90%;
    background-color: #f4f5f7; /* Very subtle industrial grey */
    border-radius: 16px;
    z-index: 0;
    border: 1px solid rgba(0,0,0,0.04);
}

.pedestal-img {
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.12));
    transition: transform 0.5s ease;
}

.product-pedestal:hover .pedestal-img {
    transform: translateY(-8px) scale(1.03);
}

.pedestal-tag {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    z-index: 2;
    border-left: 3px solid var(--veflox-blue, #0056b3);
}

/* Engineering Data Grid (Replaces Table) */
.specs-data-grid {
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: flex;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background-color: #f9fafb; /* Extremely faint hover state */
    padding-left: 10px; /* Slight indent on hover for interactivity */
}

.spec-label {
    flex: 0 0 35%; /* Takes up 35% of the row */
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding-left: 1.25rem;
}

/* Sharp primary color indicator line on the left */
.spec-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    background-color: var(--veflox-blue, #0056b3);
    border-radius: 2px;
}

.spec-value {
    flex: 1;
    color: #4b5563; /* Subtle text color for readability */
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .spec-row {
        flex-direction: column;
        padding-left: 0 !important;
    }
    .spec-label {
        flex: none;
        margin-bottom: 8px;
    }
    .spec-value {
        padding-left: 1.25rem; /* Aligns with the label */
    }
}





/* =========================================
   PRECISION GRID (Product Sub-Types)
   ========================================= */

/* The Card Link Wrapper */
.precision-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

/* The Image Pedestal */
.precision-frame {
    position: relative;
    height: 240px;
    background-color: #f8f9fa; /* Extremely soft grey */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* 1px border that is invisible until hover */
    border: 1px solid transparent; 
}

/* The Crosshair Markers (+) */
.frame-corner {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
    color: #cbd5e1; /* Faint grey crosshairs */
    transition: color 0.4s ease;
    z-index: 2;
}

.top-left { top: 15px; left: 15px; }
.top-right { top: 15px; right: 15px; }
.bottom-left { bottom: 15px; left: 15px; }
.bottom-right { bottom: 15px; right: 15px; }

/* The Image inside the frame */
.precision-img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.06));
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1;
}

/* Metadata Area */
.precision-meta {
    padding-top: 5px;
}

.action-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    transition: all 0.4s ease;
}

.action-arrow i {
    transition: transform 0.4s ease;
}

/* -------------------------------------
   HOVER STATES (The Magic)
---------------------------------------- */

/* 1. Frame turns white, gains subtle shadow and primary color border */
.precision-card:hover .precision-frame {
    background-color: #ffffff;
    border-color: rgba(0, 86, 179, 0.15); /* Soft primary border */
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

/* 2. Crosshairs light up in primary blue */
.precision-card:hover .frame-corner {
    color: var(--veflox-blue, #0056b3);
}

/* 3. Image zooms slightly */
.precision-card:hover .precision-img {
    transform: scale(1.1) translateY(-5px);
}

/* 4. Arrow button turns blue and icon slides right */
.precision-card:hover .action-arrow {
    background-color: var(--veflox-blue, #0056b3);
    color: #ffffff;
}

.precision-card:hover .action-arrow i {
    transform: translateX(3px);
}













/* =========================================
   APPLICATIONS & CORE FEATURES
   ========================================= */

/* 1. Feature List Blocks */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px); /* Subtle slide to the right */
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 86, 179, 0.05); /* Extremely soft primary background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
}

/* Icon inverts color on hover */
.feature-item:hover .feature-icon-box {
    background-color: var(--veflox-blue, #0056b3);
    border-color: var(--veflox-blue, #0056b3);
}

.feature-item:hover .feature-icon-box i {
    color: #ffffff !important;
}

/* 2. Industry Matrix Cards (Fixed Size) */
.industry-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px; /* Tighter, more compact padding */
    background-color: #f8f9fa; 
    border: 1px solid #e5e7eb;
    border-radius: 8px; /* Slightly sharper corners */
    font-weight: 600;
    font-size: 0.95rem; /* Sleeker typography */
    color: #1a1a1a;
    transition: all 0.3s ease;
    cursor: default;
    height: fit-content; /* THIS FIXES THE STRETCHING BUG */
    width: 100%;
}

.industry-card i {
    color: var(--veflox-blue, #0056b3);
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.industry-card:hover {
    background-color: #ffffff;
    border-color: rgba(0, 86, 179, 0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transform: translateY(-3px); 
}

.industry-card:hover i {
    opacity: 1;
}








/* CTA Contact Section Base */
.cta-contact-section {
    background-color: var(--clr-navy, #0b1c3a); /* Deep corporate blue */
    background-image: radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent 40%);
}

.text-accent {
    color: var(--clr-accent, #ff6b6b) !important;
}

/* Contact Cards */
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
    z-index: 1;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Subtle Glow Effect on Hover */
.card-bg-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--clr-primary-blue, #0d6efd);
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.contact-card:hover .card-bg-glow {
    opacity: 0.5;
}

/* Specific Factory Card Tweak */
.factory-card .card-bg-glow {
    background: var(--clr-accent, #ff6b6b);
}

/* Typography Enhancements */
.hover-accent:hover {
    color: var(--clr-accent, #ff6b6b) !important;
}

/* List Icon Alignment */
.contact-details i {
    width: 25px;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .contact-card {
        padding: 2rem !important;
    }
}




/* --- Daiwa Brand Colors --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.1);
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Color Utilities */
.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.bg-daiwa-blue { background-color: var(--daiwa-blue) !important; }
.bg-daiwa-blue-light { background-color: var(--daiwa-blue-light) !important; }

.text-daiwa-red { color: var(--daiwa-red) !important; }
.bg-daiwa-red { background-color: var(--daiwa-red) !important; }
.text-daiwa-red-light { color: var(--daiwa-red-light) !important; }
.bg-daiwa-red-light { background-color: var(--daiwa-red-light) !important; }

.section-line {
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 2px; }

/* --- 1. About Group Styling --- */
.about-image-grid {
    height: 500px;
}
.img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    z-index: 2;
}
.img-float {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    z-index: 3;
}
.shape-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

/* --- 2. Vision & Mission Styling --- */
.vm-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}
.icon-box {
    width: 70px;
    height: 70px;
}

/* --- 3. Management & Team Styling --- */
.team-card {
    transition: all 0.3s ease;
    border-color: rgba(7, 85, 166, 0.1) !important;
}
.team-card:hover {
    background-color: #fff !important;
    box-shadow: 0 15px 30px rgba(7, 85, 166, 0.08);
    transform: translateY(-5px);
}
.team-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- 4. CSR & Sustainability Styling --- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}
.rounded-tr-4 {
    border-top-right-radius: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .about-image-grid {
        height: 400px;
        margin-top: 2rem;
    }
    .vision-mission-section .bg-daiwa-blue {
        height: 150px !important; /* Shorter blue background on mobile so it doesn't swallow both stacked cards */
    }
}




/* =========================================
   CONTACT PAGE - ACTION CARDS
   ========================================= */

.contact-action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-action-card:hover {
    border-color: var(--veflox-blue, #0056b3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.icon-wrap {
    width: 55px;
    height: 55px;
    background: rgba(0, 86, 179, 0.05);
    color: var(--veflox-blue, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-action-card:hover .icon-wrap {
    background: var(--veflox-blue, #0056b3);
    color: #ffffff;
}




















/* =========================================
   CERTIFICATIONS SECTION
   ========================================= */

.cert-card {
    transition: all 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 86, 179, 0.2) !important; /* Subtle blue border on hover */
}

.cert-img-wrap {
    overflow: hidden;
    border-bottom: 1px solid #e9ecef; /* Separates the image from the text */
}

/* Base image styling */
.cert-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The dark overlay that appears on hover */
.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7); /* Deep navy tint */
    backdrop-filter: blur(2px); /* Slight blur for modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Initial state of the button (slightly lower) */
.cert-overlay .btn {
    transform: translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* On Hover Triggers */
.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-card:hover .cert-img {
    transform: scale(1.05); /* Gentle zoom on the certificate image */
}

.cert-card:hover .cert-overlay .btn {
    transform: translateY(0); /* Button slides up into place */
}


























/* =========================================
   FLUID PRODUCT GALLERY
   ========================================= */

/* Auto-adjusting grid frame based on screen real estate */
.gallery-fluid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
}

/* Image Core Container */
.gallery-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    background-color: #f4f5f6;
    aspect-ratio: 4/3; /* Enforces a sharp, symmetrical grid structure */
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimalist Dark Overlay on Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.gallery-overlay i {
    color: #ffffff;
    font-size: 2.2rem;
    transform: scale(0.6);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Triggers */
.gallery-img-wrapper:hover img {
    transform: scale(1.06);
}

.gallery-img-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-img-wrapper:hover .gallery-overlay i {
    transform: scale(1);
}

/* =========================================
   LIGHTBOX MODAL
   ========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 82vh;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    animation: zoomInSmooth 0.25s ease-out forwards;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #cbd5e1;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 300;
    transition: color 0.2s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #3b82f6;
}

@keyframes zoomInSmooth {
    from {transform: scale(0.97); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}





















.nav-btn {
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px; /* Keeps them matching your other design elements */
}

/* Adds a nice hover lift to both buttons */
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile View Spacing */
@media (max-width: 991px) {
    .nav-item {
        margin-top: 10px;
    }
    .nav-btn {
        width: 100%; /* Makes buttons full-width in mobile menu */
    }
}
















/* --- Dual Pillar Section Styling --- */
.about-dual-pillar {
    background-color: #ffffff;
}

/* Base Brand Colors (In case they aren't declared globally yet) */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.15);
    --daiwa-red: #dc3545;
    --daiwa-red-light: rgba(220, 53, 69, 0.15);
}

.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.bg-daiwa-blue { background-color: var(--daiwa-blue) !important; }
.text-daiwa-red { color: var(--daiwa-red) !important; }
.bg-daiwa-red { background-color: var(--daiwa-red) !important; }
.text-daiwa-blue-light { color: var(--daiwa-blue-light) !important; }
.text-daiwa-red-light { color: var(--daiwa-red-light) !important; }

/* Decorative Background SVG Patterns (CSS generated) */
.bg-pattern {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.4;
    z-index: 0;
    /* Creates a subtle dot matrix effect */
    background-image: radial-gradient(#0755a6 1px, transparent 1px);
    background-size: 20px 20px;
}
.pattern-left {
    top: 50px;
    left: -50px;
    border-radius: 50%;
    mask-image: radial-gradient(black, transparent 70%);
    -webkit-mask-image: radial-gradient(black, transparent 70%);
}
.pattern-right {
    bottom: -50px;
    right: -50px;
    background-image: radial-gradient(#dc3545 1px, transparent 1px);
    border-radius: 50%;
    mask-image: radial-gradient(black, transparent 70%);
    -webkit-mask-image: radial-gradient(black, transparent 70%);
}

/* Pillar Cards */
.pillar-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Large Background Floating Icons */
.floating-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-15deg);
    transition: transform 0.6s ease;
}
.pillar-card:hover .floating-icon {
    transform: rotate(0deg) scale(1.1);
}

/* Small Utility Icons */
.icon-box-small {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

.icon-sm {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Typography Enhancements */
.tracking-widest { letter-spacing: 1.5px; }
.line-height-lg { line-height: 1.8; }
.font-italic { font-style: italic; }
.fs-7 { font-size: 0.9rem; }
.fs-8 { font-size: 0.8rem; }

/* --- Dual Pillar: Highlight the current company (Daiwa) --- */
:root {
    --daiwa-orange: #f26b21;
    --daiwa-orange-light: rgba(242, 107, 33, 0.15);
    --daiwa-navy: #0f2a66;
    --daiwa-cream: #fff8f1;
    --daiwa-blue-tint: #eaf3fc;
}

.text-daiwa-orange { color: var(--daiwa-orange) !important; }
.bg-daiwa-orange { background-color: var(--daiwa-orange) !important; }
.text-daiwa-orange-light { color: var(--daiwa-orange-light) !important; }
.bg-daiwa-orange-light { background-color: var(--daiwa-orange-light) !important; }
.border-daiwa-orange-light { border-color: rgba(242, 107, 33, 0.35) !important; }
.text-daiwa-navy { color: var(--daiwa-navy) !important; }

.about-dual-pillar .pattern-right {
    background-image: radial-gradient(#f26b21 1px, transparent 1px);
}

.about-dual-pillar .pillar-card {
    overflow: hidden;
}

/* Left card: legacy company (muted, secondary) */
.about-dual-pillar .pillar-card--legacy {
    background-color: var(--daiwa-blue-tint);
    border: 1px solid rgba(7, 85, 166, 0.25);
    box-shadow: 0 6px 20px rgba(7, 85, 166, 0.08);
}
.about-dual-pillar .pillar-card--legacy h3 {
    font-size: 1.35rem;
}
.about-dual-pillar .pillar-card--legacy p.line-height-lg {
    font-size: 0.95rem;
}
.about-dual-pillar .pillar-card--legacy .border-top {
    border-top-color: rgba(7, 85, 166, 0.2) !important;
}

/* Right card: current company (bigger, warm background, orange border) */
.about-dual-pillar .pillar-card--current {
    background-color: var(--daiwa-cream);
    border: 2px solid var(--daiwa-orange);
    box-shadow: 0 20px 50px rgba(242, 107, 33, 0.18);
}
.about-dual-pillar .pillar-card--current:hover {
    box-shadow: 0 26px 60px rgba(242, 107, 33, 0.26);
}
.about-dual-pillar .pillar-card--current h3 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    line-height: 1.25;
}
.about-dual-pillar .pillar-card--current p.line-height-lg {
    font-size: 1.02rem;
}
.about-dual-pillar .pillar-card--current .border-top {
    border-top-color: rgba(242, 107, 33, 0.3) !important;
}

/* Arrow between the two cards */
.about-dual-pillar .pillar-arrow {
    color: var(--daiwa-blue);
    font-size: 1.9rem;
    line-height: 1;
    z-index: 2;
    position: relative;
}
@media (max-width: 991.98px) {
    .about-dual-pillar .pillar-arrow i {
        display: inline-block;
        transform: rotate(90deg);
    }
}

/* Highlights row (icon circles with dividers) */
.about-dual-pillar .icon-circle-orange {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--daiwa-orange);
    color: #ffffff;
    font-size: 1.3rem;
}
@media (min-width: 768px) {
    .about-dual-pillar .pillar-highlight + .pillar-highlight {
        border-left: 1px solid rgba(242, 107, 33, 0.3);
    }
}
























/* --- Director List Section Styling --- */
.leadership-list-section {
    background-color: #ffffff;
}

/* Card Styling */
.director-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 1px solid rgba(0,0,0,0.03) !important;
    border-right: 1px solid rgba(0,0,0,0.03) !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
}

.director-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

/* Square Avatar Box */
.avatar-box {
    width: 65px;
    height: 65px;
    letter-spacing: 1px;
}

/* Custom Buttons for Brand Colors */
.btn-outline-daiwa-blue {
    color: var(--daiwa-blue, #0755a6);
    border-color: var(--daiwa-blue, #0755a6);
}
.btn-outline-daiwa-blue:hover, 
.btn-outline-daiwa-blue:focus, 
.toggle-bio[aria-expanded="true"].btn-outline-daiwa-blue {
    color: #fff;
    background-color: var(--daiwa-blue, #0755a6);
    border-color: var(--daiwa-blue, #0755a6);
}

.btn-outline-daiwa-red {
    color: var(--daiwa-red, #dc3545);
    border-color: var(--daiwa-red, #dc3545);
}
.btn-outline-daiwa-red:hover, 
.btn-outline-daiwa-red:focus,
.toggle-bio[aria-expanded="true"].btn-outline-daiwa-red {
    color: #fff;
    background-color: var(--daiwa-red, #dc3545);
    border-color: var(--daiwa-red, #dc3545);
}

/* Animate Arrow on Toggle */
.toggle-bio i {
    transition: transform 0.3s ease;
}
.toggle-bio[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Desktop-only Border Separator */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6 !important;
    }
}
@media (max-width: 991px) {
    .border-end-lg {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}


















/* --- Vision & Mission Section Styling --- */
.vm-modern-section {
    background-color: #ffffff;
}

/* Card Styling & Hover Effects */
.vm-card-modern {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden; /* Keeps the massive watermark inside the card */
}

.vm-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

/* Accent Borders */
.border-top-4 {
    border-top-width: 4px !important;
}
.border-top-daiwa-blue {
    border-top-color: var(--daiwa-blue, #0755a6) !important;
}
.border-top-daiwa-red {
    border-top-color: var(--daiwa-red, #dc3545) !important;
}

/* Icon Circle */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* The Watermark Typography Effect */
.vm-watermark {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.03; /* Extremely faint so it doesn't distract from reading */
    line-height: 1;
    pointer-events: none; /* Stops it from blocking text selection */
    text-transform: uppercase;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Watermark animation on hover */
.vm-card-modern:hover .vm-watermark {
    transform: scale(1.05) translate(-10px, -10px);
    opacity: 0.05;
}

/* Utilities */
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.text-justify { text-align: justify; }

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .vm-watermark {
        font-size: 6rem;
    }
}
@media (max-width: 767px) {
    .vm-watermark {
        font-size: 4.5rem;
        bottom: 0;
        right: 0;
    }
}



















/* --- CSR Section Styling --- */
.csr-modern-section {
    background-color: #ffffff;
}

/* Decorative Background Element */
.csr-bg-accent {
    width: 600px;
    height: 600px;
    transform: translate(30%, -30%);
    filter: blur(100px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

/* CSR Impact Cards */
.csr-impact-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

.csr-impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--daiwa-blue-light, rgba(7, 85, 166, 0.15)) !important;
}

/* CSR Icon Boxes */
.csr-icon-box {
    width: 65px;
    height: 65px;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.csr-impact-card:hover .csr-icon-box {
    transform: scale(1.1);
}

/* Specific Hover States for Icons (Optional: makes icons flip to brand colors on hover) */
.csr-impact-card:hover .text-success { background-color: #198754 !important; color: #fff !important; }
.csr-impact-card:hover .text-daiwa-blue { background-color: var(--daiwa-blue, #0755a6) !important; color: #fff !important; }
.csr-impact-card:hover .text-daiwa-red { background-color: var(--daiwa-red, #dc3545) !important; color: #fff !important; }
.csr-impact-card:hover .text-warning { background-color: #ffc107 !important; color: #000 !important; }

/* Utilities */
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.fs-7 { font-size: 0.95rem; }

/* Mobile Adjustments */
@media (max-width: 767px) {
    .csr-impact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .csr-icon-box {
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
}


















/* --- Sustainability Section Styling --- */
.sustainability-section {
    background-color: #ffffff;
}

/* Diagonal Line Pattern for the Left Panel */
.sustainability-pattern {
    
    z-index: 0;
}

/* Glowing Icon Styling */
.sustain-icon-glow {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    position: relative;
}

/* Creates a soft green glow behind the icon */
.sustain-icon-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(25, 135, 84, 0.2); /* Bootstrap Success Green with transparency */
    border-radius: 50%;
    filter: blur(15px);
    z-index: -1;
    animation: pulse-glow 3s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Tag Hover Interactions */
.hover-tag {
    cursor: default;
}
.hover-tag:hover {
    background-color: #ffffff !important;
    transform: translateY(-3px);
    border-color: var(--daiwa-blue, #0755a6) !important;
}

/* Utilities */
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.text-justify { text-align: justify; }

/* Desktop Padding Helper */
@media (min-width: 1200px) {
    .p-xl-6 {
        padding: 4rem !important;
    }
}

















/* --- Brand Colors (Ensure these are in your root) --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.1);
    --daiwa-red: #dc3545;
    --daiwa-red-light: rgba(220, 53, 69, 0.1);
}

.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.bg-daiwa-blue { background-color: var(--daiwa-blue) !important; }
.text-daiwa-red { color: var(--daiwa-red) !important; }
.bg-daiwa-red { background-color: var(--daiwa-red) !important; }
.bg-daiwa-blue-light { background-color: var(--daiwa-blue-light) !important; }
.bg-daiwa-red-light { background-color: var(--daiwa-red-light) !important; }
.text-daiwa-red-light { color: #d57d7f !important; }

/* Utilities */
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.transition-all { transition: all 0.3s ease; }
.bg-gradient-dark { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }

/* --- Testing Parameters Cards --- */
.testing-card {
    cursor: default;
}
.testing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}
.card-accent-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: height 0.3s ease;
}
.testing-card:hover .card-accent-top {
    height: 8px;
}
.icon-hexagon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.4s ease;
}
.testing-card:hover .icon-hexagon {
    transform: rotate(10deg) scale(1.1);
}

/* --- Metallurgy Tabs & Badges (Updated Modern Reveal) --- */

/* 1. Strip away any default Bootstrap bottom borders on the container */
.custom-grade-tabs {
    border-bottom: none !important; 
}

/* 2. Base Button Styling */
.custom-grade-tabs .nav-link {
    position: relative;
    overflow: hidden; /* Keeps the animation inside the pill */
    z-index: 1;
    color: var(--daiwa-blue, #0755a6);
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(7, 85, 166, 0.2);
    background-color: transparent !important; /* Force transparent base */
    transition: color 0.4s ease, border-color 0.4s ease;
    box-shadow: none !important; /* Kills any lingering bottom shadows */
}

/* 3. The Animated Reveal Element (Hidden by default) */
.custom-grade-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--daiwa-blue, #0755a6);
    z-index: -1;
    border-radius: 50rem;
    
    /* Starts scaled down in the center */
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 4. Hover State Trigger */
.custom-grade-tabs .nav-link:hover {
    color: #ffffff !important;
    border-color: var(--daiwa-blue, #0755a6);
}

/* Sweeps the background outward on hover */
.custom-grade-tabs .nav-link:hover::before {
    transform: scaleX(1);
}

/* 5. Active State */
.custom-grade-tabs .nav-link.active {
    color: #ffffff !important;
    border-color: var(--daiwa-blue, #0755a6);
}

/* Keeps the background fully expanded when clicked */
.custom-grade-tabs .nav-link.active::before {
    transform: scaleX(1);
}

/* Responsive adjustment */
@media (max-width: 767px) {
    .custom-grade-tabs .nav-link {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
}
.grade-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.grade-badge:hover {
    background-color: var(--daiwa-red);
    color: #fff;
    border-color: var(--daiwa-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}



















/* --- Brand Colors (Ensure these are in your root if not already) --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.1);
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Base Utilities */
.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.bg-daiwa-blue { background-color: var(--daiwa-blue) !important; }
.text-daiwa-red { color: var(--daiwa-red) !important; }
.bg-daiwa-red { background-color: var(--daiwa-red) !important; }
.text-daiwa-red-light { color: var(--daiwa-red-light) !important; }
.bg-daiwa-blue-light { background-color: var(--daiwa-blue-light) !important; }
.bg-daiwa-red-light { background-color: rgba(220, 53, 69, 0.1) !important; }

.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.transition-all { transition: all 0.3s ease; }

/* Blueprint Background Pattern (Hero Section) */
.blueprint-bg {
    background-image: 
        linear-gradient(rgba(7, 85, 166, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 85, 166, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

/* --- Tech Spec Matrix Cards --- */
.spec-card {
    cursor: default;
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.spec-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.spec-card:hover .spec-icon {
    transform: rotateY(180deg);
}

/* --- Custom Banner (Special Projects) --- */
.banner-bg-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--daiwa-red);
    filter: blur(100px);
    opacity: 0.4;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 0;
}

.custom-banner:hover .banner-bg-glow {
    opacity: 0.6;
    transform: scale(1.2);
}

/* Standards Hover Effect */
.standards-card .badge {
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 0.85rem;
    padding: 8px 12px;
}
.standards-card .badge:hover {
    background-color: var(--daiwa-blue) !important;
    color: #fff !important;
    border-color: var(--daiwa-blue) !important;
    transform: translateY(-2px);
}






















/* --- Brand Colors (If not declared in root yet) --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.1);
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Utilities */
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.transition-all { transition: all 0.3s ease; }
.backdrop-blur { backdrop-filter: blur(10px); }

/* Custom Hover Class */
.hover-red-text:hover {
    color: var(--daiwa-red, #dc3545) !important;
}

/* --- Hero Technical Grid Background --- */
.tech-grid-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Small Utility Icons */
.icon-box-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* --- Dashboard Metric Cards --- */
.dashboard-card {
    cursor: default;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-left: 1px solid rgba(0,0,0,0.03);
    border-right: 1px solid rgba(0,0,0,0.03);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
}

.dashboard-icon {
    transition: transform 0.3s ease;
}

.dashboard-card:hover .dashboard-icon {
    transform: scale(1.15);
}

/* --- Custom Check List (Specifications) --- */
.custom-check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 500;
}
.custom-check-list li i {
    position: absolute;
    left: 0;
    top: 4px;
}

/* Responsive Borders */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6 !important;
    }
}
@media (max-width: 991px) {
    .border-end-lg {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-image-glow {
        margin-top: 2rem;
    }
}

















/* --- Brand Colors (Ensure these are in your :root) --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Utilities */
.bg-daiwa-blue { background-color: var(--daiwa-blue) !important; }
.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.text-daiwa-red { color: var(--daiwa-red) !important; }
.text-daiwa-red-light { color: var(--daiwa-red-light) !important; }
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }

/* 1. Hero Background & Grid */
.instru-hero-v2 {
    /* Subtle gradient to give the blue depth */
    background: linear-gradient(135deg, #0755a6 0%, #053b75 100%);
}

.tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a blueprint grid using safe CSS */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
    z-index: 0;
}

/* 2. Premium Badge & Glowing Dot */
.badge-premium {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.dot-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--daiwa-red-light);
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    box-shadow: 0 0 10px var(--daiwa-red-light);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* 3. Small Highlight Icons */
.icon-circle-sm {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* 4. Frosted Glass Image Showcase & Floating Card */
.image-showcase-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-glass-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Mobile Fixes for Floating Card */
@media (max-width: 991px) {
    .floating-glass-card {
        left: 15px;
        bottom: 15px;
        right: 15px;
        justify-content: center;
    }
}

/* --- Bento-Box Grid Styling --- */
.instru-specs-v2 {
    background-color: #f8f9fa; /* Bootstrap bg-light */
}

.bento-card {
    position: relative;
    cursor: default;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Base Icon Circle */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Accents */
.border-top-4 {
    border-top-width: 4px !important;
}
.border-daiwa-blue {
    border-top-color: var(--daiwa-blue, #0755a6) !important;
}
.border-daiwa-red {
    border-top-color: var(--daiwa-red, #dc3545) !important;
}

/* Responsive Borders for Compliance List */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
        padding-left: 1.5rem;
    }
}
@media (max-width: 767px) {
    .border-start-md {
        border-left: none !important;
        border-top: 1px solid #dee2e6 !important;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* --- 3. Surface Finishes Grid Styling --- */

.finish-card {
    cursor: default;
}

.finish-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(7, 85, 166, 0.1) !important; /* var(--daiwa-blue-light) */
}

/* Floating Icon Box */
.finish-icon-box {
    width: 75px;
    height: 75px;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

/* Hover Dynamics for Blue Icons */
.finish-card:hover .text-daiwa-blue {
    background-color: var(--daiwa-blue, #0755a6) !important;
    color: #ffffff !important;
    transform: scale(1.15) rotate(5deg);
}

/* Hover Dynamics for Red Icons */
.finish-card:hover .text-daiwa-red {
    background-color: var(--daiwa-red, #dc3545) !important;
    color: #ffffff !important;
    transform: scale(1.15) rotate(-5deg);
}














/* --- Brand Colors (if not already in root) --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Utilities */
.backdrop-blur { backdrop-filter: blur(10px); }
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }

/* --- 1. Bright Annealed Hero Styling --- */
.ba-hero {
    /* Deep blue gradient */
    background: linear-gradient(135deg, var(--daiwa-blue, #0755a6) 0%, #042d5e 100%);
}

/* Ambient glowing sphere */
.ba-glow-sphere {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow-sphere 6s infinite alternate ease-in-out;
}

@keyframes pulse-glow-sphere {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Image Wrapper & Shine Animation */
.ba-image-wrapper {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shine-overlay {
    background: linear-gradient(105deg, 
        transparent 20%, 
        rgba(255, 255, 255, 0.4) 25%, 
        transparent 30%);
    background-size: 200% 200%;
    animation: glass-shine 4s infinite linear;
}

@keyframes glass-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating White Metric Card */
.ba-floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    animation: float-ba 4s ease-in-out infinite;
}

@keyframes float-ba {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Mobile Fixes for Floating Card */
@media (max-width: 991px) {
    .ba-floating-card {
        left: 15px;
        bottom: 15px;
        right: 15px;
        justify-content: center;
    }
}

/* --- 2. Data Matrix Specs Styling --- */
.ba-specs-section {
    background-color: #f8f9fa;
}

.data-matrix-card {
    cursor: default;
}

.data-matrix-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

/* Icon Box Animation */
.matrix-icon-box {
    width: 65px;
    height: 65px;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.data-matrix-card:hover .matrix-icon-box.text-daiwa-blue {
    background-color: var(--daiwa-blue, #0755a6) !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

.data-matrix-card:hover .matrix-icon-box.text-daiwa-red {
    background-color: var(--daiwa-red, #dc3545) !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Custom Tick List */
.custom-tick-list li {
    padding-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

/* Compliance Card Hover */
.compliance-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

/* Accents */
.border-top-4 {
    border-top-width: 4px !important;
}
.border-daiwa-blue {
    border-top-color: var(--daiwa-blue, #0755a6) !important;
}
.border-daiwa-red {
    border-top-color: var(--daiwa-red, #dc3545) !important;
}

/* Responsive Borders */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
        padding-left: 1.5rem;
    }
}
@media (max-width: 767px) {
    .border-start-md {
        border-left: none !important;
        border-top: 1px solid #dee2e6 !important;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* --- 3. Roughness (RA) Cards Styling --- */
.ra-card {
    cursor: default;
    /* Subtle inner shadow for depth */
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

.ra-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--daiwa-blue-light) !important;
}

/* Metric Animation */
.ra-metric {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ra-card:hover .ra-metric {
    transform: scale(1.15);
    color: var(--daiwa-red) !important;
}

.ra-card:hover .ra-metric .text-daiwa-blue {
    color: var(--daiwa-red) !important;
}

/* --- 4. Custom Projects CTA Styling --- */
.cta-premium-card {
    background-color: var(--daiwa-blue);
    /* Safe CSS-only background */
    background-image: radial-gradient(circle at bottom left, rgba(220, 53, 69, 0.3), transparent 60%);
}

.cta-bg-gradient {
    /* Adds a subtle geometric grid over the gradient */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.cta-btn-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.cta-btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2) !important;
    color: var(--daiwa-red) !important;
}

/* Utilities */
.fs-9 { font-size: 0.7rem; }











/* --- Brand Colors (Ensure these are in your :root) --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Utilities */
.backdrop-blur { backdrop-filter: blur(10px); }
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }

/* --- 1. Heat Exchanger Hero Styling --- */
.he-hero {
    background-color: var(--daiwa-blue);
}

/* Thermal glow effect mixing blue and a subtle warm tone */
.thermal-glow-bg {
    background: radial-gradient(circle at bottom right, rgba(220, 53, 69, 0.25) 0%, rgba(7, 85, 166, 0) 60%),
                linear-gradient(135deg, #0755a6 0%, #032040 100%);
    z-index: 0;
}

/* Small UI Icons */
.icon-circle-sm {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Image Wrapper */
.he-image-wrapper {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Floating White Metric Card */
.he-floating-card {
    position: absolute;
    top: -20px;
    right: -20px;
    animation: float-he 4.5s ease-in-out infinite;
}

@keyframes float-he {
    0% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
    100% { transform: translateY(0px); }
}

/* Mobile Fixes for Floating Card */
@media (max-width: 991px) {
    .he-floating-card {
        top: -15px;
        right: 15px;
        left: 15px;
        justify-content: center;
    }
}

/* --- 2. Heat Exchanger Specs & Process Styling --- */

/* Dimension Cards */
.dim-card {
    cursor: default;
}
.dim-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

.dim-icon {
    width: 65px;
    height: 65px;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.dim-card:hover .dim-icon.text-daiwa-blue {
    background-color: var(--daiwa-blue, #0755a6) !important;
    color: #ffffff !important;
    transform: scale(1.15);
}

.dim-card:hover .dim-icon.text-daiwa-red {
    background-color: var(--daiwa-red, #dc3545) !important;
    color: #ffffff !important;
    transform: scale(1.15);
}

/* Process Cards */
.process-card {
    cursor: default;
}
.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--daiwa-blue-light) !important;
}

.fw-black {
    font-weight: 900;
}

/* Custom Tick List */
.custom-tick-list li {
    padding-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

/* Utilities */
.fs-9 { font-size: 0.75rem; }

/* --- 3. Standards Compliance Styling --- */

.compliance-card {
    cursor: default;
}

.compliance-card:hover {
    background-color: #ffffff !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

/* Accent Bar at the top of the card */
.compliance-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.3s ease;
}

.compliance-card:hover .compliance-accent {
    height: 8px;
}

/* Spec List Styling */
.spec-list li {
    padding-bottom: 0.75rem;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.spec-list li i {
    margin-top: 4px;
    margin-right: 12px;
}

.spec-list li strong {
    color: #212529;
    margin-right: 6px;
}

/* Badge Enhancements */
.compliance-card .badge {
    font-size: 0.8rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.compliance-card:hover .badge {
    background-color: var(--daiwa-blue, #0755a6) !important;
    color: #ffffff !important;
    border-color: var(--daiwa-blue, #0755a6) !important;
    transform: translateY(-2px);
}











/* --- Brand Colors --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.1);
    --daiwa-red: #dc3545;
}

/* Utilities */
.bg-daiwa-blue-light { background-color: var(--daiwa-blue-light) !important; }
.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.text-daiwa-red { color: var(--daiwa-red) !important; }
.transition-all { transition: all 0.3s ease; }
.fs-8 { font-size: 0.85rem; }
.tracking-widest { letter-spacing: 1.5px; }

/* --- Custom Certificate Nav Tabs (App-Style Toggle) --- */

/* 1. Kill any global framework underlines or bottom borders */
.custom-cert-tabs {
    border-bottom: none !important; 
}

/* 2. Base Tab Styling */
.custom-cert-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: transparent !important; /* Force transparent base */
    border: none !important;                  /* Kill inherited borders */
    text-decoration: none !important;         /* Kill inherited underlines */
    box-shadow: none !important;              /* Kill artifact shadows */
    transition: color 0.4s ease;
}

/* 3. The Animated Reveal Element (Hidden by default) */
.custom-cert-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50rem;
    z-index: -1;
    
    /* Starts slightly scaled down */
    transform: scale(0.8); 
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, background-color 0.4s ease;
}

/* 4. Hover State Trigger */
.custom-cert-tabs .nav-link:hover {
    color: var(--daiwa-blue, #0755a6) !important;
}

/* Soft blue fill on hover */
.custom-cert-tabs .nav-link:hover::before {
    background-color: var(--daiwa-blue-light, rgba(7, 85, 166, 0.1));
    transform: scale(1);
    opacity: 1;
}

/* 5. Active State Trigger */
.custom-cert-tabs .nav-link.active {
    color: #ffffff !important;
}

/* Solid blue fill + shadow when clicked */
.custom-cert-tabs .nav-link.active::before {
    background-color: var(--daiwa-blue, #0755a6);
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(7, 85, 166, 0.3);
}

/* 6. Responsive Adjustments */
@media (max-width: 767px) {
    .custom-cert-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 1rem !important;
    }
    .custom-cert-tabs .nav-link {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
        /* the header nav's .nav-link rules lay this out as flex space-between on phones */
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* --- Certificate Cards (Active) --- */
.cert-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* We don't want hover effects on the pending cards */
.cert-card:not(.cert-pending):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--daiwa-blue-light) !important;
}

.cert-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.cert-card:not(.cert-pending):hover .cert-icon {
    transform: scale(1.1);
}

/* View Button Hover State */
.btn-outline-daiwa-blue {
    color: var(--daiwa-blue);
    border-color: var(--daiwa-blue);
}
.btn-outline-daiwa-blue:hover {
    background-color: var(--daiwa-blue);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(7, 85, 166, 0.2);
}

/* --- Certificate Cards (Pending/In Process) --- */
.cert-pending {
    backdrop-filter: blur(5px);
    cursor: not-allowed;
}
.cert-pending h5, .cert-pending p {
    opacity: 0.7;
}

















/* --- Brand Colors --- */
:root {
    --daiwa-blue: #0755a6;
    --daiwa-blue-light: rgba(7, 85, 166, 0.1);
    --daiwa-red: #dc3545;
    --daiwa-red-light: #d57d7f;
}

/* Utilities */
.bg-daiwa-blue { background-color: var(--daiwa-blue) !important; }
.text-daiwa-blue { color: var(--daiwa-blue) !important; }
.text-daiwa-red { color: var(--daiwa-red) !important; }
.text-daiwa-red-light { color: var(--daiwa-red-light) !important; }
.bg-daiwa-blue-light { background-color: var(--daiwa-blue-light) !important; }
.bg-daiwa-red-light { background-color: rgba(220, 53, 69, 0.1) !important; }
.backdrop-blur { backdrop-filter: blur(10px); }
.line-height-lg { line-height: 1.8; }
.tracking-widest { letter-spacing: 1.5px; }
.transition-all { transition: all 0.3s ease; }

/* --- Address Panel Pattern --- */
.address-bg-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* --- Contact Cards Grid --- */
.contact-card {
    text-decoration: none !important;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1) !important;
}

/* Icon Hover Dynamics */
.contact-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15);
}

.contact-card:hover .contact-icon.text-daiwa-blue {
    background-color: var(--daiwa-blue, #0755a6) !important;
    color: #ffffff !important;
}

.contact-card:hover .contact-icon.text-daiwa-red {
    background-color: var(--daiwa-red, #dc3545) !important;
    color: #ffffff !important;
}

/* Tabbed department card: icon | title + text | phone & email, one department per tab */
.contact-card--tab {
    display: flex;
    align-items: center;
    gap: 28px;
    text-align: left;
}
.contact-card--tab .contact-icon {
    flex-shrink: 0;
    margin: 0;
}
.contact-card--tab .contact-card-body {
    flex: 1 1 auto;
    min-width: 0;
}
.contact-card--tab .contact-card-links {
    flex-shrink: 0;
    padding-left: 28px;
    border-left: 1px solid #e2e8f0;
}
.contact-card--tab .contact-card-links a {
    white-space: nowrap;
}
.contact-card--tab:hover .contact-icon.text-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}
@media (max-width: 991.98px) {
    .contact-card--tab {
        flex-wrap: wrap;
        gap: 20px 24px;
    }
    .contact-card--tab .contact-card-links {
        flex-basis: 100%;
        padding: 20px 0 0;
        border-left: 0;
        border-top: 1px solid #e2e8f0;
    }
}
@media (max-width: 575.98px) {
    .contact-card--tab {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 22px !important;
    }
    .contact-card--tab .contact-card-links a {
        justify-content: center;
        white-space: normal;
        word-break: break-word;
    }
}

/* Link Hover Text States */
a.hover-red-text {
    text-decoration: none;
}
a.hover-red-text:hover {
    color: var(--daiwa-red, #dc3545) !important;
}

/* WhatsApp Button Enhance */
.btn-wa-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-wa-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.3) !important;
}

/* Desktop Padding Helper */
@media (min-width: 992px) {
    .p-lg-6 { padding: 5rem !important; }
}

/* =========================================================================
   TECHNICAL RESOURCES PAGE
   Data-table cards, grade-family chemistry tables, EN specification tables
   ========================================================================= */

/* ---------- Quick Navigation ---------- */
.tech-quicknav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tech-quicknav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-quicknav-item:hover {
    transform: translateY(-4px);
    border-color: var(--daiwa-blue, #0755a6);
    box-shadow: 0 18px 35px rgba(7, 85, 166, 0.12);
}

.tech-quicknav-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.05rem;
    color: var(--daiwa-blue, #0755a6);
    background: rgba(7, 85, 166, 0.09);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-quicknav-item:hover .tech-quicknav-icon {
    background: var(--daiwa-blue, #0755a6);
    color: #ffffff;
}

.tech-quicknav-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tech-quicknav-text strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.tech-quicknav-text small {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 3px;
}

.tech-quicknav-arrow {
    margin-left: auto;
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-quicknav-item:hover .tech-quicknav-arrow {
    color: var(--daiwa-red, #dc3545);
    transform: translateX(4px);
}

/* ---------- Charts Section ---------- */
.tech-charts-section {
    background-color: #f8fafc;
}

.tech-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 36px;
    scroll-margin-top: 120px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.tech-chart-card:last-child {
    margin-bottom: 0;
}

.tech-chart-card:hover {
    border-color: rgba(7, 85, 166, 0.35);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.09);
}

/* Card Head */
.tech-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tech-chart-head-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

.tech-chart-num {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--daiwa-blue, #0755a6);
    box-shadow: 0 8px 18px rgba(7, 85, 166, 0.28);
}

.tech-chart-heading {
    min-width: 0;
}

.tech-chart-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--daiwa-red, #dc3545);
    margin-bottom: 6px;
}

.tech-chart-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.tech-chart-sub {
    font-size: 0.93rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 780px;
}

/* Grade-family jump pills (chemical composition card) */
.tech-family-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech-family-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--daiwa-blue, #0755a6);
    background: rgba(7, 85, 166, 0.08);
    border: 1px solid rgba(7, 85, 166, 0.22);
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.tech-family-nav a span {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.68rem;
    color: #ffffff;
    background: var(--daiwa-blue, #0755a6);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-family-nav a:hover {
    background: var(--daiwa-blue, #0755a6);
    color: #ffffff;
    transform: translateY(-2px);
}

.tech-family-nav a:hover span {
    background: #ffffff;
    color: var(--daiwa-blue, #0755a6);
}

/* One grade family = heading strip + its own scrollable table */
.tech-family {
    margin-bottom: 28px;
    scroll-margin-top: 120px;
}

.tech-family:last-of-type {
    margin-bottom: 0;
}

.tech-family-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tech-family-idx {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--daiwa-blue, #0755a6);
    background: rgba(7, 85, 166, 0.1);
}

.tech-family-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.tech-family-count {
    margin-left: auto;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 50px;
    white-space: nowrap;
}

/* Card Body */
.tech-chart-body {
    padding: 26px 30px 6px;
}

.tech-scroll-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--daiwa-blue, #0755a6);
    background: rgba(7, 85, 166, 0.07);
    border-radius: 50px;
    width: fit-content;
}

.tech-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.tech-chart-scroll::-webkit-scrollbar {
    height: 8px;
}

.tech-chart-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 50px;
}

.tech-chart-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 50px;
}

.tech-chart-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--daiwa-blue, #0755a6);
}

.tech-chart-scroll--narrow {
    max-width: 640px;
}

/* ---------- Data Tables (transcribed charts) ---------- */
.tech-data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #334155;
    white-space: nowrap;
}

.tech-data th,
.tech-data td {
    padding: 9px 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #edf2f7;
}

.tech-data tr > :last-child {
    border-right: 0;
}

.tech-data tbody tr:last-child > * {
    border-bottom: 0;
}

.tech-data thead th {
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: var(--daiwa-blue, #0755a6);
    border-bottom-color: rgba(255, 255, 255, 0.18);
    border-right-color: rgba(255, 255, 255, 0.14);
}

.tech-data thead th small {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.85;
}

.tech-data thead th[colspan] {
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: #06478c;
}

.tech-data tbody th {
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    text-align: left;
}

.tech-data .tech-key {
    font-weight: 600;
    color: #0f172a;
}

.tech-data .tech-nil {
    color: #b6c2d1;
}

.tech-data tbody tr:hover > td {
    background: rgba(7, 85, 166, 0.06);
}

.tech-data tbody tr:hover > th {
    background: #e9f0f8;
}

/* First column stays pinned while the table scrolls sideways */
.tech-data thead th:first-child,
.tech-data tbody tr:not(.tech-data-group) > th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

.tech-data tbody tr:not(.tech-data-group) > th:first-child {
    box-shadow: 1px 0 0 #e2e8f0;
}

/* Sub-group band inside a family table (e.g. Austenitic / Super Austenitic) */
.tech-data .tech-data-group th {
    padding: 9px 14px;
    text-align: left;
    background: #e8f0fa;
}

.tech-data .tech-data-group:hover th {
    background: #e8f0fa;
}

.tech-data-group-label {
    position: sticky;
    left: 14px;
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--daiwa-blue, #0755a6);
}

.tech-data-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #475569;
    background: #f8fafc;
    border-left: 3px solid var(--daiwa-blue, #0755a6);
    border-radius: 0 8px 8px 0;
}

.tech-data-note i {
    margin-top: 3px;
    color: var(--daiwa-blue, #0755a6);
}

/* Abbreviation legend in the card foot */
.tech-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
    width: 100%;
}

.tech-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.82rem;
    color: #475569;
}

.tech-legend-item strong {
    flex-shrink: 0;
    min-width: 54px;
    padding: 4px 10px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #ffffff;
    background: var(--daiwa-blue, #0755a6);
    border-radius: 6px;
}

/* Card Foot */
.tech-chart-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 30px 26px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border-radius: 50px;
}

.tech-tag i {
    font-size: 0.68rem;
    color: var(--daiwa-blue, #0755a6);
}

/* ---------- EN Specification Tables ---------- */
.tech-spec-section,
#tolerance-classes {
    scroll-margin-top: 120px;
}

.tech-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.tech-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.tech-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 50px;
}

.tech-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 50px;
}

.tech-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin: 0;
}

/* Spec table: label column + description column */
.tech-table--spec th[scope="row"] {
    width: 30%;
    padding: 18px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--daiwa-blue, #0755a6);
    text-align: center;
    border-radius: 8px 0 0 8px;
    vertical-align: middle;
}

.tech-table--spec td {
    padding: 18px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    text-align: center;
    border-radius: 0 8px 8px 0;
    vertical-align: middle;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-table--spec tr:hover td {
    background: rgba(7, 85, 166, 0.1);
    color: #0f172a;
}

/* Tolerance table */
.tech-table--tolerance thead th {
    padding: 16px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffff;
    background: var(--daiwa-blue, #0755a6);
    text-align: center;
    vertical-align: middle;
}

.tech-table--tolerance thead th:first-child {
    border-radius: 8px 0 0 8px;
}

.tech-table--tolerance thead th:last-child {
    border-radius: 0 8px 8px 0;
}

.tech-th-note {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
}

.tech-table--tolerance tbody td {
    padding: 15px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.tech-table--tolerance tbody td:first-child {
    border-left: 1px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
}

.tech-table--tolerance tbody td:last-child {
    border-right: 1px solid #e2e8f0;
    border-radius: 0 8px 8px 0;
}

.tech-table--tolerance tbody tr:hover td {
    background: rgba(7, 85, 166, 0.07);
}

.tech-td-code {
    font-weight: 800 !important;
    letter-spacing: 1px;
    color: var(--daiwa-blue, #0755a6) !important;
}

.tech-table-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 0;
    padding: 16px 20px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #475569;
    background: #f8fafc;
    border-left: 4px solid var(--daiwa-red, #dc3545);
    border-radius: 0 10px 10px 0;
}

.tech-table-note i {
    margin-top: 3px;
    color: var(--daiwa-red, #dc3545);
}

/* ---------- CTA ---------- */
.tech-cta-section {
    background-color: #f8fafc;
}

.tech-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 46px 50px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0755a6 0%, #053d78 100%);
    box-shadow: 0 24px 50px rgba(7, 85, 166, 0.25);
    position: relative;
    overflow: hidden;
}

.tech-cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.tech-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.tech-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.tech-cta-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.tech-cta-text {
    font-size: 0.96rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.tech-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.tech-cta-btn {
    white-space: nowrap;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Global .btn sets a transparent border - restore the outline variant */
.tech-cta-btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.tech-cta-btn.btn-outline-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--daiwa-blue, #0755a6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .tech-quicknav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .tech-chart-head {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px;
    }

    .tech-chart-body {
        padding: 22px 24px 6px;
    }

    .tech-chart-foot {
        padding: 18px 24px 24px;
    }

    .tech-scroll-hint {
        display: flex;
    }

    .tech-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 38px 32px;
    }

    .tech-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .tech-quicknav {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tech-chart-card {
        border-radius: 14px;
        margin-bottom: 26px;
    }

    .tech-chart-head {
        padding: 22px 18px;
    }

    .tech-chart-head-main {
        gap: 14px;
    }

    .tech-chart-num {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .tech-chart-title {
        font-size: 1.15rem;
    }

    .tech-chart-sub {
        font-size: 0.87rem;
    }

    .tech-chart-body {
        padding: 18px 18px 6px;
    }

    .tech-chart-foot {
        padding: 16px 18px 22px;
    }

    .tech-data {
        font-size: 0.78rem;
    }

    .tech-data th,
    .tech-data td {
        padding: 8px 10px;
    }

    .tech-data thead th {
        font-size: 0.72rem;
        padding: 9px 10px;
    }

    .tech-family-nav a {
        font-size: 0.74rem;
        padding: 7px 13px 7px 7px;
    }

    .tech-family-title {
        font-size: 0.98rem;
    }

    .tech-family-head {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px 12px;
    }

    .tech-family-count {
        grid-column: 2;
        justify-self: start;
        margin-left: 0;
    }

    .tech-legend {
        grid-template-columns: 1fr;
    }

    .tech-table {
        min-width: 620px;
    }

    .tech-table--spec th[scope="row"],
    .tech-table--spec td {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .tech-table--tolerance thead th {
        font-size: 0.78rem;
        padding: 13px 12px;
    }

    .tech-table--tolerance tbody td {
        font-size: 0.83rem;
        padding: 12px 12px;
    }

    .tech-cta-box {
        padding: 30px 22px;
    }

    .tech-cta-title {
        font-size: 1.3rem;
    }

    .tech-cta-btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================================
   METALLURGY & GRADES PAGE
   Specification panel, grade family cards, approvals strip
   ========================================================================= */

/* ---------- Specification Standards Panel ---------- */
.met-standards {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.met-standards-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 32px;
    background: linear-gradient(135deg, #0755a6 0%, #053d78 100%);
    position: relative;
    overflow: hidden;
}

.met-standards-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.met-standards-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.met-standards-head > div {
    position: relative;
    z-index: 1;
}

.met-standards-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.met-standards-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.6;
}

.met-standards-body {
    padding: 26px 30px 30px;
}

/* ---------- Tables (extend .tech-data from the Technical Resources block) ---------- */
.met-table th,
.met-table td {
    text-align: left;
}

.met-table thead th {
    padding: 12px 16px;
}

.met-table tbody th,
.met-table tbody td {
    padding: 11px 16px;
}

/* Specs table: standards body spans its rows */
.met-table--specs tbody th {
    width: 130px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--daiwa-blue, #0755a6);
}

.met-code {
    width: 170px;
    font-weight: 700;
    color: #0f172a;
}

.met-scope {
    min-width: 360px;
    white-space: normal;
    line-height: 1.55;
    color: #475569;
}

/* Grade tables: grade / EN number / UNS number */
.met-table--grades tbody th {
    width: 34%;
}

.met-table--grades td {
    font-weight: 500;
}

/* ---------- Grade Families ---------- */
.met-grades-section {
    background-color: #f8fafc;
    scroll-margin-top: 120px;
}

.met-families {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.met-family {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 30px 30px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 120px;
}

.met-family-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.met-family-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.15rem;
    color: var(--daiwa-blue, #0755a6);
    background: rgba(7, 85, 166, 0.09);
}

.met-family-heading {
    min-width: 0;
}

.met-family-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.met-family-sub {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* ---------- On-request Cards ---------- */
.met-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.met-request-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.met-request-body {
    min-width: 0;
}

.met-request-tag {
    display: block;
    margin: 0 0 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--daiwa-red, #dc3545);
}

.met-request-text {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #64748b;
    margin: 0 0 14px;
}

.met-request-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--daiwa-blue, #0755a6);
    border-bottom: 2px solid rgba(7, 85, 166, 0.25);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.met-request-link:hover {
    color: #053d78;
    border-color: #053d78;
}

.met-request-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.met-request-link:hover i {
    transform: translateX(3px);
}

/* ---------- Approvals Strip ---------- */
.met-approval {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 22px 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--daiwa-red, #dc3545);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.met-approval-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--daiwa-red, #dc3545);
}

.met-approval-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
}

.met-approval-text strong {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .met-request-grid {
        grid-template-columns: 1fr;
    }

    .met-scope {
        min-width: 300px;
    }
}

@media (max-width: 767.98px) {
    .met-standards {
        border-radius: 14px;
    }

    .met-standards-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 22px;
    }

    .met-standards-title {
        font-size: 1.1rem;
    }

    .met-standards-body {
        padding: 20px 18px 22px;
    }

    .met-table thead th,
    .met-table tbody th,
    .met-table tbody td {
        padding: 9px 12px;
    }

    .met-table--specs tbody th {
        width: 90px;
        font-size: 0.85rem;
    }

    .met-code {
        width: auto;
    }

    .met-scope {
        min-width: 240px;
    }

    .met-table--grades tbody th {
        width: auto;
    }

    .met-family {
        padding: 22px 18px 24px;
        border-radius: 14px;
    }

    .met-family-head {
        gap: 14px;
    }

    .met-family-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .met-family-title {
        font-size: 1.05rem;
    }

    .met-request-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .met-approval {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 18px;
    }
}



/* =========================================================
   INFRASTRUCTURE PAGE
   Scoped with the .infra- prefix so nothing here can leak
   into the rest of the site.
   ========================================================= */

.infra-section {
    --i-blue: #0755a6;
    --i-blue-deep: #063f7d;
    --i-red: #dc3545;
    --i-ink: #0b1727;
    --i-slate: #0f172a;
    --i-muted: #64748b;
    --i-line: #e2e8f0;
    --i-soft: #f8fafc;

    position: relative;
    padding: 100px 0;
    scroll-margin-top: 140px; /* clears the sticky top bar + nav */
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .infra-section { padding: 70px 0; scroll-margin-top: 100px; }
}

/* --- Shared bits --- */
.infra-eyebrow { font-size: 0.85rem; }
.infra-eyebrow-onDark { color: #f87171 !important; }
.infra-line-light { background-color: rgba(255, 255, 255, 0.35) !important; }
.infra-sub-light { color: rgba(226, 232, 240, 0.78); }

/* --- Scroll reveal (only armed once JS is running) --- */
body.infra-reveal-ready [data-infra-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
body.infra-reveal-ready [data-infra-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    body.infra-reveal-ready [data-infra-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}


/* =========================================================
   QUICK NAV STRIP
   ========================================================= */
.infra-quicknav {
    background: #ffffff;
    border-bottom: 1px solid var(--i-line, #e2e8f0);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}
.infra-quicknav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}
.infra-quicknav-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.infra-quicknav-label i { color: #0755a6; }
.infra-quicknav-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.infra-quicknav-scroll::-webkit-scrollbar { display: none; }
.infra-quicknav-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.28s ease;
}
.infra-quicknav-pill i { font-size: 0.78rem; color: #94a3b8; transition: color 0.28s ease; }
.infra-quicknav-pill:hover,
.infra-quicknav-pill.is-current {
    background: #0755a6;
    border-color: #0755a6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(7, 85, 166, 0.25);
}
.infra-quicknav-pill:hover i,
.infra-quicknav-pill.is-current i { color: #ffffff; }

@media (max-width: 767.98px) {
    .infra-quicknav-label { display: none; }
    .infra-quicknav-inner { padding: 12px 0; }
}


/* =========================================================
   1. SYSTEMS & OPERATIONS  (dark console)
   ========================================================= */
.infra-systems {
    background: linear-gradient(160deg, #0b1727 0%, #0f2137 55%, #0a1524 100%);
}
.infra-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
    pointer-events: none;
}
.infra-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.infra-glow-a { width: 460px; height: 460px; background: rgba(7, 85, 166, 0.38); top: -140px; left: -120px; }
.infra-glow-b { width: 380px; height: 380px; background: rgba(220, 53, 69, 0.16); bottom: -150px; right: -110px; }

/* Tab list */
.infra-sys-list { display: flex; flex-direction: column; gap: 10px; }

.infra-sys-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.infra-sys-tab::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 0;
    background: #dc3545;
    border-radius: 0 4px 4px 0;
    transform: translateY(-50%);
    transition: height 0.35s ease;
}
.infra-sys-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}
.infra-sys-tab.active {
    background: linear-gradient(100deg, rgba(7, 85, 166, 0.45), rgba(7, 85, 166, 0.12));
    border-color: rgba(96, 165, 250, 0.45);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.infra-sys-tab.active::before { height: 60%; }

.infra-sys-tab-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    color: #93c5fd;
    font-size: 1.05rem;
    transition: all 0.32s ease;
}
.infra-sys-tab.active .infra-sys-tab-icon { background: #0755a6; color: #ffffff; }

.infra-sys-tab-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.infra-sys-tab-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    color: inherit;
}
.infra-sys-tab-sub { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.infra-sys-tab.active .infra-sys-tab-sub { color: #bfdbfe; }

.infra-sys-tab-arrow {
    flex-shrink: 0;
    font-size: 0.78rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.32s ease;
    color: #93c5fd;
}
.infra-sys-tab.active .infra-sys-tab-arrow { opacity: 1; transform: none; }

/* Panels */
.infra-sys-stage { position: relative; }
.infra-sys-panel {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 38px;
    backdrop-filter: blur(8px);
    animation: infraPanelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.infra-sys-panel[hidden] { display: none; }

@keyframes infraPanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.infra-sys-panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.infra-sys-panel-icon {
    flex-shrink: 0;
    width: 62px; height: 62px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0755a6, #063f7d);
    box-shadow: 0 12px 26px rgba(7, 85, 166, 0.4);
}
.infra-sys-panel-index {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f87171;
    margin-bottom: 4px;
}
.infra-sys-panel-title { font-size: 1.5rem; font-weight: 800; color: #ffffff; margin: 0; }
.infra-sys-panel-desc { color: rgba(226, 232, 240, 0.8); line-height: 1.85; margin-bottom: 22px; }

.infra-sys-points { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; }
.infra-sys-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.94rem;
    color: #e2e8f0;
    line-height: 1.6;
}
.infra-sys-points i {
    flex-shrink: 0;
    margin-top: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
}

.infra-sys-panel-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    font-weight: 600;
    color: #93c5fd;
}

/* Stat strip */
.infra-sys-stats { margin-top: 56px; }
.infra-stat {
    height: 100%;
    text-align: center;
    padding: 26px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.3s ease;
}
.infra-stat:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-4px); }
.infra-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}
.infra-stat-unit { color: #f87171; }
.infra-stat-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}

@media (max-width: 991.98px) {
    .infra-sys-panel { padding: 26px; }
    .infra-sys-panel-title { font-size: 1.25rem; }
    .infra-sys-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .infra-sys-list::-webkit-scrollbar { display: none; }
    .infra-sys-tab {
        width: auto;
        flex: 0 0 auto;
        padding: 12px 16px;
    }
    .infra-sys-tab:hover { transform: none; }
    .infra-sys-tab-sub, .infra-sys-tab-arrow { display: none; }
    .infra-sys-tab-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .infra-sys-tab-title { font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .infra-sys-panel-head { gap: 14px; }
    .infra-sys-panel-icon { width: 50px; height: 50px; font-size: 1.1rem; }
    .infra-stat-value { font-size: 1.7rem; }
}


/* =========================================================
   2. FACTORY & FACILITIES  (expanding panels)
   ========================================================= */
.infra-facilities { background: #ffffff; }

.infra-fac-gallery {
    display: flex;
    gap: 14px;
    height: 540px;
}
.infra-fac-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.infra-fac-panel.active { flex: 4.2 1 0; }
.infra-fac-panel:focus-visible { box-shadow: 0 0 0 3px #0755a6, 0 18px 40px rgba(15, 23, 42, 0.12); }

.infra-fac-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(45%) brightness(0.72);
}
.infra-fac-panel.active .infra-fac-img { transform: scale(1); filter: grayscale(0%) brightness(0.9); }
.infra-fac-panel:hover .infra-fac-img { filter: grayscale(15%) brightness(0.82); }

.infra-fac-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 17, 30, 0.94) 0%, rgba(8, 17, 30, 0.6) 42%, rgba(8, 17, 30, 0.18) 100%);
}

.infra-fac-num {
    position: absolute;
    top: 22px;
    left: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    z-index: 2;
}
.infra-fac-panel.active .infra-fac-num { color: #ffffff; border-color: #dc3545; background: #dc3545; }

.infra-fac-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px;
    z-index: 2;
}
.infra-fac-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 14px;
    transition: background 0.35s ease;
}
.infra-fac-panel.active .infra-fac-icon { background: #0755a6; }

.infra-fac-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    transition: font-size 0.4s ease;
}
.infra-fac-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.5s ease;
}
.infra-fac-panel.active .infra-fac-detail {
    max-height: 320px;
    opacity: 1;
    margin-top: 12px;
}
.infra-fac-desc {
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
}
.infra-fac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.infra-fac-chips span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    white-space: nowrap;
}

/* Collapsed panels: vertical title */
@media (min-width: 992px) {
    .infra-fac-panel:not(.active) .infra-fac-body {
        padding: 26px 0 26px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .infra-fac-panel:not(.active) .infra-fac-title {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 1rem;
        letter-spacing: 0.5px;
        max-height: 300px;
        overflow: hidden;
    }
    .infra-fac-panel:not(.active) .infra-fac-icon { margin-bottom: 18px; }
}

/* Mobile: stacked cards, always open */
@media (max-width: 991.98px) {
    .infra-fac-gallery { flex-direction: column; height: auto; gap: 16px; }
    .infra-fac-panel, .infra-fac-panel.active { flex: 1 1 auto; height: auto; min-height: 330px; cursor: default; }
    .infra-fac-body { position: relative; padding: 100px 22px 24px; }
    .infra-fac-detail { max-height: 500px; opacity: 1; margin-top: 12px; }
    .infra-fac-img { filter: grayscale(0%) brightness(0.85); transform: none; }
    .infra-fac-title { font-size: 1.15rem; }
}

/* Facility spec cards */
.infra-fac-specs { margin-top: 56px; }
.infra-spec-card {
    height: 100%;
    padding: 26px 22px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.32s ease;
}
.infra-spec-card:hover {
    background: #ffffff;
    border-color: rgba(7, 85, 166, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}
.infra-spec-card i {
    font-size: 1.35rem;
    color: #0755a6;
    margin-bottom: 14px;
    display: block;
}
.infra-spec-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.infra-spec-card p { font-size: 0.86rem; color: #64748b; line-height: 1.65; margin: 0; }


/* =========================================================
   3. PRODUCTION & OPERATIONS  (process rail)
   ========================================================= */
.infra-production {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.infra-prod-blob {
    position: absolute;
    width: 640px; height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 85, 166, 0.09), transparent 68%);
    top: 8%;
    right: -220px;
    pointer-events: none;
}

.infra-rail { position: relative; padding: 20px 0; }
.infra-rail-track {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: #dbe3ec;
    border-radius: 4px;
}
.infra-rail-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #0755a6, #dc3545);
    border-radius: 4px;
    transition: height 0.25s linear;
}

.infra-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 46px;
}
.infra-step:last-child { margin-bottom: 0; }

.infra-step-node {
    position: absolute;
    left: 50%;
    top: 26px;
    transform: translateX(-50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #dbe3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: #94a3b8;
    z-index: 3;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.infra-step.is-active .infra-step-node {
    border-color: #0755a6;
    color: #ffffff;
    background: #0755a6;
    box-shadow: 0 0 0 8px rgba(7, 85, 166, 0.12);
}

.infra-step-card {
    width: calc(50% - 58px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.infra-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.11);
    border-color: rgba(7, 85, 166, 0.3);
}
.infra-step.is-active .infra-step-card { border-color: rgba(7, 85, 166, 0.28); }

/* alternate sides â€” the track is child 1, so steps run 2..8 */
.infra-step:nth-child(even) { justify-content: flex-start; }
.infra-step:nth-child(odd)  { justify-content: flex-end; }

.infra-step-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0755a6;
    background: rgba(7, 85, 166, 0.1);
    margin-bottom: 16px;
    transition: all 0.35s ease;
}
.infra-step-card:hover .infra-step-icon { background: #0755a6; color: #ffffff; transform: rotate(-6deg); }

.infra-step-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.infra-step-desc { font-size: 0.92rem; color: #64748b; line-height: 1.8; margin-bottom: 16px; }
.infra-step-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.infra-step-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

@media (max-width: 991.98px) {
    .infra-rail-track { left: 26px; margin-left: 0; }
    .infra-step { margin-bottom: 30px; }
    .infra-step:nth-child(even),
    .infra-step:nth-child(odd) { justify-content: flex-end; }
    .infra-step-node { left: 26px; top: 22px; width: 46px; height: 46px; font-size: 0.85rem; }
    .infra-step-card { width: calc(100% - 74px); padding: 24px; }
}
@media (max-width: 575.98px) {
    /* pull the rail in tight so the card keeps a readable measure */
    .infra-rail-track { left: 20px; }
    .infra-step-node { left: 20px; width: 40px; height: 40px; font-size: 0.78rem; }
    .infra-step-card { width: calc(100% - 56px); padding: 20px; }
    .infra-step-title { font-size: 1.05rem; }
    .infra-step-icon { width: 44px; height: 44px; font-size: 1.05rem; margin-bottom: 12px; }
}

/* Capability footer */
.infra-prod-capability {
    margin-top: 60px;
    padding: 38px;
    border-radius: 22px;
    background: linear-gradient(120deg, #0b1727, #123055);
    color: #ffffff;
    box-shadow: 0 24px 50px rgba(11, 23, 39, 0.24);
}
.infra-cap-heading { font-size: 1.35rem; font-weight: 800; color: #ffffff; margin-bottom: 12px; }
.infra-cap-text { color: rgba(226, 232, 240, 0.78); font-size: 0.92rem; line-height: 1.8; }
.infra-cap-item {
    height: 100%;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.infra-cap-item:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-4px); }
.infra-cap-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 6px;
}
.infra-cap-item strong { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 800; color: #ffffff; }

@media (max-width: 767.98px) {
    .infra-prod-capability { padding: 26px; margin-top: 44px; }
}


/* =========================================================
   4. QUALITY CONTROL & ASSURANCE
   ========================================================= */
.infra-quality { background: #ffffff; }

.infra-qc-sticky { position: sticky; top: 150px; }
@media (min-width: 992px) {
    /* display-5 is too heavy inside a narrow sticky column */
    .infra-qc-sticky h2 { font-size: 2.35rem; }
}
@media (max-width: 991.98px) { .infra-qc-sticky { position: static; margin-bottom: 12px; } }

.infra-qc-badges { display: grid; gap: 12px; margin: 26px 0 28px; }
.infra-qc-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.infra-qc-badge:hover { border-color: rgba(7, 85, 166, 0.35); transform: translateX(4px); }
.infra-qc-badge i {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 85, 166, 0.1);
    color: #0755a6;
}
.infra-qc-badge strong { display: block; font-size: 0.92rem; font-weight: 800; color: #0f172a; }
.infra-qc-badge span { font-size: 0.78rem; color: #64748b; }
.infra-qc-cta { border-radius: 999px; }

.infra-qc-card {
    height: 100%;
    padding: 26px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.infra-qc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
    border-color: rgba(7, 85, 166, 0.3);
}
.infra-qc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.infra-qc-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(7, 85, 166, 0.1);
    color: #0755a6;
    transition: all 0.35s ease;
}
.infra-qc-card:hover .infra-qc-icon { background: #0755a6; color: #ffffff; }
.infra-qc-cover {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    white-space: nowrap;
}
.infra-qc-title { font-size: 1.08rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.infra-qc-desc { font-size: 0.88rem; color: #64748b; line-height: 1.75; margin-bottom: 18px; flex: 1; }
.infra-qc-bar {
    height: 5px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.infra-qc-bar span {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0755a6, #3b82f6);
    transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Standards band */
.infra-std-band {
    margin-top: 28px;
    padding: 26px 28px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.infra-std-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 16px;
}
.infra-std-head i { color: #0755a6; }
.infra-std-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.infra-std-chips span {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: all 0.25s ease;
}
.infra-std-chips span:hover {
    background: #0755a6;
    border-color: #0755a6;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .infra-qc-card { padding: 22px; }
    .infra-std-band { padding: 22px; }
}


/* =========================================================
   5. DISPATCH & SUPPLY CHAIN
   ========================================================= */
.infra-dispatch {
    background: linear-gradient(150deg, #052e57 0%, #0b1727 60%, #0a1424 100%);
}
.infra-dot-map {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 72%);
    pointer-events: none;
}

.infra-journey {
    position: relative;
    display: flex;
    gap: 18px;
    margin-bottom: 64px;
}
.infra-journey-line {
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 8px, transparent 8px 16px);
}
.infra-journey-stage {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0 6px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.infra-journey-stage.is-in { opacity: 1; transform: none; }

.infra-journey-node {
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0755a6, #063f7d);
    border: 3px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    position: relative;
    z-index: 2;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.infra-journey-stage:hover .infra-journey-node {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 20px 38px rgba(7, 85, 166, 0.5);
}
.infra-journey-step {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f87171;
    margin-bottom: 8px;
}
.infra-journey-title { font-size: 1.02rem; font-weight: 800; color: #ffffff; margin-bottom: 10px; }
.infra-journey-desc { font-size: 0.85rem; color: rgba(226, 232, 240, 0.72); line-height: 1.75; margin: 0; }

@media (min-width: 992px) {
    /* keeps the descriptions on a common baseline when a title wraps */
    .infra-journey-title { min-height: 2.5em; }
}

@media (max-width: 991.98px) {
    .infra-journey { flex-direction: column; gap: 28px; margin-bottom: 44px; }
    .infra-journey-line {
        top: 0; bottom: 0; left: 33px; right: auto; width: 2px; height: auto;
        background: repeating-linear-gradient(180deg, rgba(255,255,255,0.28) 0 8px, transparent 8px 16px);
    }
    /* node on the left, the three text rows stacked beside it */
    .infra-journey-stage {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
        column-gap: 18px;
        text-align: left;
        padding: 0;
    }
    .infra-journey-node { grid-column: 1; grid-row: 1 / 4; width: 66px; height: 66px; margin: 0; }
    .infra-journey-step  { grid-column: 2; grid-row: 1; margin-bottom: 6px; }
    .infra-journey-title { grid-column: 2; grid-row: 2; }
    .infra-journey-desc  { grid-column: 2; grid-row: 3; }
}

/* Packing card */
.infra-pack-card,
.infra-reach-card {
    height: 100%;
    padding: 34px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(8px);
}
.infra-pack-title,
.infra-reach-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}
.infra-pack-title i, .infra-reach-title i { color: #93c5fd; }
.infra-pack-text { color: rgba(226, 232, 240, 0.75); font-size: 0.92rem; line-height: 1.8; margin-bottom: 22px; }

.infra-pack-item {
    height: 100%;
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.infra-pack-item:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.infra-pack-item i { flex-shrink: 0; color: #f87171; font-size: 1rem; margin-top: 3px; }
.infra-pack-item strong { display: block; font-size: 0.9rem; font-weight: 800; color: #ffffff; margin-bottom: 3px; }
.infra-pack-item span { font-size: 0.8rem; color: rgba(226, 232, 240, 0.68); line-height: 1.6; }

/* Reach card */
.infra-reach-card { display: flex; flex-direction: column; }
.infra-reach-stats { display: grid; gap: 14px; margin-bottom: 22px; }
.infra-reach-stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.infra-reach-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.infra-reach-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    min-width: 116px;
}
.infra-reach-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}
.infra-reach-text { font-size: 0.88rem; color: rgba(226, 232, 240, 0.72); line-height: 1.75; margin-bottom: 20px; flex: 1; }
.infra-reach-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #93c5fd;
    transition: gap 0.28s ease, color 0.28s ease;
}
.infra-reach-link:hover { gap: 16px; color: #ffffff; }

@media (max-width: 767.98px) {
    .infra-pack-card, .infra-reach-card { padding: 24px; }
    .infra-reach-value { font-size: 1.6rem; min-width: 96px; }
}


/* =========================================================
   GLOBAL REACH PAGE
   1. Global network : tab switcher + world map
   2. Industries & applications
   ========================================================= */

/* ---------------------------------------------------------
   0. PAGE BANNER WITH THE WORLD MAP
   Title + breadcrumb on the left, live map (hub -> markets)
   on the right; stacks below 992px.
   --------------------------------------------------------- */
/* Same 280px / 210px banner as every other page; the photo is replaced by the
   animated map, sized so the marker band (UK down to Australia) fits the strip
   and centred on it. Labels are hidden here - it is a background. */
.gr-banner-bg {
    background-image: radial-gradient(ellipse at 50% 45%, #0b4f9a 0%, #06356d 48%, #041f45 100%);
}
.gr-banner-map {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100%, 980px);
    transform: translate(-50%, -58.6%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.gr-banner .gr-marker { pointer-events: none; }
.gr-banner .gr-marker-label { display: none; }
.gr-banner .gr-marker--hub.gr-marker-down { transform: translate(-50%, -50%); }
.gr-banner .gr-arc { stroke: #ffffff; opacity: 0.3; }
.gr-banner .gr-dot { background: #ff5b6c; }
.gr-banner .gr-dot::after { border-color: rgba(255, 120, 135, 0.7); }
.gr-banner .gr-dot--hub {
    width: 20px;
    height: 20px;
    background: #0755a6;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 3px 10px rgba(0, 0, 0, 0.4);
}
.gr-banner .gr-dot--hub::after { border-color: rgba(255, 255, 255, 0.65); }
.gr-banner h1,
.gr-banner .breadcrumb { text-shadow: 0 2px 16px rgba(2, 20, 48, 0.75); }

@media (max-width: 767.98px) {
    /* Phone banner is 210px tall: let the map overflow the sides a little so it still fills the strip */
    .gr-banner-map { width: 150%; }
}

/* ---------------------------------------------------------
   1. TAB SWITCHER — reuses .custom-cert-tabs (Certificates page pills)
   --------------------------------------------------------- */
.gr-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* ---------------------------------------------------------
   MAP STAGE
   --------------------------------------------------------- */
.gr-map-stage {
    position: relative;
    max-width: 1060px;
    margin: 34px auto 40px;
}
/* Marker layers are positioned against the image box only (legend sits outside it) */
.gr-map-canvas {
    position: relative;
}
.gr-map-glow {
    position: absolute;
    left: 67%;
    top: 51%;
    width: 30%;
    padding-bottom: 22%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(7, 85, 166, 0.14) 0%, rgba(7, 85, 166, 0) 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.gr-map-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

/* Marker layers */
.gr-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gr-markers[hidden] { display: none; }

/* Export routes: the overlay shares the map's viewBox, so arc
   coordinates are in map units and the travelling dots stay round */
.gr-routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.gr-arc {
    fill: none;
    stroke: #0755a6;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 3 4;
    opacity: 0.32;
    vector-effect: non-scaling-stroke;
    animation: grRouteFlow 1.6s linear infinite;
}
/* Office-to-office link in the Operations view */
.gr-arc--link {
    stroke: #dc3545;
    stroke-width: 1.6;
    stroke-dasharray: none;
    opacity: 0.6;
    animation: none;
}
@keyframes grRouteFlow {
    to { stroke-dashoffset: -14; }
}
.gr-fly {
    fill: #dc3545;
    stroke: #ffffff;
    stroke-width: 1;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
}

/* Individual marker — the anchor point is always the dot, the label
   can sit right (default), left, above or below it */
.gr-marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gr-marker:hover { transform: translate(-50%, -50%) scale(1.08); }
.gr-marker-left { flex-direction: row-reverse; }
.gr-marker-up,
.gr-marker-down {
    flex-direction: column;
    gap: 4px;
    transform: translate(-50%, 0);
}
.gr-marker-up { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 6.5px)); }
.gr-marker-down { transform: translate(-50%, -6.5px); }
.gr-marker-up:hover { transform: translate(-50%, calc(-100% + 6.5px)) scale(1.08); }
.gr-marker-down:hover { transform: translate(-50%, -6.5px) scale(1.08); }
/* Default (label right) / left: anchor on the dot, not the centre of dot + label */
.gr-marker:not(.gr-marker-up):not(.gr-marker-down):not(.gr-marker-left) { transform: translate(-6.5px, -50%); }
.gr-marker:not(.gr-marker-up):not(.gr-marker-down):not(.gr-marker-left):hover { transform: translate(-6.5px, -50%) scale(1.04); }
.gr-marker-left { transform: translate(calc(-100% + 6.5px), -50%); }
.gr-marker-left:hover { transform: translate(calc(-100% + 6.5px), -50%) scale(1.04); }
.gr-marker--hub.gr-marker-down { transform: translate(-50%, -9px); }
.gr-marker--hub.gr-marker-down:hover { transform: translate(-50%, -9px) scale(1.08); }

.gr-marker-label {
    font-size: clamp(0.62rem, 1.05vw, 0.86rem);
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #063f7d;
    background: rgba(255, 255, 255, 0.86);
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.gr-marker:hover .gr-marker-label {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

/* Dot style (presence view) */
.gr-dot {
    position: relative;
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #dc3545;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
    transition: box-shadow 0.3s ease;
}
.gr-marker:hover .gr-dot { box-shadow: 0 2px 10px rgba(220, 53, 69, 0.45); }
.gr-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(220, 53, 69, 0.55);
    animation: grPulse 2.2s ease-out infinite;
    animation-delay: var(--d, 0s);
}
@keyframes grPulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Hub dot (India): larger, brand blue, double ring */
.gr-dot--hub {
    width: 18px;
    height: 18px;
    background: #0755a6;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(7, 85, 166, 0.18), 0 3px 10px rgba(15, 23, 42, 0.3);
}
.gr-dot--hub::after {
    inset: -8px;
    border-color: rgba(7, 85, 166, 0.5);
    animation-duration: 2.6s;
}
.gr-marker--hub .gr-marker-label {
    font-size: clamp(0.7rem, 1.15vw, 0.95rem);
    color: #ffffff;
    background: #0755a6;
    box-shadow: 0 4px 12px rgba(7, 85, 166, 0.35);
}
.gr-marker--hub:hover .gr-marker-label { background: #053d78; }
.gr-marker--office .gr-marker-label {
    color: #ffffff;
    background: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Small "served market" dot used in the Operations view */
.gr-dot--sm {
    width: 9px;
    height: 9px;
    border-width: 2px;
    background: #0755a6;
}
.gr-dot--sm::after {
    inset: -5px;
    border-color: rgba(7, 85, 166, 0.5);
}

/* Quiet markers: the name only appears on hover/focus (dense clusters) */
.gr-marker--quiet .gr-marker-label {
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.gr-marker--quiet:hover .gr-marker-label,
.gr-marker--quiet:focus-within .gr-marker-label {
    opacity: 1;
    transform: none;
}
/* Keep hovered markers above their neighbours */
.gr-marker:hover { z-index: 3; }

/* Pin style (offices view) */
.gr-pin {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    color: #ffffff;
    background: linear-gradient(135deg, #dc3545, #b02a37);
    border: 2px solid #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
    transition: box-shadow 0.3s ease;
}
.gr-marker:hover .gr-pin { box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4); }
.gr-pin::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(220, 53, 69, 0.45);
    animation: grPulse 2.4s ease-out infinite;
}

/* Legend */
.gr-map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 14px;
}
.gr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
}
.gr-legend-item i { font-size: 0.7rem; border-radius: 2px; }
.gr-legend-hub i { color: #0755a6; }
.gr-legend-market i { color: #a9c4e6; }
.gr-legend-office i { color: #dc3545; font-size: 0.8rem; }
.gr-legend-muted i { color: #dde3ea; }

/* Markets by region under the legend (most labels are hidden on phones) */
.gr-map-markets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin: 14px auto 0;
    max-width: 960px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #64748b;
}
.gr-map-markets strong {
    margin-right: 6px;
    color: #0755a6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   PANELS + LOCATION CARDS
   --------------------------------------------------------- */
.gr-panel[hidden] { display: none; }
.gr-panel { animation: grFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes grFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* Cascade the two location cards in on tab switch, and again on first scroll-reveal */
.gr-panel .col-lg-6 {
    animation: grCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gr-panel .col-lg-6:nth-child(1) { animation-delay: 0.05s; }
.gr-panel .col-lg-6:nth-child(2) { animation-delay: 0.16s; }
@keyframes grCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gr-panel .col-lg-6 { animation: none; }
}

.gr-panel-head { text-align: center; margin-bottom: 30px; }
.gr-panel-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.gr-panel-title i { color: #0755a6; margin-right: 8px; }
.gr-panel-sub {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.75;
    max-width: 700px;
    margin: 0 auto;
}

.gr-loc-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--clr-border, #e2e8f0);
    border-top: 4px solid #0755a6;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.gr-loc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}
.gr-loc-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.gr-loc-code {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #0755a6, #063f7d);
    box-shadow: 0 10px 22px rgba(7, 85, 166, 0.28);
}
.gr-loc-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}
.gr-loc-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #dc3545;
}
.gr-loc-text {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 18px;
}
.gr-loc-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.gr-loc-points li {
    position: relative;
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.7;
    padding: 7px 0;
    border-bottom: 1px dashed #eef2f7;
}
.gr-loc-points li:last-child { border-bottom: 0; }
.gr-loc-points li i {
    flex: 0 0 auto;
    margin-top: 5px;
    font-size: 0.72rem;
    color: #0755a6;
}
.gr-loc-points li a { color: #0755a6; font-weight: 700; text-decoration: none; }
.gr-loc-points li a:hover { text-decoration: underline; }

.gr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.gr-chips span {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: all 0.25s ease;
}
.gr-loc-card:hover .gr-chips span { border-color: rgba(7, 85, 166, 0.28); }

/* ---------------------------------------------------------
   2. INDUSTRIES & APPLICATIONS
   --------------------------------------------------------- */
.gr-industries { background: #f8fafc; }

.gr-ind-card {
    height: 100%;
    padding: 26px 18px;
    text-align: center;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--clr-border, #e2e8f0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease, border-color 0.35s ease;
}
.gr-ind-card:hover {
    transform: translateY(-6px);
    border-color: rgba(7, 85, 166, 0.3);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}
.gr-ind-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.3rem;
    color: #0755a6;
    background: rgba(7, 85, 166, 0.09);
    transition: all 0.35s ease;
}
.gr-ind-card:hover .gr-ind-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #0755a6, #063f7d);
    box-shadow: 0 12px 24px rgba(7, 85, 166, 0.28);
}
.gr-ind-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.gr-ind-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Cascade-in for the industry grid once its row scrolls into view */
body.infra-reveal-ready [data-infra-reveal].is-visible .gr-ind-card {
    animation: grCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
[data-infra-reveal] .col-6:nth-child(1) .gr-ind-card,  [data-infra-reveal] .col-6:nth-child(2) .gr-ind-card  { animation-delay: 0.02s; }
[data-infra-reveal] .col-6:nth-child(3) .gr-ind-card,  [data-infra-reveal] .col-6:nth-child(4) .gr-ind-card  { animation-delay: 0.08s; }
[data-infra-reveal] .col-6:nth-child(5) .gr-ind-card,  [data-infra-reveal] .col-6:nth-child(6) .gr-ind-card  { animation-delay: 0.14s; }
[data-infra-reveal] .col-6:nth-child(7) .gr-ind-card,  [data-infra-reveal] .col-6:nth-child(8) .gr-ind-card  { animation-delay: 0.20s; }
[data-infra-reveal] .col-6:nth-child(9) .gr-ind-card,  [data-infra-reveal] .col-6:nth-child(10) .gr-ind-card { animation-delay: 0.26s; }
[data-infra-reveal] .col-6:nth-child(11) .gr-ind-card, [data-infra-reveal] .col-6:nth-child(12) .gr-ind-card { animation-delay: 0.32s; }
[data-infra-reveal] .col-6:nth-child(13) .gr-ind-card { animation-delay: 0.38s; }
@media (prefers-reduced-motion: reduce) {
    body.infra-reveal-ready [data-infra-reveal].is-visible .gr-ind-card { animation: none; }
}

/* Closing strip */
.gr-ind-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding: 32px 38px;
    border-radius: 20px;
    background: linear-gradient(135deg, #052e57 0%, #0b1727 100%);
    box-shadow: 0 22px 44px rgba(5, 46, 87, 0.24);
    overflow: hidden;
}
.gr-ind-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 14% 30%, rgba(7, 85, 166, 0.35) 0%, rgba(7, 85, 166, 0) 55%);
    pointer-events: none;
}
.gr-ind-cta-text, .gr-ind-cta-btn { position: relative; z-index: 1; }
.gr-ind-cta-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}
.gr-ind-cta-sub {
    font-size: 0.92rem;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.7;
}
.gr-ind-cta-btn { flex: 0 0 auto; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .gr-map-stage { margin-bottom: 34px; }
    .gr-loc-card { padding: 26px; }
    .gr-ind-cta { padding: 28px; }
}

@media (max-width: 767.98px) {
    .gr-pin { width: 22px; height: 22px; font-size: 0.56rem; }
    .gr-dot { width: 9px; height: 9px; border-width: 1.5px; }
    .gr-dot::after { inset: -4px; border-width: 1.5px; }
    .gr-dot--sm { width: 7px; height: 7px; }
    .gr-dot--hub { width: 14px; height: 14px; border-width: 2.5px; }
    .gr-fly { r: 4; }
    .gr-arc { opacity: 0.25; }
    /* On a phone-width map only the anchor countries keep their labels; the rest stay as dots */
    .gr-marker--minor .gr-marker-label { display: none; }
    .gr-marker--minor { gap: 0; }
    .gr-map-markets { flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 0.78rem; }
    .gr-panel-title { font-size: 1.2rem; }
    .gr-ind-card { padding: 22px 14px; }
    .gr-ind-icon { width: 50px; height: 50px; font-size: 1.1rem; }
    .gr-ind-cta { text-align: center; justify-content: center; }
    .gr-ind-cta-btn { width: 100%; }
}

@media (max-width: 575.98px) {
    .gr-marker-label { padding: 1px 5px; }
    .gr-loc-card { padding: 22px; }
    .gr-loc-code { width: 46px; height: 46px; font-size: 0.92rem; }
    .gr-map-legend { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .gr-dot::after, .gr-pin::after, .gr-arc { animation: none; }
    .gr-fly { display: none; }
    .gr-panel { animation: none; }
}

/* =========================================================
   CLIENT REVISION — COMPACT SPACING & ONE-LINE SECTION HEADINGS
   ========================================================= */

/* Tighter gap between every section header and its content, and inside the header itself */
section > .container > .row.mb-5,
section > .container > .text-center.mb-5 {
    margin-bottom: 1.5rem !important;
}
section > .container > .row.mb-5 .mb-3,
section > .container > .text-center.mb-5 .mb-3 {
    margin-bottom: 0.75rem !important;
}

/* The home "Overview" text column measures itself so its heading can scale to fit */
.about-content {
    container-type: inline-size;
}

@media (min-width: 992px) {
    /* Section headings: one consistent, smaller size on desktop */
    section h2.display-5,
    section h2.display-6 {
        font-size: clamp(1.6rem, 2.3vw, 2.1rem);
        line-height: 1.2;
    }

    /* Headings in full-width header blocks or plain row columns never wrap */
    section .text-center > h2.display-5,
    section .text-center > h2.display-6,
    section .row > [class*="col-lg-"] > h2.display-5,
    section .row > [class*="col-lg-"] > h2.display-6 {
        white-space: nowrap;
    }

    /* Headings inside padded cards sit in narrower columns: scale down a little so they still fit on one line */
    section .custom-banner h2.display-6,
    section .cta-premium-card .col-lg-8 > h2.display-5,
    section#sustainability .col-lg-8 > h2.display-6 {
        font-size: clamp(1.25rem, 1.7vw, 1.6rem);
        white-space: nowrap;
    }

    /* Stat figures inside cards are not section headings: keep them large and free to wrap */
    section .bento-card h2.display-5 {
        font-size: 2.5rem;
        white-space: normal;
    }

    /* Centered header columns span the full container so long titles have room;
       the intro paragraph stays at a readable measure */
    .row > .mx-auto[class*="col-lg-"]:has(> h2.display-5, > h2.display-6) {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .row > .mx-auto[class*="col-lg-"]:has(> h2.display-5, > h2.display-6) > p {
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Home "Overview" heading: scales with its column width so it stays on one line */
    .about-content .section-title {
        white-space: nowrap;
        font-size: clamp(1rem, 1.8vw, 2rem);   /* fallback */
        font-size: clamp(1rem, 3.4cqw, 2rem);
        margin-bottom: 18px;
    }
}



/* =========================================================
   CLIENT REVISION 2 — SCROLL REDUCTION
   Tightens the Bootstrap spacing utilities used inside
   sections and the page-specific card/stage spacing.
   Kept at the end of the file so it wins over the
   per-page blocks above at equal specificity.
   ========================================================= */

/* Bootstrap utilities inside sections: 3rem steps become 2rem, 1.5rem steps become 1.25rem */
section .mb-5 { margin-bottom: 2rem !important; }
section .mt-5 { margin-top: 2rem !important; }
section .mb-4 { margin-bottom: 1.25rem !important; }
section .row.g-4 { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.25rem; }
section .row.g-5,
section .row.g-lg-5 { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }

@media (min-width: 992px) {
    /* Card padding (p-4 p-lg-5) and the extra inner padding on product heroes */
    section .p-lg-5 { padding: 2rem !important; }
    section .container.py-lg-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    section .p-lg-6 { padding: 3rem !important; }
}
@media (min-width: 1200px) {
    section .p-xl-6 { padding: 3rem !important; }
}

/* Technical Resources */
.tech-chart-card { margin-bottom: 24px; }
.tech-family { margin-bottom: 20px; }
.tech-family-nav { margin-bottom: 16px; }
@media (min-width: 992px) {
    .tech-chart-head { padding: 20px 28px; }
    .tech-chart-body { padding: 20px 28px 6px; }
    .tech-chart-foot { padding: 16px 28px 20px; }
    .tech-cta-box { padding: 34px 44px; }
}

/* Metallurgy & Grades */
.met-families { gap: 18px; }
.met-family-head { margin-bottom: 14px; }
.met-request-grid { gap: 18px; margin-top: 18px; }
.met-approval { margin-top: 18px; }
@media (min-width: 768px) {
    .met-standards-body { padding: 20px 26px 24px; }
    .met-family { padding: 20px 26px 24px; }
    .met-approval { padding: 18px 28px; }
}

/* Global Reach */
.gr-tabs-wrap { margin-bottom: 4px; }
.gr-map-stage { margin: 22px auto 26px; }
.gr-panel-head { margin-bottom: 20px; }

/* Contact departments */
@media (min-width: 992px) {
    .contact-card--tab { padding: 2rem 2.25rem !important; }
}



/* =========================================================
   MOBILE LAUNCH FIXES
   Drawer, tap targets, clipped content and phone spacing.
   Kept at the end of the file so it wins at equal specificity.
   ========================================================= */

/* --- Header / navigation ------------------------------------------------- */

/* Menu labels never break mid-label ("Global / Reach") */
.nav-link { white-space: nowrap; }

/* Narrow desktop windows (1025-1199px): the full menu barely fits, so tighten it */
@media (min-width: 1025px) and (max-width: 1199.98px) {
    .nav-list { gap: 1.25rem; }
    .nav-link { font-size: 14px; }
    .desktop-btn { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 1024px) {
    /* Bigger, keyboard-visible hit area around the 30 x 20px icon without moving it */
    .hamburger {
        box-sizing: content-box;
        padding: 12px;
        margin: -12px;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .hamburger:focus-visible { outline: 2px solid var(--clr-primary-blue); outline-offset: 2px; }

    /* Drawer fills the real visible height on phones (address bar aware) and clears the home bar */
    .nav-menu {
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .nav-overlay { touch-action: none; overscroll-behavior: contain; }

    /* Page behind the drawer does not scroll */
    body.nav-open { overflow: hidden; }

    /* Sub-menu items are comfortable to tap */
    .nav-menu .dropdown-link { padding: 13px 24px 13px 36px; font-size: 15px; }

    /* The desktop rule forces the sub-menu visible with !important; in the drawer it must
       stay closed until "Products" is tapped (script.js toggles .active) */
    .nav-menu .dropdown-menu { display: none !important; }
    .nav-menu .dropdown.active .dropdown-menu { display: block !important; }
    .nav-menu .dropdown.active > .nav-link { color: var(--clr-primary-blue); }

    /* "Contact Us" inside the drawer replaces the header button that is hidden at this width */
    .nav-item--contact { display: block; border-bottom: 0; padding: 18px 24px 8px; }
    .nav-item--contact .nav-link {
        justify-content: center;
        padding: 14px 20px;
        border-radius: 6px;
        background: var(--clr-primary-blue);
        color: var(--clr-white);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 14px;
    }
    .nav-item--contact .nav-link:hover,
    .nav-item--contact .nav-link:focus-visible { background: var(--clr-primary-dark); color: var(--clr-white); }
}

/* Desktop already shows the header "Contact Us" button */
@media (min-width: 1025px) {
    .nav-item--contact { display: none; }
}

/* Footer "Products" link now targets the home showcase; keep its heading clear of the sticky header */
#products-showcase { scroll-margin-top: 90px; }

/* --- Tap targets -------------------------------------------------------- */
@media (max-width: 991.98px) {
    .footer-links li { margin-bottom: 2px; }
    .footer-links a { padding: 5px 0; }
    .footer-contact-list .contact-text a { display: inline-block; padding: 6px 0; }
    .page-banner .breadcrumb-item a { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
    .met-request-link { display: inline-flex; align-items: center; min-height: 40px; }
    /* Contact page: small phone / email lines inside the office cards */
    a.d-block.fs-8 { padding: 5px 0; }
}

/* --- Content that was clipped on phones --------------------------------- */
/* Bright Annealed hero: the "Semiconductor | Pharmaceutical" badge row ran off the right edge */
@media (max-width: 575.98px) {
    .ba-hero .d-flex.gap-4 { flex-wrap: wrap; row-gap: 12px; }
    .ba-hero .d-flex.gap-4 > .border-start { border-left: 0 !important; padding-left: 0 !important; }
}

/* --- Readability on phones --------------------------------------------- */
@media (max-width: 767.98px) {
    /* Justified text leaves large gaps between words on narrow columns */
    .text-justify { text-align: left; }

    /* Smallest table / label text stays at 12px or more */
    .tech-data thead th { font-size: 0.75rem; }
    .tech-data thead th small { font-size: 0.7rem; }
    .tech-data-group-label { font-size: 0.75rem; }
    .tech-chart-eyebrow,
    .page-banner--intro .banner-eyebrow { font-size: 0.75rem; }
    .badge-text { font-size: 12px; }
}

/* --- Less scrolling on phones (home page stacked product cards and update rows) ---- */
@media (max-width: 767.98px) {
    .showcase-img { min-height: 190px; }
    .showcase-card .p-4 { padding: 1.25rem !important; }
    .showcase-panel-wrapper .tab-pane { margin-bottom: 16px; }
    .showcase-card .line-height-lg,
    .trend-row .line-height-lg { line-height: 1.6; }
    .trend-row .p-4 { padding: 1.25rem !important; }
    .showcase-card h3 { font-size: 1.35rem; }
}
