/* ==========================================================================
   Kori Pennypacker Theme - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   FONTS
   ========================================================================== */

/* Baskerville */
@font-face {
    font-display: swap;
    font-family: 'Baskerville';
    font-style: normal;
    font-weight: 400;
    src: url('../../../font/baskerville/baskerville-regular.woff2') format('woff2'),
         url('../../../font/baskerville/baskerville-regular.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Baskerville';
    font-style: normal;
    font-weight: 700;
    src: url('../../../font/baskerville/baskerville-bold.woff2') format('woff2'),
         url('../../../font/baskerville/baskerville-bold.ttf') format('truetype');
}

/* Open Sans Variable */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    src: url('../../../font/open-sans/open-sans-variable.woff2') format('woff2-variations');
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    /* === COLORS === */
    --kp-navy-dark: #0d3353;      /* Hero bg, Bible2School bg */
    --kp-navy: #103453;           /* Footer bg */
    --kp-navy-mid: #233751;       /* Divider, subscribe btn */
    --kp-slate: #4f6a81;          /* Resources bg, outline buttons, secondary CTA */
    --kp-blue-badge: #173f6c;     /* "Coming Soon" badge */
    --kp-blue-accent: #0088ff;    /* Light blue - links, interactive elements */
    --kp-red: #f04e3a;            /* Accent - "NEW", "DURING" */
    --kp-coral: #f04e3a;          /* Alias to --kp-red for semantic use */
    --kp-white: #ffffff;
    --kp-cream: #f8f6f4;
    --kp-cream-dark: #e8e4dc;
    --kp-text-dark: #000000;
    --kp-text-muted: rgba(51, 51, 51, 0.7);
    --kp-text-light: rgba(255, 255, 255, 0.9);
    --kp-text-light-muted: rgba(255, 255, 255, 0.7);

    /* === SPACING SCALE === */
    --space-xxxs: 4px;
    --space-xxs: 8px;
    --space-xs: 16px;
    --space-s: 32px;
    --space-m: 48px;
    --space-l: 64px;
    --space-l-xl: 80px;   /* Half-step: footer horizontal padding per Figma */
    --space-xl: 96px;
    --space-xxl: 128px;

    /* === CONTAINER WIDTHS === */
    --ctr-xs: 720px;
    --ctr-s: 960px;
    --ctr-m: 1024px;
    --ctr-l: 1280px;
    --ctr-xl: 1440px;

    /* === TRANSITIONS === */
    --trans-fast: 0.15s;
    --trans-normal: 0.3s;
    --trans-slow: 0.5s;
    --ease-default: ease-out;

    /* === HEADER HEIGHT === */
    /* Initial header: nav padding (64px + 64px) + content (~45px) = ~173px */
    --header-height-initial: 173px;
    /* Dynamic value - updated by JS on scroll */
    --header-height: 173px;

    /* === Z-INDEX SCALE === */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* === TYPOGRAPHY === */
    --font-heading: 'Baskerville', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--kp-text-dark);
    background: var(--kp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   UTILITY CLASSES - Containers
   ========================================================================== */

.ctr {
    width: 100%;
}

.ctr-center {
    margin-left: auto;
    margin-right: auto;
}

.ctr-size-xs { max-width: var(--ctr-xs); }
.ctr-size-s { max-width: var(--ctr-s); }
.ctr-size-m { max-width: var(--ctr-m); }
.ctr-size-l { max-width: var(--ctr-l); }
.ctr-size-xl { max-width: var(--ctr-xl); }

/* ==========================================================================
   UTILITY CLASSES - Vertical Padding
   ========================================================================== */

.ctr-pad-ver-xs { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.ctr-pad-ver-s { padding-top: var(--space-s); padding-bottom: var(--space-s); }
.ctr-pad-ver-m { padding-top: var(--space-m); padding-bottom: var(--space-m); }
.ctr-pad-ver-l { padding-top: var(--space-l); padding-bottom: var(--space-l); }
.ctr-pad-ver-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.ctr-pad-ver-xxl { padding-top: var(--space-xxl); padding-bottom: var(--space-xxl); }

/* Directional variants */
.ctr-pad-top-xs { padding-top: var(--space-xs); }
.ctr-pad-top-s { padding-top: var(--space-s); }
.ctr-pad-top-m { padding-top: var(--space-m); }
.ctr-pad-top-l { padding-top: var(--space-l); }
.ctr-pad-top-xl { padding-top: var(--space-xl); }
.ctr-pad-top-xxl { padding-top: var(--space-xxl); }

.ctr-pad-bot-xs { padding-bottom: var(--space-xs); }
.ctr-pad-bot-s { padding-bottom: var(--space-s); }
.ctr-pad-bot-m { padding-bottom: var(--space-m); }
.ctr-pad-bot-l { padding-bottom: var(--space-l); }
.ctr-pad-bot-xl { padding-bottom: var(--space-xl); }
.ctr-pad-bot-xxl { padding-bottom: var(--space-xxl); }

/* ==========================================================================
   UTILITY CLASSES - Horizontal Padding
   ========================================================================== */

.ctr-pad-hor-xs { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.ctr-pad-hor-s { padding-left: var(--space-s); padding-right: var(--space-s); }
.ctr-pad-hor-m { padding-left: var(--space-m); padding-right: var(--space-m); }
.ctr-pad-hor-l { padding-left: var(--space-l); padding-right: var(--space-l); }
.ctr-pad-hor-l-xl { padding-left: var(--space-l-xl); padding-right: var(--space-l-xl); }
.ctr-pad-hor-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }
.ctr-pad-hor-xxl { padding-left: var(--space-xxl); padding-right: var(--space-xxl); }

/* ==========================================================================
   UTILITY CLASSES - Grid
   ========================================================================== */

.ctr-grid {
    display: grid;
    gap: var(--space-m);
}

.grid-lay-2-50-50 { grid-template-columns: 1fr 1fr; }
.grid-lay-2-35-65 { grid-template-columns: 35% 1fr; }
.grid-lay-3-33 { grid-template-columns: repeat(3, 1fr); }
.grid-lay-4-25 { grid-template-columns: repeat(4, 1fr); }
.grid-aln-v-c { align-items: center; }

/* ==========================================================================
   UTILITY CLASSES - Text Alignment
   ========================================================================== */

.t-aln-c { text-align: center; }
.t-aln-l { text-align: left; }
.t-aln-r { text-align: right; }

/* ==========================================================================
   UTILITY CLASSES - Display & Flex
   ========================================================================== */

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-xs { gap: var(--space-xs); }
.gap-s { gap: var(--space-s); }
.gap-m { gap: var(--space-m); }
.gap-l { gap: var(--space-l); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--trans-normal) var(--ease-default);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--trans-normal) var(--ease-default);
}

.btn:hover svg {
    transform: translate(3px, -3px);
}

/* Primary Button (Solid) */
.btn-primary {
    background: var(--kp-red);
    color: var(--kp-white);
    border-color: var(--kp-red);
}

.btn-primary:hover {
    background: #d9432f;
    border-color: #d9432f;
}

/* Outline Button (Light - for dark backgrounds) */
.btn-outline-light {
    background: transparent;
    color: var(--kp-white);
    border-color: var(--kp-white);
}

.btn-outline-light:hover {
    background: var(--kp-white);
    color: var(--kp-navy-dark);
}

/* Outline Light Invert (stays white on hover - for hero secondary) */
.btn-outline-light-invert {
    background: transparent;
    color: var(--kp-white);
    border-color: var(--kp-white);
}

.btn-outline-light-invert:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--kp-white);
}

/* Solid Button (Light - for dark backgrounds, e.g., nav Contact CTA) */
.btn-solid-light {
    background: var(--kp-white);
    color: var(--kp-navy-dark);
    border-color: var(--kp-white);
}

.btn-solid-light:hover {
    background: var(--kp-cream);
    border-color: var(--kp-cream);
}

/* Outline Light with Arrow (Partner Promo style) */
.btn-outline-light-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: var(--kp-white);
    border: 1.5px solid var(--kp-white);
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    justify-content: center;
    transition: background var(--trans-normal) var(--ease-default),
                color var(--trans-normal) var(--ease-default);
}

.btn-outline-light-arrow:hover {
    background: var(--kp-white);
    color: var(--kp-navy-dark);
}

.btn-outline-light-arrow .btn-text {
    transition: transform var(--trans-normal) var(--ease-default);
}

.btn-outline-light-arrow .btn-arrow {
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.btn-outline-light-arrow:hover .btn-text {
    transform: translateX(-4px);
}

.btn-outline-light-arrow:hover .btn-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Outline Button (Dark - for light backgrounds) */
.btn-outline {
    background: transparent;
    color: var(--kp-slate);
    border-color: var(--kp-slate);
}

.btn-outline:hover {
    background: var(--kp-slate);
    color: var(--kp-white);
}

/* Outline Primary Button (Navy on white background) */
.btn-outline-primary {
    background: transparent;
    color: var(--kp-navy-dark);
    border: 2px solid var(--kp-navy-dark);
    font-weight: 600;
    padding: 14px 28px;
    transition: all var(--trans-normal) var(--ease-default);
}

.btn-outline-primary:hover {
    background: var(--kp-navy-dark);
    color: var(--kp-white);
}

/* Outline Button with Arrow Animation (Book Promo, Alternating Content) */
.btn-outline-arrow {
    position: relative;
    background: transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: var(--kp-slate);
    border: 1.5px solid var(--kp-slate);
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(19, 50, 97, 0.12);
    white-space: nowrap;
    overflow: hidden;
    justify-content: center;
}

.btn-outline-arrow .btn-text {
    transition: transform var(--trans-normal) var(--ease-default);
}

.btn-outline-arrow .btn-arrow {
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.btn-outline-arrow:hover .btn-text {
    transform: translateX(-4px);
}

.btn-outline-arrow:hover .btn-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--kp-navy-mid);
    color: var(--kp-white);
    border-color: var(--kp-navy-mid);
}

.btn-secondary:hover {
    background: var(--kp-navy-dark);
    border-color: var(--kp-navy-dark);
}

/* ==========================================================================
   ANIMATION CLASSES
   ========================================================================== */

/* Initial states - GSAP will animate from these */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.anim-fade-down {
    opacity: 0;
    transform: translateY(-30px);
}

.anim-fade-left {
    opacity: 0;
    transform: translateX(-30px);
}

.anim-fade-right {
    opacity: 0;
    transform: translateX(30px);
}

.anim-stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero entrance animation initial states */
.hero-content .hero-prehead,
.hero-content .hero-title,
.hero-content .hero-roles,
.hero-content .hero-description,
.hero-content .hero-cta,
.hero-content .hero-cta-group {
    opacity: 0;
    transform: translateY(24px);
}

.hero-portrait-wrapper .portrait-frame {
    opacity: 0;
    transform: scale(0.95);
}

.hero-portrait-wrapper .portrait-decoration {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(23.64deg) scale(0.9);
}

/* ==========================================================================
   UTILITY - Shadows
   ========================================================================== */

.shadow-card {
    box-shadow: 0 10px 50px rgba(19, 50, 97, 0.25);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   UTILITY - Background Colors
   ========================================================================== */

.bg-navy-dark { background-color: var(--kp-navy-dark); }
.bg-navy { background-color: var(--kp-navy); }
.bg-navy-mid { background-color: var(--kp-navy-mid); }
.bg-slate { background-color: var(--kp-slate); }
.bg-cream { background-color: var(--kp-cream); }
.bg-white { background-color: var(--kp-white); }

/* ==========================================================================
   UTILITY - Text Colors
   ========================================================================== */

.text-white { color: var(--kp-white); }
.text-light { color: var(--kp-text-light); }
.text-light-muted { color: var(--kp-text-light-muted); }
.text-dark { color: var(--kp-text-dark); }
.text-muted { color: var(--kp-text-muted); }

/* ==========================================================================
   HERO - Portrait Layout
   ========================================================================== */

.hero-portrait {
    background: var(--kp-navy-dark);
    /* Hero background with gradients - exported from Figma at 2x */
    background-image: url('../../../img/hero/hero-bg.webp');
    background-size: cover;
    background-position: top center;
    min-height: 850px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Fixed to initial header height to prevent jitter on scroll */
    padding-top: calc(var(--header-height-initial) + var(--space-xs) + 4px);
}

/* Gradient orbs now handled via background-image on .hero-portrait
   Previous CSS gradient approach removed in favor of Figma export
   for pixel-perfect accuracy. See static/img/hero/hero-bg.webp */

/* Noise overlay to prevent gradient banding (especially Firefox) */
/* TEMPORARILY DISABLED FOR TESTING */
/*
.hero-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}
*/

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: visible; /* Allow gradient orbs to bleed outside */
}

.hero-grid {
    align-items: center;
}

.hero-prehead {
    font-family: var(--font-heading);
    font-size: clamp(30px, 2.8vw, 40px); /* Fluid: 30px mobile → 40px desktop */
    color: var(--kp-text-light-muted);
    display: block;
    line-height: 84px; /* Figma spec - creates space before title */
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(45px, 5.2vw, 75px); /* Fluid: 45px mobile → 75px desktop */
    color: var(--kp-white);
    line-height: 1.12; /* Proportional line-height */
    margin: 0;
    text-transform: uppercase;
}

.hero-title strong {
    font-weight: 700;
    display: block;
}

.hero-title span {
    font-weight: 400;
}

.hero-roles {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--kp-text-light);
    letter-spacing: -0.66px; /* Figma: -0.6565px */
    line-height: 39px; /* Figma: 39px */
    margin-top: 16px; /* Figma: 16px gap */
    margin-bottom: 0;
}

/* Rotating highlight effect for roles - marker underline */
.hero-roles .role {
    position: relative;
    display: inline-block;
    padding: 0 4px;
    margin: 0 2px;
}

.hero-roles .role::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 8px;
    /* Irregular marker-like edges */
    border-radius: 4px 2px 3px 1px / 2px 4px 1px 3px;
    /* Textured gradient to simulate marker ink - coral/red accent */
    background:
        linear-gradient(95deg,
            rgba(240, 78, 58, 0.4) 0%,
            rgba(240, 78, 58, 0.55) 25%,
            rgba(240, 78, 58, 0.48) 50%,
            rgba(240, 78, 58, 0.58) 75%,
            rgba(240, 78, 58, 0.42) 100%
        );
    transform: scaleX(0) rotate(-0.5deg);
    transform-origin: left;
    animation: role-highlight 12s ease-in-out infinite;
    animation-delay: calc(var(--role-index) * 3s);
}

.hero-roles .role-divider {
    color: var(--kp-text-light);
    opacity: 0.6;
    margin: 0 8px;
}

@keyframes role-highlight {
    0%, 8% {
        transform: scaleX(0) rotate(-0.5deg);
        transform-origin: left;
    }
    15% {
        transform: scaleX(1) rotate(-0.5deg);
        transform-origin: left;
    }
    27% {
        transform: scaleX(1) rotate(-0.5deg);
        transform-origin: right;
    }
    35%, 100% {
        transform: scaleX(0) rotate(-0.5deg);
        transform-origin: right;
    }
}

.hero-description {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--kp-text-light);
    line-height: 39px; /* Figma: 39px */
    letter-spacing: -0.66px; /* Figma: -0.6565px */
    margin-top: 16px; /* Figma: 16px gap */
    margin-bottom: 0;
}

/* WYSIWYG content inside hero description */
.hero-description p {
    margin: 0 0 16px 0;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-description strong,
.hero-description b {
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-s);
}

.hero-cta {
    /* Figma: #4f6a81 blue-gray */
    background: #4f6a81;
    border-color: #4f6a81;
    text-transform: uppercase;
}

.hero-cta-group .hero-cta {
    margin-top: 0; /* Group handles margin */
}

.hero-cta:hover {
    /* Coral/orange hover state */
    background: var(--kp-red);
    border-color: var(--kp-red);
}

.hero-cta-secondary {
    /* Secondary button uses outline-light-arrow styles */
    text-transform: uppercase;
}

/* Portrait styling */
.hero-portrait-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    z-index: 2;
}

.portrait-image {
    width: 100%;
    max-width: clamp(260px, 32vw, 460px); /* Fluid: scales smoothly between breakpoints */
    border-radius: 16px;
    display: block;
}

/* Portrait decoration - single white rotated border (Figma node 825:949) */
/* z-index: 3 places it IN FRONT of the portrait (portrait-frame is z-index: 2) */
/* Size is ~81% of portrait width for proper proportion */
/* Offset 22px right of portrait center per Figma specs */
.portrait-decoration {
    position: absolute;
    top: 50%;
    left: calc(50% + 45px);
    transform: translate(-50%, -50%) rotate(23.64deg);
    width: clamp(210px, 26vw, 375px); /* Fluid: proportional to portrait */
    height: clamp(210px, 26vw, 375px);
    border: 2px solid var(--kp-white);
    border-radius: 22px;
    z-index: 3;
    pointer-events: none;
}

/* ==========================================================================
   HERO - Simple Interior Layout
   ========================================================================== */

.hero-simple {
    background: var(--kp-navy-dark);
    background-image: url('../../../img/hero/interior-hero-bg.webp');
    background-size: cover;
    background-position: center center;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    /* Fixed to initial header height to prevent jitter on scroll */
    padding-top: calc(var(--header-height-initial) + var(--space-m));
    padding-bottom: var(--space-l);
}

.hero-simple .hero-content {
    position: relative;
    z-index: 2;
}

.hero-simple .hero-prehead {
    display: block;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 84px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}

.hero-simple .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
    color: var(--kp-white);
    margin: 0;
}

.hero-simple .hero-title strong {
    font-weight: 700;
}

.hero-simple .hero-title span {
    font-weight: 400;
}

/* Blog hero - extra space under nav */
.hero-simple.hero-blog {
    padding-top: calc(var(--header-height) + var(--space-m));
}

/* Responsive - Simple Hero */
@media (max-width: 1100px) {
    .hero-simple {
        min-height: 220px;
        padding-top: calc(var(--header-height-initial) + var(--space-m));
        padding-bottom: var(--space-m);
    }

    .hero-simple .hero-title {
        font-size: clamp(36px, 10vw, 56px);
    }

    .hero-simple.hero-blog .hero-title {
        margin-bottom: var(--space-xs);
    }
}

/* Hero Split Layout - Title left, Intro right
   Used for pages with content to display in hero (blog archive, etc.)
   ========================================================================== */

.hero-split-layout {
    align-items: center;
    min-height: 320px;
    padding-top: calc(var(--header-height-initial) + var(--space-l));
    padding-bottom: var(--space-l);
}

.hero-split-layout .hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    width: 100%;
}

.hero-split-layout .hero-content {
    position: relative;
    z-index: 2;
}

.hero-split-layout .hero-intro {
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.hero-split-layout .hero-intro p {
    margin: 0 0 1em 0;
}

.hero-split-layout .hero-intro p:last-child {
    margin-bottom: 0;
}

.hero-split-layout .hero-intro a {
    color: var(--kp-white);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-split-layout .hero-intro a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.hero-split-layout .hero-intro a:hover {
    color: var(--kp-coral);
    text-decoration-color: var(--kp-coral);
}

.hero-split-layout .hero-intro a:hover::after {
    transform: translate(2px, -2px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f04e3a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E");
}

/* Responsive - Split Layout Hero */
@media (max-width: 1100px) {
    .hero-split-layout {
        min-height: auto;
        padding-top: calc(var(--header-height-initial) + var(--space-m));
        padding-bottom: var(--space-l);
    }

    .hero-split-layout .hero-split {
        grid-template-columns: 1fr;
        gap: var(--space-m);
    }

    .hero-split-layout .hero-intro {
        font-size: 16px;
    }
}

/* Image Reveal Hero Variant
   Featured image revealed in upper-right, gradient covers left/bottom for text legibility
   To disable: remove 'hero-image-reveal' class from single.php
   ========================================================================== */

.hero-simple.hero-image-reveal {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: right top;
    min-height: 340px;
    position: relative;
}

/* Diagonal gradient overlay - navy/blue covering left/bottom, fading to reveal upper-right */
.hero-simple.hero-image-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Multi-stop gradient: solid navy bottom-left corner, fading diagonally toward upper-right */
    background: linear-gradient(
        135deg,
        var(--kp-navy-dark) 0%,
        var(--kp-navy-dark) 35%,
        rgba(13, 51, 83, 0.85) 50%,
        rgba(13, 51, 83, 0.5) 65%,
        rgba(13, 51, 83, 0.15) 80%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Ensure content sits above overlay */
.hero-simple.hero-image-reveal .hero-inner {
    position: relative;
    z-index: 2;
}

/* Mobile: More coverage for text legibility on smaller screens */
@media (max-width: 1100px) {
    .hero-simple.hero-image-reveal {
        min-height: 280px;
        background-position: center top;
        /* More breathing room under mobile nav */
        padding-top: calc(var(--header-height-initial) + var(--space-l));
    }

    .hero-simple.hero-image-reveal::before {
        /* Tighter gradient on mobile - more text protection */
        background: linear-gradient(
            135deg,
            var(--kp-navy-dark) 0%,
            var(--kp-navy-dark) 45%,
            rgba(13, 51, 83, 0.9) 60%,
            rgba(13, 51, 83, 0.6) 75%,
            rgba(13, 51, 83, 0.3) 90%,
            transparent 100%
        );
    }
}

/* ==========================================================================
   NAVIGATION - Header
   ========================================================================== */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    background: transparent;
    transition: background var(--trans-normal) var(--ease-default),
                box-shadow var(--trans-normal) var(--ease-default);
}

/* Soft backdrop blur for nav readability over hero - fades in on scroll */
#main-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -80px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(13, 51, 83, 0.7);
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        rgba(0,0,0,0.6) 30%,
        rgba(0,0,0,0.2) 60%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        rgba(0,0,0,0.6) 30%,
        rgba(0,0,0,0.2) 60%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-normal) var(--ease-default);
    z-index: -1;
}

#main-header.scrolling-in-hero::after {
    opacity: 1;
}

/* Scrolled state - past hero */
#main-header.scrolled {
    background: var(--kp-navy-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#main-header.scrolled::after {
    opacity: 0;
}

/* Force-scrolled (no hero) - skip transitions on load */
#main-header.force-scrolled {
    background: var(--kp-navy-dark);
}

#main-header.force-scrolled::after {
    opacity: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
    transition: padding var(--trans-normal) var(--ease-default);
}

/* Reduced padding when scrolled */
#main-header.scrolled .nav-inner {
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 25px;
    color: var(--kp-white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.logo-text strong {
    font-weight: 700;
}

/* Navigation */
#navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

#navbar ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

#navbar ul li {
    position: relative;
}

#navbar ul li a {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--kp-text-light-muted);
    text-decoration: none;
    position: relative;
    transition: color var(--trans-normal) var(--ease-default);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Submenu toggle caret */
.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px;
}

.submenu-toggle svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

#navbar ul li:hover .submenu-toggle svg,
#navbar ul li.nav-item-active .submenu-toggle svg {
    opacity: 1;
}

/* Optional: rotate caret when submenu is open */
#navbar ul li.nav-item-active > a .submenu-toggle svg {
    transform: rotate(180deg);
}

/* Mobile: larger touch target with outline */
@media (max-width: 1100px) {
    .submenu-toggle {
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        transition: border-color var(--trans-normal) var(--ease-default),
                    background var(--trans-normal) var(--ease-default);
    }

    .submenu-toggle:active,
    #navbar ul li.open > a .submenu-toggle {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.1);
    }

    .submenu-toggle svg {
        width: 20px;
        height: 20px;
    }
}

#navbar ul li a:hover,
#navbar ul li.nav-item-active > a {
    color: var(--kp-white);
}

/* No-link items - non-navigating parent items */
#navbar ul li a.no-link {
    cursor: pointer;
}

/* Underline hover animation */
#navbar > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--kp-red);
    transition: width var(--trans-normal) var(--ease-default);
}

#navbar > ul > li:hover > a::after,
#navbar > ul > li.nav-item-active > a::after {
    width: 100%;
}

/* Submenu - Ultra-minimal style */
#navbar ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding-top: 8px; /* Small gap between trigger and submenu items */
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--trans-normal) var(--ease-default),
                visibility var(--trans-normal) var(--ease-default);
}

/* Only show submenu via JS class */
#navbar ul li.nav-item-active ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#navbar ul li ul.sub-menu li {
    position: relative;
}

/* Centered short divider between items */
#navbar ul li ul.sub-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

#navbar ul li ul.sub-menu li a {
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 24px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    justify-content: center; /* Center text in flex container */
    transition: color var(--trans-fast) var(--ease-default);
}

#navbar ul li ul.sub-menu li a:hover {
    color: var(--kp-white);
}

/* Nav CTA Button */
/* Nav CTA Button with arrow hover animation */
.nav-cta {
    min-width: 157px;
    height: 44px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.5px;
    border-width: 1px;
    border-radius: 5px;
    justify-content: center;
    z-index: 10;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-cta .btn-text {
    transition: transform var(--trans-normal) var(--ease-default);
}

.nav-cta .btn-arrow {
    position: absolute;
    right: 24px;
    opacity: 0;
    transform: translate(-1px, 1px);
    transition: opacity var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.nav-cta:hover .btn-text {
    transform: translateX(-4px);
}

.nav-cta:hover .btn-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.nav-cta + .nav-cta {
    margin-left: 12px;
}

/* Mobile CTA buttons - hidden on desktop */
.mobile-cta-buttons {
    display: none;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 51, 83, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans-normal) var(--ease-default);
    z-index: calc(var(--z-sticky) - 1);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    transition: border-color var(--trans-normal) var(--ease-default),
                background var(--trans-normal) var(--ease-default);
}

.menu-toggle:hover,
.menu-toggle.active {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--kp-white);
    margin: 3px 0;
    transition: all var(--trans-normal) var(--ease-default);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Body when nav is open */
body.nav-open {
    overflow: hidden;
}

/* Solid header background when mobile nav is open */
body.nav-open #main-header {
    background: var(--kp-navy-dark);
}

body.nav-open #main-header::after {
    opacity: 0;
}

/* Hide social drawer when mobile nav is open */
body.nav-open .social-drawer {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE - Nav Squeeze (before mobile menu kicks in)
   ========================================================================== */

@media (max-width: 1200px) {
    /* Tighter nav padding to give more room for nav items */
    .nav-inner.ctr-pad-hor-xxl {
        padding-left: var(--space-l);
        padding-right: var(--space-l);
    }

    /* Reduce gap between nav items */
    #navbar ul {
        gap: 24px;
    }
}

/* ==========================================================================
   RESPONSIVE - Tablet/Mobile
   ========================================================================== */

@media (max-width: 1100px) {
    :root {
        --header-height-initial: 124px; /* Mobile header - static for hero padding */
        --header-height: 124px; /* Mobile header - dynamic, updated by JS */
        --space-l: 48px;
        --space-xl: 64px;
        --space-xxl: 96px;
    }

    .grid-lay-2-50-50,
    .grid-lay-3-33,
    .grid-lay-4-25 {
        grid-template-columns: 1fr;
    }

    .ctr-pad-hor-xxl {
        padding-left: var(--space-s);
        padding-right: var(--space-s);
    }

    .ctr-pad-hor-xl {
        padding-left: var(--space-s);
        padding-right: var(--space-s);
    }

    /* Hide on mobile */
    .hide-mobile { display: none !important; }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    #navbar {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--kp-navy-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-m) var(--space-s);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--trans-normal) var(--ease-default);
    }

    #navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navbar ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    #navbar ul li a {
        padding: 18px 0;
        font-size: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #navbar > ul > li > a::after {
        display: none;
    }

    /* Mobile Submenu - collapsed by default */
    #navbar ul li ul.sub-menu {
        position: static;
        transform: none;
        background: transparent;
        padding: 0 0 0 var(--space-s);
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height var(--trans-normal) var(--ease-default),
                    opacity var(--trans-normal) var(--ease-default),
                    visibility var(--trans-normal) var(--ease-default);
    }

    #navbar ul li.open > ul.sub-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #navbar ul li ul.sub-menu li {
        text-align: left;
    }

    /* Hide the centered divider at mobile */
    #navbar ul li ul.sub-menu li:not(:last-child)::after {
        display: none;
    }

    #navbar ul li ul.sub-menu li a {
        color: var(--kp-text-light-muted);
        font-size: 22px;
        padding: 14px 0;
        justify-content: flex-start; /* Override desktop centering */
    }

    #navbar ul li ul.sub-menu li a:hover {
        color: var(--kp-white);
    }

    /* Mobile submenu toggle rotation */
    #navbar ul li .submenu-toggle svg {
        transition: transform var(--trans-normal) var(--ease-default);
    }

    #navbar ul li.open > a .submenu-toggle svg {
        transform: rotate(180deg);
    }

    /* Mobile CTA Buttons - shown at bottom of mobile nav */
    .mobile-cta-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
        margin-top: auto;
        padding-top: var(--space-m);
        width: 100%;
    }

    .mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 18px 24px;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-decoration: none;
        text-transform: uppercase;
        border-radius: 4px;
        transition: all var(--trans-fast) var(--ease-default);
    }

    .mobile-cta svg {
        width: 16px;
        height: 16px;
        transition: transform var(--trans-fast) var(--ease-default);
    }

    .mobile-cta:hover svg {
        transform: translate(3px, -3px);
    }

    .mobile-cta-primary {
        background: var(--kp-slate);
        color: var(--kp-white);
    }

    .mobile-cta-primary:hover {
        background: #5d7a92;
    }

    .mobile-cta-secondary {
        background: transparent;
        color: var(--kp-white);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .mobile-cta-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* Hero Responsive - Mobile layout matches Figma node 828:369 */
    .hero-portrait {
        min-height: auto;
        /* Figma: content starts at y=102, header ~60px, so ~42px gap after header */
        padding-top: calc(var(--header-height-initial) + var(--space-m));
        padding-bottom: var(--space-xl);
    }

    .hero-grid {
        text-align: left; /* Figma: left-aligned on mobile */
    }

    /* Figma mobile order: text content FIRST, portrait BELOW */
    .hero-content {
        order: 1;
    }

    .hero-portrait-wrapper {
        order: 2;
        margin-top: var(--space-l);
        margin-bottom: 0;
    }

    /* Typography handled by clamp() in base styles - no overrides needed */

    /* Portrait sizing handled by clamp() in base styles - these are mobile minimums */
    .portrait-image {
        max-width: min(298px, 80vw); /* Figma mobile: 298px, but cap at 80vw */
    }

    .portrait-decoration {
        width: min(250px, 67vw); /* Proportional to portrait */
        height: min(250px, 67vw);
    }

    /* ==========================================================================
       Content Blocks Responsive (1100px breakpoint)
       ========================================================================== */

    /* Book Promo - single column, image first */
    .book-promo-section .ctr-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .book-cover-wrapper {
        order: -1;
        text-align: center;
    }

    .book-promo-section .book-cover {
        max-width: 35vw;
        margin: 0 auto;
    }

    .book-subtitle {
        font-size: 24px;
    }

    /* Alternating Rows - single column, image first (constrained) */
    .alternating-rows-section .alternating-row {
        padding: 32px 0;
    }

    .alternating-rows-section .ctr-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .alternating-rows-section .section-image {
        order: -1;
        padding: 0;
        text-align: center;
    }

    /* Constrain image on tablets like book promo */
    .alternating-rows-section .image-frame {
        max-width: 60%;
        margin: 0 auto;
    }

    /* Newsletter CTA */
    .newsletter-cta-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Partner Promo - centered, smaller logo */
    .partner-promo-section {
        height: auto;
        padding: 64px 16px;
    }

    .partner-logo {
        width: 214px;
        height: 100px;
    }

    .partner-text {
        font-size: 25px;
    }

    /* Typography adjustments for mobile */
    .alternating-rows-section h2,
    .book-content h2,
    .newsletter-cta-section .newsletter-title,
    .newsletter-cta-section h2,
    .speaking-topics-section .section-title,
    .media-mentions-section .section-title {
        font-size: 28px;
    }

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

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

    /* Footer Responsive */
    .footer-inner {
        flex-direction: column;
        gap: var(--space-s);
    }

    .footer-columns {
        flex-direction: column;
        gap: var(--space-s);
    }

    .footer-column {
        width: 100%;
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --space-m: 32px;
        --space-l: 40px;
        --space-xl: 48px;
        --space-xxl: 64px;
    }

    .ctr-pad-hor-l,
    .ctr-pad-hor-m {
        padding-left: var(--space-xs);
        padding-right: var(--space-xs);
    }

    /* Book cover can grow on phones where space is tighter */
    .book-promo-section .book-cover {
        max-width: 75%;
    }

    /* Alternating rows images can grow on phones */
    .alternating-rows-section .image-frame {
        max-width: 80%;
    }
}

/* ==========================================================================
   SCREEN READER ONLY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   CONTENT AREA - Line Graphic Background
   ========================================================================== */

/* Decorative swoosh lines - homepage only, desktop only */
.content-wrapper {
    position: relative;
}

body.home .content-wrapper::before {
    content: "";
    position: absolute;
    top: 312px; /* Offset to match Figma positioning */
    left: 0;
    right: 0;
    height: 600px;
    background-image: url('../../../img/hero/line-graphic.svg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content blocks sit above the line graphic */
body.home .content-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Hide line graphic on mobile/tablet */
@media (max-width: 1100px) {
    body.home .content-wrapper::before {
        display: none;
    }
}

/* ==========================================================================
   CONTENT BUILDER BLOCKS
   ========================================================================== */

/* Alternating Rows - repeater with automatic alternation via nth-of-type */
.alternating-rows-section .alternating-row {
    padding: 40px 0;
}

.alternating-rows-section .ctr-grid {
    gap: 32px;
    align-items: center;
}

.alternating-rows-section h2 {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    color: var(--kp-text-dark);
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}

.alternating-rows-section .content-body {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--kp-text-dark);
    line-height: 1.95;
}

.alternating-rows-section .btn {
    margin-top: var(--space-xs);
}

.alternating-rows-section .section-image {
    padding: 32px;
}

.alternating-rows-section .image-frame {
    position: relative;
    width: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(19, 50, 97, 0.25);
}

.alternating-rows-section .image-sizer {
    display: block;
    height: 0;
    /* padding-bottom set dynamically via inline style */
}

/* Even rows (2nd, 4th, 6th): flip image to left side */
.alternating-rows-section .alternating-row:nth-of-type(even) .section-image {
    order: -1;
}

/* Book Promo */
.book-promo-section {
    /* No explicit background - allows line graphic to show through */
}

.book-promo-section .ctr-grid {
    align-items: center;
    gap: 60px;
}

.book-cover {
    max-width: 100%;
    /* No border-radius or shadow - transparent book image */
}

.book-badge {
    display: inline-block;
    background: var(--kp-blue-badge);
    color: var(--kp-white);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.book-content h2 {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    color: var(--kp-text-dark);
    line-height: 1.5;
    margin: 0;
}

.book-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-style: italic;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    margin: 0 0 var(--space-xs) 0;
}

.book-content .content-body {
    font-size: 20px;
    color: var(--kp-text-dark);
    line-height: 1.95;
}

.book-date {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--kp-text-dark);
    letter-spacing: 1.6px;
    line-height: 1.5;
    margin: 0;
    text-transform: uppercase;
}

.book-content .btn {
    margin-top: var(--space-xs);
}

/* Tighten gap when book-promo is followed by simple-content */
.book-promo-section + .simple-content-section {
    padding-top: 0;
}

/* Newsletter CTA */
.newsletter-cta-section .newsletter-title,
.newsletter-cta-section h2 {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: var(--space-xs);
    text-wrap: balance;
}

/* WYSIWYG title styling - override default p margins */
.newsletter-cta-section .newsletter-title p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.newsletter-cta-section p {
    font-size: 20px;
    line-height: 1.95;
    margin-bottom: var(--space-s);
    text-wrap: balance;
}

/* Speaking CTA Section */
.speaking-cta-section {
    margin-bottom: var(--space-m);
}

.speaking-cta-card {
    background: var(--kp-cream);
    border-radius: 16px;
    padding: var(--space-l) var(--space-xl);
    box-shadow: 0 6px 30px rgba(19, 50, 97, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-s);
    text-align: center;
}

.speaking-cta-headline {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .speaking-cta-card {
        padding: var(--space-m) var(--space-s);
        border-radius: 12px;
    }

    .speaking-cta-headline {
        font-size: 22px;
    }

    .speaking-cta-card {
        gap: var(--space-xs);
    }
}

/* Solid button style (Subscribe) */
.btn-solid {
    display: inline-block;
    background: var(--kp-navy-mid);
    color: var(--kp-white);
    padding: 16px 32px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--trans-normal) var(--ease-default);
}

.btn-solid:hover {
    background: var(--kp-navy-dark);
}

/* Solid button with sparkle animation */
.btn-solid-sparkle {
    position: relative;
    display: inline-block;
    background: var(--kp-navy-mid);
    color: var(--kp-white);
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: background var(--trans-normal) var(--ease-default);
}

.btn-solid-sparkle:hover {
    background: var(--kp-navy-dark);
}

.btn-solid-sparkle .btn-text {
    display: inline-block;
    transition: transform var(--trans-normal) var(--ease-default);
}

.btn-sparkles {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
}

.btn-sparkles .sparkle {
    position: absolute;
    fill: currentColor;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.btn-sparkles .sparkle-1 {
    width: 14px;
    height: 14px;
    top: 0;
    right: 0;
}

.btn-sparkles .sparkle-2 {
    width: 10px;
    height: 10px;
    bottom: 2px;
    left: 0;
}

.btn-sparkles .sparkle-3 {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    margin-top: -4px;
    margin-left: -4px;
}

/* On hover: text shifts, sparkles fade in and twinkle */
.btn-solid-sparkle:hover .btn-text {
    transform: translateX(-4px);
}

.btn-solid-sparkle:hover .sparkle {
    opacity: 1;
    transform: translateY(0);
    animation: sparkle-twinkle 2s ease-in-out infinite;
}

.btn-solid-sparkle:hover .sparkle-1 {
    animation-delay: 0s;
}

.btn-solid-sparkle:hover .sparkle-2 {
    animation-delay: 0.6s;
}

.btn-solid-sparkle:hover .sparkle-3 {
    animation-delay: 1.2s;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.85) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(15deg);
    }
}

/* Download button - standalone styles (not inheriting btn-outline-arrow transforms) */
.btn-download {
    position: relative;
    background: transparent;
    color: var(--kp-slate);
    border: 1.5px solid var(--kp-slate);
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
}

.btn-download .btn-text {
    transition: transform var(--trans-normal) var(--ease-default);
}

.btn-download .btn-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--trans-normal) var(--ease-default);
}

.btn-download .btn-arrow svg {
    overflow: visible;
    display: block;
}

.btn-download:hover svg {
    transform: none; /* Override base .btn:hover svg rule */
}

.btn-download:hover .btn-text {
    transform: translateX(-4px);
}

.btn-download:hover .btn-arrow {
    opacity: 1;
}

.btn-download:hover .btn-arrow svg polyline,
.btn-download:hover .btn-arrow svg line {
    animation: download-bounce 1.5s ease-in-out infinite;
}

@keyframes download-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(3px);
    }
    40% {
        transform: translateY(0);
    }
    60% {
        transform: translateY(3px);
    }
    80%, 100% {
        transform: translateY(0);
    }
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    margin-bottom: var(--space-xs);
}

.newsletter-form button,
.newsletter-form input[type="submit"] {
    background: var(--kp-navy-mid);
    color: var(--kp-white);
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--trans-normal) var(--ease-default);
}

.newsletter-form button:hover,
.newsletter-form input[type="submit"]:hover {
    background: var(--kp-navy-dark);
}

/* Partner Promo - Centered Layout */
.partner-promo-section {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 547px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-promo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 51, 83, 0.75);
}

.partner-promo-section .ctr {
    position: relative;
    z-index: 1;
}

.partner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.partner-logo {
    width: 321px;
    height: 150px;
    object-fit: contain;
    margin-bottom: var(--space-xs);
}

.partner-text {
    max-width: 1000px;
    font-family: var(--font-body);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.partner-text p {
    margin: 0;
}

/* Decorative Divider */
.decorative-divider {
    display: flex;
    height: 10px;
}

.decorative-divider .divider-stripe {
    flex: 1;
}

/* 8-stripe alternating pattern per Figma */
.decorative-divider--navy .divider-stripe:nth-child(odd) { background: var(--kp-navy-mid); }
.decorative-divider--navy .divider-stripe:nth-child(even) { background: var(--kp-red); }

/* Speaking Topics - Two column layout per Figma */
.speaking-topics-section {
    background: var(--kp-white);
    padding-top: 24px; /* Tighter spacing from passion section */
}

.speaking-topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Figma spec */
    align-items: start;
}

.speaking-topics-section .section-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0; /* Reset top margin, 16px bottom per Figma */
    text-align: left;
}

.topics-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Figma spec */
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 16px; /* Figma spec */
    font-size: 20px; /* Figma: 20px */
    font-weight: 400; /* Figma: regular weight */
}

.topic-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* Figma: no background treatment, just raw icon */
}

.topic-icon svg {
    width: 40px;
    height: 40px;
}

/* CTA button spacing in speaking topics */
.topics-content .btn {
    margin-top: 24px;
}

.topics-image {
    align-self: start;
}

.topics-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive - Speaking Topics */
@media (max-width: 900px) {
    .speaking-topics-grid {
        grid-template-columns: 1fr;
        gap: var(--space-l);
    }

    .topics-image {
        order: -1;
        text-align: center;
    }

    .topics-photo {
        max-width: 100%;
    }
}

/* Media Mentions */
.media-mentions-section .section-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-m);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-m);
    align-items: center;
}

.logo-item {
    display: flex;
    justify-content: center;
}

.logo-item img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--trans-normal) var(--ease-default);
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Simple Content */
.simple-content-section {
    padding-top: var(--space-s);
}

.simple-content-section .section-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-s);
}

.simple-content-section .content-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--kp-text-dark);
}

.simple-content-section .content-body p {
    margin-bottom: 1.5em;
}

.simple-content-section .content-body p:last-child {
    margin-bottom: 0;
}

.content-columns {
    column-count: 2;
    column-gap: var(--space-m);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-content {
    text-align: center;
}

.error-message {
    font-size: 1.25rem;
    color: var(--kp-slate);
    margin-bottom: var(--space-l);
}

.error-actions {
    display: flex;
    gap: var(--space-m);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    margin-top: auto;
    background: var(--kp-navy);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 32px;
}

.footer-brand .footer-logo {
    text-decoration: none;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 25px;
    color: var(--kp-white);
}

.footer-columns {
    display: flex;
    gap: var(--space-xs);
}

.footer-column {
    width: 300px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2.4375;
    margin: 0;
}

/* Footer Links List */
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li a,
.footer-link {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2.4375;
    text-decoration: underline;
    transition: color var(--trans-normal) var(--ease-default);
}

.footer-links-list li a:hover,
.footer-link:hover {
    color: var(--kp-white);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.footer-social .social-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--kp-white);
    transition: opacity var(--trans-normal) var(--ease-default);
}

.footer-social .social-icon:hover svg {
    opacity: 0.7;
}

/* ==========================================================================
   SOCIAL DRAWER WIDGET (Right-edge contact panel)
   The entire drawer slides in from the right - tab acts as handle
   ========================================================================== */

.social-drawer {
    position: fixed;
    right: 0;
    top: 260px;
    z-index: var(--z-sticky);
    display: flex;
    align-items: flex-start;
    /* Start with panel off-screen, only tab visible */
    transform: translateX(226px); /* panel width */
    transition: transform 0.35s var(--ease-default);
}

.social-drawer:hover,
.social-drawer.active {
    transform: translateX(0);
}

.social-drawer__tab {
    width: 72px;
    height: 72px;
    background: #2f2f2f;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kp-white);
    padding: 16px;
    flex-shrink: 0;
    transition: background var(--trans-normal) var(--ease-default);
    animation: drawer-tab-pulse 3s ease-in-out infinite;
}

@keyframes drawer-tab-pulse {
    0%, 100% {
        box-shadow:
            0 0 12px 2px rgba(255, 255, 255, 0.15),
            0 0 15px 2px rgba(19, 50, 97, 0.25);
    }
    50% {
        box-shadow:
            0 0 20px 4px rgba(255, 255, 255, 0.25),
            0 0 25px 5px rgba(19, 50, 97, 0.4);
    }
}

.social-drawer__tab:hover {
    background: #1a1a1a;
    animation: none;
    box-shadow:
        0 0 15px 3px rgba(255, 255, 255, 0.2),
        0 0 20px 4px rgba(19, 50, 97, 0.35);
}

.social-drawer__tab svg {
    width: 40px;
    height: 40px;
}

.social-drawer__panel {
    background: var(--kp-white);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 24px 20px;
    width: 226px;
    flex-shrink: 0;
}

.social-drawer__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.social-drawer__content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    letter-spacing: -0.66px;
}

.social-drawer__content p {
    margin: 0 0 1em 0;
}

.social-drawer__content p:last-child {
    margin-bottom: 0;
}

.social-drawer__content a {
    color: #0088ff;
    text-decoration: underline;
    font-weight: 600;
}

.social-drawer__content a:hover {
    color: var(--kp-navy-dark);
}

/* Social icons - row at bottom of panel */
.social-drawer__icons {
    display: flex;
    justify-content: center;
    gap: var(--space-s);
    margin-top: var(--space-s);
    padding-top: var(--space-s);
    border-top: 1px solid #eee;
}

.social-drawer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform var(--trans-normal) var(--ease-default);
}

.social-drawer__icon:hover {
    transform: scale(1.1);
}

.social-drawer__icon svg {
    width: 28px;
    height: 28px;
}

/* Force fill color on social icons (override inline styles) */
.social-drawer__icon svg,
.social-drawer__icon svg path,
.social-drawer__icon svg circle,
.social-drawer__icon svg rect,
.social-drawer__icon svg polygon {
    fill: var(--kp-navy-dark) !important;
}

.social-drawer__icon:hover svg,
.social-drawer__icon:hover svg path,
.social-drawer__icon:hover svg circle,
.social-drawer__icon:hover svg rect,
.social-drawer__icon:hover svg polygon {
    fill: var(--kp-red) !important;
}

/* Mobile: Move to bottom-right, panel opens upward */
@media (max-width: 900px) {
    .social-drawer {
        top: auto;
        bottom: var(--space-s);
        right: var(--space-s);
        flex-direction: column-reverse;
        align-items: flex-end;
        transform: translateY(0); /* Reset horizontal transform */
    }

    .social-drawer__tab {
        border-radius: 8px;
    }

    .social-drawer__close {
        top: auto;
        bottom: 76px;
        left: auto;
        right: 16px;
    }

    .social-drawer__panel {
        margin-left: 0;
        margin-bottom: 8px;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity var(--trans-normal) var(--ease-default),
                    transform var(--trans-normal) var(--ease-default);
    }

    .social-drawer:hover .social-drawer__panel,
    .social-drawer.active .social-drawer__panel {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* ==========================================================================
   ABOUT BIO SECTION
   ========================================================================== */

.about-bio-section {
    background: var(--kp-white);
}

.about-bio-row {
    align-items: center; /* Figma: vertically centered */
    gap: 60px; /* Figma spec */
}

.about-bio-image .bio-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.about-bio-content .bio-text {
    font-family: var(--font-body);
    font-size: 20px; /* Figma spec */
    line-height: 39px; /* Figma spec */
    letter-spacing: -0.66px; /* Figma spec */
    color: #333; /* Figma spec */
}

.about-bio-content .bio-text p {
    margin: 0 0 1.5em 0;
}

.about-bio-content .bio-text p:last-child {
    margin-bottom: 0;
}

.about-bio-content .bio-text a {
    color: var(--kp-blue-accent);
    text-decoration: underline;
}

.about-bio-content .bio-text a:hover {
    color: var(--kp-red);
}

.about-passion-section {
    margin-top: var(--space-m);
    padding: 48px 0 0 0; /* No bottom padding - tighter to next section */
}

.about-passion-section .passion-title {
    font-family: var(--font-body);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--kp-text-dark); /* Figma: black, not navy */
    margin: 0 0 16px 0; /* Figma: 16px gap to content */
}

.about-passion-section .passion-content {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--kp-text-dark);
    margin-bottom: 0;
}

.about-passion-section .passion-content p:last-child {
    margin-bottom: 0;
}

.about-passion-section .passion-content a {
    color: var(--kp-blue-accent);
    text-decoration: underline;
}

.about-passion-section .passion-content a:hover {
    color: var(--kp-red);
}

/* Responsive - About Bio */
@media (max-width: 1100px) {
    .about-bio-row {
        grid-template-columns: 1fr;
        gap: var(--space-l);
    }

    .about-bio-image {
        order: 1;
    }

    .about-bio-content {
        order: 2;
    }

    .about-bio-image .bio-photo {
        max-width: 100%;
    }
}

/* ==========================================================================
   SPLIT CONTENT SECTION
   ========================================================================== */

.split-content-section {
    background: var(--kp-white);
}

.split-content-grid {
    align-items: center;
    gap: 60px;
}

.split-content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

/* Image right variant - swap order */
.split-content-section.image-right .split-content-image {
    order: 2;
}

.split-content-section.image-right .split-content-body {
    order: 1;
}

/* Tighten gap when split-content is followed by another section */
.split-content-section + .simple-content-section,
.split-content-section + .split-content-section {
    padding-top: 0;
}

/* Responsive - Split Content */
@media (max-width: 1100px) {
    .split-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-l);
    }

    .split-content-image {
        order: 1 !important;
    }

    .split-content-body {
        order: 2 !important;
    }

    .split-content-image img {
        max-width: 100%;
    }
}

/* ==========================================================================
   VIDEO MENTIONS SECTION
   ========================================================================== */

.video-mentions-section {
    background-color: #506a81;
}

.video-mentions-section .section-title {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    color: var(--kp-white);
    margin-bottom: var(--space-s);
}

.video-mentions-section .section-intro {
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--kp-white);
    max-width: 1000px;
    margin: 0 auto var(--space-m);
}

.video-mentions-section .btn-wrapper {
    margin-bottom: var(--space-xl);
}

.video-mentions-section .inline-link {
    color: var(--kp-white);
    text-decoration: underline;
}

.video-mentions-section .inline-link:hover {
    color: var(--kp-red);
}

/* Solid button for Video Mentions section */
.video-mentions-section .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #233751;
    border: none;
    color: var(--kp-white);
    padding: 16px 32px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: background-color var(--trans-normal) var(--ease-default);
}

.video-mentions-section .btn:hover {
    background-color: #1a2a3d;
    color: var(--kp-white);
}

.video-mentions-section .btn .btn-text {
    transition: transform var(--trans-normal) var(--ease-default);
}

.video-mentions-section .btn .btn-arrow {
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.video-mentions-section .btn:hover .btn-text {
    transform: translateX(-8px);
}

.video-mentions-section .btn:hover .btn-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
}

.video-card {
    background: transparent;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform var(--trans-normal) var(--ease-default);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--trans-normal) var(--ease-default),
                background var(--trans-normal) var(--ease-default);
    color: var(--kp-navy-dark);
}

.video-thumbnail .play-button svg {
    margin-left: 4px;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--kp-white);
}

.video-info {
    padding: var(--space-s) 0;
}

.video-source {
    display: inline;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    color: var(--kp-white);
}

.video-source a {
    color: inherit;
    text-decoration: none;
}

.video-source a:hover {
    color: var(--kp-red);
}

.video-title {
    display: inline;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    color: var(--kp-white);
    line-height: 1.5;
}

.video-title::before {
    content: " – ";
}

/* Responsive - Video Grid */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   VIDEO LIGHTBOX
   ========================================================================== */

.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--kp-white);
    cursor: pointer;
    padding: 8px;
    transition: color var(--trans-fast) var(--ease-default);
}

.lightbox-close:hover {
    color: var(--kp-red);
}

.lightbox-video-container {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-video-container iframe {
    width: 100%;
    height: 100%;
}

/* Vertical/Shorts lightbox variant */
.lightbox-content--short {
    width: auto;
    max-width: 480px;
    max-height: 85vh;
    aspect-ratio: 9 / 16;
}

/* ==========================================================================
   VIDEO ARCHIVE PAGE
   ========================================================================== */

.video-archive-section {
    background: var(--kp-white);
}

.video-intro {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: 18px;
    line-height: 1.8;
    color: var(--kp-text-dark);
}

.video-intro a {
    color: var(--kp-navy-dark);
    text-decoration: underline;
}

.video-intro a:hover {
    color: var(--kp-red);
}

/* Shorts Grid - Vertical format */
.video-shorts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
}

.video-short-card {
    background: var(--kp-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--trans-normal) var(--ease-default),
                box-shadow var(--trans-normal) var(--ease-default);
}

.video-short-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-short-card .video-thumbnail {
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-short-card .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-normal) var(--ease-default);
}

.video-short-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-short-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--trans-normal) var(--ease-default),
                background var(--trans-normal) var(--ease-default);
    color: var(--kp-navy-dark);
}

.video-short-card .play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-short-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.9);
}

.video-question {
    padding: var(--space-s) var(--space-m);
    text-align: center;
    background: linear-gradient(to bottom, rgba(13, 51, 83, 0.02), transparent);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-question span {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--kp-navy-dark);
    line-height: 1.4;
}

/* Responsive - Video Shorts Grid */
@media (max-width: 1100px) {
    .video-shorts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-shorts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-m);
    }
}

@media (max-width: 480px) {
    .video-shorts-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Video Archive Pagination */
.video-archive-section .navigation.pagination {
    margin-top: var(--space-xl);
    padding-top: var(--space-l);
    border-top: 1px solid rgba(13, 51, 83, 0.1);
}

.video-archive-section .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-archive-section .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--kp-navy-dark);
    background: var(--kp-white);
    border: 2px solid var(--kp-slate);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--trans-fast) var(--ease-default);
}

.video-archive-section .page-numbers:hover {
    background: var(--kp-navy-dark);
    border-color: var(--kp-navy-dark);
    color: var(--kp-white);
}

.video-archive-section .page-numbers.current {
    background: var(--kp-navy-dark);
    border-color: var(--kp-navy-dark);
    color: var(--kp-white);
}

.video-archive-section .page-numbers.prev,
.video-archive-section .page-numbers.next {
    font-weight: 500;
    padding: 0 20px;
}

/* ==========================================================================
   GRAVITY FORMS - Custom Styling
   Overrides Orbital theme for site-specific look
   ========================================================================== */

/* Override Orbital theme variables */
.gform_wrapper.gravity-theme,
.gform_wrapper[data-form-theme="orbital"] {
    --gf-radius: 10px !important;
    --gf-ctrl-border-color: var(--kp-cream-dark) !important;
    --gf-color-primary: var(--kp-navy-dark) !important;
    --gf-color-in-ctrl-primary: var(--kp-navy-dark) !important;
    --gf-ctrl-size: 54px !important;
    --gf-ctrl-label-color-primary: var(--kp-navy-dark) !important;
    --gf-font-size-secondary: 13px !important;
}

/* Reset wrapper */
.gform_wrapper {
    margin: 0;
    text-align: left;
}

/* Hide form title/description when using block intro */
.gform_wrapper .gform_title,
.gform_wrapper .gform_description {
    display: none;
}

/* === Field Grid Layout === */
.gform_wrapper .gform_fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Full width fields */
.gform_wrapper .gfield--width-full,
.gform_wrapper .gfield--type-name,
.gform_wrapper .gfield--type-textarea {
    grid-column: 1 / -1;
}

/* Half width fields stay in grid */
.gform_wrapper .gfield--width-half {
    grid-column: span 1;
}

/* === Labels === */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
    display: block;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--kp-navy-dark) !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Required indicator - subtle */
.gform_wrapper .gfield_required {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    color: var(--kp-text-muted) !important;
    margin-left: 4px;
}

/* Sub-labels (name first/last) */
.gform_wrapper .gform-field-label--type-sub {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--kp-slate) !important;
    text-transform: none !important;
    margin-top: 8px !important;
    letter-spacing: 0;
}

/* === Input Containers with Icons === */
.gform_wrapper .ginput_container {
    position: relative;
}

/* Name field grid */
.gform_wrapper .ginput_container_name {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === Text Inputs - Premium Feel === */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper.gravity-theme input:not([type="submit"]):not([type="button"]):not([type="image"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    width: 100% !important;
    height: 54px !important;
    padding: 0 18px 0 50px !important;
    border: 2px solid var(--kp-cream-dark) !important;
    border-radius: 10px !important;
    background: var(--kp-white) !important;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    color: var(--kp-text-dark) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: none !important;
}

/* Inputs without icons - name fields */
.gform_wrapper .ginput_container_name input[type="text"] {
    padding: 0 18px !important;
}

/* Placeholder */
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: var(--kp-slate) !important;
    opacity: 0.6;
}

/* Focus state */
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus,
.gform_wrapper.gravity-theme input:focus {
    outline: none !important;
    border-color: var(--kp-navy-dark) !important;
    box-shadow: 0 0 0 4px rgba(13, 51, 83, 0.1) !important;
    background: var(--kp-white) !important;
}

/* Hover state */
.gform_wrapper input:hover:not(:focus),
.gform_wrapper textarea:hover:not(:focus),
.gform_wrapper select:hover:not(:focus) {
    border-color: var(--kp-slate) !important;
    background: #fafafa !important;
}

/* === Field Icons === */
/* Email icon */
.gform_wrapper .gfield--type-email .ginput_container::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23687280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Phone icon */
.gform_wrapper .gfield--type-phone .ginput_container::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23687280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Icon active state on focus */
.gform_wrapper .gfield--type-email:focus-within .ginput_container::before,
.gform_wrapper .gfield--type-phone:focus-within .ginput_container::before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d3353' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.gform_wrapper .gfield--type-phone:focus-within .ginput_container::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d3353' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* === Textarea === */
.gform_wrapper textarea,
.gform_wrapper.gravity-theme textarea {
    width: 100% !important;
    min-height: 150px !important;
    padding: 16px 18px !important;
    border: 2px solid var(--kp-cream-dark) !important;
    border-radius: 10px !important;
    background: var(--kp-white) !important;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    color: var(--kp-text-dark) !important;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* === Validation States === */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea {
    border-color: var(--kp-coral) !important;
}

.gform_wrapper .gfield_error input:focus,
.gform_wrapper .gfield_error textarea:focus {
    box-shadow: 0 0 0 4px rgba(231, 111, 81, 0.15) !important;
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
    color: var(--kp-coral) !important;
    font-size: 13px !important;
    font-weight: 500;
    margin-top: 8px;
}

.gform_wrapper .gform_validation_errors {
    background: rgba(231, 111, 81, 0.06);
    border: 1px solid var(--kp-coral);
    border-radius: 10px;
    padding: var(--space-s);
    margin-bottom: var(--space-m);
}

.gform_wrapper .gform_validation_errors h2 {
    font-size: 15px;
    color: var(--kp-coral);
    margin: 0;
}

/* === Submit Button === */
.gform_wrapper .gform_footer,
.gform_wrapper .gform-footer {
    margin-top: var(--space-m) !important;
    padding: 0 !important;
    border: none !important;
}

.gform_wrapper .gform_button,
.gform_wrapper .btn-send,
.gform_wrapper .btn-send,
.gform-theme .btn-send,
button.btn-send {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 180px !important;
    height: 52px !important;
    padding: 0 28px !important;
    background: var(--kp-navy-dark) !important;
    color: var(--kp-white) !important;
    border: 2px solid var(--kp-navy-dark) !important;
    border-radius: 6px !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: visible !important;
    transition: background 0.25s ease, border-color 0.25s ease !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper .btn-send:hover {
    background: var(--kp-navy-mid) !important;
    border-color: var(--kp-navy-mid) !important;
}

/* Text slides left on hover */
.gform_wrapper .btn-send .btn-text {
    display: inline-block;
    transition: transform var(--trans-normal) var(--ease-default);
}

.gform_wrapper .btn-send:hover .btn-text {
    transform: translateX(-6px);
}

/* Paper airplane icon - using background-image for reliability */
.btn-send .btn-icon {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: -9px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Hover: icon flies in and flutters gently */
.btn-send:hover .btn-icon {
    opacity: 1;
    transform: translate(0, 0) rotate(-12deg);
    animation: paper-plane-flutter 2s ease-in-out infinite;
}

@keyframes paper-plane-flutter {
    0%, 100% {
        transform: translate(0, 0) rotate(-12deg);
    }
    25% {
        transform: translate(1px, -2px) rotate(-8deg);
    }
    50% {
        transform: translate(0, 1px) rotate(-14deg);
    }
    75% {
        transform: translate(-1px, -1px) rotate(-10deg);
    }
}

/* === Confirmation === */
.gform_wrapper .gform_confirmation_message {
    background: linear-gradient(135deg, rgba(30, 113, 184, 0.08), rgba(13, 51, 83, 0.05));
    border: 1px solid var(--kp-blue-accent);
    border-radius: 10px;
    padding: var(--space-m);
    color: var(--kp-navy-dark);
    font-size: 16px;
    line-height: 1.6;
}

/* === Hide Honeypot === */
.gform_wrapper .gform_validation_container {
    display: none !important;
}

/* Responsive - Gravity Forms */
@media (max-width: 767px) {
    /* Stack to single column */
    .gform_wrapper .gform_fields {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .gform_wrapper .gfield--width-half {
        grid-column: span 1;
    }

    /* Stack name field */
    .gform_wrapper .ginput_container_name {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Adjust input size for mobile */
    .gform_wrapper input[type="text"],
    .gform_wrapper input[type="email"],
    .gform_wrapper input[type="tel"],
    .gform_wrapper select,
    .gform_wrapper.gravity-theme input:not([type="submit"]):not([type="button"]):not([type="image"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
        height: 50px !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    .gform_wrapper textarea {
        min-height: 130px !important;
    }

    /* Full width button */
    .gform_wrapper .gform_button,
    .gform_wrapper input[type="submit"] {
        width: 100% !important;
        height: 50px !important;
        padding: 0 48px 0 32px !important;
    }

    /* Adjust icon position for slightly smaller inputs */
    .gform_wrapper .gfield--type-email .ginput_container::before,
    .gform_wrapper .gfield--type-phone .ginput_container::before {
        width: 18px;
        height: 18px;
        left: 16px;
    }
}

/* ==========================================================================
   ENDORSEMENT SLIDER
   ========================================================================== */

.endorsement-slider-section {
    overflow: hidden;
}

.endorsement-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.endorsement-track {
    position: relative;
}

.endorsement-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.endorsement-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.endorsement-quote {
    margin: 0 0 var(--space-l) 0;
    padding: 0;
    border: none;
}

.endorsement-quote p {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.bg-navy .endorsement-quote p,
.bg-slate .endorsement-quote p {
    color: var(--kp-white);
}

.endorsement-cite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    font-style: normal;
}

.endorsement-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
}

.bg-navy .endorsement-name,
.bg-slate .endorsement-name {
    color: var(--kp-white);
}

.endorsement-title {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--kp-slate);
}

.bg-navy .endorsement-title,
.bg-slate .endorsement-title {
    color: rgba(255, 255, 255, 0.7);
}

.endorsement-title a {
    color: inherit;
    text-decoration: underline;
}

.endorsement-title a:hover {
    color: var(--kp-red);
}

.endorsement-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
    margin-top: var(--space-xl);
}

.endorsement-prev,
.endorsement-next {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--trans-fast) var(--ease-default),
                color var(--trans-fast) var(--ease-default);
}

.bg-navy .endorsement-prev,
.bg-navy .endorsement-next,
.bg-slate .endorsement-prev,
.bg-slate .endorsement-next {
    color: var(--kp-white);
}

.endorsement-prev:hover,
.endorsement-next:hover {
    background: var(--kp-navy-dark);
    color: var(--kp-white);
    border-color: var(--kp-navy-dark);
}

.endorsement-dots {
    display: flex;
    gap: var(--space-xs);
}

.endorsement-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    transition: background var(--trans-fast) var(--ease-default);
}

.endorsement-dot.active {
    background: currentColor;
}

.bg-navy .endorsement-dot,
.bg-slate .endorsement-dot {
    border-color: var(--kp-white);
}

.bg-navy .endorsement-dot.active,
.bg-slate .endorsement-dot.active {
    background: var(--kp-white);
}

/* ==========================================================================
   BLOG LISTING
   ========================================================================== */

/* --- Page Header --- */
.blog-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0;
    line-height: 1.2;
}

.blog-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--kp-text-muted);
    margin: var(--space-xs) 0 0 0;
}

/* --- Blog Intro --- */
.blog-intro {
    max-width: 800px;
    margin-bottom: var(--space-l);
}

.blog-intro p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--kp-text-muted);
    margin: 0;
}

.blog-intro a {
    color: var(--kp-navy-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--kp-red);
    text-underline-offset: 3px;
    transition: color var(--trans-fast) var(--ease-default);
}

.blog-intro a:hover {
    color: var(--kp-red);
}

/* --- Blog Listing Section --- */
.blog-listing {
    padding-top: var(--space-l);
}

/* --- Category Filter Pills --- */
.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xxs);
    justify-content: center;
    padding-bottom: var(--space-s);
}

.category-pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--kp-cream);
    color: var(--kp-navy-dark);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--trans-normal) var(--ease-default),
                color var(--trans-normal) var(--ease-default);
}

.category-pill:hover {
    background: var(--kp-navy-dark);
    color: var(--kp-white);
}

.category-pill.active {
    background: var(--kp-navy-dark);
    color: var(--kp-white);
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s); /* 32px */
    padding-top: var(--space-m);
    padding-bottom: var(--space-m);
}

/* --- Blog Card Wrapper --- */
.blog-card-wrapper {
    position: relative;
}

/* --- Blog Cards --- */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 16 / 9;
    padding: var(--space-s);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--kp-slate);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(13, 51, 83, 0.15);
    transition: box-shadow var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 51, 83, 0.9) 0%,
        rgba(13, 51, 83, 0.4) 40%,
        rgba(13, 51, 83, 0.1) 70%,
        transparent 100%
    );
    transition: opacity var(--trans-normal) var(--ease-default);
}

.blog-card:hover {
    box-shadow: 8px 8px 0 0 var(--kp-navy-dark);
    transform: translate(-4px, -4px);
}

.blog-card:hover::before {
    opacity: 0.85;
}

/* No image placeholder */
.blog-card.no-image {
    background: linear-gradient(135deg, var(--kp-slate) 0%, var(--kp-navy-dark) 100%);
}

/* --- Category Pill (on cards) --- */
.blog-card-category {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 3; /* Above card link */
    display: inline-block;
    background: var(--kp-blue-badge);
    color: var(--kp-white);
    padding: 6px 12px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background var(--trans-normal) var(--ease-default),
                transform var(--trans-normal) var(--ease-default);
}

.blog-card-category:hover {
    background: var(--kp-navy-dark);
    transform: scale(1.05);
}

/* --- Card Content Wrapper --- */
.blog-card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-content {
    transform: translateY(-6px);
}

/* --- Card Date --- */
.blog-card-date {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* --- Card Title --- */
.blog-card-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--kp-white);
    line-height: 1.3;
    margin: 0;
}

/* --- Pagination --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-xl);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--kp-slate);
    text-decoration: none;
    background: var(--kp-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all var(--trans-fast) var(--ease-default);
}

.pagination-btn:hover {
    background: var(--kp-cream);
    border-color: var(--kp-slate);
    color: var(--kp-navy-dark);
}

.pagination-btn.pagination-current {
    background: var(--kp-navy-dark);
    border-color: var(--kp-navy-dark);
    color: var(--kp-white);
}

.pagination-prev,
.pagination-next {
    border-color: var(--kp-slate);
}

.pagination-prev:hover,
.pagination-next:hover {
    background: var(--kp-navy-dark);
    border-color: var(--kp-navy-dark);
    color: var(--kp-white);
}

.no-posts {
    text-align: center;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--kp-text-muted);
    padding: var(--space-xl) 0;
}

/* --- Blog Listing Responsive --- */
@media (max-width: 900px) {
    .blog-intro {
        margin-bottom: var(--space-m);
    }

    .blog-intro p {
        font-size: 16px;
    }

    .blog-grid {
        gap: var(--space-xs);
    }

    .blog-card {
        padding: var(--space-xs);
    }

    .blog-card-category {
        top: var(--space-xxs);
        left: var(--space-xxs);
        padding: 4px 10px;
        font-size: 11px;
    }

    .blog-card-title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* ==========================================================================
   SINGLE POST TEMPLATE
   ========================================================================== */

/* --- Post Meta in Hero --- */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.post-category {
    background: var(--kp-slate);
    color: var(--kp-white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: var(--kp-text-light-muted);
    font-family: var(--font-body);
    font-size: 14px;
}

/* --- Readable Content Column --- */
.single-post-content {
    background: var(--kp-white);
}

.post-featured-image {
    margin: 0 0 var(--space-l);
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Post Body: Generalized WYSIWYG Styling === */
.post-body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--kp-text-dark);
}

/* Paragraphs */
.post-body p {
    margin: 1.5em 0 0 0;
}
.post-body p:first-child { margin-top: 0; }
.post-body p:last-child { margin-bottom: 0; }

/* Headings within content */
.post-body h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0;
}

.post-body h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin-top: 12px;
    margin-bottom: 6px;
    background: linear-gradient(to right, var(--kp-slate), #a3b5c4);
    border-radius: 1.5px;
}

.post-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0;
}

.post-body h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0;
}

/* Sibling spacing (Bible2School pattern) */
.post-body h2 + p { margin-top: 1.5rem; }
.post-body h3 + p { margin-top: 0.875rem; }
.post-body h4 + p { margin-top: 0.75rem; }
.post-body p + h2 { margin-top: 2.5rem; }
.post-body p + h3 { margin-top: 2rem; }
.post-body p + h4 { margin-top: 1.5rem; }
.post-body h2 + h3 { margin-top: 1rem; }
.post-body h3 + h4 { margin-top: 0.75rem; }

/* Links */
.post-body a {
    color: var(--kp-blue-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.post-body a:hover {
    color: var(--kp-red);
}

/* Lists */
.post-body ul,
.post-body ol {
    margin: 1.25rem 0;
    padding-left: 1.5em;
}
.post-body ul:first-child,
.post-body ol:first-child { margin-top: 0; }
.post-body ul:last-child,
.post-body ol:last-child { margin-bottom: 0; }
.post-body li {
    margin-bottom: 0.5em;
}
.post-body li:last-child { margin-bottom: 0; }

/* Blockquotes */
.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--kp-blue-accent);
    background: rgba(30, 113, 184, 0.05);
    font-style: italic;
}
.post-body blockquote p:first-child { margin-top: 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }

/* Images in content */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* WordPress alignment classes */
.post-body .aligncenter { display: block; margin: 1.5rem auto; }
.post-body .alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.post-body .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }

/* Captions */
.post-body .wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
}
.post-body .wp-caption-text {
    font-size: 14px;
    color: var(--kp-text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* Embedded video */
.post-body .wp-block-embed {
    max-width: 100%;
    margin: 2rem 0;
}

/* Responsive embed container (YouTube, Vimeo, etc.) */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* --- Single Post Responsive --- */
@media (max-width: 767px) {
    .post-meta {
        gap: 8px;
    }

    .post-category {
        padding: 4px 10px;
        font-size: 11px;
    }

    .post-date {
        font-size: 13px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 { font-size: 1.75rem; }
    .post-body h3 { font-size: 1.375rem; }

    .post-body blockquote {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }

    .post-body .alignleft,
    .post-body .alignright {
        float: none;
        margin: 1rem 0;
    }
}

/* ==========================================================================
   SINGLE VIDEO TEMPLATE
   ========================================================================== */

.single-video-content {
    background: var(--kp-white);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--kp-text-light-muted);
    margin-top: var(--space-xs);
}

.video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: var(--space-l);
    border-radius: 8px;
    overflow: hidden;
    background: var(--kp-navy-dark);
}

.video-player--short {
    padding-bottom: 177.78%; /* 9:16 */
    max-width: 400px;
    margin: 0 auto var(--space-l);
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--kp-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.video-description p {
    margin: 0;
}

.no-video {
    text-align: center;
    padding: var(--space-xl);
    color: var(--kp-text-muted);
}

/* ==========================================================================
   RELATED CONTENT BLOCK
   ========================================================================== */

.related-content {
    /* Background handled by modifier classes */
}

.related-content.bg-cream {
    background: var(--kp-cream);
}

.related-content.bg-white {
    background: var(--kp-white);
}

.related-content.bg-navy {
    background: var(--kp-navy-dark);
}

.related-content .section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0 0 var(--space-m);
    text-align: center;
}

.related-content .section-title.text-light {
    color: var(--kp-white);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-s);
}

.related-card {
    background: var(--kp-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 51, 83, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(13, 51, 83, 0.15);
}

.related-card-image {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-card-image--placeholder {
    background: linear-gradient(135deg, var(--kp-slate) 0%, var(--kp-navy-dark) 100%);
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kp-navy-dark);
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover .play-indicator {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--kp-white);
}

.play-indicator svg {
    margin-left: 3px; /* Optical centering for play icon */
}

.related-card-content {
    padding: var(--space-s);
}

.related-card-type {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kp-blue-accent);
    margin-bottom: 4px;
}

.related-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kp-navy-dark);
    margin: 0;
    line-height: 1.3;
}

/* --- Related Content Responsive --- */
@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card-title {
        font-size: 1rem;
    }
}
