/*
Theme Name: The AI Project Manager
Theme URI: https://www.theaiprojectmanager.ai
Author: Rick Catalano
Author URI: https://www.theaiprojectmanager.ai
Description: A custom WordPress theme for The AI Project Manager - Enterprise Transformation Leadership in the Age of AI. Features the AMIGA Framework, book and certification program showcase, powered by AMIGO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aipm
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options
*/

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    /* Primary Colors */
    --color-navy: #1a2744;
    --color-navy-light: #243352;
    --color-navy-dark: #0f1829;
    --color-slate: #4a5568;
    --color-slate-light: #718096;
    
    /* Accent Colors */
    --color-teal: #00d4aa;
    --color-teal-light: #00f5c4;
    --color-teal-dark: #00a888;
    --color-amber: #f59e0b;
    --color-amber-light: #fbbf24;
    --color-amber-dark: #d97706;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-off-white: #fafafa;
    --color-gray-100: #f7fafc;
    --color-gray-200: #edf2f7;
    --color-gray-300: #e2e8f0;
    --color-gray-400: #cbd5e0;
    --color-gray-500: #a0aec0;
    --color-gray-600: #718096;
    --color-gray-700: #4a5568;
    --color-gray-800: #2d3748;
    --color-gray-900: #1a202c;
    
    /* Typography */
    --font-display: 'Cabinet Grotesk', 'DM Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Container */
    --container-max: 1280px;
    --container-narrow: 800px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow-teal: 0 0 40px rgba(0, 212, 170, 0.3);
    --shadow-glow-amber: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-800);
    background-color: var(--color-off-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: var(--color-teal-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

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

/* Touch-friendly improvements */
button, 
input[type="submit"], 
input[type="button"], 
.btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.text-accent {
    font-family: var(--font-accent);
    font-style: italic;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    color: var(--color-teal);
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-5xl) 0;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.section-dark {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-gradient {
    background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flex {
    display: flex;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    align-items: center;
    justify-content: space-between;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: var(--color-navy-dark);
    box-shadow: var(--shadow-md), var(--shadow-glow-teal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 212, 170, 0.4);
    color: var(--color-navy-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-teal);
    border-color: var(--color-teal);
}

.btn-secondary:hover {
    background: var(--color-teal);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 170, 0.3);
}

.btn-amber {
    background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-amber-dark) 100%);
    color: var(--color-navy-dark);
    box-shadow: var(--shadow-md), var(--shadow-glow-amber);
}

.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(245, 158, 11, 0.4);
    color: var(--color-navy-dark);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-navy);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--color-navy);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 39, 68, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(26, 39, 68, 0.98);
    box-shadow: var(--shadow-lg);
}

/* WordPress Admin Bar Offset - fixes header being cut off when logged in */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.site-logo img {
    height: 70px;
    width: auto;
    max-height: 70px;
}

/* Header specific logo sizing - ensures uploaded logos don't break layout */
.site-header .site-logo img,
.site-header .site-logo .custom-logo,
.site-header .custom-logo-link img,
.header-inner .site-logo img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
}

.site-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.site-logo-text span {
    color: var(--color-teal);
}

/* Text Logo Styles */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-the {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.site-logo:hover .logo-main {
    color: var(--color-teal);
}

@media (max-width: 480px) {
    .logo-the {
        font-size: 0.55rem;
    }
    
    .logo-main {
        font-size: 0.9rem;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--color-gray-300);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-xs);
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-base);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-teal);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--color-white);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: var(--space-sm);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1001;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-white);
    transition: all var(--transition-base);
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger Animation States */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Navigation */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-navy);
        flex-direction: column;
        padding: var(--space-xl) var(--space-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-base);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        border-bottom: 3px solid var(--color-teal);
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-bottom: var(--space-xl);
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: var(--space-lg) var(--space-md);
        display: block;
        width: 100%;
        transition: all var(--transition-fast);
        color: var(--color-white);
        text-align: left;
        border-radius: var(--radius-sm);
        margin: 2px 0;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(0, 212, 170, 0.1);
        color: var(--color-teal);
        transform: translateX(8px);
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-md);
        padding-top: var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-lg);
        font-size: 1rem;
        min-height: 52px;
        display: flex;
        align-items: center;
    }
    
    .nav-cta .btn:hover {
        transform: translateY(-2px);
    }
}

/* Improved mobile navigation for smaller screens */
@media (max-width: 480px) {
    .main-nav {
        padding: var(--space-lg) var(--space-md);
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: var(--space-md);
    }
    
    .nav-cta .btn {
        padding: var(--space-md);
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Mobile Navigation - Admin Bar Offset */
@media (max-width: 968px) {
    body.admin-bar .main-nav {
        top: 102px; /* 70px header + 32px admin bar */
        max-height: calc(100vh - 102px);
    }
}

@media (max-width: 782px) {
    body.admin-bar .main-nav {
        top: 116px; /* 70px header + 46px admin bar on tablet */
        max-height: calc(100vh - 116px);
    }
}

@media (max-width: 600px) {
    body.admin-bar .main-nav {
        top: 70px; /* Admin bar scrolls away on small mobile */
        max-height: calc(100vh - 70px);
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Additional mobile menu improvements */
@media (max-width: 968px) {
    /* Ensure hamburger is always visible and clickable */
    .mobile-toggle {
        position: relative;
        z-index: 1002;
    }
    
    /* Improve menu animation */
    .main-nav {
        will-change: opacity, transform;
        backface-visibility: hidden;
    }
    
    /* Better touch targets for menu items */
    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Improve CTA buttons in mobile menu */
    .nav-cta .btn {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Add backdrop overlay when menu is open */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
        opacity: 1;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-navy);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 20s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text {
    color: var(--color-white);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--color-teal);
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-stat {
    display: inline-block;
    color: var(--color-amber);
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-amber);
    opacity: 0.3;
}

.hero-subheadline {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-gray-300);
    margin-bottom: var(--space-xl);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.amiga-wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.amiga-wheel-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(0, 212, 170, 0.3));
    animation: wheelFloat 6s ease-in-out infinite;
}

@keyframes wheelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Hero Section Mobile Fixes */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3xl);
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-eyebrow {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .amiga-wheel-container {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero-content {
        gap: var(--space-2xl);
        padding: var(--space-md);
        max-width: 100%;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .amiga-wheel-container {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .amiga-wheel-container img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding-top: 50px;
    }
    
    .hero-content {
        gap: var(--space-xl);
        padding: var(--space-sm);
    }
    
    .hero-eyebrow {
        font-size: 0.75rem;
    }
    
    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .amiga-wheel-container {
        max-width: 250px;
    }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
    background: var(--color-white);
    position: relative;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--color-navy) 0%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e53e3e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-lg);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

/* Mobile section header improvements */
@media (max-width: 768px) {
    .section-header {
        max-width: 100%;
        margin: 0 auto var(--space-2xl);
        padding: 0 var(--space-md);
    }
    
    .section-header .eyebrow {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        margin-bottom: var(--space-md);
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin: 0 auto var(--space-xl);
        padding: 0 var(--space-sm);
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
}

.failure-patterns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.pattern-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pattern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-amber) 0%, var(--color-amber-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.pattern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pattern-card:hover::before {
    transform: scaleX(1);
}

.pattern-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-navy);
    color: var(--color-teal);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.pattern-card h4 {
    margin-bottom: var(--space-sm);
}

.pattern-card p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
}

.pull-quote {
    background: var(--color-navy);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    text-align: center;
    position: relative;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-xl);
    font-family: var(--font-accent);
    font-size: 6rem;
    color: var(--color-teal);
    opacity: 0.3;
    line-height: 1;
}

.pull-quote blockquote {
    font-family: var(--font-accent);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--color-white);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   BOOK SECTION
   ============================================ */
.book-section {
    background: linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-white) 100%);
    overflow: hidden;
}

.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.book-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--color-amber);
    color: var(--color-navy-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    white-space: nowrap;
}

.book-mockup {
    position: relative;
    perspective: 1000px;
    max-width: 400px;
    width: 100%;
}

.book-mockup img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 
        var(--shadow-xl),
        0 30px 60px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-slow);
}

.book-mockup:hover img {
    transform: rotateY(-5deg) translateY(-10px);
}

.book-content .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.book-content h2 {
    margin-bottom: var(--space-lg);
}

.book-content > p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-2xl);
}

.book-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.book-stat {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: var(--color-navy-dark);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-content strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-navy);
    line-height: 1.2;
}

.stat-content span {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Book Section Mobile Fixes */
@media (max-width: 968px) {
    .book-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .book-image-wrapper {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .book-badge {
        position: static;
        transform: none;
        margin-bottom: var(--space-md);
        align-self: center;
        order: -1;
    }
    
    .book-mockup {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .book-mockup img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .book-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        max-width: 400px;
        margin: 0 auto var(--space-2xl);
    }
    
    .book-stat {
        flex-direction: row;
        align-items: center;
        text-align: left;
        justify-content: flex-start;
        padding: var(--space-md);
        background: var(--color-gray-100);
        border-radius: var(--radius-lg);
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .stat-content {
        flex: 1;
    }
    
    .stat-content strong {
        font-size: 1.25rem;
    }
    
    .btn-group {
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .book-section {
        padding: var(--space-2xl) 0;
    }
    
    .book-showcase {
        gap: var(--space-xl);
    }
    
    .book-badge {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    .book-mockup {
        max-width: 250px;
    }
    
    .book-mockup img {
        max-width: 250px;
    }
    
    .book-stat {
        padding: var(--space-sm);
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-content strong {
        font-size: 1.1rem;
    }
    
    .stat-content span {
        font-size: 0.8rem;
    }
}

/* ============================================
   FRAMEWORK SECTION
   ============================================ */
.framework-section {
    background: var(--color-navy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.framework-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

.framework-section .container {
    position: relative;
    z-index: 1;
}

.framework-section .section-header {
    margin-bottom: var(--space-2xl);
    max-width: 900px;
}

.framework-section .section-header h2 {
    color: var(--color-white);
    white-space: nowrap;
}

.framework-section .section-header p {
    color: var(--color-gray-400);
}

/* Allow wrapping on mobile */
@media (max-width: 768px) {
    .framework-section .section-header h2 {
        white-space: normal;
    }
}



.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

.pillar-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-teal), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-teal);
    box-shadow: var(--shadow-glow-teal);
}

.pillar-card:hover::before {
    opacity: 0.1;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

/* Pillar-specific icon colors matching AMIGA Framework wheel */
.pillar-people .pillar-icon {
    background: linear-gradient(135deg, #6B5BAE 0%, #5B4B9E 100%);
}

.pillar-process .pillar-icon {
    background: linear-gradient(135deg, #5ABDF4 0%, #4AADE4 100%);
}

.pillar-technology .pillar-icon {
    background: linear-gradient(135deg, #10B9AD 0%, #00A99D 100%);
}

.pillar-data .pillar-icon {
    background: linear-gradient(135deg, #9DD64F 0%, #8DC63F 100%);
}

.pillar-governance .pillar-icon {
    background: linear-gradient(135deg, #3E7B9A 0%, #2E6B8A 100%);
}

.pillar-value .pillar-icon {
    background: linear-gradient(135deg, #FFA42D 0%, #F7941D 100%);
}

.pillar-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.pillar-card h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--color-gray-400);
    position: relative;
    z-index: 1;
}

/* Framework Grid with Connectors */
.framework-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    position: relative;
}

/* Horizontal Connectors (arrows between cards) */
.connector-h {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.connector-h::before {
    content: '';
    width: 100%;
    height: 3px;
    background: currentColor;
    animation: connectorGrow 0.5s ease forwards;
    transform-origin: left;
}

.connector-h::after {
    content: '';
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid currentColor;
    animation: arrowFade 0.3s ease 0.4s forwards;
    opacity: 0;
}

/* Reversed arrows (pointing left) */
.connector-reverse::before {
    transform-origin: right;
}

.connector-reverse::after {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 10px solid currentColor;
}

/* Vertical Connectors */
.connector-v {
    position: absolute;
    width: 3px;
    height: 60px;
    background: currentColor;
    animation: connectorGrowV 0.5s ease 0.8s forwards;
    transform: scaleY(0);
    transform-origin: top;
}

.connector-v::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    left: -4.5px;
    animation: arrowFade 0.3s ease 1.2s forwards;
    opacity: 0;
}

.connector-v-right {
    right: 60px;
    top: calc(50% - 30px);
}

.connector-v-right::after {
    bottom: -10px;
    border-top: 10px solid currentColor;
}

.connector-v-left {
    left: 60px;
    top: calc(50% - 30px);
    transform-origin: bottom;
}

.connector-v-left::after {
    top: -10px;
    border-bottom: 10px solid currentColor;
}

@keyframes connectorGrowV {
    to { transform: scaleY(1); }
}

/* Connector Colors */
.connector-purple { color: #5B4B9E; }
.connector-blue { color: #4AADE4; }
.connector-teal { color: #00A99D; }
.connector-green { color: #8DC63F; }
.connector-darkblue { color: #2E6B8A; }
.connector-orange { color: #F7941D; }

/* Enhanced Framework Animations */
@keyframes pillarReveal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pillarGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 212, 170, 0);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 212, 170, 0.3);
    }
}

@keyframes connectorDrawH {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes connectorDrawV {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes arrowAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes connectorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Apply pillar animations */
.framework-section .pillar-card {
    opacity: 0;
    animation: pillarReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.framework-section .pillar-card.visible {
    animation: pillarReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               pillarGlow 3s ease-in-out 1s infinite;
}

/* Connector animations */
.framework-section .connector-h::before {
    animation: connectorDrawH 0.6s ease-out forwards;
    opacity: 0;
}

.framework-section .connector-h::after {
    animation: arrowAppear 0.3s ease-out forwards;
    opacity: 0;
}

.framework-section .connector-v {
    animation: connectorDrawV 0.6s ease-out forwards;
    opacity: 0;
}

.framework-section .connector-v::after {
    animation: arrowAppear 0.3s ease-out forwards;
}

/* Connector pulse on hover */
.framework-grid:hover .connector-h::before,
.framework-grid:hover .connector-v {
    animation: connectorPulse 1.5s ease-in-out infinite !important;
}

/* Stagger delays for pillars */
.framework-section .stagger-1 {
    animation-delay: 0.1s;
}

.framework-section .stagger-2 {
    animation-delay: 0.3s;
}

.framework-section .stagger-3 {
    animation-delay: 0.5s;
}

.framework-section .stagger-4 {
    animation-delay: 0.7s;
}

.framework-section .stagger-5 {
    animation-delay: 0.9s;
}

.framework-section .stagger-6 {
    animation-delay: 1.1s;
}

/* Connector animation delays - appear after adjacent cards */
.framework-section .connector-h:nth-of-type(2)::before,
.framework-section .connector-h:nth-of-type(2)::after {
    animation-delay: 0.4s, 0.9s;
}

.framework-section .connector-h:nth-of-type(4)::before,
.framework-section .connector-h:nth-of-type(4)::after {
    animation-delay: 0.6s, 1.1s;
}

.framework-section .connector-h:nth-of-type(6)::before,
.framework-section .connector-h:nth-of-type(6)::after {
    animation-delay: 1.0s, 1.5s;
}

.framework-section .connector-h:nth-of-type(8)::before,
.framework-section .connector-h:nth-of-type(8)::after {
    animation-delay: 1.2s, 1.7s;
}

.framework-section .connector-v-right {
    animation-delay: 0.8s;
}

.framework-section .connector-v-right::after {
    animation-delay: 1.3s;
}

.framework-section .connector-v-left {
    animation-delay: 1.4s;
}

.framework-section .connector-v-left::after {
    animation-delay: 1.9s;
}

/* Framework responsive */
@media (max-width: 968px) {
    .framework-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .connector-h,
    .connector-v {
        display: none;
    }
}

@media (max-width: 768px) {
    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .connector-h,
    .connector-v {
        display: none;
    }
}

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

/* ============================================
   CERTIFICATION SECTION
   ============================================ */
.certification-section {
    background: var(--color-white);
}

.certification-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

.certification-header .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.certification-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.certification-content h3 {
    margin-bottom: var(--space-lg);
}

.certification-content > p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-2xl);
}

.module-list {
    list-style: none;
    margin-bottom: var(--space-2xl);
}

.module-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

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

.module-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-teal);
    color: var(--color-navy-dark);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.module-check svg {
    width: 14px;
    height: 14px;
}

.module-list li strong {
    display: block;
    color: var(--color-navy);
}

.module-list li span {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

/* Career Trajectory Card */
.career-trajectory {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    color: var(--color-white);
}

.career-trajectory h4 {
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.trajectory-path {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.trajectory-level {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.trajectory-level.from {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.trajectory-level.to {
    background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-amber-dark) 100%);
    color: var(--color-navy-dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.trajectory-level.to h5 {
    color: var(--color-navy-dark);
}

.level-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.trajectory-level.to .level-icon {
    background: rgba(26, 39, 68, 0.3);
    border: 1px solid rgba(26, 39, 68, 0.2);
}

.level-icon svg {
    width: 28px;
    height: 28px;
}

.level-content h5 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.level-content .salary {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.level-content span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.trajectory-arrow {
    text-align: center;
    padding: var(--space-md);
}

.trajectory-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--color-teal);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Audience Cards */
.audience-section {
    margin-top: var(--space-4xl);
}

.audience-section h3 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.audience-card {
    background: var(--color-gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.audience-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.audience-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: var(--color-teal);
    border-radius: var(--radius-lg);
}

.audience-icon svg {
    width: 32px;
    height: 32px;
}

.audience-card h5 {
    margin-bottom: var(--space-sm);
}

.audience-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

/* Certification responsive */
@media (max-width: 968px) {
    .certification-showcase {
        grid-template-columns: 1fr;
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   AMIGO SECTION
   ============================================ */
.amigo-section {
    background: linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-off-white) 100%);
    position: relative;
}

.amigo-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.amigo-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    flex-wrap: wrap;
}

.amigo-logo-inline {
    height: 1em;
    max-height: 1em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

.amigo-logo-display {
    margin: var(--space-lg) auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.amigo-logo-display img {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
}

.amigo-header .sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-navy);
    color: var(--color-teal);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.capability-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transition: all var(--transition-base);
}

.capability-card:hover {
    border-color: var(--color-teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.capability-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    color: var(--color-navy);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.capability-icon svg {
    width: 20px;
    height: 20px;
}

.capability-card h5 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.capability-card p {
    font-size: 0.85rem;
    color: var(--color-gray-600);
}

.amigo-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.amigo-cta p {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: var(--space-lg);
}

/* AMIGO responsive */
@media (max-width: 968px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--color-navy);
    color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 2px solid var(--color-teal);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-content .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.about-content h2 {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.about-quote {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-gray-300);
    padding-left: var(--space-xl);
    border-left: 3px solid var(--color-teal);
    margin-bottom: var(--space-xl);
}

.about-content p {
    color: var(--color-gray-400);
    margin-bottom: var(--space-lg);
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.credential {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.credential svg {
    width: 16px;
    height: 16px;
    color: var(--color-teal);
}

/* About responsive */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-quote {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--color-teal);
        padding-top: var(--space-lg);
    }
    
    .credentials {
        justify-content: center;
    }
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources-section {
    background: var(--color-white);
}

.resources-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.resources-header .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.resource-card {
    background: var(--color-gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.resource-card:hover {
    background: var(--color-white);
    border-color: var(--color-teal);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.resource-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-teal);
    border-radius: var(--radius-xl);
}

.resource-icon svg {
    width: 36px;
    height: 36px;
}

.resource-card h4 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.resource-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Resources responsive */
@media (min-width: 1600px) {
    .resources-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
    }
}

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

@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.newsletter-content p {
    color: var(--color-gray-400);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-gray-500);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-teal);
    background: rgba(255, 255, 255, 0.1);
}

/* Newsletter responsive */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-navy-dark);
    color: var(--color-gray-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    margin: var(--space-lg) 0;
    font-size: 0.95rem;
}

.sponsor-credit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    margin-top: var(--space-lg);
}

.sponsor-credit img {
    height: 24px;
    width: auto;
}

/* FORCE FOOTER LOGO SIZE - HIGHEST SPECIFICITY */
.site-footer .footer-brand .site-logo img,
.site-footer .footer-brand .site-logo .footer-logo-img,
.site-footer .footer-brand img.footer-logo-img,
footer .footer-brand .site-logo img,
footer img.footer-logo-img {
    height: 120px !important;
    width: auto !important;
    max-width: 300px !important;
    min-height: 120px !important;
}


.amigo-logo-img {
    height: 28px;
    width: auto;
}

.site-logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Override for footer logo specifically */
.footer-brand .site-logo-img,
.site-footer .site-logo-img {
    height: 180px !important;
    width: auto !important;
    max-width: 400px !important;
}

.footer-nav h5 {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-teal);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-teal);
    color: #ffffff;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Newsletter Button */
.site-footer .btn-secondary {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
}

.site-footer .btn-secondary:hover {
    background: var(--color-teal);
    color: #0f1829 !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--color-gray-500);
}

.footer-legal a:hover {
    color: var(--color-teal);
}

/* Footer responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Counter animation */
.counter {
    display: inline-block;
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Global Mobile Improvements */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 var(--space-md);
        max-width: 100%;
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .section-sm {
        padding: var(--space-2xl) 0;
    }
    
    /* Fix any overflow issues */
    * {
        max-width: 100%;
    }
    
    /* Ensure images don't break layout */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Fix button groups */
    .btn-group {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        align-items: stretch;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-sm {
        padding: var(--space-xl) 0;
    }
    
    /* Reduce spacing on very small screens */
    .section-header {
        margin-bottom: var(--space-xl);
    }
}

/* Typography Mobile Fixes */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
    
    h4 {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }
    
    .text-large {
        font-size: 1.1rem;
    }
}

/* Button Mobile Improvements */
@media (max-width: 768px) {
    .btn {
        padding: var(--space-lg) var(--space-xl);
        font-size: 0.95rem;
        min-height: 48px; /* Touch-friendly */
    }
    
    .btn-lg {
        padding: var(--space-xl) var(--space-2xl);
        font-size: 1rem;
        min-height: 52px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Grid System Mobile Fixes */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .grid {
        gap: var(--space-md);
    }
}

/* Header Mobile Improvements */
@media (max-width: 1200px) {
    .nav-menu a {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-sm);
    }
    
    .nav-cta .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: var(--space-sm) var(--space-xs);
    }
    
    .nav-cta {
        gap: var(--space-xs);
    }
    
    .nav-cta .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.85rem;
    }
}

@media (max-width: 968px) {
    .header-inner {
        padding: var(--space-sm) var(--space-md);
    }
    
    .site-header .site-logo img,
    .site-header .site-logo .custom-logo,
    .site-header .custom-logo-link img,
    .header-inner .site-logo img {
        height: 50px !important;
        max-height: 50px !important;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: var(--space-sm);
    }
    
    .site-header .site-logo img,
    .site-header .site-logo .custom-logo,
    .site-header .custom-logo-link img,
    .header-inner .site-logo img {
        height: 40px !important;
        max-height: 40px !important;
    }
}

/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero-content {
        gap: var(--space-2xl);
        padding: var(--space-md);
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .amiga-wheel-container {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding-top: 50px;
    }
    
    .hero-content {
        gap: var(--space-xl);
        padding: var(--space-sm);
    }
    
    .hero-eyebrow {
        font-size: 0.75rem;
    }
    
    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .amiga-wheel-container {
        max-width: 250px;
    }
}

/* Problem Section Mobile Fixes */
@media (max-width: 768px) {
    .failure-patterns {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .pattern-card {
        padding: var(--space-lg);
    }
    
    .pull-quote {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .pull-quote::before {
        font-size: 4rem;
        top: var(--space-sm);
        left: var(--space-md);
    }
    
    .pull-quote blockquote {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .pattern-card {
        padding: var(--space-md);
    }
    
    .pattern-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .pull-quote {
        padding: var(--space-xl) var(--space-md);
    }
}

/* Book Section Mobile Fixes */
@media (max-width: 768px) {
    .book-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .book-stat {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-content strong {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .book-badge {
        position: static;
        transform: none;
        margin-bottom: var(--space-md);
    }
    
    .book-mockup img {
        max-width: 280px;
    }
}

/* Framework Section Mobile Fixes - Enhanced */
@media (max-width: 768px) {
    .framework-section .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .pillar-card {
        padding: var(--space-md);
    }
    
    .pillar-icon {
        width: 48px;
        height: 48px;
    }
    
    .pillar-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .pillar-card h4 {
        font-size: 1rem;
    }
    
    .pillar-card p {
        font-size: 0.85rem;
    }
}

/* Certification Section Mobile Fixes */
@media (max-width: 768px) {
    .module-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .module-check {
        align-self: flex-start;
    }
    
    .trajectory-level {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .level-icon {
        width: 48px;
        height: 48px;
    }
    
    .level-content .salary {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .career-trajectory {
        padding: var(--space-lg);
    }
    
    .trajectory-level {
        padding: var(--space-md);
    }
    
    .audience-grid {
        gap: var(--space-md);
    }
    
    .audience-card {
        padding: var(--space-md);
    }
    
    .audience-icon {
        width: 48px;
        height: 48px;
    }
}

/* AMIGO Section Mobile Fixes */
@media (max-width: 768px) {
    .amigo-logo-display img {
        max-width: 200px;
    }
    
    .capability-card {
        padding: var(--space-md);
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .capability-icon {
        width: 32px;
        height: 32px;
        align-self: center;
    }
    
    .amigo-cta {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .capabilities-grid {
        gap: var(--space-sm);
    }
    
    .capability-card {
        padding: var(--space-sm);
    }
    
    .capability-card h5 {
        font-size: 0.9rem;
    }
    
    .capability-card p {
        font-size: 0.8rem;
    }
}

/* About Section Mobile Fixes */
@media (max-width: 768px) {
    .about-image {
        max-width: 250px;
    }
    
    .about-quote {
        font-size: 1.1rem;
        padding-left: 0;
        border-left: none;
        border-top: 3px solid var(--color-teal);
        padding-top: var(--space-md);
        text-align: center;
    }
    
    .credentials {
        gap: var(--space-sm);
    }
    
    .credential {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

@media (max-width: 480px) {
    .about-image {
        max-width: 200px;
    }
    
    .about-quote {
        font-size: 1rem;
    }
}

/* Resources Section Mobile Fixes */
@media (max-width: 768px) {
    .resource-card {
        padding: var(--space-lg);
    }
    
    .resource-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--space-md);
    }
    
    .resource-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .resources-grid {
        gap: var(--space-md);
    }
    
    .resource-card {
        padding: var(--space-md);
    }
    
    .resource-icon {
        width: 48px;
        height: 48px;
    }
    
    .resource-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .resource-card h4 {
        font-size: 1rem;
    }
    
    .resource-card p {
        font-size: 0.85rem;
    }
}

/* Newsletter Section Mobile Fixes */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        max-width: 400px;
    }
    
    .newsletter-form input[type="email"] {
        margin-bottom: var(--space-md);
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-content p {
        font-size: 0.95rem;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
}

/* Footer Mobile Fixes */
@media (max-width: 768px) {
    .footer-grid {
        gap: var(--space-2xl);
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer-nav h5 {
        font-size: 0.9rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-grid {
        gap: var(--space-xl);
    }
    
    .footer-brand .site-logo-img,
    .site-footer .site-logo-img {
        height: 100px !important;
        max-width: 250px !important;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Form Elements Mobile Improvements */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        padding: var(--space-md);
        font-size: 1rem;
        min-height: 48px;
    }
    
    button,
    input[type="submit"] {
        min-height: 48px;
        padding: var(--space-md) var(--space-lg);
    }
}

/* Animation Adjustments for Mobile */
@media (max-width: 768px) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transition-duration: 0.4s;
    }

    .stagger-1 { transition-delay: 0.05s; }
    .stagger-2 { transition-delay: 0.1s; }
    .stagger-3 { transition-delay: 0.15s; }
    .stagger-4 { transition-delay: 0.2s; }
    .stagger-5 { transition-delay: 0.25s; }
    .stagger-6 { transition-delay: 0.3s; }

    /* Faster framework animations on mobile */
    .framework-section .pillar-card {
        animation-duration: 0.6s;
    }

    .framework-section .stagger-1 { animation-delay: 0.05s; }
    .framework-section .stagger-2 { animation-delay: 0.15s; }
    .framework-section .stagger-3 { animation-delay: 0.25s; }
    .framework-section .stagger-4 { animation-delay: 0.35s; }
    .framework-section .stagger-5 { animation-delay: 0.45s; }
    .framework-section .stagger-6 { animation-delay: 0.55s; }

    /* Disable glow animation on mobile for performance */
    .framework-section .pillar-card.visible {
        animation: pillarReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
}

/* Reduce motion for mobile performance */
@media (max-width: 480px) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    
    .fade-in.visible,
    .slide-in-left.visible,
    .slide-in-right.visible,
    .scale-in.visible {
        opacity: 1;
        transform: none !important;
    }
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-xl); }
.mb-4 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }
.mt-4 { margin-top: var(--space-2xl); }

/* Mobile utility classes */
@media (max-width: 768px) {
    .mb-mobile-0 { margin-bottom: 0; }
    .mb-mobile-1 { margin-bottom: var(--space-sm); }
    .mb-mobile-2 { margin-bottom: var(--space-md); }
    .mb-mobile-3 { margin-bottom: var(--space-lg); }
    
    .mt-mobile-0 { margin-top: 0; }
    .mt-mobile-1 { margin-top: var(--space-sm); }
    .mt-mobile-2 { margin-top: var(--space-md); }
    .mt-mobile-3 { margin-top: var(--space-lg); }
    
    .text-center-mobile { text-align: center; }
    .hidden-mobile { display: none; }
}

/* FORCE FOOTER LOGO SIZE - HIGHEST SPECIFICITY */
.site-footer .footer-brand .site-logo img,
.site-footer .footer-brand .site-logo .footer-logo-img,
.site-footer .footer-brand img.footer-logo-img,
footer .footer-brand .site-logo img,
footer img.footer-logo-img {
    height: 120px !important;
    width: auto !important;
    max-width: 300px !important;
    min-height: 120px !important;
}

/* Mobile footer logo override */
@media (max-width: 768px) {
    .site-footer .footer-brand .site-logo img,
    .site-footer .footer-brand .site-logo .footer-logo-img,
    .site-footer .footer-brand img.footer-logo-img,
    footer .footer-brand .site-logo img,
    footer img.footer-logo-img {
        height: 80px !important;
        max-width: 200px !important;
        min-height: 80px !important;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Framework section - show everything immediately */
    .framework-section .pillar-card {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .framework-section .pillar-card.visible {
        animation: none;
    }

    .framework-section .connector-h::before,
    .framework-section .connector-h::after,
    .framework-section .connector-v,
    .framework-section .connector-v::after {
        opacity: 1;
        animation: none;
    }

    .framework-section::before {
        animation: none;
    }

    /* Disable all other animations */
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ── Standalone article page body ── */
body.article-page { background: #0a1628; color: #f1f5f9; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   PUBLIC CONTENT PAGES — Blog · Blog Post · Vlog · Testimonials
   Brand tokens: DM Sans · navy #1a2744 · teal #00d4aa · amber #f59e0b
   All rules scoped to #aipm-wrap to avoid conflicts with homepage CSS.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Local token block ────────────────────────────────────── */
#aipm-wrap {
    --ap-bg:      #0a1628;
    --ap-card:    #1a2744;
    --ap-card2:   #243352;
    --ap-teal:    #00d4aa;
    --ap-amber:   #f59e0b;
    --ap-grad:    linear-gradient(135deg, #00d4aa 0%, #f59e0b 100%);
    --ap-text:    #f1f5f9;
    --ap-text2:   #94a3b8;
    --ap-muted:   #64748b;
    --ap-bdr:     rgba(0, 212, 170, 0.12);
    --ap-bdr2:    rgba(255, 255, 255, 0.06);
    --ap-r:       12px;
    --ap-rl:      20px;
    --ap-shadow:  0 12px 40px rgba(0, 212, 170, 0.12);
}

/* ── 2. Base reset ───────────────────────────────────────────── */
#aipm-wrap {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    background: var(--ap-bg);
    color: var(--ap-text);
    line-height: 1.6;
}
#aipm-wrap *, #aipm-wrap *::before, #aipm-wrap *::after { box-sizing: border-box; }
#aipm-wrap a { color: var(--ap-teal); text-decoration: none; transition: color .2s; }
#aipm-wrap a:hover { color: var(--ap-amber); }
#aipm-wrap img { max-width: 100%; height: auto; }
/* Override global h1-h6 { color: navy } so headings are visible on dark background */
#aipm-wrap h1, #aipm-wrap h2, #aipm-wrap h3,
#aipm-wrap h4, #aipm-wrap h5, #aipm-wrap h6 { color: var(--ap-text); }

/* ── 3. Page hero ────────────────────────────────────────────── */
#aipm-wrap .page-hero {
    padding: 160px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse 80% 50% at 50% 0%,
        rgba(0, 212, 170, 0.10) 0%, transparent 70%);
    border-bottom: 1px solid var(--ap-bdr);
}
/* Extra top padding when WordPress admin bar is visible (adds 32px to header offset) */
body.admin-bar #aipm-wrap .page-hero { padding-top: 192px; }
#aipm-wrap .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ap-teal);
    margin-bottom: 28px;
    padding: 8px 22px;
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 20px;
    background: rgba(0, 212, 170, 0.08);
}
#aipm-wrap .page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}
#aipm-wrap .page-hero h1 span {
    background: var(--ap-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#aipm-wrap .page-hero p {
    font-size: 18px;
    color: var(--ap-text2);
    max-width: 600px;
    margin: 0 auto;
}
#aipm-wrap .page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ── 4. Shared components ────────────────────────────────────── */

/* Buttons */
#aipm-wrap .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all .25s;
    text-decoration: none;
    font-family: inherit;
}
#aipm-wrap .btn-primary {
    background: var(--ap-grad);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.25);
}
#aipm-wrap .btn-primary:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
}
#aipm-wrap .btn-outline {
    background: transparent;
    color: var(--ap-text);
    border: 1px solid var(--ap-bdr);
}
#aipm-wrap .btn-outline:hover {
    border-color: var(--ap-teal);
    color: var(--ap-teal);
    background: rgba(0, 212, 170, 0.06);
}

/* Cards */
#aipm-wrap .card {
    background: var(--ap-card);
    border: 1px solid var(--ap-bdr);
    border-radius: var(--ap-rl);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
#aipm-wrap .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ap-shadow);
    border-color: rgba(0, 212, 170, 0.30);
}

/* Badges */
#aipm-wrap .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#aipm-wrap .badge-teal   { background: rgba(0, 212, 170, 0.12);  color: #00d4aa; }
#aipm-wrap .badge-amber  { background: rgba(245, 158, 11, 0.12);  color: #f59e0b; }
#aipm-wrap .badge-blue   { background: rgba(0, 212, 170, 0.10);   color: #5eead4; }
#aipm-wrap .badge-purple { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }

/* Pagination */
#aipm-wrap .pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}
#aipm-wrap .pagination a,
#aipm-wrap .pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--ap-bdr);
}
#aipm-wrap .pagination a { color: var(--ap-text2); }
#aipm-wrap .pagination a:hover { border-color: var(--ap-teal); color: var(--ap-teal); }
#aipm-wrap .pagination .current { background: var(--ap-teal); color: #0a1628; border-color: var(--ap-teal); }

/* Empty state */
.empty-state { text-align: center; padding: 80px 24px; color: var(--ap-text2); }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--ap-text); }

/* ── 5. Blog listing page ────────────────────────────────────── */

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-bar a, .filter-bar button {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--ap-bdr2);
    background: transparent;
    color: var(--ap-text2);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: inherit;
}
.filter-bar a:hover, .filter-bar a.active {
    border-color: var(--ap-teal);
    color: var(--ap-teal);
    background: rgba(0, 212, 170, 0.08);
}
.filter-bar .search-wrap { margin-left: auto; display: flex; gap: 8px; }
.filter-bar input[type=text] {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    background: var(--ap-card);
    border: 1px solid var(--ap-bdr2);
    color: var(--ap-text);
    outline: none;
    min-width: 220px;
    font-family: inherit;
    transition: border .2s;
}
.filter-bar input[type=text]:focus { border-color: var(--ap-teal); }

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.post-card { display: flex; flex-direction: column; }
.post-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.12), rgba(26, 39, 68, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-muted);
    font-size: 13px;
    overflow: hidden;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── No-image placeholder ── */
.post-img-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1728 0%, #1a2744 45%, #0a2e28 100%);
}
/* decorative blurred circles */
.post-img-placeholder .ph-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.post-img-placeholder .ph-deco::before,
.post-img-placeholder .ph-deco::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}
.post-img-placeholder .ph-deco::before {
    width: 140px;
    height: 140px;
    background: rgba(0, 212, 170, 0.18);
    top: -40px;
    right: -30px;
}
.post-img-placeholder .ph-deco::after {
    width: 120px;
    height: 120px;
    background: rgba(245, 158, 11, 0.13);
    bottom: -35px;
    left: -25px;
}
/* dot-grid pattern overlay */
.post-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,212,170,0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
/* teal accent line at bottom */
.post-img-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4aa, transparent);
}
.ph-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 0 20px;
}
.ph-icon {
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(0,212,170,0.5));
}
.ph-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.35);
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(0, 212, 170, 0.08);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ph-brand {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.post-meta time { font-size: 12px; color: var(--ap-muted); }
.post-body h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.post-body h2 a { color: var(--ap-text); text-decoration: none; }
.post-body h2 a:hover { color: var(--ap-teal); }
.post-body p { color: var(--ap-text2); font-size: 14px; flex: 1; margin-bottom: 20px; }
.featured-post { grid-column: 1 / -1; }
.featured-post .post-img { aspect-ratio: 21/7; }

/* Newsletter box */
.newsletter-box {
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.20);
    border-radius: var(--ap-rl);
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
}
.newsletter-box h3 { font-size: 22px; margin-bottom: 8px; }
.newsletter-box p { color: var(--ap-text2); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--ap-card2);
    border: 1px solid var(--ap-bdr);
    color: var(--ap-text);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border .2s;
}
.newsletter-form input:focus { border-color: var(--ap-teal); }

/* ── 6. Blog post (single article) ──────────────────────────── */

/* ── 404 page ── */
.post-not-found { text-align: center; padding: 120px 24px; }
.post-not-found h2 { font-size: 28px; margin-bottom: 20px; }

/* ── Post hero header ── */
.post-hero {
    background: linear-gradient(160deg, #0d1f3c 0%, #1a2744 50%, #0a1628 100%);
    border-bottom: 1px solid rgba(0, 212, 170, 0.12);
    padding: 160px 24px 64px;
}
body.admin-bar .post-hero { padding-top: 192px; }

/* Hero with featured image as full-bleed background */
.post-hero.has-featured-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: none;
}
.post-hero.has-featured-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,14,26,0.70) 0%, rgba(10,14,26,0.88) 100%);
}
.post-hero.has-featured-img .post-hero-inner {
    position: relative;
    z-index: 1;
}

.post-hero-inner { max-width: 800px; margin: 0 auto; }
.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.post-title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ap-text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.post-lead {
    font-size: 19px;
    line-height: 1.65;
    color: var(--ap-text2);
    margin-bottom: 28px;
    max-width: 680px;
}
.post-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ap-muted);
}

/* ── Featured cover image ── */
.post-cover {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 48px;
}
.post-cover img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: var(--ap-rl);
    border: 1px solid var(--ap-bdr);
    box-shadow: var(--ap-shadow);
}

/* ── Reading column ── */
.post-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Article body (rich text from Quill) ── */
/* Dark card matching admin Quill editor look */
.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #e2e8f0;
    margin-bottom: 48px;
    background: #132a4a;
    padding: 40px 36px;
    border-radius: var(--ap-r);
    border: 1px solid rgba(0, 212, 170, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-body h2 { font-size: 24px; font-weight: 700; margin: 44px 0 14px; color: #f1f5f9; }
.article-body h3 { font-size: 19px; font-weight: 600; margin: 30px 0 10px; color: #f1f5f9; }
.article-body h4 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: #f1f5f9; }
.article-body p  { margin-bottom: 20px; color: #cbd5e1; }
.article-body ul, .article-body ol { margin: 0 0 20px 28px; color: #cbd5e1; }
.article-body li { margin-bottom: 8px; }
.article-body a  { color: #00d4aa; text-decoration: underline; }
.article-body strong { color: #f1f5f9; font-weight: 600; }
.article-body blockquote {
    border-left: 3px solid #00d4aa;
    padding: 16px 22px;
    margin: 28px 0;
    border-radius: 0 var(--ap-r) var(--ap-r) 0;
    background: rgba(0, 212, 170, 0.06);
    color: #94a3b8;
    font-style: italic;
}
.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    cursor: zoom-in;
    transition: none;
}
.article-body img:hover {
    box-shadow: none;
    transform: none;
}
/* Caption paragraphs (inserted by admin editor) */
.article-body p[style*="font-style:italic"][style*="font-size:13px"] {
    cursor: default;
}
.article-body::after { content: ''; display: table; clear: both; }
/* Lightbox overlay */
#aipm-lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,.92);
    z-index:99999; cursor:zoom-out; align-items:center; justify-content:center;
    padding:24px; backdrop-filter:blur(6px); }
#aipm-lightbox img { max-width:95%; max-height:92vh; border-radius:10px;
    object-fit:contain; box-shadow:0 8px 40px rgba(0,0,0,.5);
    animation: aipm-lb-in .25s ease-out; }
#aipm-lightbox .aipm-lb-close { position:absolute; top:20px; right:24px;
    background:rgba(255,255,255,.15); border:none; color:#fff; width:40px; height:40px;
    border-radius:50%; font-size:22px; cursor:pointer; display:flex; align-items:center;
    justify-content:center; backdrop-filter:blur(4px); transition:background .2s; }
#aipm-lightbox .aipm-lb-close:hover { background:rgba(255,255,255,.3); }
@keyframes aipm-lb-in { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
/* Quill alignment classes */
.article-body .ql-align-center  { text-align: center; }
.article-body .ql-align-right   { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
/* Quill font classes */
.article-body .ql-font-serif       { font-family: Georgia, 'Times New Roman', serif; }
.article-body .ql-font-monospace   { font-family: 'Courier New', Courier, monospace; }
.article-body .ql-font-roboto      { font-family: 'Roboto', sans-serif; }
.article-body .ql-font-opensans    { font-family: 'Open Sans', sans-serif; }
.article-body .ql-font-lato        { font-family: 'Lato', sans-serif; }
.article-body .ql-font-playfair    { font-family: 'Playfair Display', serif; }
.article-body .ql-font-merriweather { font-family: 'Merriweather', serif; }

/* ── Attached content (media file section) ── */
.post-media { margin-bottom: 48px; }
.post-media-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ap-bdr);
}
/* PDF embed */
.article-pdf-wrap { margin-bottom: 16px; }
.article-pdf-wrap iframe { width: 100%; height: 800px; border: 1px solid var(--ap-bdr); border-radius: var(--ap-rl); display: block; }
.article-pdf-download { text-align: center; margin-top: 16px; }
/* Image-as-content */
.article-img-content {
    text-align: center;
    background: #0d1e35;
    border-radius: var(--ap-rl);
    padding: 28px;
    border: 1px solid rgba(0, 212, 170, 0.10);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}
.article-img-content img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 6px; }

/* ── Back link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ap-teal);
    text-decoration: none;
    margin-bottom: 40px;
    padding: 9px 20px;
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.07);
    transition: all .2s;
}
.back-link:hover { background: rgba(0, 212, 170, 0.16); border-color: var(--ap-teal); }

/* ── Share bar ── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--ap-bdr);
    margin-top: 48px;
}
.share-bar span { font-size: 14px; font-weight: 600; color: var(--ap-muted); margin-right: 4px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--ap-bdr2);
    font-size: 13px;
    font-weight: 600;
    color: var(--ap-text2);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.share-btn img { display: block; flex-shrink: 0; }
.share-btn:hover { border-color: var(--ap-teal); color: var(--ap-teal); background: rgba(0,212,170,0.06); }

/* ── Related posts ── */
.related-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
.related-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.related-card {
    background: var(--ap-card);
    border: 1px solid var(--ap-bdr);
    border-radius: var(--ap-r);
    padding: 20px;
    transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: rgba(0, 212, 170, 0.30); transform: translateY(-2px); }
.related-card time { font-size: 12px; color: var(--ap-muted); display: block; margin-bottom: 8px; }
.related-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.related-card h4 a { color: var(--ap-text); }
.related-card h4 a:hover { color: var(--ap-teal); }
.related-card p { font-size: 13px; color: var(--ap-text2); margin: 0; }

/* ── Responsive (blog post page) ── */
@media (max-width: 640px) {
    .post-hero { padding: 140px 20px 52px; }
    .post-cover { padding: 0 16px 32px; }
    .post-content { padding: 28px 20px 60px; }
    .article-body { padding: 28px 20px; }
    /* Floated images go full-width on mobile for readability */
    .article-body img {
        float: none !important;
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 16px auto !important;
    }
    .article-pdf-wrap iframe { height: 480px; }
}

/* ── 7. Vlog page ────────────────────────────────────────────── */
.featured-video { margin-bottom: 64px; }
.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ap-teal);
    margin-bottom: 16px;
}
.featured-label::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ap-teal);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
}
.featured-video-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.video-embed-box {
    background: var(--ap-card);
    border: 1px solid var(--ap-bdr);
    border-radius: var(--ap-rl);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.video-embed-box iframe, .video-embed-box video { width: 100%; height: 100%; border: none; display: block; }
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 24px;
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.06), rgba(26, 39, 68, 0.4));
}
.video-placeholder .play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ap-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform .2s;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.30);
}
.video-placeholder .play-icon:hover { transform: scale(1.1); }
.video-placeholder p { color: var(--ap-muted); font-size: 13px; text-align: center; margin: 0; }
.platform-fb    { background: rgba(24, 119, 242, 0.12); color: #60a5fa; }
.platform-yt    { background: rgba(255, 0, 0, 0.10);    color: #f87171; }
.platform-other { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; }
.video-card .video-thumb {
    aspect-ratio: 16/9;
    background: var(--ap-card);
    border-radius: var(--ap-r) var(--ap-r) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.video-card .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ap-muted);
    font-size: 13px;
    width: 100%;
    height: 100%;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.06), rgba(26, 39, 68, 0.3));
}
.thumb-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ap-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.video-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.video-card-body .video-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.video-card-body time { font-size: 12px; color: var(--ap-muted); }
.video-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.video-card-body p { font-size: 13px; color: var(--ap-text2); flex: 1; margin-bottom: 16px; }
.follow-strip {
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.18);
    border-radius: var(--ap-rl);
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
}
.follow-strip h3 { font-size: 20px; margin-bottom: 8px; }
.follow-strip p { color: var(--ap-text2); margin-bottom: 20px; }
.follow-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 8. Testimonials page ────────────────────────────────────── */
.stats-bar {
    display: flex;
    border: 1px solid var(--ap-bdr);
    border-radius: var(--ap-rl);
    overflow: hidden;
    margin-bottom: 64px;
    background: var(--ap-card);
}
.stat-item {
    flex: 1;
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--ap-bdr);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--ap-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
.stat-label { font-size: 13px; color: var(--ap-text2); margin-top: 4px; }
.featured-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}
.testimonial-featured {
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.07), rgba(26, 39, 68, 0.5));
    border: 1px solid rgba(0, 212, 170, 0.18);
    border-radius: var(--ap-rl);
    padding: 32px;
    position: relative;
    transition: border-color .2s, transform .2s;
}
.testimonial-featured:hover { border-color: rgba(0, 212, 170, 0.35); transform: translateY(-3px); }
.testimonial-featured::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    left: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    line-height: 1;
    color: rgba(0, 212, 170, 0.15);
    pointer-events: none;
}
.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ap-text);
    margin-bottom: 24px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}
.testimonial-quote.expanded {
    -webkit-line-clamp: unset;
    display: block;
}
.testimonial-featured .read-more-btn {
    background: none;
    border: none;
    color: var(--ap-teal);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.testimonial-featured .read-more-btn:hover {
    color: #fff;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ap-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #0a1628;
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 15px; color: var(--ap-text); }
.author-title { font-size: 13px; color: var(--ap-text2); }
.author-company { font-size: 13px; color: var(--ap-teal); }
.stars { color: var(--ap-amber); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.section-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ap-bdr);
}
.all-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.testimonial-card {
    background: var(--ap-card);
    border: 1px solid var(--ap-bdr);
    border-radius: var(--ap-rl);
    padding: 24px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.10);
    border-color: rgba(0, 212, 170, 0.25);
}
.testimonial-card .source-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.08);
    color: var(--ap-teal);
}
.testimonial-card .quote-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ap-text2);
    margin-bottom: 20px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}
.testimonial-card .quote-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}
.testimonial-card .read-more-btn {
    background: none;
    border: none;
    color: var(--ap-teal);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.testimonial-card .read-more-btn:hover {
    color: #fff;
}
.testimonial-card .quote-text::before { content: '\201C'; color: var(--ap-teal); font-size: 20px; font-family: Georgia, serif; }
.testimonial-card .quote-text::after  { content: '\201D'; color: var(--ap-teal); font-size: 20px; font-family: Georgia, serif; }
.leave-review {
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.06), rgba(26, 39, 68, 0.4));
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: var(--ap-rl);
    padding: 48px;
    text-align: center;
    margin-top: 64px;
}
.leave-review h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.leave-review p { color: var(--ap-text2); max-width: 480px; margin: 0 auto 24px; }
.review-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 9. Responsive ───────────────────────────────────────────── */

/* Tablet (768px) */
@media (max-width: 768px) {
    /* Vlog */
    .featured-video-wrap { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    /* Page hero (blog/vlog/testimonials listing pages) */
    #aipm-wrap .page-hero { padding: 140px 20px 64px; }
    body.admin-bar #aipm-wrap .page-hero { padding-top: 172px; }
    /* Testimonials */
    .leave-review { padding: 32px 20px; }
    .featured-testimonials { gap: 16px; }
    /* Blog listing post card */
    .post-card .post-body { padding: 20px; }
}

/* Mobile (600px) */
@media (max-width: 600px) {
    .newsletter-form { flex-direction: column; }
    .posts-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--ap-bdr); }
    .stat-item:last-child { border-bottom: none; }
    .filter-bar .search-wrap { margin-left: 0; width: 100%; }
    .filter-bar input[type=text] { min-width: 0; width: 100%; }
    /* Page hero */
    #aipm-wrap .page-hero { padding: 130px 16px 56px; }
    body.admin-bar #aipm-wrap .page-hero { padding-top: 162px; }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .testimonial-featured { padding: 24px 18px; }
    .testimonial-featured::before { font-size: 56px; }
    .all-testimonials-grid { grid-template-columns: 1fr; }
    .leave-review { padding: 28px 16px; margin-top: 40px; }
    .leave-review h3 { font-size: 20px; }
    .stat-number { font-size: 28px; }
    .post-img { aspect-ratio: 4/3; } /* taller on mobile for better readability */
}


/* ============================================
   FAQ PAGE STYLES
   ============================================ */

/* ═══════════════════════════════════════════════
   FAQ PAGE — full redesign
   ═══════════════════════════════════════════════ */
#faq-page {
    background: var(--color-navy, #1a2744);
    color: #f1f5f9;
    font-family: 'DM Sans', system-ui, sans-serif;
    min-height: 100vh;
}
#faq-page *, #faq-page *::before, #faq-page *::after { box-sizing: border-box; }
#faq-page a:not(.faq-btn) { color: #00d4aa; text-decoration: none; }
#faq-page a:not(.faq-btn):hover { color: #00f5c4; }

/* ── Hero ─────────────────────────────────────── */
.faq-hero {
    position: relative;
    background: var(--color-navy-dark, #0f1829);
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
/* Grid texture — matches front-page */
.faq-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    pointer-events: none;
}
/* Radial glow — matches front-page */
.faq-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,212,170,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 90%, rgba(245,158,11,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
/* Decorative "?" */
.faq-hero-q {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(160px, 18vw, 260px);
    font-weight: 900;
    color: rgba(0,212,170,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.faq-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

/* Admin bar clearance */
body.admin-bar .faq-hero { padding-top: 152px; }
@media screen and (max-width: 782px) { body.admin-bar .faq-hero { padding-top: 166px; } }
@media screen and (max-width: 600px) { body.admin-bar .faq-hero { padding-top: 120px; } }
.faq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #00d4aa;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}
.faq-eyebrow::before, .faq-eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1.5px;
    background: #00d4aa;
}
.faq-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.faq-hero h1 span {
    background: linear-gradient(135deg, #00d4aa, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.faq-hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
}
.faq-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.faq-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #00d4aa;
}
.faq-stat-pill span { color: #fff; font-weight: 700; }

/* ── Layout (sidebar + content) ─────────────── */
.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    align-items: start;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0,212,170,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 70%, rgba(245,158,11,0.04) 0%, transparent 50%);
}

/* ── Sidebar ─────────────────────────────────── */
.faq-sidebar {
    position: sticky;
    top: 108px;
}
.faq-sidebar-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748b;
    margin-bottom: 12px;
}
.faq-nav { display: flex; flex-direction: column; gap: 2px; }
.faq-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.faq-nav-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.05);
}
.faq-nav-link.active {
    color: #00d4aa;
    background: rgba(0,212,170,0.08);
    border-color: rgba(0,212,170,0.2);
    font-weight: 600;
}
.faq-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255,255,255,0.07);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}
.faq-nav-link.active .faq-nav-count {
    background: rgba(0,212,170,0.15);
    color: #00d4aa;
}
.faq-sidebar-divider {
    margin: 16px 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.faq-sidebar-cta {
    padding: 16px;
    background: rgba(0,212,170,0.06);
    border: 1px solid rgba(0,212,170,0.18);
    border-radius: 12px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    backdrop-filter: blur(4px);
}
.faq-sidebar-cta a {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Main content ────────────────────────────── */
.faq-main { min-width: 0; }

/* ── Category group ──────────────────────────── */
.faq-group {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}
.faq-group:last-child { margin-bottom: 0; }
.faq-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.faq-group-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.faq-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.faq-group-title-bar {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,212,170,0.3), transparent);
}

/* ── FAQ Item ────────────────────────────────── */
.faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    overflow: hidden;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item:hover {
    border-color: rgba(0,212,170,0.3);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.faq-item.open {
    border-color: rgba(0,212,170,0.45);
    background: rgba(26,34,52,0.9);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,212,170,0.12) inset;
}

/* Question button */
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.025rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.5;
    transition: color 0.2s;
}
.faq-q:hover { color: #fff; }
.faq-item.open .faq-q { color: #fff; }
.faq-q-text { flex: 1; }
.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    color: #64748b;
}
.faq-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-toggle {
    background: rgba(0,212,170,0.15);
    border-color: rgba(0,212,170,0.4);
    color: #00d4aa;
}
.faq-item.open .faq-toggle svg { transform: rotate(45deg); }

/* Answer panel */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-content {
    padding: 0 24px 24px 24px;
    border-top: 1px solid rgba(0,212,170,0.1);
    padding-top: 20px;
    border-left: 3px solid rgba(0,212,170,0.35);
    margin-left: 24px;
    margin-right: 8px;
    border-radius: 0 0 0 4px;
}
.faq-answer-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: #c8d6e5;
    margin-bottom: 14px;
}
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content ul {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-answer-content li {
    position: relative;
    padding-left: 22px;
    font-size: 1rem;
    line-height: 1.75;
    color: #c8d6e5;
}
.faq-answer-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4aa;
}
.faq-answer-content strong { color: #f1f5f9; font-weight: 600; }
.faq-answer-content a { color: #00d4aa; font-weight: 500; border-bottom: 1px solid rgba(0,212,170,0.3); }
.faq-answer-content a:hover { color: #00f5c4; border-bottom-color: #00f5c4; }

/* ── Bottom CTA ──────────────────────────────── */
.faq-cta {
    background: var(--color-navy-dark, #0f1829);
    border-top: 1px solid rgba(0,212,170,0.18);
    padding: 72px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.faq-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,212,170,0.09) 0%, transparent 60%);
    pointer-events: none;
}
.faq-cta-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.faq-cta h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.faq-cta p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 32px;
}
.faq-cta-btns { display: flex; flex-wrap: nowrap; justify-content: center; gap: 14px; }
.faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.faq-btn-primary {
    background: #00d4aa;
    color: #0a0e1a;
}
/* Override #faq-page a:not(.faq-btn) still needs this for any leakage */
#faq-page a.faq-btn-primary,
#faq-page a.faq-btn-primary:hover { color: #0a0e1a; }
.faq-btn-primary:hover {
    background: #00f5c4;
    color: #0a0e1a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,212,170,0.35);
}
.faq-btn-outline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
}
.faq-btn-outline:hover {
    border-color: rgba(0,212,170,0.4);
    color: #00d4aa;
    background: rgba(0,212,170,0.06);
}

/* ── Mobile tabs (replaces sidebar on small screens) ── */
.faq-mobile-tabs {
    display: none;
    overflow-x: auto;
    gap: 8px;
    padding: 14px 18px;
    background: var(--color-navy, #1a2744);
    border-bottom: 1px solid rgba(0,212,170,0.12);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.faq-mobile-tabs::-webkit-scrollbar { display: none; }
.faq-mobile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.faq-mobile-tab.active, .faq-mobile-tab:hover {
    color: #00d4aa;
    background: rgba(0,212,170,0.1);
    border-color: rgba(0,212,170,0.25);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 40px 20px 80px;
        background: none;
    }
    .faq-sidebar { display: none; }
    .faq-mobile-tabs { display: flex; }
    .faq-hero { padding: 100px 20px 60px; }
}
@media (max-width: 768px) {
    .faq-hero { padding: 94px 20px 56px; }
    .faq-layout { padding: 32px 16px 72px; }
    .faq-cta { padding: 56px 18px 64px; }
    .faq-cta h3 { font-size: 1.5rem; }
    .faq-cta-btns { flex-direction: column; align-items: stretch; gap: 12px; }
    .faq-btn { justify-content: center; width: 100%; }
    .faq-group { margin-bottom: 44px; }
    .faq-q { font-size: 0.97rem; padding: 18px 20px; }
}
@media (max-width: 600px) {
    .faq-hero { padding: 90px 18px 52px; }
    .faq-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .faq-hero p { font-size: 0.95rem; }
    .faq-q { font-size: 0.94rem; padding: 16px 16px; gap: 12px; }
    .faq-toggle { width: 28px; height: 28px; }
    .faq-answer-content {
        padding: 0 14px 18px;
        padding-top: 14px;
        margin-left: 16px;
        margin-right: 4px;
    }
    .faq-answer-content p, .faq-answer-content li { font-size: 0.92rem; }
    .faq-cta h3 { font-size: 1.4rem; }
    .faq-group-title { font-size: 1.05rem; }
    .faq-group-icon { width: 32px; height: 32px; font-size: 14px; }
    .faq-stat-pill { font-size: 12px; padding: 6px 12px; }
    .faq-cta { padding: 56px 18px 64px; }
}

/* Focus styles for accessibility */
.faq-q:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}
.faq-q:focus:not(:focus-visible) {
    outline: none;
}
