/* =========================================
   Source - Bootstrap 5
   Cleaned + Optimised Brand Stylesheets
========================================= */


/* ==========================================================================
   1. GLOBAL VARIABLES
   ========================================================================== */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #050709;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   PART 1: Tactical Navbar Framework (Base & Mobile)
   ========================================================================== */
.tactical-navbar {
    background-color: #0c0d0f;
    border-bottom: 1px solid #1a1d20;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 0;
    transition: all 0.25s ease;
}

.tactical-navbar .container-fluid {
    height: 100%;
}

/* Base structural footprint for the compact scroll logo */
.scroll-minimized-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.navbar-brand.d-lg-none {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 0;
    padding: 0 0 0 24px !important;
}

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

.tactical-navbar .navbar-toggler {
    color: #ffffff;
    border: none;
    font-size: 1.75rem;
    padding: 0;
    margin-right: 24px;
}

.tactical-navbar .nav-link {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.tactical-navbar .nav-link:hover,
.tactical-navbar .nav-link.active {
    color: #d11a2a;
}

.tactical-navbar .btn-get-in-touch {
    background-color: #a30006;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tactical-navbar .btn-get-in-touch:hover {
    background-color: #c40008;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .tactical-navbar .navbar-collapse {
        background-color: #0c0d0f;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        border-bottom: 1px solid #1a1d20;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }

    .tactical-navbar .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .tactical-navbar .nav-link {
        padding: 12px 0;
    }

    .tactical-navbar .btn-get-in-touch {
        margin-top: 15px;
        padding: 12px;
        border-radius: 4px;
        width: 100%;
    }

    /* SEGREGATION FIX: Completely hides the desktop scroll variant on mobile layout views */
    .scroll-minimized-logo {
        display: none !important;
    }
}

/* ==========================================================================
   PART 2: Desktop Navbar System (992px and up) - SOLID OPACITY ENGINE
   ========================================================================== */
@media (min-width: 992px) {
    .tactical-navbar {
        height: 75px;
    }

    .desktop-logo-floating-wrapper {
        position: absolute !important;
        top: 25px !important;
        left: calc((100vw - 1200px) / 2 + 15px) !important;
        z-index: 1200 !important;
        width: 250px;
        height: auto;
    }

    /* LARGE CREST INITIAL STATE */
    .desktop-logo-floating-wrapper .desktop-logo-img {
        width: 250px !important;
        height: auto !important;
        display: block !important;
        opacity: 1;
        visibility: visible;
        filter: drop-shadow(0px 12px 18px rgba(0, 0, 0, 0.85));
        transition: transform 0.25s ease, opacity 0.2s ease;
        transform: translateY(0);
    }

    /*  COMPACT LOGO INITIAL STATE (Hidden but loaded in place) */
    .desktop-logo-floating-wrapper .scroll-minimized-logo {
        width: 140px !important;
        height: auto !important;
        display: block !important;
        position: absolute !important;
        top: -10px;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.25s ease;
        transform: scale(0.9);
    }

    /* ==========================================
        THE SCROLL REVEAL ENGINE
       ========================================== */

    /*  Fade out the giant crest logo */
    .tactical-navbar.scrolled .desktop-logo-floating-wrapper .desktop-logo-img {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-40px) scale(0.85);
    }

    .tactical-navbar.scrolled .desktop-logo-floating-wrapper .scroll-minimized-logo {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .tactical-navbar.scrolled {
        height: 65px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .tactical-navbar .navbar-collapse,
    .tactical-navbar .navbar-nav {
        height: 100%;
    }

    .tactical-navbar .nav-link {
        font-size: 0.80rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        padding: 0 14px;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .tactical-navbar .dropdown-toggle::after {
        display: none !important;
    }

    /* Automatic Hover Dropdown Panel Engine */
    .tactical-navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }

    .tactical-navbar .dropdown-menu {
        background-color: #0c0d0f;
        border: 1px solid #1a1d20;
        border-radius: 0 0 4px 4px;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .tactical-navbar .dropdown-item {
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 20px;
        transition: all 0.2s ease;
    }

    .tactical-navbar .dropdown-item:hover {
        background-color: #d11a2a;
        color: #ffffff;
    }

    .tactical-navbar .nav-link.active {
        position: relative;
    }

    .tactical-navbar .btn-get-in-touch {
        height: 100%;
        border-radius: 0;
        padding: 0 24px;
        margin: 0;
    }
}

/* Guardrails for compact mid-size laptop viewports */
@media (min-width: 992px) and (max-width: 1240px) {
    .desktop-logo-floating-wrapper {
        left: 20px !important;
        width: 180px;
    }

    .desktop-logo-floating-wrapper .desktop-logo-img {
        width: 180px !important;
    }

    .desktop-logo-floating-wrapper .scroll-minimized-logo {
        width: 110px !important;
        top: -12px;
    }

    .tactical-navbar .nav-link {
        padding: 0 10px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   PART 3: Tactical Hero Presentation Section (Core Framework)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(135deg, rgba(12, 13, 15, 0.95) 35%, rgba(12, 13, 15, 0.35) 100%),
        url('/images/hero-bg1.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;

    padding: 140px 20px 60px 20px;
}

.hero-section .container-fluid {
    max-width: 1320px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* TRACK CLEARANCE TEXT LIMITS: Hard boundary overrides */
.hero-left-panel {
    max-width: 680px !important;
    width: 100%;
}

.hero-title {
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.4rem;
    }
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e51b24 !important;
    display: block;
    max-width: 100%;
}

.text-danger-custom {
    color: #e51b24;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 540px;
}

/* Action Button Components */
.btn-custom-red {
    background-color: #a30006;
    border: 1px solid #a30006;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 190px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-custom-red:hover {
    background-color: #c40008;
    border-color: #c40008;
    color: white;
}

.btn-custom-outline {
    background-color: transparent;
    border: 1px solid #4a4e54;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 230px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-custom-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

/* ==========================================================================
   PART 4: Desktop Grid Separation Engine & Quote Panels (1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
    .hero-section .container-fluid {
        max-width: 1380px !important;
        width: 100% !important;
        padding-left: 45px !important;
        padding-right: 45px !important;
    }

    /*  1440px SPACING FIX: */
    .hero-section {
        padding-top: 270px !important;
        padding-bottom: 90px !important;
    }

    .hero-section .row {
        display: grid !important;
        grid-template-columns: 1fr 440px !important;
        gap: 80px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .hero-left-panel {
        width: 100% !important;
        max-width: 680px !important;
        padding: 0 !important;
    }

    .hero-section .col-xl-5 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        display: block !important;
    }

    .hero-title {
        font-size: 3.2rem !important;
        line-height: 1.1 !important;
    }
}

/* HIGH RESOLUTION MONITOR SUPPORTS (1600px up to 1920px+) */
@media (min-width: 1600px) {
    .hero-section {
        padding-top: 290px !important;
    }

    .hero-title {
        font-size: 3.6rem !important;
    }

    .hero-left-panel {
        max-width: 740px !important;
    }
}

/*  EXTRA LAYER SAFETY OVERRIDE: Standard Laptop / 1024px Screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding-top: 230px !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-desc {
        max-width: 480px !important;
    }
}

/* Translucent Quote Box Styling */
.quote-box {
    background: rgba(6, 9, 13, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 4px;
    max-width: 460px;
    width: 100%;
}

@media (max-width: 1199.98px) {
    .quote-box {
        margin-inline: auto;
        margin-top: 40px;
    }
}

.quote-item {
    position: relative;
    padding-left: 35px;
}

.quote-mark {
    color: #e51b24;
    font-size: 2.2rem;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
}

.quote-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    color: #f1f5f9;
}

.quote-divider {
    border-top: 1px solid #e51b24;
    opacity: 0.8;
    margin: 25px 0;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   5. Lower Dark Credentials Badge Banner
   ========================================================================== */
.badges-banner {
    background-color: #06080b;
    border-top: 1px solid #1a1d20;
    border-bottom: 1px solid #1a1d20;
    padding: 45px 20px !important;
    position: relative;
    width: 100%;
}

.badges-banner .container-fluid {
    max-width: 1320px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Master grid spacing clearance mechanics */
.custom-badge-gap {
    gap: 40px !important;
}

@media (max-width: 1199.98px) {
    .custom-badge-gap {
        gap: 30px !important;
        justify-content: center !important;
    }
}

/* The Master Component Block */
.badge-component {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .badge-component {
        justify-content: center;
    }
}

/*  IMAGE SCALE ENGINE: Bumped up significantly from 55px for strong asset presence */
.badge-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

.custom-bronze-tweak {
    height: 100px;
}

.badge-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography Upgrades */
.badge-text-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.badge-text-sub {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0;
}

/*  OFFICIAL MILITARY STATUS COLOR FIX */
.badge-text-sub.status-award {
    color: #c98669 !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Centred layout divider lines */
.vertical-divider {
    border-left: 1px solid #626363;
    height: 65px;
    align-self: center;
    margin: 0 10px;
}

/* ==========================================================================
   6. Tactical Operational Services Section
   ========================================================================== */
.tactical-services-section {
    background-color: #0c0d0f;
    border-top: 1px solid #1a1d20;
    padding: 100px 20px;
    position: relative;
    width: 100%;
}

/* Master Alignment Track */
.tactical-services-section .container-fluid {
    max-width: 1440px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 45px;
    padding-right: 45px;
}

@media (max-width: 1200px) {
    .tactical-services-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Section Header Typography */
.service-subtitle {
    color: #e51b24;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.service-main-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.title-tactical-line {
    width: 60px;
    height: 3px;
    background-color: #e51b24;
    margin: 15px auto 0 auto;
}

@media (min-width: 1200px) {
    .title-tactical-line {
        margin: 15px 0 0 0;
    }
}

/*  CARD LINK FOOTPRINT ENGINE */
.card-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
    outline: none;
}

.services-grid-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (min-width: 576px) {
    .services-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .services-grid-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1600px) {
    .services-grid-row {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* THE RIVETED TACTICAL FIELD CARD COMPONENT */
.tactical-services-section .card {
    position: relative;
    width: 100% !important;
    padding: 40px 24px;
    height: 100%;
    text-align: center;
    color: #ffffff;
    background-color: #12181f;
    background-image:
        url('/images/stone-texture.webp'),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.4) 90%);
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid #222a33;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner content wrapper isolates cell height boundaries */
.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Card Icons */
.tactical-services-section .card .bi {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Typography elements */
.tactical-services-section .card .h4 {
    font-size: 1.00rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
}

.tactical-services-section .card p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* METALLIC RIVET GENERATION ENGINE */
.tactical-services-section .card::before,
.tactical-services-section .card::after,
.card-content::before,
.card-content::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #55585d, #1e2022);
    border-radius: 50%;
    border: 1px solid #050607;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Locking rivets cleanly to card perimeter boundaries */
.tactical-services-section .card::before {
    top: 12px;
    left: 12px;
}

.tactical-services-section .card::after {
    top: 12px;
    right: 12px;
}

.card-content::before {
    bottom: -28px;
    left: -12px;
}

.card-content::after {
    bottom: -28px;
    right: -12px;
}

.carousel-section-wrapper {
    position: relative;
    width: 100%;
}

/* Ensure track window takes full width */
.carousel-track-window-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Container for bottom-right alignment */
.carousel-bottom-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    /* Space between the previous and next buttons */
    margin-top: 20px;
    /* Space between the slides and the buttons */
    width: 100%;
}

/* Tactical styling for the buttons */
.carousel-control-btn {
    background-color: #12181f;
    border: 2px solid #222a33;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-control-btn:hover {
    background-color: #1a232e;
    border-color: #e51b24;
    color: #e51b24;
}

/* ==========================================
   PREMIUM INDUSTRIAL WHITE-HOT HOVER EFFECT 
   ========================================== */
.card-link:hover .card {
    border-color: #ffffff;
    transform: translateY(-5px);
    background-color: #18202a;
    /* Smoothly lightens further on mouse-enter for tactile depth click feedback */
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.10);
}

.card-link:hover .bi {
    color: #ffffff;
    /* Icon stays bright silver-white with a smooth scaling pop */
    transform: scale(1.05);
}

/* ==========================================================================
   7. Tactical Accreditations Badge Banner Layout Track
   ======================================================= */
.accreditations-banner {
    background-color: #090c0f;
    border-top: 1px solid #161a1f;
    border-bottom: 1px solid #161a1f;
    padding: 45px 20px !important;
    position: relative;
    width: 100%;
}

.accreditations-banner .container-fluid {
    max-width: 1320px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Master grid spacing clearance engine */
.custom-accred-gap {
    gap: 40px !important;
}

@media (max-width: 1199.98px) {
    .custom-accred-gap {
        gap: 30px !important;
        justify-content: center !important;
    }
}

/* Main Component Layout Row */
.accred-component {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

@media (max-width: 767.98px) {
    .accred-component {
        justify-content: center;
    }
}

/* Tactical Symbol Frame */
.accred-icon-shield {
    width: 75px;
    height: 75px;
    background-color: #111418;
    border: 2px solid #222a33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.accred-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.accred-text-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.accred-text-sub {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0;
}

/*  COMPLIANCE ALARM STATUS HIGHLIGHT */
.accred-text-sub.status-certified {
    color: #c98669 !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Grid Separator Lines */
.accred-vertical-divider {
    border-left: 1px solid #161a1f;
    height: 65px;
    align-self: center;
    margin: 0 10px;
}

/* ==========================================================================
   8. Tactical Course Directory Carousel Section
   ========================================================================== */
.tactical-courses-section {
    background-color: #0c0d0f;
    background-image:
        url('/images/stone-texture.webp'),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.2) 90%);
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;

    border-top: 1px solid #1a1d20;
    padding: 100px 20px;
    position: relative;
    width: 100%;
}


.tactical-courses-section .container-fluid {
    max-width: 1440px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 45px;
    padding-right: 45px;
}

@media (max-width: 1200px) {
    .tactical-courses-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Typography Headings */
.course-subtitle {
    color: #e51b24;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.course-main-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.title-tactical-line {
    width: 60px;
    height: 3px;
    background-color: #e51b24;
    margin: 15px auto 0 auto;
}

@media (min-width: 1200px) {
    .title-tactical-line {
        margin: 15px 0 0 0;
    }
}

/* THE SLIDER TRACK VIEWPORT WINDOW */
.carousel-track-window-wrapper {
    overflow: hidden !important;
    width: 100%;
}

/* MULTI-CARD DRAG INERTIA CAROUSEL ROW */
.carousel-track-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 10px 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    scrollbar-width: none !important;
}

.carousel-track-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* RESPONSIVE SLIDER CARD  */
.course-column-card {
    flex: 0 0 88% !important;
    max-width: 88% !important;
}

@media (min-width: 576px) {
    .course-column-card {
        flex: 0 0 47% !important;
        max-width: 47% !important;
    }

    /* Tablet views */
}

@media (min-width: 992px) {
    .course-column-card {
        flex: 0 0 31.5% !important;
        max-width: 31.5% !important;
    }

    /* Laptop / 1024px views */
}

@media (min-width: 1400px) {
    .course-column-card {
        flex: 0 0 calc((100% - (3 * 16px)) / 4) !important;
        max-width: calc((100% - (3 * 16px)) / 4) !important;
    }
}

/* THE COURSE CARD COMPONENT FRAMEWORK */
.course-card {
    background-color: #0b0e12;
    border: 2px solid #222a33;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Alert badge formatting */
.course-badge-status {
    position: absolute;
    top: 15px;
    right: 45px;

    background-color: rgba(229, 27, 36, 0.1);
    border: 1px solid #e51b24;
    color: #e51b24;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    text-transform: uppercase;
    z-index: 5;
}

.course-card-body {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.course-code {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.course-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.course-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Footer Metrics layout row */
.course-meta-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #1a1d20;
    padding-top: 20px;
}

.meta-item {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.meta-item i {
    color: #e51b24;
    margin-right: 5px;
}

.btn-course-action {
    color: #ffffff;
    text-decoration: none !important;
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.btn-course-action i {
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

/* METALLIC INDUSTRIAL RIVETS */
.course-card::before,
.course-card::after,
.course-card-body::before,
.course-card-body::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #55585d, #1e2022);
    border-radius: 50%;
    border: 1px solid #050607;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.course-card::before {
    top: 12px;
    left: 12px;
}

.course-card::after {
    top: 12px;
    right: 12px;
}

.course-card-body::before {
    bottom: 12px;
    left: 12px;
}

.course-card-body::after {
    bottom: 12px;
    right: 12px;
}

.course-card:hover {
    border-color: #222a33 !important;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    background-color: #12171e;
}

.course-card:hover .btn-course-action {
    color: #e51b24;
}

.course-card:hover .btn-course-action i {
    transform: translateX(4px);
}

/* ==========================================================================
   9. Why Choose Excalibur Master Profile Section
   ========================================================================== */
.tactical-profile-section {
    background-color: #0c0d0f;
    border-top: 1px solid #1a1d20;
    padding: 100px 20px;
    position: relative;
    width: 100%;
}

.tactical-profile-section .container-fluid {
    max-width: 1440px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 45px;
    padding-right: 45px;
}

@media (max-width: 1200px) {
    .tactical-profile-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.profile-subtitle {
    color: #e51b24;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.profile-main-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-tactical-line {
    width: 60px;
    height: 3px;
    background-color: #e51b24;
}

.profile-lead-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 580px;
}

@media (min-width: 1200px) {
    .custom-profile-row-grid {
        display: grid !important;
        grid-template-columns: 1fr 540px !important;
        gap: 80px !important;
        align-items: center !important;
    }

    .profile-left-copy-panel,
    .profile-right-matrix-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
}

@media (min-width: 1600px) {
    .custom-profile-row-grid {
        grid-template-columns: 1fr 580px !important;
        gap: 120px !important;
    }
}

.tactical-metric-pod {
    background-color: #12181f;
    border: 2px solid #222a33;
    padding: 25px;
    text-align: center;
}

.metric-number {
    display: block;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* ==========================================
   CONSOLE DATA STRIPS 
   ========================================== */
.tactical-matrix-console-box {
    position: relative;
    background-color: #12181f;
    background-image:
        url('/images/stone-texture.webp'),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.1) 90%);
    background-blend-mode: overlay;
    background-size: cover;

    border: 2px solid #222a33;
    padding: 50px 35px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1199.98px) {
    .tactical-matrix-console-box {
        margin-top: 40px;
    }
}


.matrix-item-strip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-bottom: 30px;
    width: 100%;
}

.matrix-item-strip:last-child {
    margin-bottom: 0;
}

.matrix-indicator-node {
    color: #e51b24;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.matrix-text-block {
    display: flex;
    flex-direction: column;
}

.matrix-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.matrix-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* RIVETS ELEMENTS */
.tactical-matrix-console-box {
    position: relative;
    background-color: #12181f;
    background-image:
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        url('/images/stone-texture.webp'),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.1) 90%);

    background-blend-mode: normal, normal, normal, normal, overlay, normal;

    background-position:
        15px 15px,
        calc(100% - 15px) 15px,
        15px calc(100% - 15px),
        calc(100% - 15px) calc(100% - 15px),
        center,
        center;

    background-size:
        10px 10px,
        /* Top-Left Rivet */
        10px 10px,
        /* Top-Right Rivet */
        10px 10px,
        /* Bottom-Left Rivet */
        10px 10px,
        /* Bottom-Right Rivet */
        cover,
        /* Texture */
        cover;
    /* Backdrop shade */

    background-repeat: no-repeat;

    border: 2px solid #222a33;
    padding: 50px 35px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.tactical-matrix-console-box::before,
.tactical-matrix-console-box::after {
    display: none;
}

/* ==========================================================================
   10. Master Tactical Operations Footer Engine (mock-up Accurate)
   ========================================================================== */
.tactical-footer-deck {
    background-color: #06080b;
    /* Deep pitch black floor from your image */
    border-top: 3px solid #b01421;
    /* Sharp red operational frame ceiling marker line */
    padding: 70px 20px 35px 20px !important;
    position: relative;
    width: 100%;
}

.tactical-footer-deck .container-fluid {
    max-width: 1440px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 45px;
    padding-right: 45px;
}

@media (max-width: 1200px) {
    .tactical-footer-deck .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* FOUR COLUMN LAYOUT MATRIX ENGINE */
.footer-master-grid-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 40px !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (min-width: 576px) {
    .footer-master-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1200px) {

    /* Precise side-by-side proportions matching your layout panels image density */
    .footer-master-grid-row {
        grid-template-columns: 1.1fr 1.1fr 0.9fr 1.1fr !important;
    }
}

/* Master Column Headers */
.footer-column-title {
    color: #e51b24 !important;
    /* Striking operational red labels exactly like screenshot */
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
}

.footer-brand-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Brand Social Boxes Panel */
.social-icon-box {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.social-icon-box:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Contact List Layout Paths */
.footer-contact-data-feed {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-contact-data-feed li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.contact-icon-node {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1;
    width: 20px;
    display: flex;
    justify-content: center;
}

.contact-feed-value {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

a.contact-feed-value:hover {
    color: #ffffff;
}

/* Quick Nav chevron Lists Layout tracks */
.footer-navigation-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #1e293b;
    /* Encloses the links track cleanly */
}

.footer-navigation-links-list li {
    border-bottom: 1px solid #1e293b;
}

.footer-navigation-links-list a {
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 0;
    width: 100%;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-navigation-links-list a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.icon-chevron-tweak {
    font-size: 0.75rem;
    color: #475569;
}

/* ==========================================
   Mailing Input Form Console Module
   ========================================== */
.newsletter-input-field {
    background-color: #0c0f13 !important;
    border: 1px solid #334155 !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
}

.newsletter-input-field::placeholder {
    color: #475569 !important;
}

.newsletter-input-field:focus {
    border-color: #64748b !important;
    box-shadow: none !important;
}

/* The Exact Action Split Button from the Image */
.newsletter-submit-btn {
    background-color: #a30006 !important;
    border: 1px solid #a30006 !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    /* Splits text to left and chevron arrow flush right */
}

.newsletter-submit-btn:hover {
    background-color: #c40008 !important;
    border-color: #c40008 !important;
}

.button-chevron-tweak {
    font-size: 0.75rem;
}

/* ==========================================
   Lower Sub-Footer Metadata Area
   ========================================== */
.lower-sub-footer-tray {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    width: 100% !important;
    margin-inline: 0 !important;
}

.copyright-text {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.sub-footer-link {
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.sub-footer-link:hover {
    color: #94a3b8;
}

.utility-divider {
    color: #1e293b;
    margin: 0 10px;
}

/* The Golden Motto Text on the Right Edge */
.footer-motto-tagline {
    color: #b01421;
    /* Crimson italic command motto tracking value */
    font-size: 0.90rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ==========================================
   About us Page
   ========================================== */
.hero-section-most {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/about-hero-bg.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

/* Optional overlay to keep text readable */
.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}


.excalibur-commitment-section {
    background-color: #0b0c10;
    /* Deep tactical dark background */
}


.cta-banner {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.95) 0%, rgba(10, 12, 16, 0.95) 100%);
    border: 1px solid rgba(13, 110, 253, 0.3);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.cta-banner .btn-primary {
    background-color: #0d6efd;
    border: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-banner .btn-primary:hover {
    background-color: #0b5ed7;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.5) !important;
}

/* ==========================================
   Team Page
   ========================================== */
.hero-section-team {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/team-hero-bg.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

/* ==========================================
   Veterans Page
   ========================================== */
.hero-section-vet {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/veteran-hero-bg.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

/* ==========================================
   Sustainability Page
   ========================================== */
.hero-section-sus {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/sustainability-hero.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

/* ==========================================
   Mental Health Page
   ========================================== */
.hero-section-ment {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/health-hero-bg.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

/* ==========================================
   Useful Links Page
   ========================================== */
.hero-section-lin {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/useful-hero-bg.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

/* ==========================================
   Services Page
   ========================================== */
.hero-section-serv {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/services-hero.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

.serv .tactical-matrix-console-box {
    position: relative;
    background-color: #12181f;
    background-image:
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        url('/images/stone-texture.webp'),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.1) 90%);
    background-blend-mode: normal, normal, normal, normal, overlay, normal;
    background-position: 15px 15px, calc(100% - 15px) 15px, 15px calc(100% - 15px), calc(100% - 15px) calc(100% - 15px), center, center;
    background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, cover, cover;
    background-repeat: no-repeat;
    border: 2px solid #222a33;
    padding: 50px 35px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Accordion Item Wrapper */
.serv .matrix-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.serv .matrix-accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Make summary look clickable and clean up markers */
.serv .matrix-item-strip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    width: 100%;
    cursor: pointer;
    list-style: none;
}

.serv .matrix-item-strip::-webkit-details-marker {
    display: none;
}

/* Indicator Node Rotation when active */
.serv .matrix-accordion-item[open] .matrix-indicator-node {
    transform: rotate(90deg);
    color: #ffffff;
    /* Highlights red indicator to white when open */
}

.serv .matrix-indicator-node {
    color: #e51b24;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.serv .matrix-text-block {
    display: flex;
    flex-direction: column;
}

.serv .matrix-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.serv .matrix-item-strip:hover .matrix-title {
    color: #e51b24;
    /* Subtle hover color change matching the tactical accent */
}

.serv .matrix-desc {
    color: #b8c6da;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Expanded Content Panel Design */
.serv .matrix-content-panel {
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #e51b24;
    border-radius: 0 4px 4px 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.serv .matrix-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    padding-bottom: 20px;
    scroll-margin-top: 100px;
    /* Adjust this number (e.g., 80px to 120px) to match the height of your sticky header */
}

/* ==========================================
   Courses Page
   ========================================== */
.hero-section-cor {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/courses-hero.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

.serv .tactical-matrix-console-box {
    position: relative;
    background-color: #12181f;
    background-image:
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        radial-gradient(circle, #55585d 0%, #1e2022 70%, #050607 100%),
        url('/images/stone-texture.webp'),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.1) 90%);
    background-blend-mode: normal, normal, normal, normal, overlay, normal;
    background-position: 15px 15px, calc(100% - 15px) 15px, 15px calc(100% - 15px), calc(100% - 15px) calc(100% - 15px), center, center;
    background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, cover, cover;
    background-repeat: no-repeat;
    border: 2px solid #222a33;
    padding: 50px 35px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Accordion Item Wrapper */
.serv .matrix-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.serv .matrix-accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Make summary look clickable and clean up markers */
.serv .matrix-item-strip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    width: 100%;
    cursor: pointer;
    list-style: none;
}

.serv .matrix-item-strip::-webkit-details-marker {
    display: none;
}

/* Indicator Node Rotation when active */
.serv .matrix-accordion-item[open] .matrix-indicator-node {
    transform: rotate(90deg);
    color: #ffffff;
    /* Highlights red indicator to white when open */
}

.serv .matrix-indicator-node {
    color: #e51b24;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.serv .matrix-text-block {
    display: flex;
    flex-direction: column;
}

.serv .matrix-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.serv .matrix-item-strip:hover .matrix-title {
    color: #e51b24;
    /* Subtle hover color change matching the tactical accent */
}

.serv .matrix-desc {
    color: #b8c6da;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Expanded Content Panel Design */
.serv .matrix-content-panel {
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #e51b24;
    border-radius: 0 4px 4px 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.serv .matrix-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    padding-bottom: 20px;
    scroll-margin-top: 100px;
    /* Adjust this number (e.g., 80px to 120px) to match the height of your sticky header */
}

/* ==========================================
   Products Page
   ========================================== */
.hero-section-prod {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/products-hero.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

/* ==========================================
   Contact Page
   ========================================== */
.hero-section-con {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height of 600px */
    background: url('/images/useful-hero-bg.webp') no-repeat center center;
    background-size: cover;
    /* Adjust padding-top to position content nicely below your overflowing logo within the 600px */
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section-most::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-section-most .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 2px;
    color: #a0c4ff;
    font-size: 0.95rem;
}

.hero-left-panel h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-links .badge,
.contact-links a.badge {
    display: inline-block;
    background-color: red;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.contact-links .badge:hover,
.contact-links a.badge:hover {
    background-color: rgb(255, 93, 93) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.contact-links .badge i {
    margin-right: 5px;
}

.btn-send {
    background-color: red;
    color: #fff;
}

.btn-send:hover {
    background-color: rgb(247, 77, 77);
    color: #fff;
}