/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    --red: #E30613;
    --red-hover: #B60310;
    --red-tint: #FDECEC;
    --red-deep: #8E0209;
    --red-dark: #B60310;
    --dark-slate: #111827;
    --dark-slate-2: #1A1D20;
    --muted-neutral: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --border-color: #E5E7EB;
    --font-title: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.12);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-pill: 9999px;
    --container-max: 1240px;
    --transition-speed: 0.25s;
    --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & INITIAL BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-neutral);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) var(--transition-curve);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ==========================================================================
   TYPOGRAPHY PRESETS
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-title);
    color: var(--dark-slate);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.accent {
    color: var(--red);
}

.eyebrow {
    font-family: var(--font-title);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.section-head .section-title {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-head .lead {
    font-size: 17px;
    color: var(--muted-neutral);
}

.rule {
    width: 60px;
    height: 4px;
    background: var(--red);
    border-radius: var(--r-pill);
    margin: 16px 0;
}

.rule-center {
    margin: 16px auto;
}

/* ==========================================================================
   UI UTILITY - BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 15.5px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--r-sm);
    border: 1.6px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-curve);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.22);
}

.btn-red:hover {
    background-color: var(--red-hover);
    box-shadow: 0 12px 24px rgba(227, 6, 19, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-outline:hover {
    background-color: var(--red-tint);
}

.btn-white {
    background-color: var(--white);
    color: var(--red);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    box-shadow: var(--shadow-lg);
}

.btn-ghost-light {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   MODULE 1: HEADER NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--dark-slate);
    padding: 6px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    height: 3px;
    width: 0;
    border-radius: var(--r-pill);
    background-color: var(--red);
    transform: translateX(-50%);
    transition: width var(--transition-speed) var(--transition-curve);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--red);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 24px;
}

.caret {
    transition: transform var(--transition-speed) var(--transition-curve);
}

/* Dropdown styling */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 280px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) var(--transition-curve);
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--dark-slate);
}

.dropdown a:hover,
.dropdown a.is-active {
    background-color: var(--red-tint);
    color: var(--red);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.has-dropdown:hover .caret {
    transform: rotate(180deg);
}

.btn-login {
    background-color: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--r-sm);
    font-size: 14.5px;
}

.btn-login:hover {
    background-color: var(--red-hover);
}

/* ==========================================================================
   MODULE 2: HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 0;
    padding-bottom: clamp(30px, 3.5vw, 44px);
    background: radial-gradient(800px 500px at 80% 25%, #fff2f2 0%, rgba(255, 255, 255, 0) 70%);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    padding-top: clamp(20px, 2.5vw, 38px);
    align-self: flex-start;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: flex-start;
}

.hero-tagline-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background-color: var(--red-tint);
    color: var(--red);
    font-family: var(--font-title);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.hero-copy h1 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: clamp(1.9rem, 4.4vw, 3.6rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    color: #14161A !important;
    margin-bottom: 20px !important;
}

.hero-copy h1 .accent {
    color: #E30613 !important;
}

@media (min-width: 769px) {
    .hero-copy h1 br.desktop-br {
        display: inline !important;
    }
}

@media (max-width: 768px) {
    .hero-copy h1 br.desktop-br {
        display: none !important;
    }
}

.hero-lead {
    font-size: clamp(16px, 1.25vw, 18px) !important;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-actions .btn {
    border-radius: 8px !important;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    width: 100%;
    border-radius: 20px;
    /* overflow: hidden; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ECEFF2;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: floaty 7s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.03);
}

/* Trust Statistic Cards - Compact Size */
.trust-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 16px !important;
}

.trust-card {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.trust-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FDECEC;
    color: #E30613;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.trust-card__body {
    display: flex;
    flex-direction: column;
}

.trust-card__value {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #111827;
    margin: 0;
}

.trust-card__label {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.35;
    color: #6B7280;
}

/* Hero Media Image Styling (Matching Homepage Hero Design) */
.hero-media {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
}

.hero-media img,
.hero-img,
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--r-md, 16px);
    animation: heroFloaty 7s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 86%, transparent 100%);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.08));
}

@keyframes heroFloaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.board-card {
    background-color: var(--white);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 16px;
    max-width: 320px;
    align-self: flex-start;
}

.board-title {
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.08em;
    border-bottom: 1.5px solid var(--red-tint);
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.board-icons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.b-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.b-icon i {
    font-size: 16px;
    color: var(--red);
}

.b-icon span {
    font-size: 8px;
    font-weight: 700;
    color: var(--dark-slate);
}

.fire-safety-card {
    background-color: var(--white);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 16px;
    max-width: 240px;
    align-self: flex-end;
    border-left: 4px solid var(--accent-red);
}

.fs-title {
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.fs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fs-list li {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--dark-slate);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fs-list li i {
    color: var(--accent-red);
}

.instructor-tag {
    position: absolute;
    bottom: 24px;
    left: 30px;
    background-color: var(--white);
    border-radius: 20px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 10px;
    font-weight: 700;
    color: var(--dark-slate);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   MODULE 3: THE PROBLEM SECTION
   ========================================================================== */
.challenge {
    padding: clamp(36px, 4.5vw, 56px) 0 clamp(20px, 2.5vw, 30px);
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.challenge-cards--four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.challenge-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    padding: 34px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition-speed) var(--transition-curve), box-shadow var(--transition-speed) var(--transition-curve);
    display: flex;
    flex-direction: column;
}

.challenge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-num-badge {
    position: absolute;
    top: -15px;
    left: 22px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    display: grid;
    place-items: center;
}

.challenge-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.challenge-subtext {
    font-size: 13.5px;
    color: var(--muted-neutral);
    margin-bottom: 20px;
    line-height: 1.45;
}

.problem-media {
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border-radius: var(--r-sm);
    aspect-ratio: 1.4;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.problem-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.problem-media .graphic-box {
    font-size: 34px;
    color: var(--red);
    opacity: 0.7;
}

.challenge-happen {
    border-top: 1.5px solid var(--red-tint);
    padding-top: 16px;
    margin-top: auto;
}

.happen-title {
    font-family: var(--font-title);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dark-slate);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.happen-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.happen-list li {
    font-size: 12.5px;
    color: var(--dark-slate);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.3;
}

.happen-list li i {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 2px;
}

/* ==========================================================================
   MODULE 4: THE SOLUTION SECTION
   ========================================================================== */
.solution-highlights {
    padding: clamp(20px, 2.5vw, 30px) 0;
    background-color: var(--white);
}

.solution-card-wrapper {
    position: relative;
    background: #FFFDFD;
    border: 1px solid #FCE8E8;
    border-radius: 20px;
    padding: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 36px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.03);
}

.solution-dot-field {
    position: absolute;
    top: 20px;
    width: 100px;
    height: 80px;
    background-image: radial-gradient(#F8D7D7 1.8px, transparent 1.8px);
    background-size: 12px 12px;
    opacity: 0.6;
    pointer-events: none;
}

.solution-dot-field--left {
    left: 16px;
}

.solution-dot-field--right {
    right: 16px;
}

.solution-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px auto;
    position: relative;
    z-index: 2;
}

.solution-header .eyebrow {
    color: var(--red);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.solution-header .eyebrow-line {
    width: 42px;
    height: 3px;
    background: var(--red);
    margin: 0 auto 16px auto;
    border-radius: 2px;
}

.solution-header .section-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.22;
    color: var(--dark-slate);
    margin-bottom: 12px;
}

.solution-header .lead {
    font-size: clamp(14px, 1.2vw, 15.5px);
    color: var(--muted-neutral);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.solution-pillars-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 24px;
}

.solution-pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 14px;
    border-right: 1px solid #F3E2E2;
    transition: transform 0.25s ease;
}

.solution-pillar-item:last-child {
    border-right: none;
}

.solution-pillar-item:hover {
    transform: translateY(-4px);
}

.pillar-media {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.pillar-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.solution-pillar-item:hover .pillar-media img {
    transform: scale(1.08);
}

.pillar-label {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-slate);
    line-height: 1.35;
    margin: 0;
}

/* Tablet & Mobile responsiveness for Solution Section */
@media (max-width: 1024px) {
    .solution-pillars-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 0;
    }

    .solution-pillar-item {
        border-right: none;
        border-bottom: 1px solid #F3E2E2;
        padding-bottom: 20px;
    }

    .solution-pillar-item:nth-child(3n) {
        border-right: none;
    }

    .solution-pillar-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .solution-pillars-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .solution-pillar-item {
        border-right: none;
        border-bottom: 1px solid #F3E2E2;
        padding: 14px 8px;
    }

    .solution-pillar-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .pillar-media {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .pillar-label {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   MODULE 5: CASE STUDIES & BLOGS SECTION
   ========================================================================== */
.blogs {
    padding: clamp(20px, 2.5vw, 30px) 0 clamp(48px, 6vw, 76px);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tabs {
    display: inline-flex;
    gap: 10px;
    margin-top: 24px;
    background-color: var(--white);
    padding: 5px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-color);
}

.tab {
    padding: 9px 20px;
    border-radius: var(--r-pill);
    font-family: var(--font-title);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted-neutral);
    transition: all var(--transition-speed) var(--transition-curve);
}

.tab:hover {
    color: var(--red);
}

.tab.tab-active {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 14px;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) var(--transition-curve), box-shadow var(--transition-speed) var(--transition-curve);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md) var(--r-md) 0 0;
    background: var(--bg-light);
}

.blog-figure img {
    width: 100%;
    height: 190px;
    object-fit: contain !important;
    background: #ffffff !important;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-figure img {
    transform: scale(1.06);
}

.blog-figure .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--white);
    color: var(--red);
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.blog-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-body h3 {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark-slate);
}

.blog-body p {
    font-size: 13.5px;
    line-height: 1.55;
    flex: 1;
}

.blog-foot {
    margin-top: 18px;
    padding: 14px 20px 18px;
    border-top: 1.5px solid var(--bg-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted-neutral);
}

.blog-foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.read-more:hover {
    gap: 8px;
    color: var(--red-hover);
}

.blog-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 44px;
    margin-bottom: 40px;
}

/* Sub-pill badges at bottom of case studies */
.sub-pill-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.pill-badge {
    padding: 8px 18px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark-slate);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MODULE 6: PRE-FOOTER CTA BANNER
   ========================================================================== */
.final-cta {
    position: relative;
    padding: clamp(54px, 7vw, 90px) 0;
    min-height: 380px;
    display: flex;
    align-items: center;
    background-color: #5c070b;
    color: var(--white);
    overflow: hidden;
}

.final-cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.final-cta__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.final-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(92, 7, 11, 0.94) 0%,
            rgba(125, 13, 18, 0.86) 50%,
            rgba(165, 20, 27, 0.5) 80%,
            rgba(0, 0, 0, 0.35) 100%);
    z-index: 2;
}

.final-cta__content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.final-copy {
    max-width: 620px;
}

.final-cta h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
}

.final-cta .rule {
    width: 48px;
    height: 3px;
    background: #ff5a5f;
    margin: 14px 0;
    border-radius: 2px;
}

.final-lead {
    max-width: 520px;
    font-size: clamp(0.98rem, 1.25vw, 1.08rem);
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 28px;
}

.final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.final-actions .btn-white {
    background: #ffffff;
    color: #E30613;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.final-actions .btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.final-actions .btn-ghost-light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.final-actions .btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   MODULE 7: FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--dark-slate-2);
    color: #b9bfc8;
    padding: 34px 0 0;
    font-size: 14.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.85fr 0.85fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.footer-about {
    margin-top: 16px;
    line-height: 1.65;
    max-width: 280px;
}

.social-row {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    display: grid;
    place-items: center;
    transition: all var(--transition-speed) var(--transition-curve);
}

.social:hover {
    background-color: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
}

.footer-col h2 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col .rule {
    width: 36px;
    height: 3px;
    margin: 8px 0 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9bfc8;
}

.footer-links a:hover,
.footer-links a.is-active {
    color: var(--white);
    padding-left: 3px;
}

.footer-links .icon {
    width: 14px;
    height: 14px;
    color: var(--red);
}

.social-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #b9bfc8;
}

.social-links a:hover {
    color: var(--white);
}

.social-links i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover i {
    background-color: var(--red);
    border-color: var(--red);
}

.footer-bottom {
    padding: 22px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13.5px;
    color: #9aa1a9;
}

.legal {
    display: flex;
    align-items: center;
    gap: 14px;
}

.legal .divider {
    width: 1.5px;
    height: 15px;
    background-color: var(--red);
}

.legal a:hover {
    color: var(--white);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {

    .hero-grid,
    .solution-grid,
    .final-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .hero-copy {
        order: 1 !important;
    }

    .hero-image-wrapper {
        order: 2 !important;
    }

    .hero-lead,
    .final-lead {
        margin-inline: auto;
    }

    .hero-actions,
    .final-actions {
        justify-content: center;
    }

    .trust-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .challenge-cards--four {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* simple mobile behavior matching task guidelines */
    }

    .header-inner {
        min-height: 68px;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .hero-actions .btn {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        min-height: 44px !important;
        justify-content: center !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
    }

    .final-actions {
        flex-direction: column;
        width: 100%;
    }

    .final-actions .btn {
        width: 100%;
    }

    .trust-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .challenge-cards--four {
        grid-template-columns: 1fr;
    }

    .pillars-list {
        grid-template-columns: 1fr;
    }

    .blog-grid:not(#blogs .blog-grid) {
        grid-template-columns: 1fr;
    }

    .final-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   WORKPLACE SAFETY TRAINING MODULE (.training-services-overview)
   ========================================================================== */
.training-services-overview {
    padding: clamp(40px, 5.5vw, 64px) 0;
    background: #FAFAFB;
    border-top: 1px solid #ECEFF2;
    border-bottom: 1px solid #ECEFF2;
}

.training-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.training-service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #EAECEF);
    border-radius: var(--r-md, 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.04));
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.training-service-card:hover {
    transform: translateY(-6px);
    border-color: #F8D7D7;
    box-shadow: 0 12px 32px rgba(227, 6, 19, 0.1);
}

.training-service-figure {
    margin: 0;
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light, #FFF9F9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-service-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.training-service-card:hover .training-service-figure img {
    transform: scale(1.05);
}

.training-service-body {
    padding: 22px 24px 26px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.training-service-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.training-service-body p {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .training-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .training-service-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced Padding between CASE STUDIES & BLOGS and FAQ */
.blogs {
    padding-bottom: clamp(20px, 2.5vw, 30px) !important;
}

/* Compact Sizing for FAQ Module on Fire Safety Training Page */
.training-faq {
    padding: clamp(28px, 3.5vw, 44px) 0 !important;
}

.training-faq .faq-list {
    margin-top: 24px !important;
    gap: 10px !important;
}

.training-faq .faq-list summary {
    padding: 15px 20px !important;
    font-size: clamp(14.5px, 1.15vw, 15.5px) !important;
}

.training-faq .faq-list details p {
    padding: 0 20px 16px 20px !important;
    font-size: 14px !important;
}

/* ==========================================================================
   MASTER AMBULANCE DESIGN SYSTEM HARMONIZATION FOR FIRE SAFETY TRAINING PAGE
   ========================================================================== */
.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 36px;
}

.eyebrow,
.section-eyebrow,
.section-head .eyebrow {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #E30613 !important;
    margin-bottom: 8px !important;
}

.title-underline,
.section-head .rule.center,
.section-head .rule {
    display: block !important;
    width: 48px !important;
    height: 4px !important;
    border-radius: 4px !important;
    background: #E30613 !important;
    margin: 10px auto 18px !important;
}

.section-title,
.section-head .section-title {
    font-size: clamp(26px, 3.2vw, 38px) !important;
    font-weight: 480 !important;
    line-height: 1.22 !important;
    color: #14181F !important;
    letter-spacing: -0.02em !important;
}

.section-lead,
.section-subtitle,
.section-head .lead {
    font-size: clamp(15px, 1.2vw, 16.5px) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #4B5563 !important;
}

/* Trust Cards Grid & Cards (Matching OHC Design Reference) */
.trust-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 22px) !important;
    margin-top: 16px !important;
    padding-top: 0 !important;
    border-top: none !important;
    position: relative !important;
    z-index: 2 !important;
}

.trust-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(6px) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.trust-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
    border-color: #FBD9DA !important;
}

.trust-card__icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #FDECEC !important;
    color: #E30613 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
}

.trust-card__body {
    display: flex !important;
    flex-direction: column !important;
}

.trust-card__value {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.trust-card__label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    margin: 2px 0 0 0 !important;
    line-height: 1.35 !important;
}

/* ==========================================================================
   OHC — CASE STUDIES & BLOGS
   Ambulance-style horizontal carousel + smooth pointer dragging
   ========================================================================== */

#blogs {
    --blogs-gap: 24px;
    --blogs-radius: 22px;
}

#blogs .content-filter-wrapper {
    margin-top: 20px !important;
}

#blogs .content-filter-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-sm);
}

#blogs .filter-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted-neutral);
    min-height: 42px;
    padding: 10px 22px;
    border-radius: var(--r-pill);
    font: 600 14px/1.2 var(--font-title);
    white-space: nowrap;
    cursor: pointer;
    transition:
        color .25s var(--transition-curve),
        background-color .25s var(--transition-curve),
        box-shadow .25s var(--transition-curve),
        transform .18s ease;
}

#blogs .filter-tab:hover {
    color: var(--red);
}

#blogs .filter-tab.active,
#blogs .filter-tab[aria-selected="true"] {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 5px 14px rgba(227, 6, 19, .20);
}

#blogs .filter-tab:focus-visible {
    outline: 3px solid rgba(227, 6, 19, .22);
    outline-offset: 2px;
}

#blogs .filter-tab:active {
    transform: scale(.98);
}

/* Carousel viewport */
#blogs .blogs-carousel {
    position: relative;
    width: 100%;
    margin-top: 28px;
    overflow: hidden;
}

/* Horizontal scroll track */
#blogs .blogs-carousel .blog-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    grid-auto-columns: calc((100% - (var(--blogs-gap) * 2)) / 3);

    gap: var(--blogs-gap) !important;
    width: 100%;
    margin: 0 !important;
    padding: 4px 4px 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

#blogs .blogs-carousel .blog-grid::-webkit-scrollbar {
    display: none;
}

#blogs .blogs-carousel .blog-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

#blogs .blog-card {
    min-width: 0;
    width: 100%;
    min-height: 100%;
    scroll-snap-align: start;

    display: flex !important;
    flex-direction: column;

    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--blogs-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);

    transition:
        transform .28s var(--transition-curve),
        box-shadow .28s var(--transition-curve),
        border-color .28s var(--transition-curve);
}

#blogs .blog-card[hidden] {
    display: none !important;
}

#blogs .blog-card:hover {
    transform: translateY(-6px);
    border-color: #FBD9DA;
    box-shadow: var(--shadow-lg);
}

#blogs .blog-media {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--bg-light);
}

#blogs .blog-media img {
    display: block;
    width: 100%;
    aspect-ratio: 15 / 11;
    height: auto;
    object-fit: contain !important;
    background: #ffffff !important;

    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;

    transition: transform .45s ease;
}

#blogs .blog-card:hover .blog-media img {
    transform: scale(1.045);
}

#blogs .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    padding: 6px 10px;

    border-radius: var(--r-pill);
    font: 800 10px/1 var(--font-title);
    letter-spacing: .07em;
    text-transform: uppercase;

    box-shadow: 0 3px 10px rgba(17, 24, 39, .10);
}

#blogs .badge-case {
    background: #fff;
    color: var(--red);
}

#blogs .badge-blog {
    background: #fff;
    color: #147A50;
}

#blogs .blog-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 22px;
}

#blogs .blog-body .meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    color: var(--muted-neutral);
    font-size: 12px;
    line-height: 1.4;
}

#blogs .blog-body .meta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

#blogs .blog-body h3 {
    margin: 0 0 10px;
    color: var(--dark-slate);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.42;
    letter-spacing: -.01em;
}

#blogs .blog-body .excerpt {
    flex: 1 1 auto;
    margin: 0;
    color: var(--muted-neutral);
    font-size: 13.5px;
    line-height: 1.58;
}

#blogs .read-more {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-top: 18px;

    color: var(--red) !important;
    font: 700 13.5px/1.2 var(--font-title);
    white-space: nowrap;

    transition: gap .2s ease;
}

#blogs .read-more:hover {
    gap: 10px;
}

#blogs .view-all-wrap {
    margin-top: 32px !important;
}

/* Tablet */
@media (max-width: 1024px) {
    #blogs .blogs-carousel .blog-grid {
        grid-auto-columns: calc((100% - var(--blogs-gap)) / 2.15);
        gap: 20px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #blogs {
        --blogs-gap: 18px;
    }

    #blogs .content-filter-capsule {
        width: min(100%, 440px);
        padding: 4px;
    }

    #blogs .filter-tab {
        flex: 1 1 0;
        min-height: 40px;
        padding: 9px 10px;
        font-size: 12.5px;
    }

    #blogs .blogs-carousel {
        margin-top: 22px;
    }

    #blogs .blogs-carousel .blog-grid {
        grid-auto-columns: 82%;
        gap: var(--blogs-gap) !important;
        align-items: flex-start !important;
        padding: 3px 2px 16px;
        scroll-snap-type: x mandatory;
    }

    #blogs .blog-card {
        scroll-snap-align: center;
        height: auto !important;
    }

    #blogs .blog-body {
        padding: 14px 16px 18px !important;
        flex: 0 0 auto !important;
    }

    #blogs .blog-body h3 {
        font-size: 15.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    #blogs .blog-body .excerpt {
        flex: 0 0 auto !important;
        margin-bottom: 14px !important;
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    #blogs .content-filter-capsule {
        width: 100%;
    }

    #blogs .filter-tab {
        min-height: 38px;
        padding: 8px 7px;
        font-size: 11.5px;
    }

    #blogs .blogs-carousel .blog-grid {
        grid-auto-columns: 88%;
    }

    #blogs .blog-media img {
        aspect-ratio: 16 / 11;
    }

    #blogs .blog-body h3 {
        font-size: 15px;
    }

    #blogs .blog-body .excerpt {
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    #blogs .blog-card,
    #blogs .blog-media img,
    #blogs .filter-tab,
    #blogs .read-more {
        transition: none !important;
    }

    #blogs .blogs-carousel .blog-grid {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   FINAL FIRE SAFETY HERO IMAGE FIX
   Scoped ONLY to #hero.
   Reference: Ambulance hero visual balance.
   ========================================================================== */

#hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(10px, 1.8vw, 22px) !important;
    padding-bottom: clamp(24px, 3.5vw, 44px) !important;
    background: #ffffff !important;
}

/* 3. Curved Crimson Radial Glow (.hero::before) */
#hero::before {
    content: "";
    position: absolute;
    inset: -12% -18% auto 42%;
    height: 130%;
    border-radius: 46% 54% 40% 60% / 52% 40% 60% 48%;
    background: radial-gradient(circle at 40% 35%, rgba(227, 6, 19, 0.10), rgba(227, 6, 19, 0.03) 60%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* 4. Hero 2-Column Grid Layout (.hero-grid) */
#hero .hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

#hero .hero-copy {
    position: relative;
    z-index: 3;
}

#hero .hero-media {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    margin: 0 auto;
}

#hero .hero-media .hero-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 14px 30px rgba(227, 6, 19, 0.07));

    /* 1. Soft Bottom Gradient Mask (mask-image) */
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, #000 84%, transparent 100%) !important;

    user-select: none;
    -webkit-user-drag: none;

    /* 2. Gentle Floating Micro-Animation (animation: floaty) */
    animation: floaty 7s ease-in-out infinite !important;
    will-change: transform;
}

#hero .hero-media::after {
    display: none;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Trust cards remain attached to the hero without changing
   their existing card design. */
#hero .trust-cards {
    position: relative;
    z-index: 4;
    margin-top: 18px !important;
}

/* Large desktop */
@media (min-width: 1400px) {
    #hero .hero-grid {
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr);
        gap: 34px;
    }

    #hero .hero-media {
        max-height: 540px;
    }

    #hero .hero-media .hero-img {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    #hero .hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #hero .hero-copy {
        text-align: center;
    }

    #hero .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    #hero .hero-actions {
        justify-content: center;
    }

    #hero .hero-media {
        width: min(100%, 760px);
        height: auto;
        max-height: 440px;
        margin: 0 auto;
        justify-content: center;
    }

    #hero .hero-media .hero-img {
        width: 100% !important;
        margin: 0 auto !important;
    }

    #hero .trust-cards,
    .trust-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-top: 20px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #hero .hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    #hero .hero-copy h1 {
        font-size: clamp(21px, 5.2vw, 25px) !important;
        line-height: 1.2 !important;
        margin-bottom: 14px !important;
    }

    #hero .hero-lead {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
        max-width: 100% !important;
    }

    #hero .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 20px 0 !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    #hero .hero-actions .btn {
        display: inline-flex !important;
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 8px 4px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        min-height: 46px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #hero .hero-actions .btn i,
    #hero .hero-actions .btn svg {
        font-size: 12px !important;
        margin-right: 3px !important;
        flex-shrink: 0 !important;
    }

    #hero .hero-actions .btn br.mobile-btn-br {
        display: inline !important;
    }

    #hero .hero-grid {
        gap: 18px;
    }

    #hero .hero-media {
        height: auto;
        max-height: 380px;
    }

    #hero .hero-media .hero-img {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    #hero .hero-actions .btn br.mobile-btn-br {
        display: none !important;
    }
}

/* Small phones */
@media (max-width: 640px) {

    #hero .trust-cards,
    .trust-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    #hero .trust-card,
    .trust-card {
        padding: 12px 14px !important;
    }
}

@media (max-width: 480px) {
    #hero .hero-media {
        height: auto;
        max-height: 320px;
    }

    #hero .hero-media .hero-img {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero .hero-media .hero-img {
        animation: none !important;
    }
}