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

:root {
    --primary: #1b3a5c;
    --primary-dark: #0f2440;
    --primary-bright: #ffffff;
    --accent: #4a8db7;
    --accent-rgb: 74, 141, 183;
    --accent-hover: #36739e;
    --accent-light: rgba(74, 141, 183, 0.1);
    --accent-alt: #6366f1;
    --bg-900: #f7f6f4;
    --bg-800: #ffffff;
    --bg-700: #c8d8e4;
    --text-primary: #1a1d23;
    --text-secondary: #4a4e57;
    --text-muted: #8a8e96;
    --border: rgba(27, 58, 92, 0.12);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --rk-k: #000;
    --nav-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --max-width: 1120px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-900);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.site-content {
    padding-top: var(--nav-height);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-hover);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* ── Navigation ── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    line-height: 1;
}

.site-header .site-title {
    font-family: 'Orbitron', serif;
}
.site-title-raven {
    color: var(--primary);
}
.site-title-key {
    color: var(--accent);
}

.site-title {
    font-family: 'Orbitron', serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1;
}

.rk-r { color: #000; font-family: 'Orbitron', serif; font-weight: 700; }
.rk-k { color: var(--rk-k); font-family: 'Orbitron', serif; font-weight: 700; }

/* white on dark-background sections */
.section-founder .rk-r,
.testimonials-section .rk-r,
.section-values .rk-r {
    color: #fff;
}
.section-founder .rk-k,
.testimonials-section .rk-k,
.section-values .rk-k {
    --rk-k: #fff;
}

.header-separator {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    margin: 0 25px;
    user-select: none;
}

.primary-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    letter-spacing: 0.01em;
    position: relative;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--primary);
    background: var(--accent-light);
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.menu-item-has-children > a {
    padding-right: 30px;
}

.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.menu-item-has-children:hover > a::before {
    transform: rotate(-135deg);
    margin-top: -6px;
}

.mobile-nav-overlay { display: none; }
.dropdown-toggle { display: none; }

.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.focus > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
}

.nav-menu .sub-menu a::after {
    display: none;
}

.nav-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

    .menu-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px;
        z-index: 1100;
    }

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
    line-height: 1;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 157, 206, 0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-1px);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 157, 206, 0.3);
}
.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    gap: 6px;
}
.btn-card:hover {
    background: var(--accent-hover);
    color: #fff;
}
.btn-card svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,11,28,0.65);
}

.hero-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.hero-lines span {
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0;
    background: rgba(255,255,255,0.06);
}
.hero-lines span:nth-child(1) { left: 25%; }
.hero-lines span:nth-child(2) { left: 50%; }
.hero-lines span:nth-child(3) { left: 75%; }

.hero-layout {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
}

.hero-text { max-width: 780px; }

.hero h1 { margin-bottom: 0.75rem; color: #ffffff; }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: rgba(74, 157, 206, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.hero-lead {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.hero-sub {
    display: block;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}
.hero h1 .highlight { color: var(--accent); }

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ── Stats ── */

.stats-section {
    position: relative;
    z-index: 4;
    margin-top: -60px;
    padding: 0 24px;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.stat-card {
    flex: 0 1 320px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.stat-divider {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 0.75rem;
}
.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Page Hero ── */

.page-hero {
    padding: 6rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--primary);
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,11,28,0.65);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #ffffff; margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }

/* ── Trust Bar ── */

.trust-bar {
    padding: 2.5rem 0;
    text-align: center;
    background: var(--accent);
}
.trust-bar p {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.trust-bar .trust-logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.trust-bar .trust-item {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    transition: all 0.2s;
}
.trust-bar .trust-item:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

/* ── Sections ── */

.section { padding: 5rem 0; }
.section:nth-child(even) { background: #ffffff; }
.section:nth-child(odd) { background: var(--bg-900); }
.hero + .section,
.trust-bar + .section,
.stats-section + .section,
.section-hero-follow { background: #ffffff; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.section-divider {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}
.section-header .section-divider { margin-top: 0.75rem; }

/* ── About Section ── */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.about-feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}
.about-feature-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.about-feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Founder Section ── */

.section-founder {
    background: var(--primary) !important;
    padding: 4rem 0;
}
.section-founder .container {
    position: relative;
    z-index: 1;
}
.founder-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 680px;
    margin: 0 auto;
}
.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid rgba(255,255,255,0.15);
}
.founder-content h2 {
    color: #ffffff;
    margin-bottom: 1.25rem;
}
.founder-content p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.9rem;
    max-width: 620px;
}
.founder-signature {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent) !important;
    font-size: 1rem !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: inline-block;
}
.founder-content .btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    margin-top: 0.5rem;
}
.founder-content .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .founder-photo { width: 160px; height: 160px; }
}

/* ── Values Section ── */

.section-values {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}
.section-values-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.section-values-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.section-values-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(34,38,46,0.92) 0%, rgba(34,38,46,0.85) 50%, rgba(34,38,46,0.78) 100%);
}
.section-values .container {
    position: relative;
    z-index: 2;
}
.section-values .section-header h2 {
    color: #ffffff;
}
.section-values .section-header p {
    color: rgba(255,255,255,0.7);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.value-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.value-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
    transform: translateY(-3px);
}
.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 157, 206, 0.15);
    border-radius: 50%;
    color: var(--accent);
}
.value-card h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.value-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Fun Break Section ── */

.section-fun-break {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    text-align: center;
}
.fun-break-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.fun-break-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fun-break-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(34,38,46,0.85) 0%, rgba(20,22,28,0.88) 100%);
}
.section-fun-break .container {
    position: relative;
    z-index: 2;
}
.fun-break-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.fun-break-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .section-fun-break { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .values-grid { grid-template-columns: 1fr; }
    .value-card { padding: 1.25rem 1rem; }
}

/* ── Services Grid ── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.service-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    object-fit: contain;
}
.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}
.service-card .btn-card {
    margin-top: auto;
}
.service-card.featured {
    border: 2px solid var(--accent);
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}
.service-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}
.service-card .tier-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(74, 157, 206, 0.2);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}
.most-popular { display: none; }
.service-card.featured .most-popular { display: block; }

.service-card .most-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 16px;
    border-radius: 20px;
}

/* ── Training Programs ── */

.training-programs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 780px;
    margin: 2rem auto 0;
}

.training-program {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s;
}

.training-program:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.training-program-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding-top: 2px;
}

.training-program-content {
    flex: 1;
    min-width: 0;
}

.training-program-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.training-program-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.training-program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.training-program-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .training-program {
        flex-direction: column;
        gap: 0.75rem;
    }
    .training-program-icon {
        width: 40px;
        height: 40px;
    }
    .training-program-icon svg {
        width: 40px;
        height: 40px;
    }
}

/* ── Video Trigger (inside service cards) ── */

.video-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding: 12px 14px;
    background: var(--bg-card-alt, #f0f2f5);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    user-select: none;
}
.video-trigger:hover {
    background: var(--bg-card-hover, #e4e7ec);
    border-color: var(--accent);
}
.video-trigger:active {
    transform: scale(0.98);
}
.video-trigger-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    transition: background 0.2s;
}
.video-trigger:hover .video-trigger-icon {
    background: var(--accent-hover);
}
.video-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.video-trigger-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.video-trigger-duration {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── How It Works ── */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.step-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}
.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.step:hover .step-image img { transform: scale(1.05); }
.step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

.steps-connector {
    display: none;
}

/* ── Testimonials Carousel ── */

.testimonials-section {
    background: var(--primary-dark);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 60px
    );
    pointer-events: none;
}
.testimonials-section .section-header h2 { color: #ffffff; }
.testimonials-section .section-header p { color: rgba(255,255,255,0.6); }
.testimonials-section .section-divider { background: rgba(255,255,255,0.3); }

.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-slide {
    min-width: 100%;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}
.testimonial-quote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-author {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}
.testimonial-org {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.testimonial-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.testimonial-btn:hover {
    background: rgba(255,255,255,0.2);
}
.testimonial-dots {
    display: flex;
    gap: 8px;
}
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.testimonial-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ── Portfolio Grid ── */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.portfolio-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.portfolio-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}
.portfolio-preview { position: relative; }
.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-700);
    border-bottom: 1px solid var(--border);
}
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; display: block; }
.browser-bar span:nth-child(1) { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #eab308; }
.browser-bar span:nth-child(3) { background: #22c55e; }
.portfolio-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-placeholder {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.05);
    transition: transform 0.4s;
}
.portfolio-info { padding: 1.25rem; }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tech-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(74, 157, 206, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

/* ── Client Grid ── */

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.client-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.client-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.client-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text-primary); }
.client-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ── Contact ── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-note { color: var(--text-secondary); font-size: 0.9rem; margin-top: 2rem; }
.contact-context { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.7; max-width: 520px; }
.cta-contact-direct { margin-top: 1.5rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.cta-contact-direct a { color: #ffffff; text-decoration: underline; }
.section-personal-note .cta-contact-direct { color: var(--text-secondary); }
.section-personal-note .cta-contact-direct a { color: var(--accent); }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-900);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="tel"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 157, 206, 0.15);
}
.rk-form-response {
    margin-top: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.rk-form-response.rk-success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.rk-form-response.rk-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-submit { margin-bottom: 0; }
.form-submit .rk-submit-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.form-submit .rk-submit-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.contact-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 157, 206, 0.1);
    border: 1px solid rgba(74, 157, 206, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
}
.contact-response-badge .response-icon {
    color: var(--accent);
    font-size: 1.1rem;
}
.contact-response-badge strong { color: var(--text-primary); }

.contact-founder-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-800);
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}
.contact-founder-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.contact-founder-note p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.contact-founder-name {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Process Section ── */

.section-process {
    background: var(--bg-800);
}
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}
.process-step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}
.process-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.process-step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    flex-shrink: 0;
}

/* ── Personal Note Section ── */

.personal-note {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.personal-note-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.personal-note-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.personal-note-image {
    text-align: center;
}
.personal-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ── CTA Section ── */

.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: var(--primary);
}
.cta-section h2 { margin-bottom: 0.75rem; color: #ffffff; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 2rem; }
.cta-section .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-secondary { color: #ffffff; border-color: rgba(255,255,255,0.3); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ── Footer ── */

.site-footer {
    background: var(--bg-800);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.footer-brand .site-title {
    font-size: 1.4rem;
    display: inline-flex;
    margin-bottom: 0.4rem;
}
.footer-tagline { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.4rem; max-width: 280px; }
.footer-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.4rem; }
.footer-menu a { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.footer-menu a:hover { color: var(--primary); }
.footer-legal-list { list-style: none; margin: 0; padding: 0; }
.footer-legal-list li { margin-bottom: 0.4rem; }
.footer-legal-list a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-legal-list a:hover { color: var(--primary); }
.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; text-align: center; margin: 0; }
.footer-newsletter-col .footer-newsletter-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.85rem;
    line-height: 1.4;
}

/* ── Subscribe Form ── */

.rk-subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.rk-subscribe-form .rk-subscribe-input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-800);
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
.rk-subscribe-form .rk-subscribe-input:focus {
    border-color: var(--accent);
}
.rk-subscribe-form .rk-subscribe-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}
.rk-subscribe-response {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.rk-subscribe-success { color: var(--accent); }
.rk-subscribe-error { color: #dc2626; }

/* ── Page Content ── */

.page-content { padding: 4rem 0; }
.page-content .container > * + * { margin-top: 1.5rem; }
.page-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    letter-spacing: -0.02em;
}
.page-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    letter-spacing: -0.01em;
}
.page-content p { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content strong { color: var(--primary); }
.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { color: var(--accent-hover); text-decoration: underline; }
.service-highlights { display: grid; gap: 1rem; }
.highlight-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.highlight-item:hover { box-shadow: var(--shadow-md); }
.highlight-item h3 { margin-top: 0; margin-bottom: 0.5rem; }
.highlight-item p { margin-bottom: 0; }
.why-heading,

.why-list { list-style: none; padding-left: 0 !important; }
.why-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.why-list li:last-child { border-bottom: none; }
.policy-date { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2rem; }

/* ── Lightbox ── */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.lightbox-close:hover { color: #ffffff; }

/* ── 404 ── */

.error-404 h1 { font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; color: var(--accent); }
.error-404 p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ── Responsive ── */

@media (min-width: 769px) {
    .sub-menu {
        opacity: 0;
        visibility: hidden;
    }
    .nav-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .site-header { height: 64px; z-index: 1060; }
    .header-inner { justify-content: space-between; }
    .header-separator { display: none; }
    .menu-toggle { display: flex; }
    .primary-nav { display: none; }
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        background: var(--primary-dark);
        z-index: 9998;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav-overlay.active { display: block !important; }
    .mobile-nav-overlay .nav-menu {
        display: block;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile-nav-overlay .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .mobile-nav-overlay .nav-menu a {
        display: block;
        padding: 18px 24px;
        font-size: 1.1rem;
        font-weight: 500;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        transition: background 0.2s;
    }
    .mobile-nav-overlay .nav-menu a:hover,
    .mobile-nav-overlay .nav-menu .current-menu-item > a {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
    }
    .mobile-nav-overlay .menu-item-has-children > a::before { display: none; }
    .mobile-nav-overlay .sub-menu {
        background: rgba(0,0,0,0.2);
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .mobile-nav-overlay .sub-menu a {
        padding-left: 40px;
        font-size: 0.95rem;
    }
    .mobile-nav-overlay .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        list-style: none;
        gap: 4px;
        width: 100%;
    }
    .mobile-nav-overlay .nav-menu a { padding: 14px 16px; font-size: 1.1rem; color: rgba(255,255,255,0.9); }
    .mobile-nav-overlay .sub-menu {
        position: static;
        background: rgba(255,255,255,0.05);
        border: none;
        border-radius: var(--radius-sm);
        box-shadow: none;
        padding: 4px;
        margin-left: 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .mobile-nav-overlay .sub-menu a { font-size: 0.95rem; padding: 10px 14px; }
    .mobile-nav-overlay .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.08);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: #ffffff;
        padding: 0;
        z-index: 5;
    }
    .mobile-nav-overlay .dropdown-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 0.25s;
    }
    .mobile-nav-overlay .dropdown-toggle.active svg {
        transform: rotate(180deg);
    }
    .mobile-nav-overlay .menu-item-has-children { position: relative; }
    .mobile-nav-overlay .menu-item-has-children > a {
        padding-right: 52px;
    }
    .mobile-nav-overlay .menu-item-has-children > a::before { display: none; }
    .steps { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; align-items: center; }
    .about-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero { min-height: 70vh; }
    .page-hero { padding: 5rem 0 1.5rem; }
    .section { padding: 3rem 0; }
    .page-content { padding: 2rem 0; }
    .contact-layout { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; align-items: center; }
    .process-step { max-width: 100%; }
    .process-step-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
    .personal-note { grid-template-columns: 1fr; text-align: center; }
    .personal-note-image { order: -1; }
    .client-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .stats-section { margin-top: -40px; }
    .btn { min-height: 44px; }
}

/* ── Common Challenges Grid ── */

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.challenge-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.challenge-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}
.challenge-problem {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.challenge-problem-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    stroke: var(--accent);
    fill: none;
}
.challenge-problem-text h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.challenge-problem-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.challenge-solution {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}
.challenge-solution-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    stroke: var(--accent);
    fill: none;
}

/* ── Why Ravenkey Comparison Table ── */

.comparison-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 0.85rem;
}
.comparison-table th,
.comparison-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.comparison-table thead th {
    background: var(--bg-900);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}
.comparison-table thead th:first-child {
    text-align: left;
}
.comparison-table .row-label {
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    background: var(--bg-900);
    min-width: 100px;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table .col-ravenkey {
    background: var(--accent-light);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    font-weight: 600;
    color: var(--primary);
}
.comparison-table thead .col-ravenkey {
    color: var(--accent);
    background: var(--accent-light);
    font-family: 'Orbitron', serif;
}

.comparison-table .rating-best {
    color: var(--accent);
    font-weight: 600;
}
.comparison-table .rating-good {
    color: #16a34a;
}
.comparison-table .rating-mid {
    color: #d97706;
}
.comparison-table .rating-poor {
    color: #dc2626;
}
.comparison-table .rating-na {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .challenges-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .challenges-grid { grid-template-columns: 1fr; }
    .challenge-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { min-height: 60vh; }
    .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .hero-lead { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; }
    .hero-sub { font-size: clamp(0.95rem, 3vw, 1.15rem) !important; }
    .page-hero { padding: 4rem 0 1rem; }
    .btn { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }
    .stat-card { padding: 1.5rem 1rem; }
    .section { padding: 2.5rem 0; }
    .service-card { padding: 1.5rem; }
    .contact-form-col .rk-contact-form { padding: 1.5rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    .post-card-grid { grid-template-columns: 1fr; }
}

/* ── Blog / Articles ── */
.post-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.post-category {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.single-article { padding: 3rem 0; }
.single-article-thumb {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.single-article-thumb img { width: 100%; height: auto; display: block; }

.single-article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}
.single-article-content p { margin-bottom: 1.25rem; }
.single-article-content h2,
.single-article-content h3,
.single-article-content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.single-article-content h2 { font-size: 1.6rem; }
.single-article-content h3 { font-size: 1.3rem; }
.single-article-content ul,
.single-article-content ol { margin: 0 0 1.25rem 1.5rem; }
.single-article-content li { margin-bottom: 0.4rem; }
.single-article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.single-article-content a:hover { color: var(--accent-hover); }
.single-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}
.single-article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 768px) {
    .post-card-grid { grid-template-columns: repeat(2, 1fr); }
}

.post-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.25s, transform 0.25s;
}
.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.post-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.post-card-body .post-category { margin-bottom: 0.5rem; }
.post-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.post-card-body h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.post-card-body h3 a:hover { color: var(--accent); }
.post-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.post-card-body .post-date { font-size: 0.8rem; }

.post-pagination {
    margin-top: 3rem;
    text-align: center;
}
.post-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    margin: 0 0.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.post-pagination .page-numbers:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}
.post-pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ── News (Timeline Layout) ── */

.news-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
    text-align: center;
}
.news-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.news-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,11,28,0.65);
}
.news-hero-container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 0;
}
.news-hero-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.news-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
}
.news-hero-title a {
    color: #fff;
    text-decoration: none;
}
.news-hero-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.news-hero-excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.news-hero-date {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

/* ── Timeline ── */

.news-timeline {
    position: relative;
    padding-left: 0;
}
.news-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 108px;
    width: 3px;
    background: var(--border);
    border-radius: 2px;
}
.news-timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.news-timeline-date {
    flex-shrink: 0;
    width: 90px;
    text-align: right;
    padding-top: 0.2rem;
}
.news-timeline-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.news-timeline-month {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-timeline-dot {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-900);
    margin-top: 0.6rem;
    position: relative;
    z-index: 1;
    margin-left: -7px;
}
.news-timeline-content {
    flex: 1;
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.25s;
}
.news-timeline-content:hover {
    box-shadow: var(--shadow-sm);
}
.news-timeline-content .post-category {
    margin-bottom: 0.4rem;
}
.news-timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.news-timeline-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.news-timeline-content h3 a:hover { color: var(--accent); }
.news-timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .news-hero { min-height: 30vh; }
    .news-hero-title { font-size: 1.6rem; }
    .news-hero-excerpt { font-size: 0.95rem; }
    .news-timeline::before { left: 80px; }
    .news-timeline-date { width: 65px; }
    .news-timeline-day { font-size: 1.3rem; }
    .news-timeline-content { padding: 1rem; }
}

/* ── Grant & Event Calendar ── */

.calendar-wrap { padding: 3rem 0; }

.event-source-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    background: var(--bg-800);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (max-width: 900px) {
    .calendar-layout { grid-template-columns: 1fr; }
}

.calendar-month-view {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.cal-nav {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cal-nav:hover { background: var(--accent-light); border-color: var(--accent); }
.cal-month-title { font-size: 1.15rem; font-weight: 700; margin: 0; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}
.cal-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0;
}
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    background: var(--bg-900);
    cursor: default;
    position: relative;
    min-height: 80px;
    padding: 4px;
    transition: background 0.15s;
}
.cal-day-empty { background: none; }
.cal-day.has-events { cursor: pointer; }
.cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow: hidden;
    width: 100%;
    padding: 0;
}
.cal-event-bar {
    display: block;
    font-size: 0.65rem;
    line-height: 1.3;
    padding: 3px 5px;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: pointer;
    min-height: 1.3em;
}
.cal-event-bar:hover { opacity: 0.9; }
.cal-event-bar-grant { background: var(--accent); }
.cal-event-bar-t-vstta { background: #16a34a; }
.cal-event-bar-praxis { background: #9333ea; }
.cal-event-bar-ovc { background: #ea580c; }
.cal-day.today {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}
.cal-day.today .cal-day-num { color: #fff; }
.cal-day-num { font-size: 0.85rem; color: var(--text-primary); text-align: center; }

.cal-day-popup {
    position: absolute;
    width: 300px;
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.cal-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-800);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.cal-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}
.cal-popup-close:hover { color: var(--text-primary); }
.cal-popup-list { padding: 0.5rem; }
.cal-popup-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
    margin-bottom: 2px;
}
.cal-popup-item:hover { background: var(--accent-light); }
.cal-popup-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
}
.cal-popup-item-grant .cal-popup-source { background: var(--accent-light); color: var(--accent); }
.cal-popup-item-t-vstta .cal-popup-source { background: #dcfce7; color: #166534; }
.cal-popup-item-praxis .cal-popup-source { background: #f3e8ff; color: #6b21a8; }
.cal-popup-item-ovc .cal-popup-source { background: #fff7ed; color: #9a3412; }
.cal-popup-title { display: inline; }
.cal-popup-agency {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.cal-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.legend-dot.grant { background: var(--accent); }
.legend-dot.t-vstta { background: #16a34a; }
.legend-dot.praxis { background: #9333ea; }
.legend-dot.ovc { background: #ea580c; }

.calendar-sidebar { min-width: 0; }
.calendar-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.upcoming-list { display: flex; flex-direction: column; gap: 4px; }
.upcoming-item {
    display: flex;
    flex-direction: column;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--bg-800);
    border-left: 3px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
}
.upcoming-item:hover { background: var(--bg-900); }
.upcoming-item.source-grant { border-left-color: var(--accent); }
.upcoming-item.source-t-vstta { border-left-color: #16a34a; }
.upcoming-item.source-praxis { border-left-color: #9333ea; }
.upcoming-item.source-ovc { border-left-color: #ea580c; }
.upcoming-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.upcoming-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.upcoming-item:hover .upcoming-title { color: var(--accent); }
.upcoming-agency {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.event-list-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.event-list-filters select,
.event-list-filters input[type="text"] {
    background: var(--bg-800);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.event-list-filters select { min-width: 160px; }
.event-list-filters input[type="text"] { flex: 1; min-width: 200px; }
.event-list-filters select:focus,
.event-list-filters input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.event-cards {
    display: grid;
    gap: 1rem;
}
.event-card {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}
.event-card h3 {
    font-size: 1.05rem;
    margin: 0.5rem 0;
}
.event-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.event-card h3 a:hover { color: var(--accent); }
.event-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}
.event-badge,
.event-card.source-grant { border-left: 3px solid var(--accent); }
.event-card.source-t-vstta { border-left-color: #16a34a; }
.event-card.source-praxis { border-left-color: #9333ea; }
.event-card.source-ovc { border-left-color: #ea580c; }
.event-card.source-grant .event-badge { background: var(--accent-light); color: var(--accent); }
.event-card.source-t-vstta .event-badge { background: #dcfce7; color: #166534; }
.event-card.source-praxis .event-badge { background: #f3e8ff; color: #6b21a8; }
.event-card.source-ovc .event-badge { background: #fff7ed; color: #9a3412; }

.event-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.event-meta span { display: inline-flex; align-items: center; gap: 4px; }
.event-meta svg { flex-shrink: 0; opacity: 0.6; }
.event-countdown {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: var(--bg-900);
    color: var(--text-muted);
}
.event-countdown.urgent { background: #fef2f2; color: #dc2626; }
.event-details-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.event-details-link:hover { text-decoration: underline; }

/* ── Single Event ── */

.event-hero .event-badge-large {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.event-hero .event-badge-large.source-grant { background: var(--accent-light); color: var(--accent); }
.event-hero .event-badge-large.source-t-vstta { background: #dcfce7; color: #166534; }
.event-hero .event-badge-large.source-praxis { background: #f3e8ff; color: #6b21a8; }
.event-hero .event-badge-large.source-ovc { background: #fff7ed; color: #9a3412; }

.event-countdown-large {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-800);
    color: var(--text-primary);
}
.event-countdown-large.urgent { background: #fef2f2; color: #dc2626; }

.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 3rem 0;
}
@media (max-width: 768px) {
    .event-detail-layout { grid-template-columns: 1fr; }
}

.event-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.event-description a { color: var(--accent); text-decoration: underline; }

.event-detail-main .btn-primary {
    display: inline-block;
    margin-bottom: 2rem;
}

.event-info-card {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.event-info-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.event-info-card dl { margin: 0; }
.event-info-card dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.75rem;
}
.event-info-card dt:first-child { margin-top: 0; }
.event-info-card dd {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.related-events h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.related-event-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    align-items: baseline;
}
.related-event-item:last-child { border-bottom: none; }
.related-event-item:hover .related-title { color: var(--accent); }
.related-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
}
.related-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .calendar-wrap { padding: 2rem 0; }
    .event-source-filters { gap: 0.35rem; }
    .filter-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .calendar-month-view { padding: 1rem; }
    .cal-day { min-height: 60px; }
    .cal-day-num { font-size: 0.78rem; }
    .cal-event-bar { font-size: 0.58rem; padding: 2px 4px; }
    .event-card { padding: 1rem; }
    .event-card h3 { font-size: 0.95rem; }
    .event-meta { font-size: 0.78rem; gap: 0.5rem; }
    .calendar-sidebar h3 { font-size: 0.9rem; }
    .event-detail-layout { padding: 2rem 0; }
    .event-info-card { padding: 1.25rem; }
}

/* ── Resource Library ── */

/* ── Grant Readiness Checklist ── */

.checklist-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 0;
}

/* ─── Progress ─── */
.checklist-progress { margin-bottom: 2rem; }
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.progress-step {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
}
.progress-bar {
    height: 6px;
    background: var(--bg-800);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt, var(--accent)));
    border-radius: 4px;
    width: 2%;
}
.progress-text { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Category Indicator ─── */
.checklist-category-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    justify-content: center;
}
.cat-step-group {
    display: flex;
    align-items: center;
}
.cat-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.cat-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-800);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.cat-step.active .cat-step-icon {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 99, 102, 241), 0.2);
    transform: scale(1.1);
}
.cat-step.done .cat-step-icon {
    border-color: var(--accent);
    background: var(--accent-light);
}
.cat-step-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 60px;
    transition: color 0.3s;
}
.cat-step.active .cat-step-label { color: var(--accent); }
.cat-step.done .cat-step-label { color: var(--accent); }
.cat-connector {
    width: 36px;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 1.3rem;
    transition: background 0.3s;
}
.cat-connector.done { background: var(--accent); }

/* ─── Question Card ─── */
.checklist-card {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.checklist-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}
.checklist-card-icon {
    font-size: 1.3rem;
}
.checklist-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
}
.checklist-question {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    color: var(--text-primary);
}
.checklist-help {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Options ─── */
.checklist-options {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.check-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 130px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.check-option::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.check-yes::before { background: rgba(34,197,94,0.08); }
.check-partial::before { background: rgba(234,179,8,0.08); }
.check-no::before { background: rgba(239,68,68,0.08); }
.check-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.check-option:hover::before { opacity: 1; }
.check-option.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.check-yes.selected { border-color: #22c55e; background: rgba(34,197,94,0.1); }
.check-partial.selected { border-color: #eab308; background: rgba(234,179,8,0.1); }
.check-no.selected { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.check-option-icon {
    font-size: 0.85rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-900);
    transition: all 0.2s;
}
.check-yes.selected .check-option-icon { background: #22c55e; color: #fff; }
.check-partial.selected .check-option-icon { background: #eab308; color: #fff; }
.check-no.selected .check-option-icon { background: #ef4444; color: #fff; }
.check-option input { display: none; }

/* ─── Navigation ─── */
.checklist-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}
.checklist-nav .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 44px;
}
.checklist-nav .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}
.checklist-nav .btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}
.checklist-nav .btn-primary:hover:not(:disabled) {
    background: var(--accent-hover, var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb, 99, 102, 241), 0.3);
}
.checklist-nav .btn-secondary {
    background: var(--bg-800);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.checklist-nav .btn-secondary:hover {
    background: var(--bg-900);
}

/* ─── Results ─── */
.checklist-results { max-width: 700px; margin: 0 auto; padding: 3rem 0; }
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}
.results-header-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.results-header h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.results-header-sub { color: var(--text-muted); font-size: 0.9rem; }

.results-card {
    background: var(--bg-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.results-score {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.score-circle-wrap {
    position: relative;
    width: 150px;
    height: 150px;
}
.score-circle { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-circle-bg { stroke: var(--bg-900); }
.score-circle-fill { stroke: var(--accent); }
.score-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.score-total { font-size: 1rem; color: var(--text-muted); }
.score-pct-badge {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.results-category { margin-bottom: 1.25rem; }
.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    background: var(--accent-light);
    color: var(--accent);
}
.results-message {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
}

/* ─── Breakdown ─── */
.breakdown-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-primary);
}
.breakdown-bars { text-align: left; margin-bottom: 2rem; }
.breakdown-item {
    margin-bottom: 1rem;
}
.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.breakdown-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.breakdown-pct {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.breakdown-bar {
    height: 8px;
    background: var(--bg-900);
    border-radius: 4px;
    overflow: hidden;
}
.breakdown-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    width: 0%;
}

/* ─── CTA ─── */
.results-cta {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}
.results-cta p { font-size: 0.95rem; margin-bottom: 1rem; font-weight: 600; }
.results-cta .btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}
.results-cta .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb, 99, 102, 241), 0.3);
}
.results-cta .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── Email Form ─── */
.results-email-form {
    text-align: left;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.results-email-form h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.results-email-form h3::before { content: '✉️'; font-size: 1rem; }
.results-email-form .form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.results-email-form input[type="text"],
.results-email-form input[type="email"] {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-900);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.results-email-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 99, 102, 241), 0.1); }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    cursor: pointer;
}
.checkbox-label input { width: auto; accent-color: var(--accent); }
.results-email-form .btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.results-email-form .btn-primary:hover {
    background: var(--accent-hover, var(--accent));
    transform: translateY(-1px);
}
.results-email-form .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.results-feedback {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
}
.results-feedback.success { background: rgba(34,197,94,0.1); color: #22c55e; }
.results-feedback.error { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ─── Tools Section ─── */
.results-actions { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.results-tools { text-align: left; padding: 1rem 0; }
.results-tools h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.tools-row { margin-bottom: 1rem; }
.tools-row .btn { display: inline-flex; align-items: center; gap: 0.4rem; }


/* ─── Talk to Team Overlay ─── */
.results-talk-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.talk-modal {
    background: var(--bg-800); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    max-width: 420px; width: 90%; text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.talk-modal h3 { margin-bottom: 0.75rem; }
.talk-modal p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.talk-modal input[type="text"],
.talk-modal input[type="email"] {
    display: block; width: 100%; margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-900); color: var(--text-primary); font-size: 0.9rem;
}
.talk-modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 99, 102, 241), 0.1); }
.talk-modal-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.talk-feedback { margin-top: 0.75rem; font-size: 0.85rem; }

/* ─── Recommendations ─── */
.rec-section {
    margin-bottom: 1.5rem;
}
.rec-section h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.rec-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.rec-none {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--bg-900);
    border-radius: var(--radius-md);
}
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rec-item {
    background: var(--bg-900);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: left;
}
.rec-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.rec-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.rec-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.rec-service {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.rec-descs {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 0.75rem;
}
.rec-descs li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.15rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}
.rec-descs li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.rec-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}
.rec-cta:hover { gap: 0.5rem; }
.rec-upsell {
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}
.rec-upsell h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}
.rec-upsell p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ─── Restart ─── */
#checklist-restart {
    display: block;
    margin: 0 auto;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
#checklist-restart:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 600px) {
    .checklist-wrap { padding: 2rem 0; }
    .checklist-card { padding: 1.5rem 1.25rem; }
    .check-option { min-width: 100px; padding: 0.65rem 1rem; font-size: 0.85rem; }
    .checklist-question { font-size: 1.05rem; }
    .cat-step-icon { width: 34px; height: 34px; font-size: 0.95rem; }
    .cat-step-label { font-size: 0.55rem; max-width: 50px; }
    .cat-connector { width: 20px; }
    .results-card { padding: 1.5rem; }
    .score-circle-wrap { width: 120px; height: 120px; }
    .score-number { font-size: 2rem; }
    .results-email-form .form-row { flex-direction: column; gap: 0.5rem; }
    .breakdown-item { flex-wrap: wrap; gap: 0.4rem; }
}

/* ── Video Overlay (lightbox) ── */

.video-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    align-items: center;
    justify-content: center;
}
.video-overlay.active {
    display: flex;
}
.video-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}
.video-overlay-content {
    position: relative;
    z-index: 1;
    width: 95vw;
    max-width: 1280px;
}
.video-overlay-content video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    outline: none;
}
.video-overlay-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 4px 12px;
    line-height: 1;
    transition: opacity 0.2s;
    opacity: 0.7;
}
.video-overlay-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .video-overlay-content {
        width: 100vw;
    }
    .video-overlay-close {
        top: 8px;
        right: 12px;
        font-size: 2rem;
    }
}

/* ─── Grants Page ───────────────────────────────────────────── */

.grants-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin: 0 auto;
    max-width: 900px;
}
.grants-cta-content h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}
.grants-cta-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.grants-cta-action {
    flex-shrink: 0;
}
.cta-section-compact {
    padding: 2rem 0;
}
.sidebar-link {
    margin-top: 1rem;
    text-align: center;
}
.sidebar-link a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}
@media (max-width: 700px) {
    .grants-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* ─── FAQ Page ───────────────────────────────────────────────── */

.faq-list {
    max-width: 740px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.faq-item:hover {
    box-shadow: var(--shadow-md);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    line-height: 1.4;
    gap: 12px;
    transition: background 0.2s;
}
.faq-question:hover {
    background: var(--accent-light);
}
.faq-question[aria-expanded="true"] {
    background: var(--accent-light);
}
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}
.faq-answer.open {
    max-height: 600px;
    padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}
.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Pricing Page ────────────────────────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.pricing-card-featured {
    border: 2px solid var(--accent);
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
    z-index: 1;
}
.pricing-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
}
.pricing-card .most-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.pricing-card-header {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
}
.pricing-card-header .tier-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(74, 157, 206, 0.2);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}
.pricing-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}
.pricing-card-header .pricing-for {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.pricing-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    white-space: nowrap;
}
.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pricing-features {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.35;
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--accent);
    stroke-width: 2.5;
}
.pricing-card-footer {
    padding: 1rem 1.5rem;
}
.pricing-card-footer .btn {
    width: 100%;
    justify-content: center;
}

.standalone-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 780px;
    margin: 0 auto;
}
.standalone-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.standalone-table th,
.standalone-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.standalone-table thead th {
    background: var(--bg-900);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}
.standalone-table tbody tr:last-child td {
    border-bottom: none;
}
.standalone-table tbody tr:hover {
    background: var(--accent-light);
}
.standalone-table .service-name {
    font-weight: 600;
    color: var(--text-primary);
}
.standalone-table .service-price {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.standalone-table .service-action {
    text-align: right;
    width: 80px;
}
.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
    min-height: auto;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .pricing-card-featured {
        transform: none;
    }
    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }
}
