/* How It Works Page - Storytelling Design */

/* ============================================
   PAGE WRAPPER - Art-style background
   ============================================ */
.how-it-works-page {
    position: relative;
}

.how-it-works-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/images/backgrounds/flipt/art-nouveau.png') repeat;
    background-size: 400px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.story-hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg,
    var(--theme-bg-primary) 0%,
    var(--theme-bg-secondary) 50%,
    var(--theme-bg-primary) 100%
    );
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(var(--theme-primary-rgb, 0, 169, 160), 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--theme-primary-rgb, 0, 169, 160), 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.12);
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 169, 160), 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 0.875rem;
}

.hero-title {
    font-family: 'Karla', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-image-wrapper {
    margin-top: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 10px 20px -5px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-featured-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.12),
    0 16px 32px -8px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(var(--theme-primary-rgb, 0, 169, 160), 0.15);
}

.hero-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
    border: 2px solid var(--theme-primary);
    border-radius: 12px;
    color: var(--theme-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-faq-link:hover {
    background: var(--theme-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb, 0, 169, 160), 0.3);
    text-decoration: none;
}

.hero-faq-link i:first-child {
    font-size: 1.25rem;
}

.hero-faq-link i:last-child {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.hero-faq-link:hover i:last-child {
    transform: translateX(4px);
}

/* Hero links container */
.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-links .hero-faq-link,
.hero-links .hero-pricing-link {
    margin-top: 0;
}

.hero-pricing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(var(--theme-primary-rgb, 0, 169, 160), 0.4);
    border-radius: 12px;
    color: var(--theme-text-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-pricing-link:hover {
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-pricing-link i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-pricing-link {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .hero-featured-image {
        border-radius: 8px;
    }

    .hero-faq-link {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ============================================
   STORY CHAPTERS
   ============================================ */
.story-chapter {
    padding: 4rem 0;
    border-bottom: 1px solid var(--theme-border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-chapter:last-of-type {
    border-bottom: none;
}

.story-chapter.visible {
    opacity: 1;
    transform: translateY(0);
}

.chapter-header {
    margin-bottom: 2rem;
}

.chapter-number {
    display: inline-block;
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}

.chapter-title {
    font-family: 'Karla', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Story Content Layout */
.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .story-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    /* Alternate infographic position on even chapters */
    .story-chapter:nth-child(even) .story-content {
        direction: rtl;
    }

    .story-chapter:nth-child(even) .story-content > * {
        direction: ltr;
    }
}

/* Story Text */
.story-text {
    max-width: 600px;
}

.story-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--theme-text-primary);
    margin-bottom: 1.25rem;
}

.story-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--theme-text-secondary);
    margin-bottom: 1rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Founder Bio Card */
.founder-bio {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.founder-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme-primary);
    flex-shrink: 0;
}

.founder-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.founder-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
}

.founder-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--theme-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.founder-link:hover {
    opacity: 0.8;
}

.founder-link i {
    font-size: 0.875rem;
}

.founder-link-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 576px) {
    .founder-bio {
        flex-direction: column;
        text-align: center;
    }

    .founder-links {
        justify-content: center;
    }
}

.story-text strong {
    color: var(--theme-text-primary);
    font-weight: 600;
}

.story-text em {
    font-style: italic;
}

.story-text a:not(.btn-series-view):not([class*="btn"]) {
    color: var(--theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.story-text a:not(.btn-series-view):not([class*="btn"]):hover {
    color: var(--theme-primary-hover, #008f88);
}

/* Fee Breakdown List */
.fee-breakdown-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fee-breakdown-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--theme-text-primary);
    line-height: 1.4;
}

.fee-breakdown-list > li > strong {
    color: var(--theme-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.fee-breakdown-list .fee-detail {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
    margin-top: 0.125rem;
}

[data-bs-theme="dark"] .fee-breakdown-list > li {
    background: var(--surface-2, #1f1f2e);
}

/* PDGA Fee Item - Special styling */
.pdga-fee-item {
    flex-direction: column !important;
    align-items: stretch !important;
    background: linear-gradient(135deg,
        rgba(0, 90, 156, 0.06) 0%,
        rgba(0, 90, 156, 0.02) 100%) !important;
    border-color: rgba(0, 90, 156, 0.2) !important;
}

.pdga-fee-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdga-fee-header strong {
    color: #005a9c !important;
}

.pdga-fee-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--theme-text-secondary);
}

.pdga-inline-logo-sm {
    height: 0.875em;
    width: auto;
    filter: brightness(0);
    opacity: 0.7;
}

[data-bs-theme="dark"] .pdga-inline-logo-sm {
    filter: none;
    opacity: 0.9;
}

.pdga-fee-breakdown {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(0, 90, 156, 0.2);
}

.pdga-fee-split {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.split-amount {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.split-arrow {
    color: var(--theme-text-tertiary);
    font-size: 0.625rem;
}

.split-dest {
    color: var(--theme-text-secondary);
}

.split-dest a {
    color: var(--theme-primary);
}

.td-portion .split-dest {
    color: var(--theme-text-primary);
}

.td-split-detail {
    font-size: 0.6875rem;
    color: var(--theme-text-tertiary);
}

[data-bs-theme="dark"] .pdga-fee-item {
    background: linear-gradient(135deg,
        rgba(0, 90, 156, 0.12) 0%,
        rgba(0, 90, 156, 0.04) 100%) !important;
}

[data-bs-theme="dark"] .pdga-fee-header strong {
    color: #4da3dc !important;
}

/* Additional TD Allocation (above the $0.50 minimum) */
.td-additional-item {
    background: linear-gradient(135deg,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.06) 0%,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.02) 100%) !important;
    border-color: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.2) !important;
    border-left: 3px solid var(--theme-primary) !important;
}

.td-additional-item strong {
    color: var(--theme-primary) !important;
}

[data-bs-theme="dark"] .td-additional-item {
    background: linear-gradient(135deg,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1) 0%,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.03) 100%) !important;
}

/* PDGA Mandate Callout */
.pdga-mandate-callout {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(0, 90, 156, 0.05) 0%,
        transparent 100%);
    border-left: 3px solid #005a9c;
    border-radius: 0 8px 8px 0;
}

.pdga-mandate-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #005a9c;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pdga-callout-logo {
    height: 1rem;
    width: auto;
    filter: brightness(0) saturate(100%) invert(22%) sepia(89%) saturate(1636%) hue-rotate(189deg) brightness(95%) contrast(101%);
}

[data-bs-theme="dark"] .pdga-callout-logo {
    filter: brightness(0) saturate(100%) invert(58%) sepia(52%) saturate(456%) hue-rotate(167deg) brightness(95%) contrast(92%);
}

[data-bs-theme="dark"] .pdga-mandate-header {
    color: #4da3dc;
}

.pdga-mandate-callout > p {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary);
    line-height: 1.55;
    margin: 0 0 0.75rem 0;
}

.pdga-mandate-callout > p:last-child,
.pdga-mandate-callout > .pdga-mandate-note {
    margin-bottom: 0;
}

.pdga-mandate-callout a {
    color: #005a9c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-bs-theme="dark"] .pdga-mandate-callout a {
    color: #4da3dc;
}

.pdga-mandate-note {
    font-size: 0.75rem !important;
    color: var(--theme-text-tertiary) !important;
    font-style: italic;
}

/* TD Allocation Detail (within PDGA callout) */
.td-allocation-detail {
    margin: 0.75rem 0;
    padding: 0.625rem 0.75rem;
    background: var(--theme-bg-secondary);
    border-radius: 6px;
}

.td-allocation-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-text-tertiary);
    margin-bottom: 0.375rem;
}

.td-allocation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.td-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--theme-text-primary);
}

.td-chip i {
    font-size: 0.625rem;
    color: var(--theme-primary);
}

[data-bs-theme="dark"] .td-allocation-detail {
    background: var(--surface-2, #1f1f2e);
}

@media (max-width: 576px) {
    .fee-breakdown-list > li {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .fee-breakdown-list > li > strong {
        font-size: 0.875rem;
    }

    .pdga-fee-breakdown {
        flex-direction: column;
        gap: 0.375rem;
    }

    .pdga-mandate-callout {
        padding: 0.875rem;
    }

    .td-allocation-chips {
        flex-direction: column;
    }

    .td-chip {
        justify-content: flex-start;
    }
}

/* Fee Breakdown CTA (links to modal) */
.fee-breakdown-cta {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.06) 0%,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.02) 100%);
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 169, 160), 0.15);
    border-radius: 8px;
    text-align: center;
}

[data-bs-theme="dark"] .fee-breakdown-cta {
    background: linear-gradient(135deg,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1) 0%,
        rgba(var(--theme-primary-rgb, 0, 169, 160), 0.04) 100%);
}

/* Story Infographic */
.story-infographic {
    position: relative;
}

.infographic-context {
    margin-bottom: 1rem;
}

.infographic-context h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem;
}

.infographic-context p {
    font-size: 0.9375rem;
    color: var(--theme-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Infographic Frame */
.infographic-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--theme-bg-secondary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.infographic-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay and zoom button hidden - removed hover effect for mobile usability */
.infographic-overlay {
    display: none;
}

.zoom-btn {
    display: none;
}

/* Learn More Link */
.learn-more-wrap {
    margin-top: 1rem;
    text-align: center;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.learn-more-link:hover {
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
    color: var(--theme-primary);
    text-decoration: none;
}

.learn-more-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.learn-more-link:hover i {
    transform: translateX(3px);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: 4rem 0 3rem;
    margin-top: 2rem;
    border-top: 1px solid var(--theme-border-color);
}

.trust-heading {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.trust-subheading {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.trust-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
    border-radius: 50%;
}

.trust-icon i {
    font-size: 1.375rem;
    color: var(--theme-primary);
}

.pdga-inline-logo {
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.25rem;
    /* SVG is white, invert to black for light mode */
    filter: brightness(0);
}

[data-bs-theme="dark"] .pdga-inline-logo {
    /* Keep white in dark mode */
    filter: none;
}

.trust-card h4 {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.trust-card-link {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.trust-card-link:hover {
    color: var(--theme-primary-hover, #008f88);
    text-decoration: underline;
}

/* ============================================
   DIRECTOR CTA SECTION
   ============================================ */
.director-cta-section {
    padding: 3rem 0;
}

.director-cta-card {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg,
    rgba(15, 76, 117, 0.08) 0%,
    var(--theme-bg-secondary) 100%
    );
    border: 2px solid rgba(15, 76, 117, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.director-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(15, 76, 117, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.director-cta-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F4C75 0%, #0a3555 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
}

.director-cta-icon i {
    font-size: 1.5rem;
    color: white;
}

.director-cta-content h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 1rem;
}

.director-cta-content > p {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.director-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.director-benefits li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--theme-text-primary);
}

.director-benefits li i {
    color: var(--theme-primary);
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* TD Presence Callout */
.td-presence-callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg,
    rgba(var(--theme-primary-rgb, 0, 169, 160), 0.08) 0%,
    rgba(var(--theme-primary-rgb, 0, 169, 160), 0.03) 100%);
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 169, 160), 0.2);
    border-left: 4px solid var(--theme-primary);
    border-radius: 8px;
}

.td-presence-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.15);
    border-radius: 50%;
}

.td-presence-icon i {
    font-size: 1.25rem;
    color: var(--theme-primary);
}

.td-presence-content h4 {
    margin: 0 0 0.5rem 0;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.td-presence-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--theme-text-secondary);
    line-height: 1.5;
}

.td-presence-content p:last-of-type {
    margin-bottom: 0.75rem;
}

.td-presence-caveats {
    font-size: 0.875rem !important;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.08);
    border-radius: 6px;
}

.td-presence-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.td-presence-link:hover {
    color: var(--theme-primary-dark, #008b83);
    text-decoration: none;
}

.td-presence-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.td-presence-link:hover i {
    transform: translateX(3px);
}

.director-cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-director-primary,
.btn-director-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-director-primary {
    background: linear-gradient(135deg, #0F4C75 0%, #0a3555 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
}

.btn-director-primary:hover {
    background: linear-gradient(135deg, #0d4469 0%, #082f4d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 76, 117, 0.4);
    color: white;
    text-decoration: none;
}

.btn-director-secondary {
    background: transparent;
    color: #0F4C75;
    border: 1px solid rgba(15, 76, 117, 0.3);
}

.btn-director-secondary:hover {
    background: rgba(15, 76, 117, 0.08);
    border-color: #0F4C75;
    color: #0F4C75;
    text-decoration: none;
}

[data-bs-theme="dark"] .director-cta-card {
    background: linear-gradient(135deg,
    rgba(15, 76, 117, 0.15) 0%,
    var(--surface-2, #1f1f2e) 100%
    );
    border-color: rgba(15, 76, 117, 0.3);
}

[data-bs-theme="dark"] .btn-director-secondary {
    color: #5fa8d3;
    border-color: rgba(95, 168, 211, 0.4);
}

[data-bs-theme="dark"] .btn-director-secondary:hover {
    background: rgba(95, 168, 211, 0.1);
    border-color: #5fa8d3;
    color: #5fa8d3;
}

@media (max-width: 768px) {
    .director-cta-card {
        padding: 2rem;
    }

    .director-benefits {
        grid-template-columns: 1fr;
    }

    .director-cta-actions {
        flex-direction: column;
    }

    .btn-director-primary,
    .btn-director-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 2rem 0 4rem;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg,
    rgba(var(--theme-primary-rgb, 0, 169, 160), 0.08) 0%,
    var(--theme-bg-secondary) 100%
    );
    border: 1px solid var(--theme-border-color);
    border-radius: 20px;
}

.cta-content h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.375rem;
}

.cta-content p {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-bs-theme="dark"] .story-hero {
    background: linear-gradient(135deg,
    var(--theme-bg-primary) 0%,
    var(--surface-2, #1a1a2e) 50%,
    var(--theme-bg-primary) 100%
    );
}

[data-bs-theme="dark"] .hero-pattern {
    background-image: radial-gradient(circle at 20% 80%, rgba(var(--theme-primary-rgb, 0, 169, 160), 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--theme-primary-rgb, 0, 169, 160), 0.08) 0%, transparent 40%);
}

[data-bs-theme="dark"] .infographic-frame {
    background: var(--surface-2, #1f1f2e);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .trust-icon {
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.15);
}

[data-bs-theme="dark"] .cta-card {
    background: linear-gradient(135deg,
    rgba(var(--theme-primary-rgb, 0, 169, 160), 0.12) 0%,
    var(--surface-2, #1f1f2e) 100%
    );
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .story-content {
        grid-template-columns: 1fr;
    }

    .story-text {
        max-width: none;
    }

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

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .cta-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .story-hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .story-chapter {
        padding: 3rem 0;
    }

    .chapter-title {
        font-size: 1.375rem;
    }

    .story-lead {
        font-size: 1rem;
    }

    /* On mobile, show infographic first (before text) */
    .story-content {
        display: flex;
        flex-direction: column;
    }

    .story-infographic {
        order: -1;
    }

    /* Ensure infographic images fit without scroll */
    .infographic-image {
        max-width: 100%;
        height: auto;
    }

    .infographic-frame {
        max-width: 100%;
        overflow: hidden;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .trust-card {
        padding: 1rem;
    }

    .trust-icon {
        width: 48px;
        height: 48px;
    }

    .trust-icon i {
        font-size: 1.125rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-actions .btn-theme-base {
        width: 100%;
        justify-content: center;
    }
}

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

    .trust-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }

    .trust-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .trust-card h4 {
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   SERIES LEAGUES GRID
   ============================================ */
.series-leagues-grid {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.series-image-wrapper {
    margin-bottom: 1rem;
    text-align: center;
}

.series-feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.series-leagues-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Karla', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 1rem 0;
}

.series-leagues-heading i {
    color: var(--theme-primary);
}

.series-leagues-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.series-league-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--theme-text-primary);
    transition: all 0.2s ease;
}

.series-league-card:hover {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.05);
    transform: translateX(4px);
    text-decoration: none;
    color: var(--theme-text-primary);
}

.series-league-day {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark, #008b83));
    border-radius: 8px;
}

.day-abbrev {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.series-league-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.series-league-course-primary {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--theme-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.series-league-name-secondary {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

.series-league-card,
.series-league-card:hover,
.series-league-card:focus,
.series-league-card:visited {
    text-decoration: none !important;
}

.series-league-course {
    font-size: 0.8125rem;
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.series-league-course i {
    font-size: 0.75rem;
    color: var(--theme-primary);
}

.series-league-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.series-league-status.open {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.series-league-arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--theme-text-tertiary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.series-league-card:hover .series-league-arrow {
    transform: translateX(2px);
    color: var(--theme-primary);
}

.series-leagues-cta {
    margin-top: 1rem;
    text-align: center;
}

.btn-series-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-series-view:hover {
    background: var(--theme-primary-dark, #008b83);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb, 0, 169, 160), 0.3);
    color: white;
    text-decoration: none;
}

[data-bs-theme="dark"] .series-leagues-grid {
    background: var(--surface-2, #1f1f2e);
}

[data-bs-theme="dark"] .series-league-card {
    background: var(--surface-1, #16161e);
}

[data-bs-theme="dark"] .series-league-card:hover {
    background: rgba(var(--theme-primary-rgb, 0, 169, 160), 0.1);
}

[data-bs-theme="dark"] .series-league-status.open {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

@media (max-width: 576px) {
    .series-leagues-grid {
        padding: 1rem;
    }

    .series-league-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .series-league-day {
        width: 40px;
        height: 40px;
    }

    .day-abbrev {
        font-size: 0.6875rem;
    }

    .series-league-name {
        font-size: 0.875rem;
    }

    .series-league-status {
        display: none;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.mt-4 {
    margin-top: 2rem;
}
