/*
Theme Name: Technologie AI
Theme URI: https://technologie-ai.pl/
Author: Maciej Pieniak
Description: Dark mode Block Theme for Technologie AI: AI, etyka AI, transformacja cyfrowa i automatyzacja.
Version: 1.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: technologie-ai
*/


:root {
    --bg-dark: #050D0A;
    --bg-main: var(--bg-dark);
    --text-main: #FFFFFF;
    --text-muted: #8A8F98;
    --accent-primary: #10B981;
    --accent-primary-hover: #059669;
    --accent-cyan: var(--accent-primary);
    --accent-cyan-hover: var(--accent-primary-hover);
    --accent-highlight: rgba(16, 185, 129, 0.2);
    
    --card-bg: #0C1410;
    --card-bg-secondary: #11131A;
    --card-border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-main);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: white;
    text-decoration: none;
}
.site-logo svg {
    color: var(--accent-primary);
}

/* Native Navigation Block Styling */
.wp-block-navigation-item__content {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}
.wp-block-navigation-item__content:hover {
    color: var(--accent-cyan) !important;
}

/* Mobile Overlay Glassmorphism */
.wp-block-navigation__responsive-container.is-menu-open {
    background: rgba(11, 15, 25, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
    color: white !important;
}
.wp-block-navigation__responsive-container .wp-block-navigation__container {
    gap: 1.5rem !important;
    padding: 2rem !important;
}
/* Layout */
hr.custom-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem auto;
    width: 50%;
    height: 1px;
}
.hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-section > .wp-block-group {
    flex: 1 1 450px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 140%;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

/* Left Side - Typography */
.top-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}
.top-tag .dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem 0;
    color: #FFFFFF;
}
.hero-heading em {
    font-family: var(--font-heading);
    font-style: italic;
    color: #A1A1AA;
    font-weight: 400;
}
.hero-heading .highlight {
    position: relative;
    display: inline-block;
    color: #FFFFFF;
}
.hero-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--accent-highlight);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
a.btn, button.btn {
    padding: 0.875rem 1.5rem;
}
.btn a.wp-block-button__link,
.btn-primary .wp-block-button__link,
.btn-secondary .wp-block-button__link {
    padding: 0.875rem 1.5rem;
    background: transparent !important;
    color: inherit !important;
    border-radius: inherit;
    width: 100%;
    text-decoration: none;
}
.btn-primary {
    background-color: rgba(16, 185, 129, 0.1);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.btn-primary:hover {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    margin-bottom: 3rem;
    display: inline-block;
}

/* Author block */
.hero-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}
.author-info {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}
.author-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Right Side - Interactive Card */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.card-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.score-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.score-number span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.tier-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
}
.tier-badge .icon {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.tier-badge .label {
    font-size: 0.75rem;
    font-weight: 600;
}

.card-description {
    font-size: 0.9375rem;
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Progress Bars */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 500;
}
.label-weak {
    color: #F87171;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Info Box */
.info-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
}
.info-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.info-text {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.info-link {
    font-size: 0.875rem;
    color: var(--accent-primary);
    text-decoration: none;
}
.info-link:hover {
    text-decoration: underline;
}

/* Partner Bar */
.partner-bar-section {
    max-width: 1300px;
    margin: 1.5rem auto 4rem;
    padding: 0 3rem;
}
.partner-bar {
    display: flex;
    background-color: #0C1410;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(16, 185, 129, 0.1) inset;
    overflow: hidden;
}
.partner-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: transparent;
}
.partner-item:hover {
    color: white;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.partner-item:last-child {
    border-right: none;
}
@media (max-width: 768px) {
    .partner-bar {
        flex-direction: column;
    }
    .partner-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem;
    }
    .partner-item:last-child {
        border-bottom: none;
    }
}

/* Feature Sections */
.feature-section {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1300px;
    margin: 8rem auto;
    padding: 0 3rem;
    align-items: center;
}
.feature-section > .wp-block-group {
    flex: 1 1 450px;
}
.feature-section.reversed {
    direction: rtl;
}
.feature-section.reversed > * {
    direction: ltr;
}
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--accent-primary);
}
.feature-heading {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    color: white;
}
.feature-heading strong {
    font-weight: 800;
}
.feature-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 450px;
}

/* Code Window */
.code-window {
    background: var(--card-bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
}
.window-header {
    background: #181B26;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dots {
    display: flex;
    gap: 8px;
}
.dot-red { width: 12px; height: 12px; border-radius: 50%; background: #FF5F56; }
.dot-yellow { width: 12px; height: 12px; border-radius: 50%; background: #FFBD2E; }
.dot-green { width: 12px; height: 12px; border-radius: 50%; background: #27C93F; }
.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}
.window-body {
    padding: 2rem;
    overflow-x: auto;
}
.window-body pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #D4D4D4;
}
.window-body .comment { color: #6A9955; font-style: italic; }
.window-body .keyword { color: #569CD6; }
.window-body .string { color: #CE9178; }

/* Grid Section */
.grid-section {
    max-width: 1300px;
    margin: 8rem auto;
    padding: 0 3rem;
}
.grid-header {
    max-width: 800px;
    margin-bottom: 4rem;
}
.grid-heading {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem 0;
    color: white;
}
.highlight-purple {
    color: var(--accent-primary);
}
.grid-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.grid-card {
    background: var(--card-bg-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}
.grid-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: #151821;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.icon-box-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    color: var(--accent-primary);
}
.card-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.25);
    line-height: 1;
}
.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
}
.card-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Scroll Animations */
body.js-enabled .fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}
.fade-in-on-scroll {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
body.js-enabled .fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    padding: 6rem 3rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    max-width: 1300px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-top > .wp-block-group {
    flex: 1 1 150px;
}
.footer-top > .footer-brand {
    flex: 3 1 300px;
}
.footer-brand {
    padding-right: 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.footer-logo svg {
    color: var(--accent-primary);
}
.footer-desc {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.footer-socials {
    display: flex;
    gap: 1.25rem;
}
.footer-socials a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.footer-socials a:hover {
    color: white;
}
.footer-col-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
}
.footer-legal-text {
    line-height: 1.8;
}
.footer-legal-text span {
    display: block;
    color: rgba(255,255,255,0.4);
}
.footer-bottom-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.lang-select {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
}
.lang-select:hover {
    border-color: rgba(255,255,255,0.2);
}
/* Single Post Styles */
.post-container {
    max-width: 800px;
    margin: 6rem auto 4rem;
    padding: 0 2rem;
}
.post-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--accent-primary-hover);
    margin-bottom: 1.5rem;
}
.post-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 3rem;
    align-items: center;
    gap: 1rem;
}
.post-featured-image {
    margin-bottom: 4rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}
.post-content-wrapper {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #D1D5DB;
}
.post-content-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.02em;
}
.post-content-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 2.5rem 0 1rem;
}
.post-content-wrapper p {
    margin-bottom: 1.5rem;
}
.post-content-wrapper a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: rgba(16, 185, 129, 0.3);
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}
.post-content-wrapper a:hover {
    text-decoration-color: var(--accent-primary);
}
.post-content-wrapper blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2.5rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: white;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}
.post-tags {
    margin-top: 4rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.post-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 100px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.post-tags a:hover {
    background: var(--accent-primary);
    color: white;
}
/* Editorial Components */
.editorial-callout {
    position: relative;
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 3rem 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
}
.editorial-callout::before {
    content: 'WNIOSKI';
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.editorial-callout p, .editorial-callout h1, .editorial-callout h2, .editorial-callout h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: white !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

.editorial-timeline {
    position: relative;
    margin: 4rem 0;
    gap: 0 !important; 
}
.editorial-timeline .wp-block-column:first-child {
    flex-basis: 120px !important;
    flex-grow: 0 !important;
    position: relative;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.editorial-timeline .wp-block-column:first-child::after {
    content: '';
    position: absolute;
    right: -4.5px;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}
.editorial-timeline .wp-block-column:first-child p,
.editorial-timeline .wp-block-column:first-child h1,
.editorial-timeline .wp-block-column:first-child h2,
.editorial-timeline .wp-block-column:first-child h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: right;
    margin: 0;
    line-height: 1;
}
.editorial-timeline .wp-block-column:last-child {
    padding-left: 2rem;
}

.editorial-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}
.editorial-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.editorial-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}
.editorial-list li strong {
    color: white;
    font-weight: 700;
}

/* Latest Posts Section */
.latest-posts-section {
    max-width: 1300px;
    margin: 4rem auto 6rem;
    padding: 0 3rem;
}

.latest-posts-section .section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

/*
 * WordPress Query Loop renders the visible posts inside .wp-block-post-template.
 * The class "posts-grid" is attached to the outer .wp-block-query wrapper,
 * so the grid must be applied to the inner post template list, not only to the wrapper.
 */
.latest-posts-section .wp-block-query.posts-grid,
.latest-posts-section .posts-grid {
    display: block !important;
    width: 100%;
}

.latest-posts-section .wp-block-query.posts-grid > .wp-block-post-template,
.latest-posts-section .posts-grid > .wp-block-post-template,
.latest-posts-section ul.wp-block-post-template,
.latest-posts-section .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.latest-posts-section .wp-block-post-template > li,
.latest-posts-section .wp-block-post-template > .wp-block-post {
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    list-style: none !important;
}

.latest-posts-section .post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.latest-posts-section .post-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.latest-posts-section .post-card-img img,
.latest-posts-section .post-card-img .wp-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.latest-posts-section .post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.latest-posts-section .post-card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.latest-posts-section .post-card-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

.latest-posts-section .post-card-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-posts-section .post-card-title a:hover {
    color: var(--accent-primary);
}

.latest-posts-section .post-card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.latest-posts-section .post-card-excerpt a.wp-block-post-excerpt__more-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-header {
        padding: 0.75rem 2rem;
    }

    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        padding: 5rem 2rem;
    }

    .hero-section > .wp-block-group,
    .feature-section > .wp-block-group {
        flex: 1 1 auto;
        width: 100%;
    }

    .hero-heading {
        font-size: 4rem;
    }

    .feature-section,
    .feature-section.reversed {
        flex-direction: column;
        direction: ltr;
        gap: 3rem;
        margin: 6rem auto;
        padding: 0 2rem;
    }

    .feature-heading {
        font-size: 3.25rem;
    }

    .grid-section,
    .latest-posts-section,
    .partner-bar-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .grid-heading {
        font-size: 3.75rem;
    }

    .cards-grid,
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1.25rem;
    }

    .hero-section {
        padding: 4rem 1.25rem;
    }

    .hero-heading {
        font-size: 3.25rem;
    }

    .hero-subtitle,
    .feature-text,
    .grid-subtitle {
        font-size: 1rem;
    }

    .premium-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .score-header {
        align-items: flex-start;
        gap: 1rem;
    }

    .score-number {
        font-size: 2.5rem;
    }

    .partner-bar {
        flex-direction: column;
    }

    .partner-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.25rem;
    }

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

    .cards-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .grid-card {
        padding: 2rem;
    }

    .feature-heading,
    .grid-heading {
        font-size: 2.75rem;
    }

    .post-title {
        font-size: 2.5rem;
    }

    .post-container {
        margin-top: 4rem;
        padding: 0 1.25rem;
    }

    .editorial-timeline {
        display: block !important;
    }

    .editorial-timeline .wp-block-column:first-child {
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .editorial-timeline .wp-block-column:first-child::after {
        left: -4.5px;
        right: auto;
    }

    .editorial-timeline .wp-block-column:first-child p,
    .editorial-timeline .wp-block-column:first-child h1,
    .editorial-timeline .wp-block-column:first-child h2,
    .editorial-timeline .wp-block-column:first-child h3 {
        text-align: left;
    }

    .editorial-timeline .wp-block-column:last-child {
        padding-left: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .site-logo {
        font-size: 1.1rem;
    }

    .hero-heading {
        font-size: 2.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn a.wp-block-button__link,
    .btn-primary .wp-block-button__link,
    .btn-secondary .wp-block-button__link {
        width: 100%;
    }

    .score-header {
        flex-direction: column;
    }

    .window-body {
        padding: 1.25rem;
    }

    .footer-top {
        gap: 2rem;
    }

    .site-footer {
        padding: 4rem 1.25rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    body.js-enabled .fade-in-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Internal link styling for topic bars and cards */
.partner-item a,
.card-title a {
    color: inherit;
    text-decoration: none;
}

.partner-item a:hover,
.card-title a:hover {
    color: var(--accent-primary);
}


/* Latest posts responsive grid overrides */
@media (max-width: 1024px) {
    .latest-posts-section .wp-block-query.posts-grid > .wp-block-post-template,
    .latest-posts-section .posts-grid > .wp-block-post-template,
    .latest-posts-section ul.wp-block-post-template,
    .latest-posts-section .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .latest-posts-section .wp-block-query.posts-grid > .wp-block-post-template,
    .latest-posts-section .posts-grid > .wp-block-post-template,
    .latest-posts-section ul.wp-block-post-template,
    .latest-posts-section .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

