@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Refined */
    --primary-teal: #00D2D3;
    --primary-purple: #9B59B6;
    --accent-teal: #01BBC2;
    --accent-purple: #8E44AD;

    /* Semantic Colors */
    --bg-light: #FDFBFF;
    --bg-dark: #121212;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --white: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-teal), var(--primary-purple));
    --gradient-soft: linear-gradient(135deg, rgba(0, 210, 211, 0.1), rgba(155, 89, 182, 0.1));

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Shadows - Layered for depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-round: 50%;
}

/* Global resets removed to prevent theme conflict */

/* Body styles removed to prevent theme conflict */

.pm2026-hub h1,
.pm2026-hub h2,
.pm2026-hub h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.pm2026-hub p {
    margin-bottom: var(--space-md);
}

.pm2026-hub {
    padding-bottom: var(--space-xl);
    /* Adds breathing room below the pattern */
}

.pm2026-hub * {
    box-sizing: border-box;
}

.pm-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Sections */
.pm2026-hub section {
    padding: var(--space-xl) 0;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

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

.text-purple {
    color: var(--primary-purple);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ... existing code ... */

/* Navigation */
/* Nav styles removed to prevent theme conflict */

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

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-purple);
    text-decoration: none;
    letter-spacing: -1px;
}

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

/* Hero Section */
.pm-hub-hero {
    height: 95vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(155, 89, 182, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(0, 210, 211, 0.05), transparent),
        linear-gradient(to right, rgba(253, 251, 255, 0.98), rgba(253, 251, 255, 0.85)),
        url('hero_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.pm-hub-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: var(--gradient-primary);
    filter: blur(150px);
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    /* CRITICAL: Centers the content block */
    text-align: center;
}

.pm-hub-hero h1,
.pm-hero-title {
    font-size: 5rem !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -2px;
    text-align: center !important;
    color: var(--primary-purple) !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pm-hero-title span {
    font-size: inherit !important;
    color: var(--primary-teal) !important;
}

.has-text-align-center {
    text-align: center !important;
}

/* Values Grid */
/* Values Grid - Handle WP Group Inner Container */
.pm2026-hub .values-grid,
.pm2026-hub .values-grid>.wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: center;
    width: 100%;
}

/* Ensure direct children of grid (pillar cards) behave */
.pm2026-hub .values-grid>.pillar-card,
.pm2026-hub .values-grid>.wp-block-group__inner-container>.pillar-card {
    width: auto;
    max-width: none;
}

/* Fix for wpautop: Removed display:contents as we are now using native groups */
/* Fix for wpautop: Removed display:contents as we are now using native groups */
/* .pm2026-hub .values-grid > * rule removed as it was empty */

/* Ensure the card itself acts as the block if it's a direct child or nested */
.pm2026-hub .pillar-card {
    display: flex;
    /* Restore flex behavior for the card */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.6rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(155, 89, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(155, 89, 182, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 1px solid rgba(15, 12, 12, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 210, 211, 0.2);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: var(--space-sm);
}

/* Heritage Section */
.heritage {
    background: var(--white);
    position: relative;
}

.heritage-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.heritage-text h2 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.heritage-text h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.author-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(155, 89, 182, 0.2);
}

.author-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.author-info {
    padding: var(--space-md);
    background: var(--white);
    position: relative;
    z-index: 2;
}

.author-role {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.author-bio {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* Responsive */
@media (max-width: 1024px) {
    .pm-hub-hero h1 {
        font-size: 4rem;
    }

    .heritage-split {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .pm-hub-hero {
        height: auto;
        padding: var(--space-xl) 0;
    }

    .pm-hub-hero h1 {
        font-size: 3rem;
    }

    .pm-hub-hero p {
        font-size: 1.2rem;
    }

    .heritage-split {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: var(--space-lg) 0;
    }
}

/* Bridging 100 Specific Styles */

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: var(--space-md) auto;
    position: relative;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-left: 3.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.3), var(--shadow-lg);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-purple);
    font-size: 1.2rem;
}

/* Pillar Card (Extends Value Card) */
/* Pillar Card (Extends Value Card) */
.pm2026-hub .pillar-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.pm2026-hub .pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 210, 211, 0.2);
}

.pm2026-hub .pillar-card h3,
.pm2026-hub .pillar-card h3 a {
    color: var(--primary-purple) !important;
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
    text-decoration: none !important;
}

.pm2026-hub .pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    flex-grow: 1;
}

.pm2026-hub .pillar-link,
.pm2026-hub .pillar-link a {
    font-weight: 700;
    color: var(--primary-teal) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none !important;
}

/* Accordion */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    counter-reset: question-counter;
    /* Init counter */
}

details.accordion-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

details.accordion-item[open] {
    box-shadow: var(--shadow-md);
    border-color: rgba(155, 89, 182, 0.2);
}

summary.accordion-header {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    /* Hide default marker */
    position: relative;
    padding-right: 3rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

summary.accordion-header::before {
    counter-increment: question-counter;
    content: "Q" counter(question-counter) ". ";
    color: var(--primary-teal);
    font-weight: 800;
    margin-right: 0.5rem;
    min-width: 2.5rem;
    /* Ensure alignment */
}

summary.accordion-header::-webkit-details-marker {
    display: none;
}

summary.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-teal);
    transition: transform 0.3s ease;
    font-weight: 400;
}

details[open] summary.accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--primary-purple);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: -0.5rem;
    padding-top: 1rem;
}

.tldr-box {
    background: rgba(0, 210, 211, 0.1);
    border-left: 4px solid var(--primary-teal);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.tldr-label {
    font-weight: 800;
    color: var(--primary-teal);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

/* Sidebar Nav */
.sidebar {
    position: sticky;
    top: 6rem;
    /* Header height + spacing */
}

.sidebar-nav {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-nav h4 {
    color: var(--primary-purple);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: rgba(0, 210, 211, 0.1);
    color: var(--primary-teal);
    transform: translateX(5px);
}

/* Layouts */
.spoke-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
}

@media (max-width: 768px) {
    .spoke-layout {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .sidebar {
        position: static;
        /* Unstick on mobile */
        margin-bottom: var(--space-md);
    }
}

/* --- Mega Menu Styles --- */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(0, 210, 211, 0.1);
    color: var(--primary-purple);
}

.nav-link::after {
    content: '▾';
    font-size: 0.8em;
    opacity: 0.6;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Dropdown specific */
.nav-item.mega-rel {
    position: static;
    /* Allows mega menu to span width */
}

.dropdown-menu.mega {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 90vw;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.nav-item:hover .dropdown-menu.mega {
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-purple);
}

.dropdown-header {
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    color: var(--primary-teal);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-purple);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        display: none;
        /* JS to toggle */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu,
    .dropdown-menu.mega {
        position: static;
        width: 100%;
        max-width: none;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding-left: 1rem;
        display: none;
        /* Hide by default on mobile */
        grid-template-columns: 1fr;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }
}