/* ==========================================================================
   BTS Technology - btseu.css
   Design Direction: "Luxury Industrial"
   Clean, sophisticated, premium feel for a tech/industrial company.
   ==========================================================================

   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   0.  CSS Custom Properties
   1.  Global / Base Resets & Enhancements
   2.  Custom Scrollbar
   3.  Selection & Focus
   4.  Typography System
   5.  Header / Navigation
   6.  Hero Video Section
   7.  Cards (.ld-block-card-nav-list-item)
   8.  Buttons (.wp-block-button__link)
   9.  Team Directory (.team-directory)
  10.  Timeline (.ld-block-timeline-list)
  11.  ISO Certificate Gallery
  12.  Checked List Items (.ld-block-checked-list-item)
  13.  Facts / Counter Section (.ld-block-facts-list)
  14.  Materials List (.ld-block-materials-list)
  15.  Media Text Blocks (.wp-block-media-text)
  16.  Cover Blocks (.wp-block-cover)
  17.  Footer
  18.  Section Spacing & Layout Rhythm
  19.  Grid Scroll & Utility (Original)
  20.  Scroll Reveal Animations (Original)
  21.  Hover Enhancements (Original + Enhanced)
  22.  Responsive Adjustments
   ========================================================================== */


/* ==========================================================================
   0. CSS Custom Properties
   ========================================================================== */

:root {
    /* Core palette */
    --bts-dark: #08132b;
    --bts-dark-rgb: 8, 19, 43;
    --bts-dark-lighter: #0d1d3d;
    --bts-dark-surface: #111f3a;
    --bts-dark-elevated: #162848;

    /* Accent */
    --bts-green: var(--bs-success, #198754);
    --bts-green-rgb: 25, 135, 84;
    --bts-green-glow: rgba(25, 135, 84, 0.35);

    /* Text */
    --bts-text-primary: #ffffff;
    --bts-text-secondary: rgba(255, 255, 255, 0.72);
    --bts-text-tertiary: rgba(255, 255, 255, 0.48);

    /* Borders */
    --bts-border-subtle: rgba(255, 255, 255, 0.06);
    --bts-border-light: rgba(255, 255, 255, 0.1);
    --bts-border-medium: rgba(255, 255, 255, 0.15);

    /* Glass */
    --bts-glass-bg: rgba(8, 19, 43, 0.65);
    --bts-glass-bg-dense: rgba(8, 19, 43, 0.82);
    --bts-glass-border: rgba(255, 255, 255, 0.08);
    --bts-glass-highlight: rgba(255, 255, 255, 0.04);

    /* Shadows */
    --bts-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --bts-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --bts-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.15);
    --bts-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
    --bts-shadow-glow: 0 0 40px rgba(25, 135, 84, 0.12);

    /* Spacing rhythm */
    --bts-section-gap: clamp(4rem, 8vw, 7rem);
    --bts-content-max: 680px;

    /* Transitions */
    --bts-ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --bts-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --bts-duration-fast: 0.2s;
    --bts-duration-normal: 0.35s;
    --bts-duration-slow: 0.6s;

    /* Radii */
    --bts-radius-sm: 8px;
    --bts-radius-md: 12px;
    --bts-radius-lg: 16px;
    --bts-radius-xl: 24px;
    --bts-radius-pill: 100px;
}


/* ==========================================================================
   1. Global / Base Resets & Enhancements
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #08132b;
    color: var(--bts-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Subtle atmospheric gradient overlay on the page */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        rgba(25, 135, 84, 0.04) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Noise texture overlay for depth */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Ensure content sits above atmospheric layers */
.wrapper,
main,
.main-footer {
    position: relative;
    z-index: 1;
}

/* Header keeps sticky positioning from Bootstrap - only set z-index */
.main-header {
    z-index: 1030;
}

img {
    image-rendering: auto;
}


/* ==========================================================================
   2. Custom Scrollbar
   ========================================================================== */

/* Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bts-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
    background-clip: content-box;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) var(--bts-dark);
}


/* ==========================================================================
   3. Selection & Focus
   ========================================================================== */

::selection {
    background: rgba(25, 135, 84, 0.35);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(25, 135, 84, 0.35);
    color: #ffffff;
}

/* Accessible focus ring */
:focus-visible {
    outline: 2px solid var(--bts-green);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--bts-green);
    outline-offset: 3px;
}


/* ==========================================================================
   4. Typography System
   ========================================================================== */

/* Display headings - tighter tracking, refined weight */
h1, .h1,
h2, .h2,
h3, .h3 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

h4, .h4,
h5, .h5,
h6, .h6 {
    letter-spacing: -0.01em;
}

/* Section headings with green accent underline (h2 only) */
h2.wp-block-heading,
.ld-block-title {
    position: relative;
    padding-bottom: 0.6em;
}

h2.wp-block-heading::after,
.ld-block-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--bts-green);
    border-radius: 2px;
    transition: width var(--bts-duration-normal) var(--bts-ease-out);
}

/* Don't show accent on headings inside cover blocks or footer */
.wp-block-cover h2.wp-block-heading::after,
.wp-block-cover__inner-container h2.wp-block-heading::after,
.main-footer h2::after,
.ld-block-hgroup h2::after,
.ld-block-hgroup-title::after {
    display: none;
}

/* Fix alignment when h2 is direct child of wp-block-group (has gutter padding) */
.wp-block-group > h2.wp-block-heading::after {
    left: calc(var(--bs-gutter-x, 2rem) * 0.5);
}

/* Center-aligned headings get centered accent */
.has-text-align-center h2.wp-block-heading::after,
.has-text-align-center.wp-block-heading::after,
.text-center h2.wp-block-heading::after,
.text-center .ld-block-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Paragraph readability */
p {
    line-height: 1.75;
    max-width: var(--bts-content-max);
}

/* Don't constrain paragraphs inside certain containers */
.wp-block-column p,
.ld-block-card-nav-list-item p,
.ld-block-team-list-item p,
.ld-block-team-list-item-intro,
.wp-block-media-text p,
.wp-block-media-text__content p,
.ld-block-checked-list-item p,
.main-footer p,
.ld-block-facts-list-item p,
.ld-block-facts-list-item figcaption,
.wp-block-cover p,
.wp-block-cover__inner-container p,
.ld-block-hgroup p,
.ld-block-hgroup-desc p,
.cta-contact-inner p {
    max-width: none;
}

/* Secondary text styling */
.text-muted,
.has-small-font-size {
    color: var(--bts-text-secondary) !important;
}

/* Lead text */
.has-large-font-size,
.lead {
    line-height: 1.6;
    letter-spacing: -0.01em;
}


/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */

/* --- Logo rules (btsaker: wider horizontal logo) --- */
.main-header .site-logo img {
    display: block;
    height: 54px;
    width: 120px;
}

/* ISBM logo: keep square */
.main-header .site-logo img[src*="isbm"] {
    width: 54px;
    height: 54px;
}

@media(min-width: 768px) {
    .main-header .site-logo img {
        height: 54px;
        width: 120px;
    }
    .main-header .site-logo img[src*="isbm"] {
        width: 54px;
        height: 54px;
    }
}

/* --- Glassmorphism header --- */
.main-header {
    background: var(--bts-glass-bg-dense) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--bts-border-subtle);
    transition: background var(--bts-duration-normal) ease,
                border-color var(--bts-duration-normal) ease;
}

/* Subtle glow line under header */
.main-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(25, 135, 84, 0.3) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Nav link refinement - override theme border-bottom with our ::after underline */
.main-header .mainnav a {
    letter-spacing: 0.04em;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--bts-text-secondary);
    position: relative;
    padding-bottom: 4px;
    border-bottom: none !important;
    transition: color var(--bts-duration-fast) ease;
}

.main-header .mainnav a:hover,
.main-header .mainnav a:focus {
    color: var(--bts-text-primary);
    border-bottom: none !important;
}

/* Override active state border from theme */
.main-header .mainnav .current-menu-item > a,
.main-header .mainnav .current-menu-ancestor > a {
    border-bottom: none !important;
}

/* Animated underline on nav links */
.main-header .mainnav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bts-green);
    border-radius: 1px;
    transition: width var(--bts-duration-normal) var(--bts-ease-out),
                left var(--bts-duration-normal) var(--bts-ease-out);
}

.main-header .mainnav a:hover::after,
.main-header .mainnav .current-menu-item > a::after {
    width: 100%;
    left: 0;
}

/* Active nav state */
.main-header .mainnav .current-menu-item > a {
    color: var(--bts-text-primary);
}


/* ==========================================================================
   6. Hero Video Section (Original + Enhanced)
   ========================================================================== */

.hero-video-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
}

.hero-video-title {
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
}

.hero-video-embed {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: var(--bts-radius-lg);
    overflow: hidden;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(25, 135, 84, 0.08);
}

/* Animated subtle border glow */
.hero-video-embed::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--bts-radius-lg) + 2px);
    background: linear-gradient(
        135deg,
        rgba(25, 135, 84, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(25, 135, 84, 0.15) 100%
    );
    z-index: -1;
    animation: video-border-glow 6s ease-in-out infinite alternate;
}

@keyframes video-border-glow {
    0% {
        opacity: 0.5;
        background: linear-gradient(
            135deg,
            rgba(25, 135, 84, 0.2) 0%,
            transparent 40%,
            transparent 60%,
            rgba(25, 135, 84, 0.15) 100%
        );
    }
    100% {
        opacity: 1;
        background: linear-gradient(
            225deg,
            rgba(25, 135, 84, 0.2) 0%,
            transparent 40%,
            transparent 60%,
            rgba(25, 135, 84, 0.15) 100%
        );
    }
}

.hero-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .hero-video-content {
        padding: 2rem;
    }

    .hero-video-title {
        margin-bottom: 2rem !important;
    }

    .hero-video-embed {
        max-width: 900px;
        box-shadow:
            0 12px 60px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 0 100px rgba(25, 135, 84, 0.06);
    }
}

@media (min-width: 1200px) {
    .hero-video-embed {
        max-width: 1000px;
    }
}


/* ==========================================================================
   7. Cards (.ld-block-card-nav-list-item)
   ========================================================================== */

/* Card grid - slightly larger gap */
.ld-block-card-nav-list {
    gap: 1rem !important;
}

@media (min-width: 768px) {
    .ld-block-card-nav-list {
        gap: 1.5rem !important;
    }
}

/* Card container */
.ld-block-card-nav-list-item {
    background: var(--bts-glass-bg) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bts-glass-border) !important;
    border-radius: var(--bts-radius-lg) !important;
    overflow: hidden;
    position: relative;
    padding: 1.5rem !important;
    transition:
        transform var(--bts-duration-normal) var(--bts-ease-out),
        box-shadow var(--bts-duration-normal) var(--bts-ease-out),
        border-color var(--bts-duration-normal) var(--bts-ease-out);
}

/* Subtle inner top highlight for depth */
.ld-block-card-nav-list-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* Better gradient overlay on card background image */
.ld-block-card-nav-list-item-image::after {
    background: linear-gradient(
        0deg,
        rgba(var(--bts-dark-rgb), 0.85) 0%,
        rgba(var(--bts-dark-rgb), 0.4) 50%,
        rgba(var(--bts-dark-rgb), 0.15) 100%
    ) !important;
}

/* Card background image - slightly more visible */
.ld-block-card-nav-list-item-image img {
    opacity: 0.35 !important;
    transition: opacity var(--bts-duration-normal) ease,
                transform var(--bts-duration-slow) var(--bts-ease-out);
}

.ld-block-card-nav-list-item:hover .ld-block-card-nav-list-item-image img {
    opacity: 0.5 !important;
    transform: translate(10%, 39%) scale(1.05);
}

.ld-block-card-nav-list-item:hover {
    transform: translateY(-8px);
    border-color: var(--bts-border-medium) !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.1),
        var(--bts-shadow-glow);
}

/* Card title refinement */
.ld-block-card-nav-list-item h3,
.ld-block-card-nav-list-item h4,
.ld-block-card-nav-list-item .ld-block-card-nav-list-item-title {
    letter-spacing: -0.01em;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Card description */
.ld-block-card-nav-list-item-desc {
    color: var(--bts-text-secondary) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Arrow button - circle instead of square */
.ld-block-card-nav-list-item-link {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background-color: var(--bts-green) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3e%3cpath d='M12.13%2c8.25l-4.2-4.2%2c1.07-1.05%2c6%2c6-6%2c6-1.07-1.05%2c4.2-4.2H3v-1.5h9.13Z' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    background-size: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    transition: transform var(--bts-duration-fast) var(--bts-ease-out),
                box-shadow var(--bts-duration-fast) var(--bts-ease-out),
                background-color var(--bts-duration-fast) ease,
                background-position var(--bts-duration-fast) ease;
    z-index: 2;
    position: relative;
}

.ld-block-card-nav-list-item:hover .ld-block-card-nav-list-item-link {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4),
                0 0 0 4px rgba(25, 135, 84, 0.12);
    background-position: calc(50% + 2px) 50% !important;
}


/* ==========================================================================
   8. Buttons (.wp-block-button__link)
   ========================================================================== */

.wp-block-button__link {
    border-radius: var(--bts-radius-pill) !important;
    letter-spacing: 0.03em;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75em 2em !important;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--bts-duration-fast) var(--bts-ease-out),
        box-shadow var(--bts-duration-fast) var(--bts-ease-out),
        background-color var(--bts-duration-fast) ease;
}

/* Shine sweep effect on hover */
.wp-block-button__link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.wp-block-button__link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 20px var(--bts-green-glow);
}

.wp-block-button__link:hover::after {
    left: 100%;
}

.wp-block-button__link:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Outline variant refinement */
.is-style-outline .wp-block-button__link {
    border-width: 2px;
    background: transparent !important;
}

.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}


/* ==========================================================================
   8b. Contact Office Cards (.ld-block-hgroup section)
   ========================================================================== */

/* Office location cards in hero header */
.ld-block-hgroup .wp-block-columns section {
    padding: 1.5rem !important;
    background: var(--bts-glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--bts-glass-border);
    border-radius: var(--bts-radius-md);
    transition:
        border-color var(--bts-duration-normal) ease,
        transform var(--bts-duration-normal) var(--bts-ease-out);
}

.ld-block-hgroup .wp-block-columns section:hover {
    border-color: var(--bts-border-light);
    transform: translateY(-4px);
}

/* Location icon circle */
.ld-block-hgroup .wp-block-columns section > .bi {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(25, 135, 84, 0.12);
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

/* Office h3 */
.ld-block-hgroup .wp-block-columns section h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Address text */
.cta-contact-inner {
    color: var(--bts-text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}


/* ==========================================================================
   9. Team Directory (.team-directory)
   ========================================================================== */

/* Tighten grid — lines do the separating */
.team-directory ol.row {
    row-gap: 0 !important;
}

/* Strip card chrome: no glass, no radius, just a top rule */
.team-directory .ld-block-team-list-item {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bts-border-light);
    transition: border-color 0.4s ease;
}

.team-directory .ld-block-team-list-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--bts-green);
}

/* Photo — clean circle, no heavy borders */
.team-directory .ld-block-team-list-item-image img {
    border-radius: 50%;
    border: 2px solid var(--bts-border-light);
    box-shadow: none;
    transition: border-color 0.4s ease;
}

.team-directory .ld-block-team-list-item:hover .ld-block-team-list-item-image img {
    border-color: var(--bts-green);
}

/* Name — prominent, white */
.team-directory .ld-block-team-list-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    display: block;
}

/* Role — green accent, tracked uppercase */
.team-directory .ld-block-team-list-item .ld-block-team-list-item-role,
.team-directory .ld-block-team-list-item small {
    display: block;
    margin-top: 0.375rem;
    color: var(--bts-green);
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Email — subtle, no border */
.team-directory .ld-block-team-list-item-intro {
    border-top: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--bts-text-tertiary);
    transition: color 0.3s ease;
}

.team-directory .ld-block-team-list-item:hover .ld-block-team-list-item-intro {
    color: var(--bts-text-secondary);
}


/* ==========================================================================
   9b. About Us Section (.about-us-section)
   ========================================================================== */

/* Separator before the two-column block */
.about-us-section .wp-block-columns {
    margin-top: 2.5rem !important;
    padding-top: 2.5rem;
    border-top: 1px solid var(--bts-border-subtle);
}

/* Sub-heading accent */
.about-us-section .wp-block-columns h3 {
    padding-left: 1rem;
    border-left: 3px solid var(--bts-green);
    margin-bottom: 1rem;
}

/* Column text */
.about-us-section .wp-block-columns p {
    color: var(--bts-text-secondary);
    line-height: 1.8;
}


/* ==========================================================================
   10. Timeline (.ld-block-timeline-list)
   ========================================================================== */

.ld-block-timeline-list {
    position: relative;
}

/* Remove conflicting vertical line - use grid's horizontal separators */
.ld-block-timeline-list-items::before {
    display: none;
}

/* Year headings */
.ld-block-timeline-list-items dt {
    position: relative;
    color: var(--bts-text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    border-bottom-color: var(--bts-border-subtle) !important;
}

/* Remove dot markers */
.ld-block-timeline-list-items dt::before {
    display: none;
}

/* Green accent line on year bottom border */
.ld-block-timeline-list-items dt::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bts-green);
    border-radius: 1px;
}

/* Description text */
.ld-block-timeline-list-items dd {
    color: var(--bts-text-secondary);
    line-height: 1.75;
    border-bottom-color: var(--bts-border-subtle) !important;
}

.ld-block-timeline-list-items dd:last-child {
    border-bottom: none !important;
}


/* ==========================================================================
   11. ISO Certificate Gallery (Original + Enhanced)
   ========================================================================== */

.iso-certificate-gallery {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.iso-certificate-gallery a {
    flex: 1;
    max-width: 30%;
    height: auto;
    position: relative;
    border-radius: var(--bts-radius-md);
    overflow: hidden;
}

.iso-certificate-gallery a img {
    border-radius: var(--bts-radius-md);
    transition: transform 0.4s ease, filter 0.4s ease;
    width: 100%;
    height: auto;
}

/* Hover overlay */
.iso-certificate-gallery a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(25, 135, 84, 0.15) 0%,
        transparent 60%
    );
    border-radius: var(--bts-radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.iso-certificate-gallery a:hover img {
    transform: scale(1.03);
}

.iso-certificate-gallery a:hover::after {
    opacity: 1;
}


/* ==========================================================================
   12. Checked List Items (.ld-block-checked-list-item)
   ========================================================================== */

.ld-block-checked-list {
    gap: 1.5rem !important;
}

/* Hide the bulky square checkmark icon */
.ld-block-checked-list-item::before {
    display: none !important;
}

/* Card-style items with left accent */
.ld-block-checked-list-item {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem !important;
    border-left: 3px solid var(--bts-green);
    background: var(--bts-glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 0 var(--bts-radius-md) var(--bts-radius-md) 0;
    transition:
        border-color var(--bts-duration-normal) ease,
        background var(--bts-duration-normal) ease,
        transform var(--bts-duration-normal) var(--bts-ease-out);
}

.ld-block-checked-list-item:hover {
    background: rgba(25, 135, 84, 0.04);
    border-left-color: var(--bts-green);
    transform: translateX(4px);
}

/* Wider items: 2 columns until ultra-wide, then 4 */
@media (min-width: 992px) {
    .ld-block-checked-list-item {
        flex: 1 0 calc(50% - 1.5rem) !important;
    }
}

@media (min-width: 1400px) {
    .ld-block-checked-list {
        gap: 1rem !important;
    }
    .ld-block-checked-list-item {
        flex: 1 0 calc(25% - 1rem) !important;
        padding: 1.25rem 1.25rem 1.25rem 1.5rem !important;
    }
}

/* Item title */
.ld-block-checked-list-item-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bts-text-primary);
}

/* Item text */
.ld-block-checked-list-item p,
.ld-block-checked-list-item span {
    line-height: 1.7;
    color: var(--bts-text-secondary);
}


/* ==========================================================================
   13. Facts / Counter Section (.ld-block-facts-list)
   ========================================================================== */

.ld-block-facts-list-item {
    position: relative;
    padding: 1rem 0.5rem;
    text-align: center;
}

/* Dramatic counter numbers */
.ld-block-facts-list-item .ld-block-facts-list-item-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Counter label */
.ld-block-facts-list-item .ld-block-facts-list-item-desc,
.ld-block-facts-list-item figcaption {
    color: var(--bts-text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 0.5rem;
}

.counter-animated {
    display: inline-block;
}


/* ==========================================================================
   14. Materials List (.ld-block-materials-list)
   ========================================================================== */

.ld-block-materials-list-items-item {
    padding: 1rem 1.25rem;
    border-radius: var(--bts-radius-md);
    transition:
        transform var(--bts-duration-fast) ease,
        background var(--bts-duration-fast) ease;
}

.ld-block-materials-list-items-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.03);
}

/* Material icon/image */
.ld-block-materials-list-items-item img {
    border-radius: var(--bts-radius-sm);
    transition: transform var(--bts-duration-fast) ease;
}

/* Material name */
.ld-block-materials-list-items-item h4,
.ld-block-materials-list-items-item h5 {
    font-weight: 600;
    letter-spacing: -0.01em;
}


/* ==========================================================================
   15. Media Text Blocks (.wp-block-media-text)
   ========================================================================== */

.wp-block-media-text {
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* Image side treatment */
.wp-block-media-text__media img,
.wp-block-media-text .wp-block-media-text__media img {
    border-radius: var(--bts-radius-lg);
    box-shadow: var(--bts-shadow-md);
}

/* Text side */
.wp-block-media-text__content,
.wp-block-media-text .wp-block-media-text__content {
    padding: 1.5rem 0;
}


/* ==========================================================================
   16. Cover Blocks (.wp-block-cover)
   ========================================================================== */

.wp-block-cover {
    border-radius: var(--bts-radius-lg);
    overflow: hidden;
    min-height: 400px;
}

/* Enhanced overlay */
.wp-block-cover__background,
.wp-block-cover .has-background-dim {
    background: linear-gradient(
        180deg,
        rgba(var(--bts-dark-rgb), 0.4) 0%,
        rgba(var(--bts-dark-rgb), 0.75) 100%
    ) !important;
}

/* Cover text sizing */
.wp-block-cover h1,
.wp-block-cover h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.wp-block-cover h3,
.wp-block-cover h4 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.wp-block-cover p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--bts-text-secondary);
    max-width: 600px;
}


/* ==========================================================================
   16b. Guiding Principles (.guiding-principles)
   ========================================================================== */

.guiding-principles .wp-block-column:last-child > h3,
.guiding-principles .wp-block-column:last-child > .has-h-3-font-size {
    padding-left: 1.25rem;
    border-left: 3px solid var(--bts-green);
    margin-bottom: 0.75rem !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.guiding-principles .wp-block-column:last-child > p {
    padding-left: 1.25rem;
    color: var(--bts-text-secondary);
    line-height: 1.8;
}

/* Separator between principle blocks (p followed by next h3) */
.guiding-principles .wp-block-column:last-child > p + h3,
.guiding-principles .wp-block-column:last-child > p + .has-h-3-font-size {
    margin-top: 2.5rem !important;
    padding-top: 2.5rem;
    border-top: 1px solid var(--bts-border-subtle);
}


/* ==========================================================================
   17. Footer
   ========================================================================== */

/* Top border separator */
.main-footer {
    position: relative;
    border-top: 1px solid var(--bts-border-subtle);
}

/* Gradient glow line above footer */
.main-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(25, 135, 84, 0.25) 30%,
        rgba(25, 135, 84, 0.35) 50%,
        rgba(25, 135, 84, 0.25) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* Footer headings */
.main-footer h3,
.main-footer h4,
.main-footer h5,
.main-footer h6 {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--bts-text-secondary);
    margin-bottom: 1.25rem;
}

/* Footer links with animated underline */
.main-footer a {
    position: relative;
    color: var(--bts-text-secondary);
    text-decoration: none;
    transition: color var(--bts-duration-fast) ease;
}

.main-footer a:hover {
    color: var(--bts-text-primary);
}

/* Underline animation for footer text links (not icon-links) */
.main-footer .footer-links a,
.main-footer .widget a,
.main-footer nav a {
    display: inline-block;
    position: relative;
}

.main-footer .footer-links a::after,
.main-footer .widget a::after,
.main-footer nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bts-green);
    transition: width var(--bts-duration-normal) var(--bts-ease-out);
}

.main-footer .footer-links a:hover::after,
.main-footer .widget a:hover::after,
.main-footer nav a:hover::after {
    width: 100%;
}

/* Icon links in footer */
.main-footer .icon-link {
    transition: transform var(--bts-duration-fast) ease,
                color var(--bts-duration-fast) ease;
}

.main-footer .icon-link:hover {
    transform: translateX(3px);
    color: var(--bts-text-primary);
}

/* Copyright / bottom area */
.main-footer .copyright,
.main-footer .footer-bottom,
.main-footer .site-info {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--bts-border-subtle);
    font-size: 0.8rem;
    color: var(--bts-text-tertiary);
    letter-spacing: 0.02em;
}


/* ==========================================================================
   18. Section Spacing & Layout Rhythm
   ========================================================================== */

/* Generous vertical breathing room between major sections */
.main-content .container > .wp-block-group,
.main-content .container > .wp-block-cover,
.main-content .container > .wp-block-columns {
    margin-bottom: var(--bts-section-gap);
}

/* First content section after header */
.main-content .container > header + .wp-block-group,
.main-content .container > header + .wp-block-cover {
    margin-top: 0;
}

/* Consistent inner section padding - only for direct group containers */
.wp-block-group__inner-container {
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 4rem);
}


/* ==========================================================================
   19. Grid Scroll & Utility (Original - Preserved)
   ========================================================================== */

.clearlist, .clearlist li {
    list-style: none;
    padding: 0;
    margin: 0;
    background: none;
}

.clearlinks a {
    text-decoration: none;
    color: unset;
}

/* Edge fade mask + prevent manual scroll into empty space */
.grid-scroll {
    overflow: hidden !important;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 4%,
        black 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 4%,
        black 96%,
        transparent 100%
    );
}

.grid-scroll-body {
    animation: auto-scroll 200s linear infinite;
    gap: 1.25rem !important;
}

/* Pause on hover */
.grid-scroll:hover .grid-scroll-body {
    animation-play-state: paused;
}

@keyframes auto-scroll {
    0% {
        transform: translateX(0);
    }
    47%, 53% {
        transform: translateX(calc(-100% + 100vw));
    }
    100% {
        transform: translateX(0);
    }
}

/* Enhanced gallery cards */
.ld-block-scrollable-gallery-item {
    border-radius: var(--bts-radius-md) !important;
    box-shadow: var(--bts-shadow-sm);
    transition:
        transform 0.4s var(--bts-ease-out),
        box-shadow 0.4s var(--bts-ease-out);
}

.ld-block-scrollable-gallery-item:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(25, 135, 84, 0.08);
    z-index: 2;
}

/* Dark theme overlay */
.ld-block-scrollable-gallery-item::after {
    background: linear-gradient(
        0deg,
        rgba(var(--bts-dark-rgb), 0.5) 0%,
        transparent 50%
    ) !important;
    opacity: 0.6;
    transition: opacity 0.4s ease !important;
}

.ld-block-scrollable-gallery-item:hover::after {
    opacity: 0 !important;
}

/* Image zoom + brighten on hover */
.ld-block-scrollable-gallery-item img {
    transition:
        transform 0.6s var(--bts-ease-out),
        filter 0.4s ease;
}

.ld-block-scrollable-gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}


/* ==========================================================================
   20. Scroll Reveal Animations (Original - Preserved)
   ========================================================================== */

/* Base state: hidden before animation triggers */
[data-animate] {
    opacity: 0;
    will-change: opacity, transform;
}

/* Fade up */
[data-animate="fade-up"] {
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Fade in */
[data-animate="fade-in"] {
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Fade left */
[data-animate="fade-left"] {
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Fade right */
[data-animate="fade-right"] {
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Scale up (for images/cards) */
[data-animate="scale-up"] {
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Visible state: applied when element enters viewport */
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger children animation */
[data-animate-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-animate-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay per child */
[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.2s; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.3s; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.4s; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.5s; }
[data-animate-stagger].is-visible > *:nth-child(7) { transition-delay: 0.6s; }
[data-animate-stagger].is-visible > *:nth-child(8) { transition-delay: 0.7s; }
[data-animate-stagger].is-visible > *:nth-child(9) { transition-delay: 0.8s; }


/* ==========================================================================
   21. Hover Enhancements (Original preserved, enhanced versions above)
   ========================================================================== */

/*
 * NOTE: Original hover rules for cards, team, buttons, ISO gallery,
 * footer icon-links, and materials are now superseded by the enhanced
 * versions in their respective sections above (7, 8, 9, 11, 14, 17).
 * The enhanced versions include all original behavior plus improvements.
 */


/* ==========================================================================
   22. Reduced Motion & Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-animate],
    [data-animate-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .grid-scroll-body {
        animation: none !important;
    }

    .hero-video-embed::before {
        animation: none !important;
    }

    .wp-block-button__link::after {
        transition: none !important;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================================
   23. Responsive Adjustments
   ========================================================================== */

/* Mobile-first base adjustments */
@media (max-width: 767.98px) {
    :root {
        --bts-section-gap: 3rem;
    }

    /* Tighter cards on mobile */
    .ld-block-card-nav-list-item {
        border-radius: var(--bts-radius-md) !important;
    }

    /* Reduce glass effect on mobile for performance */
    .main-header {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    /* Stack certificates better */
    .iso-certificate-gallery {
        flex-wrap: wrap;
        gap: 12px;
    }

    .iso-certificate-gallery a {
        max-width: 47%;
        flex: 1 1 45%;
    }

    /* Cover block sizing */
    .wp-block-cover {
        min-height: 300px;
        border-radius: var(--bts-radius-md);
    }

    /* Team directory mobile padding */
    .team-directory .ld-block-team-list-item {
        padding: 1.25rem 0;
    }

    /* Footer cleanup */
    .main-footer h3,
    .main-footer h4,
    .main-footer h5,
    .main-footer h6 {
        margin-top: 1.5rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199.98px) {
    :root {
        --bts-section-gap: 5rem;
    }
}

/* Desktop+ */
@media (min-width: 1200px) {
    :root {
        --bts-section-gap: 6rem;
    }

    /* More generous card hover lift on desktop */
    .ld-block-card-nav-list-item:hover {
        transform: translateY(-10px);
    }

    /* Wider content paragraphs on large screens */
    p {
        max-width: 720px;
    }
}

/* Ultra-wide */
@media (min-width: 1600px) {
    :root {
        --bts-section-gap: 7rem;
    }
}
