/*
 * ProtectYourData™ Theme CSS
 * High-performance, fully responsive stylesheet for Cybersecurity Awareness LMS
 * Active Palette: #d90429, #ffb703, #023047, #8ecae6 | Background Canvas: #ffffff
 */

:root {
  /* Surface & Base Canvas */
  --bg-canvas: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-main: #023047;
  --text-body: #1e293b;
  --text-primary: #023047;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-glow: rgba(217, 4, 41, 0.15);

  /* Primary Brand / Action (#d90429, #be123c) */
  --color-primary: #d90429;
  --color-primary-hover: #be123c;
  --color-primary-text: #ffffff;
  --accent-ruby: #d90429;
  --accent-ruby-deep: #be123c;

  /* Authority Navy & Secondary (#023047, #8ecae6) */
  --color-navy: #023047;
  --color-navy-dark: #011c2b;
  --color-sky: #8ecae6;
  --color-sky-light: #e0f2fe;

  /* Amber & Highlights (#ffb703) */
  --color-amber: #ffb703;
  --color-warning: #ffb703;
  --accent-amber: #ffb703;

  /* Success UI */
  --color-success: #166534;
  --color-success-bg: #86efac;
  --accent-green-deep: #166534;
  --accent-green-mint: #86efac;

  --accent-cyan: #8ecae6;
  --accent-cyan-rgb: 142, 202, 230;
  --accent-purple: #023047;
  --accent-purple-rgb: 2, 48, 71;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1600px;
  --container-narrow: 900px;
}

/* ================================================================
   1. RESET & GLOBALS
   ================================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: clip;
    width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

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

/* Form Elements Focus Rings */
input:focus, select:focus, textarea:focus {
    border-color: #d90429 !important;
    outline: 2px solid rgba(217, 4, 41, 0.25) !important;
    outline-offset: 1px !important;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 800;
    line-height: 1.22;
}

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* ================================================================
   2. STICKY HEADER WRAPPER, GRADIENT RED TOP BAR & WIDE NAV
   ================================================================ */
.site-header-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 25px rgba(2, 48, 71, 0.08);
    transition: all 0.3s ease;
}

/* 2.1 MODERN GRADIENT RED TOP BAR WITH #ffb703 ACCENTS */
.site-top-bar {
    background: linear-gradient(90deg, #d90429 0%, #be123c 45%, #9f1239 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 183, 3, 0.35);
    font-size: 0.78rem;
    padding: 0.38rem 0;
    position: relative;
    z-index: 1001;
    line-height: 1.4;
    white-space: nowrap;
}

.top-bar-container-wide {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    box-sizing: border-box;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.top-bar-item,
.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.top-bar-link:hover {
    color: #ffb703;
}

.address-short {
    display: none;
}

.top-icon {
    color: #ffb703; /* Vibrant Golden Amber */
    flex-shrink: 0;
}

.top-bar-divider {
    color: rgba(255, 183, 3, 0.45);
    font-weight: 300;
    font-size: 0.72rem;
    user-select: none;
}

.soc-pulse-beacon {
    width: 7px;
    height: 7px;
    background: #ffb703;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffb703;
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

.soc-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #ffb703;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.15rem;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.18);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.35);
    transition: all 0.2s ease;
}

.social-icon-btn:hover {
    background: #ffb703;
    color: #d90429;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 183, 3, 0.4);
}

/* 2.2 WIDE MAIN NAVIGATION HEADER */
.site-header {
    background-color: rgba(240, 253, 244, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #bbf7d0;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.site-header-wide {
    width: 100%;
}

.header-container,
.header-container-wide {
    position: relative;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 2.5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-sizing: border-box;
}

/* 2.3 LEFT CLUSTER (Brand Logo + Quick Contact Capsule) */
.header-left-cluster {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-shrink: 0;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quick-contact-capsule-dropdown {
    position: relative;
}

.quick-contact-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    padding: 0.38rem 0.85rem 0.38rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.quick-contact-trigger-btn:hover,
.quick-contact-capsule-dropdown.is-open .quick-contact-trigger-btn {
    background: #ffffff;
    border-color: #166534;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.12);
    transform: translateY(-1px);
}

.quick-pulse-dot {
    width: 8px;
    height: 8px;
    background: #e11d48;
    border-radius: 50%;
    box-shadow: 0 0 6px #e11d48;
    animation: pulseDot 1.8s infinite;
    flex-shrink: 0;
}

.quick-btn-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.quick-btn-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: #166534;
    letter-spacing: 0.05em;
}

.quick-btn-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.quick-chevron-icon {
    color: #64748b;
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.quick-contact-capsule-dropdown.is-open .quick-chevron-icon {
    transform: rotate(180deg);
    color: #166534;
}

/* Floating Quick Contact Panel */
.quick-contact-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 0.85rem;
    box-shadow: 0 20px 40px -10px rgba(22, 101, 52, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 1005;
    animation: panelPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quick-contact-capsule-dropdown.is-open .quick-contact-panel {
    display: flex;
}

@keyframes panelPopIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.quick-panel-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #f0fdf4;
}

.panel-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    color: #be123c;
    letter-spacing: 0.05em;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}

.quick-panel-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.quick-panel-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.quick-panel-card:hover {
    background: #f0fdf4;
    border-color: #86efac;
    transform: translateX(2px);
}

.quick-panel-card.card-call:hover {
    border-color: #166534;
}

.quick-panel-card.card-email:hover {
    border-color: #e11d48;
}

.quick-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.card-call .quick-card-icon { color: #166534; }
.card-email .quick-card-icon { color: #e11d48; }

.quick-card-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.quick-card-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

.quick-card-value {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

/* 2.4 Brand Link & Modern Logo */
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.brand-link:hover .brand-logo-mark {
    transform: scale(1.06) rotate(1deg);
    filter: drop-shadow(0 0 10px rgba(22, 101, 52, 0.4));
}

.brand-svg-emblem {
    display: block;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-wordmark {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: baseline;
}

.brand-wordmark .word-protect {
    color: var(--text-primary);
    font-weight: 800;
}

.brand-wordmark .word-your {
    color: #166534;
    font-weight: 700;
    margin: 0 1px;
}

.brand-wordmark .word-data {
    color: #be123c;
    background: linear-gradient(135deg, #166534 0%, #be123c 50%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.brand-wordmark .word-tm {
    font-size: 0.72rem;
    font-weight: 700;
    color: #be123c;
    vertical-align: super;
    margin-left: 2px;
    -webkit-text-fill-color: initial;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #166534;
    font-family: var(--font-heading);
    margin-top: 2px;
    transition: color 0.2s ease;
}

.brand-link:hover .brand-tagline {
    color: #e11d48;
}

/* Footer Logo Adjustments */
.brand-footer-logo .brand-wordmark .word-protect {
    color: #ffffff;
}

.brand-footer-logo .brand-wordmark .word-your {
    color: #86efac;
}

.brand-footer-logo .brand-tagline {
    color: #86efac;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-img,
.custom-logo {
    height: auto;
    max-height: 44px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.footer-logo-img {
    max-height: 38px;
}

/* Navigation styles are managed in unified header system */

.menu-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.35;
}

.menu-item-title-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.menu-item-description-text {
    font-family: var(--font-body);
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
}

/* ================================================================
   4. BUTTONS & UI CONTROLS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary); /* #e11d48 */
    color: var(--color-primary-text) !important; /* #ffffff */
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--color-primary-hover) !important; /* #be123c */
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(190, 18, 60, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    border: 1.5px solid var(--color-primary); /* #e11d48 */
    color: var(--color-primary) !important;
    border-radius: 6px;
    padding: 9px 19px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #fef2f2;
    border-color: var(--color-primary-hover); /* #be123c */
    color: var(--color-primary-hover) !important;
    transform: translateY(-1px);
}

.btn-ruby {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
    border-radius: 6px;
}

.btn-ruby:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
    transform: translateY(-1px);
}

.btn-large {
    padding: 12px 28px;
    font-size: 1.05rem;
}

/* Badges & Status Indicators */
.badge-success {
    background-color: var(--color-success-bg); /* #86efac */
    color: var(--color-success); /* #166534 */
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-banner-success {
    background-color: var(--color-success-bg); /* #86efac */
    border: 1px solid var(--color-success); /* #166534 */
    color: var(--color-success);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-banner-warning {
    background-color: #fffbeb;
    border-left: 4px solid var(--color-warning); /* #f59e0b */
    color: #78350f;
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
}

.stat-growth, .metric-growth {
    color: var(--color-success) !important; /* #166534 */
    font-weight: 800;
}

/* Surfaces & Cards */
.card,
.cyber-card {
    background-color: var(--bg-canvas); /* #ffffff */
    border: 1px solid var(--border-color); /* #e5e7eb */
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.card:hover,
.cyber-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* Section Header Typography */
.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-pre-title {
    color: var(--color-primary); /* #e11d48 */
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ================================================================
   5. HOMEPAGE HERO SECTION & SYNCHRONIZED ROTATOR
   ================================================================ */
.homepage-hero {
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, rgba(2,132,199,0.02) 100%);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-badge {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.95rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight-cyan {
    color: var(--accent-cyan);
    text-shadow: none;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2.25rem;
    line-height: 1.65;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Shield Visual Graphic */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 380px;
}

.glow-sphere {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.15) 0%, rgba(var(--accent-purple-rgb), 0.05) 50%, rgba(0,0,0,0) 70%);
    filter: blur(25px);
    z-index: 1;
}

.cyber-shield-box {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(var(--accent-cyan-rgb), 0.25);
}

.outer-ring {
    width: 260px;
    height: 260px;
    animation: rotateCW 20s linear infinite;
}

.inner-ring {
    width: 220px;
    height: 220px;
    border-style: dotted;
    border-color: rgba(var(--accent-purple-rgb), 0.3);
    animation: rotateCCW 15s linear infinite;
}

.shield-svg {
    width: 95px;
    height: 95px;
    fill: var(--accent-cyan);
    filter: drop-shadow(0 0 15px rgba(var(--accent-cyan-rgb), 0.25));
}

@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotateCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Pulse Animation for Terminal Signature Log */
@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    }
    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* ================================================================
   6. LMS COURSE CATEGORIES SHOWCASE (Full-Width 5-Per-Row Grid)
   ================================================================ */
.course-catalog-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.course-catalog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}

.catalog-container-full {
    max-width: 1740px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
    box-sizing: border-box;
}

.catalog-header-wrap {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 3.5rem;
}

.catalog-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.catalog-section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.catalog-section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 auto;
}

/* Category Filter Bar & Live Search */
.catalog-controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.catalog-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cat-filter-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cat-filter-btn:hover {
    color: var(--accent-cyan);
    background: rgba(2, 132, 199, 0.05);
}

.cat-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.catalog-search-box {
    position: relative;
    min-width: 280px;
}

.catalog-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.catalog-search-input:focus {
    background: #ffffff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.catalog-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Category Cards Grid — 5 ITEMS PER ROW */
.course-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
}

.course-cat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.28s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.course-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.course-cat-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12);
}

.course-cat-card:hover::before {
    opacity: 1;
}

.cat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.08);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.course-cat-card:hover .cat-icon-wrap {
    background: var(--accent-cyan);
    color: #ffffff;
    transform: scale(1.08);
}

.cat-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.cat-compliance-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cat-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.cat-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.cat-auditor-purpose {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
}

.auditor-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.auditor-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cat-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: auto;
}

.cat-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.cat-action-link:hover {
    color: var(--accent-purple);
    gap: 10px;
}

/* Stats Banner below Catalog */
.catalog-stats-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box-num {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-box-lbl {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ================================================================
   7. BLOG & RECENT NEWS
   ================================================================ */
.homepage-blog {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--accent-cyan);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* ================================================================
   8. HOMEPAGE CALL TO ACTION
   ================================================================ */
.homepage-cta {
    padding: 6rem 0;
}

.cta-banner {
    background: linear-gradient(135deg, #f0fdfa 0%, #faf5ff 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(var(--accent-cyan-rgb), 0.05);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ================================================================
   9. FOOTER STYLING
   ================================================================ */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-info {
    max-width: 400px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links-list li a {
    color: var(--text-secondary);
}

.footer-links-list li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background-color: var(--bg-primary);
}

.footer-bottom-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--accent-cyan);
}

/* ================================================================
   10. MOBILE & TABLET RESPONSIVE STYLES
   ================================================================ */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    padding: 7px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 10001;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.is-active .bar-1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .bar-2 {
    opacity: 0;
}

.mobile-menu-toggle.is-active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-cta {
    display: none;
}

body.mobile-nav-locked {
    overflow: hidden;
}

@media (max-width: 1550px) {
    .course-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .address-full {
        display: none !important;
    }
    .address-short {
        display: inline !important;
    }
    .course-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .catalog-container-full {
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    /* ─── Responsive Utilities ─── */
    .catalog-container-full {
        padding: 0 1rem;
    }
}

    /* ─── Homepage Responsive ─── */
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 3rem !important;
    }

    .hero-actions {
        justify-content: center !important;
    }

    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .cta-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 3rem 2rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
    }

    .footer-info {
        grid-column: 1 / -1 !important;
    }

    .course-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .catalog-controls-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .catalog-search-box {
        width: 100% !important;
    }

    .catalog-stats-banner {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 2rem 1.5rem !important;
        gap: 1.5rem !important;
    }

    /* ─── Company Profile (page-company.php) ─── */
    .company-hero-section {
        padding: 3.5rem 0 2.5rem !important;
    }
    .company-hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
    }
    .company-hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .vm-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    /* ─── Leadership Page (page-leadership.php) ─── */
    .leadership-hero-section {
        padding: 3.5rem 0 2.5rem !important;
    }
    .leadership-hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
    }
    .leaders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* ─── Pricing Page (page-pricing.php) ─── */
    .pricing-hero-section {
        padding: 3.5rem 0 2.5rem !important;
    }
    .pricing-hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
    }
    .pricing-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .pricing-card.popular-card {
        transform: none !important;
    }
    .pricing-assurance-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
    .matrix-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-md) !important;
        background: #ffffff !important;
    }
    .matrix-table {
        min-width: 680px !important;
        width: 100% !important;
    }

    /* ─── Solutions & Industry Pages (page-solutions.php, page-industry.php) ─── */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    .industry-hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2.5rem !important;
    }
    .industry-hero-visual {
        order: -1 !important;
        margin: 0 auto !important;
    }
    .industry-hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
    }
    .threat-matrix-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 3rem !important;
    }

    /* ─── Standard Pages & Blog (page-standard.php, single.php) ─── */
    .layout-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .standard-sidebar {
        position: static !important;
        top: auto !important;
        order: 2 !important;
    }
    .standard-content-area {
        padding: 2rem 1.5rem !important;
    }
    .entry-header h1 {
        font-size: 2rem !important;
    }

    /* ─── Contact Page (page-contact.php) ─── */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* ─── Resources & Courses ─── */
    .courses-catalog-grid,
    .resources-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Timeline Responsive on Mobile */
    .timeline-line {
        left: 20px !important;
    }
    .timeline-dot {
        left: 13px !important;
    }
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding-left: 45px !important;
    }
    .timeline-date {
        text-align: left !important;
        width: auto !important;
    }
    .timeline-card {
        padding: 1.25rem !important;
        width: 100% !important;
    }

    .company-hero-stats {
        grid-template-columns: 1fr !important;
    }
    .values-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 680px) {
    .leaders-grid {
        grid-template-columns: 1fr !important;
    }
    .leader-image-wrap {
        height: 220px !important;
    }
    .leader-body {
        padding: 1.25rem !important;
    }
    .leader-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
    }
}

@media (max-width: 600px) {
    .container, .header-container, .footer-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .recent-posts-grid,
    .course-categories-grid,
    .catalog-stats-banner,
    .footer-container,
    .solutions-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-bottom-container {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .hero-title {
        font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
    }

    .brand-name {
        font-size: 1.15rem !important;
    }

    .course-cat-card {
        padding: 1.5rem 1.25rem !important;
    }

    .catalog-container-full {
        padding: 0 1rem !important;
    }

    /* Billing Switch on small screens */
    .billing-toggle-wrapper {
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.75rem 1rem !important;
    }

    .pricing-assurance-bar {
        grid-template-columns: 1fr !important;
    }

    .pricing-card {
        padding: 1.75rem 1.25rem !important;
    }

    .tier-price-row .price-amount {
        font-size: 2.3rem !important;
    }

    /* Contact Form on small mobile */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .contact-details-card,
    .contact-form-card {
        padding: 1.5rem 1.25rem !important;
    }

    .info-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }

    /* Standard Content on small mobile */
    .standard-content-area {
        padding: 1.5rem 1rem !important;
    }

    .entry-header h1 {
        font-size: 1.6rem !important;
    }

    .post-content-body {
        font-size: 0.98rem !important;
        line-height: 1.7 !important;
    }

    .post-content-body table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }

    /* Buttons stack nicely on small screens */
    .hero-actions .btn,
    .cta-actions .btn,
    .btn-large {
        width: 100% !important;
        text-align: center !important;
    }
}