:root {
    --primary-blue: #0066CC;
    --dark-blue: #004A99;
    --light-blue: #E6F2FF;
    --accent-blue: #3399FF;
    --success-green: #28A745;
    --danger-red: #DC3545;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000 !important;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.logo-placeholder i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

/* How It Works Section */
.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Vertical step list */
.steps-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card-vertical {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.step-card-vertical .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), #0052a3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.step-card-vertical .step-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.step-card-vertical .step-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-benefit {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    background: var(--light-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.metric-badge {
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.metric-badge i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Flow Diagram */
.flow-diagram-container {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem 2rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
}

/* Uniform node sizing */
.flow-node {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 0.75rem;
    width: 110px;
    min-width: 110px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.flow-node:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.flow-node .node-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--primary-blue);
}

.flow-node .node-label {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.flow-node .node-details {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.2;
}

/* Labeled connectors */
.flow-connector-labeled {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.25rem;
    flex-shrink: 0;
}

.flow-connector-labeled.wide {
    min-width: 140px;
}

.connector-arrow {
    color: #94a3b8;
    font-size: 1.25rem;
    animation: pulse-arrow 2s ease-in-out infinite;
}

.connector-label {
    margin-top: 0.25rem;
}

.connector-label-multi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

/* Center arrow among badges on wide connector */
.flow-connector-labeled.wide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.flow-connector-labeled.wide .connector-arrow {
    order: 0;
}

/* Tech labels - emphasized intelligent screening features */
.tech-label {
    background: linear-gradient(135deg, #0066CC, #0052a3);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

/* Flow diagram wrapper */
.flow-diagram-wrapper {
    position: relative;
    padding: 1rem 0;
}

/* Node groups - contain nodes with their loop arrows */
.node-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sync-group {
    margin-top: 0;
}

.refresh-group {
    margin-bottom: 0;
}

/* Node pair/sequence - horizontal layout within groups */
.node-pair,
.node-sequence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Inline loop arrow containers */
.loop-arrow-container {
    position: relative;
    width: 100%;
    height: 30px;
}

.loop-top-inline {
    margin-bottom: 0.25rem;
}

.loop-bottom-inline {
    margin-top: 0.25rem;
}

.loop-svg-inline {
    width: 100%;
    height: 100%;
}

/* Loop badge - centered on the arrow */
.loop-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: linear-gradient(135deg, #0066CC, #0052a3);
    white-space: nowrap;
}

/* Vertical loop arrows - hidden on desktop, shown on mobile */
.loop-arrow-vertical {
    display: none;
}

/* Refresh wrapper - displays inline on desktop */
.refresh-wrapper-mobile {
    display: contents;
}

/* Side refresh arrow - hidden on desktop */
.refresh-arrow-side {
    display: none;
}

.refresh-label {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; color: var(--primary-blue); }
}

/* Responsive flow diagram */
@media (max-width: 992px) {
    .flow-diagram {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .flow-connector-labeled.wide {
        min-width: auto;
    }
    
    .connector-label-multi {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .flow-diagram-container {
        padding: 1rem;
    }
    
    .flow-diagram-wrapper {
        padding: 1rem 0;
    }
    
    .flow-diagram {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .flow-node {
        width: 200px;
        padding: 0.75rem 0.5rem;
    }
    
    .node-icon {
        font-size: 1.5rem;
    }
    
    .node-label {
        font-size: 0.8rem;
    }
    
    .node-details {
        font-size: 0.65rem;
    }
    
    /* Vertical connectors between nodes */
    .flow-connector-labeled {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .flow-connector-labeled.wide {
        flex-direction: column;
        padding: 0.75rem 0;
    }
    
    .connector-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }
    
    .connector-label-multi {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        max-width: 280px;
    }
    
    .connector-label-multi .tech-label {
        font-size: 0.55rem;
    }
    
    .node-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Stack nodes vertically */
    .node-pair,
    .node-sequence {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* Hide horizontal loop arrows */
    .loop-arrow-container.loop-top-inline,
    .loop-arrow-container.loop-bottom-inline {
        display: none;
    }
    
    /* Show vertical EMR Sync arrow between Document and OCR */
    .loop-arrow-vertical {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .loop-svg-vertical {
        width: 30px;
        height: 45px;
    }
    
    .loop-badge-vertical {
        background: linear-gradient(135deg, #0066CC, #0052a3);
        white-space: nowrap;
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
        border-radius: 4px;
        color: white;
    }
    
    .loop-badge-vertical.refresh-label {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }
    
    /* Refresh loop vertical (inline below Status node) */
    .refresh-loop-vertical {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 0.5rem 0;
        padding: 0.25rem;
        background: rgba(34, 197, 94, 0.05);
        border-radius: 8px;
    }
    
    .refresh-loop-vertical .loop-svg-vertical {
        width: 30px;
        height: 40px;
    }
    
    .refresh-loop-vertical .loop-badge-vertical {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }
}

/* iPhone-specific responsive fixes (576px and below) */
@media (max-width: 576px) {
    .flow-diagram-container {
        padding: 0.5rem;
        overflow-x: visible;
    }
    
    .flow-diagram {
        gap: 0;
    }
    
    /* Responsive node sizing */
    .flow-node {
        width: clamp(160px, 70vw, 200px);
        padding: 0.6rem 0.4rem;
    }
    
    .node-icon {
        font-size: 1.3rem;
    }
    
    .node-label {
        font-size: 0.75rem;
    }
    
    .node-details {
        font-size: 0.6rem;
    }
    
    /* Tech label styling */
    .tech-label {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
        white-space: nowrap;
        text-align: center;
    }
    
    .loop-badge-vertical {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Stack connector labels in 2x2 grid */
    .connector-label-multi {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 0.2rem;
        max-width: 220px;
    }
    
    .connector-label-multi .tech-label {
        font-size: 0.45rem;
    }
    
    .connector-arrow {
        font-size: 1rem;
    }
    
    .flow-connector-labeled {
        padding: 0.4rem 0;
    }
    
    /* Refresh loop styling at 576px */
    .refresh-loop-vertical {
        padding: 0.2rem;
    }
}

/* Extra small screens (320px - 360px) */
@media (max-width: 360px) {
    .flow-node {
        width: 140px;
        padding: 0.5rem 0.3rem;
    }
    
    .node-icon {
        font-size: 1.2rem;
    }
    
    .node-label {
        font-size: 0.7rem;
    }
    
    .node-details {
        font-size: 0.55rem;
    }
    
    .tech-label {
        font-size: 0.42rem;
    }
    
    .connector-label-multi {
        max-width: 180px;
    }
    
    .connector-label-multi .tech-label {
        font-size: 0.4rem;
    }
    
    .loop-badge-vertical {
        font-size: 0.5rem;
    }
    
    .refresh-loop-vertical .loop-svg-vertical {
        width: 25px;
        height: 35px;
    }
}

/* Features Accordion */
.features-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.features-accordion .accordion-item {
    border: none;
    margin-bottom: 0.75rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.features-accordion .accordion-button {
    background: var(--white);
    padding: 1rem 1.25rem;
    box-shadow: none;
    gap: 0;
}

.features-accordion .accordion-button:not(.collapsed) {
    background: var(--white);
    box-shadow: none;
}

.features-accordion .accordion-button:focus {
    box-shadow: none;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pillar-title {
    flex: 1;
    text-align: left;
}

.pillar-title strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.pillar-title small {
    font-size: 0.8rem;
    line-height: 1.3;
}

.features-accordion .accordion-body {
    background: #f8fafc;
    padding: 1rem 1.25rem;
}

.feature-item {
    text-align: center;
    padding: 0.75rem;
}

.feature-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-item h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

@media (max-width: 767.98px) {
    .features-accordion .accordion-button {
        padding: 0.875rem 1rem;
    }
    
    .pillar-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .pillar-title strong {
        font-size: 0.95rem;
    }
    
    .pillar-title small {
        font-size: 0.75rem;
    }
    
    .feature-item {
        padding: 0.5rem;
    }
}

/* Technical Deep Dive Section */
.tech-detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    border-left: 4px solid var(--primary-blue);
}

.tech-detail-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-detail-card ul {
    color: var(--text-muted);
    padding-left: 1.5rem;
}

.tech-detail-card ul li {
    margin-bottom: 0.75rem;
}

/* Tech Accordion for Examples */
.tech-accordion .accordion-item {
    border: none;
    background: transparent;
}

.tech-accordion .accordion-button {
    background: linear-gradient(135deg, #e9f3ff 0%, #f0f7ff 100%);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px !important;
    box-shadow: none;
}

.tech-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-blue);
    color: var(--white);
}

.tech-accordion .accordion-button:focus {
    box-shadow: none;
}

.tech-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(32%) sepia(97%) saturate(1234%) hue-rotate(199deg);
}

.tech-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.tech-accordion .accordion-body {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    line-height: 1.6;
}

/* Tech Feature Cards Grid */
.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Responsive grid for tech cards - 4 columns on large screens for 8 cards (2 rows) */
@media (min-width: 1200px) {
    .tech-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2 columns on medium-large screens (4 rows of 2) */
@media (min-width: 768px) and (max-width: 1199px) {
    .tech-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2 columns on tablets */
@media (max-width: 767px) and (min-width: 577px) {
    .tech-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* 1 column on mobile */
@media (max-width: 576px) {
    .tech-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .tech-card-header {
        min-height: 70px;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .tech-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tech-card-info h5 {
        font-size: 0.9rem;
    }
    
    .tech-card-info p {
        font-size: 0.75rem;
    }
}

.tech-feature-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tech-feature-card.expanded {
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.15);
}

.tech-feature-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    min-height: 90px;
    flex: 1;
}

.tech-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tech-card-info {
    flex: 1;
    min-width: 0;
}

.tech-card-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tech-card-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.tech-card-toggle {
    color: var(--primary-blue);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tech-feature-card.expanded .tech-card-toggle {
    transform: rotate(180deg);
}

.tech-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid transparent;
}

.tech-feature-card.expanded .tech-card-content {
    max-height: 600px;
    padding: 1.25rem;
    border-top-color: #e9ecef;
}

/* Visual Demo Components */
.visual-demo {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.demo-title {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* OCR Split View - Always Stack Vertically */
.ocr-split-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ocr-before, .ocr-after {
    width: 100%;
}

.ocr-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transform: rotate(90deg);
}

.doc-snippet {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1.4;
}

.doc-snippet.redacted {
    background: #e8f4e8;
    border-color: #28a745;
}

.doc-header {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.25rem;
}

.doc-line {
    margin-bottom: 0.25rem;
}

.phi-original {
    background: #fff3cd;
    padding: 0 3px;
    border-radius: 2px;
}

.phi-redacted {
    background: #dc3545;
    color: white;
    padding: 0 4px;
    border-radius: 2px;
    font-weight: 600;
}

.keyword-match {
    background: #ffc107;
    padding: 0 3px;
    border-radius: 2px;
    font-weight: 600;
}

/* Alias Funnel */
.alias-funnel {
    text-align: center;
}

.alias-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.alias-chip {
    background: #e9ecef;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    border: 1px solid #dee2e6;
}

.alias-arrow {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.alias-result {
    margin-top: 0.5rem;
}

.trigger-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

/* Condition Mapping */
.condition-mapping {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.condition-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.75rem;
}

.condition-row:first-child {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.condition-row.data {
    font-family: 'Courier New', monospace;
}

.problem-list-item {
    background: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
}

.mapping-arrow {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.canonical-condition {
    text-align: center;
}

.trigger-chip {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.7rem;
    display: inline-block;
}

/* Severity Timeline */
.severity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.severity-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.severity-arrow {
    transform: rotate(90deg);
}

.severity-output {
    align-items: center;
}

.severity-input {
    flex: 1;
}

.chart-excerpt {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--primary-blue);
}

.severity-arrow {
    color: var(--primary-blue);
}

.severity-output {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.severity-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.severity-badge.high {
    background: #dc3545;
    color: white;
}

.severity-badge.standard {
    background: #6c757d;
    color: white;
}

.severity-badge.mild {
    background: #28a745;
    color: white;
}

.severity-badge.moderate {
    background: #fd7e14;
    color: white;
}

.severity-badge.severe {
    background: #dc3545;
    color: white;
}

.severity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.severity-example {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.severity-example .chart-excerpt {
    font-size: 0.8rem;
    color: #495057;
}

.condition-tag {
    font-size: 0.7rem;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Variant Comparison Styles */
.variant-comparison {
    text-align: center;
}

.variant-comparison-header {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.variant-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.variant-card-mini {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    text-align: center;
}

.variant-card-mini.diabetic {
    border-color: #28a745;
}

.variant-card-mini.non-diabetic {
    border-color: #6c757d;
}

.variant-condition {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.variant-card-mini.diabetic .variant-condition {
    color: #28a745;
}

.variant-card-mini.non-diabetic .variant-condition {
    color: #6c757d;
}

.variant-card-mini .variant-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    margin-bottom: 0.25rem;
}

.variant-card-mini .variant-freq {
    font-size: 0.8rem;
    color: #6c757d;
}

.variant-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* Detailed Variant Cards */
.variant-card-detailed {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    text-align: left;
}

.variant-card-detailed.diabetic {
    border-color: #28a745;
}

.variant-card-detailed.non-diabetic {
    border-color: #6c757d;
}

.variant-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 0.75rem;
    text-align: center;
}

.variant-card-detailed.diabetic .variant-title {
    color: #28a745;
}

.variant-card-detailed.non-diabetic .variant-title {
    color: #6c757d;
}

.variant-fields {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.variant-field {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.field-label {
    color: #6c757d;
}

.field-value {
    font-weight: 500;
    color: #212529;
}

.field-value.required {
    color: #28a745;
    font-weight: 600;
}

.variant-freq-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Variant Flow - Always Stack Vertically */
.variant-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.variant-eligibility {
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.variant-arrow {
    text-align: center;
    transform: rotate(90deg);
}

.variant-result {
    width: 100%;
}

.eligibility-header {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.eligibility-checks {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.check-item {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.check-item.passed {
    color: #28a745;
}

.check-item.severity {
    color: #fd7e14;
}

.variant-arrow {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.variant-result {
    flex: 0.8;
}

.variant-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid;
}

.variant-card.due {
    border-color: #dc3545;
}

.variant-status {
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.variant-card.due .variant-status {
    background: #dc3545;
    color: white;
}

.variant-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.variant-type {
    font-size: 0.7rem;
    color: #fd7e14;
    font-weight: 600;
}

.variant-freq {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Calendar Demo - Always Stack Vertically */
.priority-calendar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-grid {
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-header span {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
}

.calendar-days .day {
    text-align: center;
    padding: 0.4rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background: white;
}

.calendar-days .day.past {
    color: #adb5bd;
    background: #e9ecef;
}

.calendar-days .day.today {
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
}

.calendar-days .day.prep-window {
    background: #d4edda;
    color: #155724;
}

.calendar-days .day.prep-window.highlight {
    background: #28a745;
    color: white;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.65rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item .dot.today {
    background: var(--primary-blue);
}

.legend-item .dot.prep {
    background: #d4edda;
    border: 1px solid #28a745;
}

.priority-queue {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
}

.queue-title {
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.queue-item {
    font-size: 0.7rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #dee2e6;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-date {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Transcript Demo */
.transcript-demo {
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

.transcript-header {
    background: #16213e;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.transcript-content {
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #e9ecef;
    line-height: 1.6;
}

.transcript-content p {
    margin-bottom: 0.35rem;
}

.transcript-content hr {
    border-color: #495057;
    margin: 0.5rem 0;
}

.transcript-legend {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: #16213e;
    font-size: 0.65rem;
    color: #adb5bd;
}

.transcript-legend .swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.transcript-legend .swatch.phi {
    background: #dc3545;
}

.transcript-legend .swatch.keyword {
    background: #ffc107;
}

/* Audit Table Demo */
.audit-table-demo {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.audit-table-header {
    padding: 0.6rem 0.75rem;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.75rem;
    border-bottom: 1px solid #1e293b;
}

.audit-table {
    width: 100%;
    font-size: 0.65rem;
    color: #cbd5e1;
}

.audit-table thead th {
    padding: 0.5rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    white-space: nowrap;
}

.audit-table tbody tr {
    border-bottom: 1px solid #1e293b;
}

.audit-table tbody tr:last-child {
    border-bottom: none;
}

.audit-table tbody td {
    padding: 0.5rem 0.5rem;
    vertical-align: middle;
}

.audit-timestamp {
    color: #60a5fa;
    font-weight: 500;
    white-space: nowrap;
}

.audit-timestamp span {
    font-weight: 700;
}

.audit-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}

.audit-badge.badge-login {
    background: #0ea5e9;
    color: #fff;
}

.audit-badge.badge-screening {
    background: #22c55e;
    color: #fff;
}

.audit-badge.badge-started {
    background: #facc15;
    color: #1e293b;
}

.audit-user {
    white-space: nowrap;
}

.audit-user i.bi-person-fill {
    color: #60a5fa;
}

.audit-details {
    color: #94a3b8;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-actions {
    text-align: center;
}

.audit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1e293b;
    border-radius: 4px;
    color: #60a5fa;
    font-size: 0.7rem;
}


/* Epic Credentials Section */
.credentials-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.credentials-info-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.email-template-generator {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
}

.email-template-generator .card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#emailText {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: none;
}

/* Speed Comparison Container - Full Width */
.comparison-container-full {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.comparison-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2rem;
}

.comparison-row-large {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 1rem;
    align-items: stretch;
}

.comparison-column-large {
    display: flex;
}

.comparison-arrow-large {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@media (max-width: 991px) {
    .comparison-row-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-arrow-large {
        transform: rotate(90deg);
        font-size: 2rem;
    }
    
    .comparison-title {
        font-size: 1.5rem;
    }
}

.comparison-card {
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-before {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.03);
}

.comparison-after {
    border-color: rgba(40, 167, 69, 0.3);
    background: rgba(40, 167, 69, 0.03);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.03);
}

.comparison-label {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    color: white;
}

.comparison-time {
    font-weight: 700;
    font-size: 1rem;
}

.comparison-image {
    width: 100%;
    height: auto;
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-pain-points,
.comparison-benefits {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comparison-pain-points span,
.comparison-benefits span {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.comparison-pain-points span {
    background: rgba(220, 53, 69, 0.1);
    color: #DC3545;
}

.comparison-benefits span {
    background: rgba(40, 167, 69, 0.1);
    color: #28A745;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-grow: 1;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.slideshow-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

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

.slideshow-caption {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.slideshow-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slideshow-indicators .indicator.active {
    background: #28A745;
    border-color: #28A745;
}

.slideshow-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* GIF styling */
.comparison-gif {
    min-height: 200px;
    background: #f0f0f0;
}

/* Features Section */
.features-section {
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--white);
    border: 2px solid var(--bg-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.about-image-placeholder {
    background: var(--light-blue);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-image-placeholder i {
    font-size: 5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Tutorial Videos Section */
.tutorials-section {
    background: var(--white);
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.video-placeholder p {
    margin: 0;
    font-weight: 600;
}

.video-info {
    padding: 1.5rem;
}

.video-info h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-info p {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--bg-light);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--bg-light);
    border-top: none;
}

/* Contact Form */
.contact-section {
    background: var(--white);
}

.contact-form .form-control {
    padding: 0.75rem;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.cta-section .btn-light {
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline-light {
    border: 2px solid var(--white);
    font-weight: 600;
}

.cta-section .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background-color: #1a1a1a !important;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-blue) !important;
}

.footer h5, .footer h6 {
    color: var(--white);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .comparison-container {
        margin-top: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .logo-placeholder i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    h1.display-4 {
        font-size: 2rem;
    }
    
    h2.display-5 {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .about-image-placeholder {
        min-height: 300px;
    }
    
    .video-placeholder {
        padding: 3rem 1.5rem;
    }
    
    .video-placeholder i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .comparison-container {
        padding: 1rem;
    }
    
    .comparison-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .comparison-pain-points,
    .comparison-benefits {
        flex-direction: column;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Platform Pages Section */
.platform-pages-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Screening Explainer */
.explainer-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
    border: 2px solid var(--primary-blue);
}

.explainer-step {
    text-align: center;
    padding: 1rem;
    height: 100%;
}

.explainer-step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.explainer-step h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.explainer-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.explainer-step strong {
    color: var(--primary-blue);
}

@media (max-width: 991.98px) {
    .explainer-card {
        padding: 1.5rem;
    }
    
    .explainer-step {
        padding: 0.75rem;
    }
}

/* Vertical Explainer Steps */
.explainer-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.explainer-step-v {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.explainer-step-v:hover {
    background: #e9f3ff;
    transform: translateX(5px);
}

.explainer-step-v .explainer-step-number {
    flex-shrink: 0;
    margin: 0;
}

.explainer-step-content {
    flex: 1;
}

.explainer-step-content h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.explainer-step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.explainer-step-content strong {
    color: var(--primary-blue);
}

.page-registry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.page-registry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.registry-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.registry-header i {
    font-size: 1.75rem;
}

.registry-header h4 {
    margin: 0;
    font-weight: 700;
}

/* Theme colors for platform cards */
.page-registry-card.theme-primary .registry-header i,
.page-registry-card.theme-primary .registry-header h4 {
    color: var(--primary-blue);
}

.page-registry-card.theme-success .registry-header i,
.page-registry-card.theme-success .registry-header h4 {
    color: #198754;
}

.page-registry-card.theme-warning .registry-header i,
.page-registry-card.theme-warning .registry-header h4 {
    color: #fd7e14;
}

.page-registry-card.theme-danger .registry-header i,
.page-registry-card.theme-danger .registry-header h4 {
    color: #dc3545;
}

.page-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.2s ease;
}

.page-item:hover {
    background: var(--light-blue);
    border-left-color: var(--dark-blue);
}

.page-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.page-name i {
    color: var(--primary-blue);
}

.page-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .page-registry-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-item {
        padding: 0.6rem 0.8rem;
    }
    
    .page-desc {
        font-size: 0.8rem;
    }
}

/* About Section - Benefits */
.about-benefit-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.about-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 2.5rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* Impact Grid for Quantifiable Impact card */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.impact-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--background-light);
    border-radius: 8px;
}

.impact-stat i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

.impact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.impact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.roi-badge {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #2e7d32;
}

.roi-badge i {
    font-size: 1.25rem;
}

.burnout-card {
    border-left: 4px solid var(--danger, #dc3545);
}

.empower-card {
    border-left: 4px solid var(--warning, #ffc107);
}

.about-photos-row {
    margin-top: 2rem;
}

.about-photo {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-photo.side-photo {
    width: 100%;
    max-width: 160px;
    height: 120px;
    object-fit: cover;
}

.about-logo-large {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

@media (max-width: 991.98px) {
    .about-logo-large {
        max-width: 220px;
        margin-bottom: 1rem;
    }
    
    .about-photo.side-photo {
        max-width: 120px;
        height: 90px;
    }
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
}

.gallery-subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-blue);
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.2);
}

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: rgba(0, 102, 204, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

.gallery-caption {
    padding: 1.25rem;
    background: var(--white);
}

.gallery-caption h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: var(--text-dark);
}

.gallery-caption p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Lightbox Modal */
#lightboxModal .modal-content {
    border: none;
    border-radius: 12px;
}

#lightboxModal .modal-body {
    background: #1a1a2e;
}

#lightboxModal #lightboxImage {
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
    display: block;
}

@media (max-width: 767.98px) {
    .gallery-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .gallery-overlay {
        height: 200px;
    }
    
    .gallery-caption {
        padding: 1rem;
    }
    
    .gallery-caption h5 {
        font-size: 1rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
}
