/* ==========================================================================
   Personality Scanner Theme - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Root
   -------------------------------------------------------------------------- */
:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #99F6E4;
    --primary-bg: #F0FDFA;
    --secondary: #00C9A7;
    --dark: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    --transition: all .3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Container
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container-narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    gap: 8px;
    line-height: 1;
}

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

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Hero button variants for dark teal background */
.hero .btn-primary {
    background-color: var(--white);
    color: var(--primary);
}

.hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    height: 72px;
    transition: box-shadow .3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

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

.nav-menu {
    list-style: none !important;
    display: flex !important;
    gap: 32px;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li a {
    color: var(--gray);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

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

.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--primary);
}

.header-cta {
    margin-left: 16px;
}

a.btn.btn-primary.header-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
    display: block;
}

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

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

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

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--card-color, var(--primary)) 0%, var(--card-color-dark, var(--primary-dark)) 50%, var(--card-color-darker, #065F56) 100%);
    color: var(--white);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-avatars {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar:not(:first-child) {
    margin-left: -8px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--white);
}

.trust-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    width: 300px;
}

.hero-card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-card-text {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.hero-card-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   8. Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
    padding: 60px 0;
    background-color: var(--light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Tests Section
   -------------------------------------------------------------------------- */
.tests-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 0;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.test-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--card-color, var(--primary));
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(var(--card-color-rgb, 108, 99, 255), 0.2);
}

.test-card-link {
    display: block;
    padding: 32px;
    text-decoration: none;
    color: var(--dark);
}

.test-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(var(--card-color-rgb, 108, 99, 255), 0.1);
    color: var(--card-color, var(--primary));
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.test-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--card-color-rgb, 108, 99, 255), 0.15);
    margin-bottom: 16px;
}

.test-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--card-color, var(--primary));
}

.test-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.test-card-excerpt {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.test-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
    align-items: center;
}

.test-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.test-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.test-card-cta {
    color: var(--card-color, var(--primary));
    font-weight: 600;
    font-size: 14px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   10. How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 16px;
}

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

.step-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Features Section
   -------------------------------------------------------------------------- */
.features-section {
    padding: 80px 0;
    background-color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Test Hero (Single Test Page)
   -------------------------------------------------------------------------- */
.test-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--card-color, var(--primary)) 0%, var(--card-color-dark, var(--primary-dark)) 50%, var(--card-color-darker, #065F56) 100%);
    color: var(--white);
}

.test-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.test-hero-content {
    flex: 1;
}

.test-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.test-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--white);
}

.test-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.test-meta-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.test-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.test-meta-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.test-hero-icon {
    flex-shrink: 0;
}

.icon-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* --------------------------------------------------------------------------
   13. Test Content Section
   -------------------------------------------------------------------------- */
.test-content-section {
    padding: 60px 0;
}

.test-content-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.test-main-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.test-main-content h2:first-child {
    margin-top: 0;
}

.test-main-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
}

.sidebar-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 92px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

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

.detail-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

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

.detail-list li strong {
    color: var(--dark);
    font-weight: 600;
}

.detail-list li span {
    color: var(--gray);
}

/* --------------------------------------------------------------------------
   14. Archive / Page Heroes
   -------------------------------------------------------------------------- */
.archive-hero,
.blog-hero,
.page-hero,
.post-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #065F56 100%);
    color: var(--white);
    text-align: center;
}

.archive-hero h1,
.blog-hero h1,
.page-hero h1,
.post-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--white);
}

.archive-hero p,
.blog-hero p,
.page-hero p,
.post-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.post-hero .post-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.post-hero .post-meta {
    color: rgba(255, 255, 255, 0.8);
}

.post-hero .post-meta svg {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   15. Blog Grid
   -------------------------------------------------------------------------- */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e2e8f0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

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

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.blog-card-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--gray);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card-content h2,
.blog-card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-content h2 a,
.blog-card-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-content h2 a:hover,
.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 8px;
}

/* --------------------------------------------------------------------------
   16. Single Post
   -------------------------------------------------------------------------- */
.post-featured-image {
    margin: 40px 0;
}

.post-featured-image img {
    border-radius: var(--radius);
    width: 100%;
}

.post-content {
    padding: 40px 0;
    line-height: 1.8;
    font-size: 17px;
}

.post-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: var(--light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.author-bio {
    display: flex;
    gap: 16px;
    padding: 32px;
    background-color: var(--light);
    border-radius: var(--radius);
    margin: 40px 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

.post-navigation {
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.post-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-nav-link {
    padding: 16px;
    background-color: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.post-nav-link:hover {
    background-color: #e2e8f0;
}

.post-nav-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
    display: block;
}

.post-nav-title {
    font-size: 15px;
    font-weight: 600;
    display: block;
}

.post-nav-link.next {
    text-align: right;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #065F56 100%);
    color: var(--white);
    text-align: center;
}

.footer-cta h2 {
    font-size: 36px;
    color: var(--white);
}

.footer-cta p {
    margin: 16px 0 32px;
    opacity: .9;
    font-size: 18px;
    color: var(--white);
}

.footer-cta .btn-primary {
    background-color: var(--white);
    color: var(--primary);
}

.footer-cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.footer-main {
    padding: 60px 0;
    background-color: var(--dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col .footer-site-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col .footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col p {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    background-color: #0F172A;
    color: #64748B;
    text-align: center;
    font-size: 14px;
}

.footer-bottom a {
    color: #94A3B8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   18. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .nav-links a,
.pagination .nav-links span {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination .nav-links a {
    background-color: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.pagination .nav-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.pagination .nav-links .current {
    background-color: var(--primary);
    color: var(--white);
}

.pagination .nav-links .dots {
    background: none;
    box-shadow: none;
    color: var(--gray);
}

/* --------------------------------------------------------------------------
   19. Related Tests & Related Posts
   -------------------------------------------------------------------------- */
.related-tests,
.related-posts {
    padding: 80px 0;
    background-color: var(--light);
}

.related-tests .section-header,
.related-posts .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-tests .section-header h2,
.related-posts .section-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.related-tests .section-header p,
.related-posts .section-header p {
    color: var(--gray);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   20. Animations
   -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

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

/* --------------------------------------------------------------------------
   21. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet / Small Desktop */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait / Mobile Landscape */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--white);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        padding: 20px;
        flex-direction: column;
        pointer-events: none;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        box-shadow: var(--shadow-lg);
        pointer-events: auto;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Grids */
    .tests-grid,
    .blog-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    /* Test Hero */
    .test-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .test-hero-icon {
        display: none;
    }

    .test-hero h1 {
        font-size: 32px;
    }

    .test-meta-row {
        justify-content: center;
    }

    /* Test Content */
    .test-content-section .container {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta h2 {
        font-size: 28px;
    }

    /* Post Nav */
    .post-nav-links {
        grid-template-columns: 1fr;
    }

    /* Author Bio */
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Archive / Page Heroes */
    .archive-hero h1,
    .blog-hero h1,
    .page-hero h1,
    .post-hero h1 {
        font-size: 32px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

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

    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .test-card-link {
        padding: 24px;
    }

    .blog-card-content {
        padding: 16px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .container-narrow {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}

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

.text-secondary {
    color: var(--secondary);
}

.text-gray {
    color: var(--gray);
}

.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;
}

/* --------------------------------------------------------------------------
   Start Test Button
   -------------------------------------------------------------------------- */
.start-test-btn {
    margin-top: 16px;
}

/* Sidebar Start Test button uses test's unique color */
.sidebar-card .btn-primary {
    background-color: var(--card-color, var(--primary));
}

.sidebar-card .btn-primary:hover {
    background-color: var(--card-color-dark, var(--primary-dark));
}

/* White primary button on dark test-hero */
.test-hero .btn-primary {
    background-color: var(--white);
    color: var(--card-color, var(--primary));
}

.test-hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.test-hero .test-meta-row svg {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Archive Tests Grid
   -------------------------------------------------------------------------- */
.archive-tests {
    padding: 60px 0;
}

.archive-tests .tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Blog Archive
   -------------------------------------------------------------------------- */
.blog-archive {
    padding: 60px 0;
}

/* --------------------------------------------------------------------------
   Default / Index Page
   -------------------------------------------------------------------------- */
.default-page {
    padding: 60px 0;
}

.entry {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.entry h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.entry h2 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.entry h2 a:hover {
    color: var(--primary);
}

.entry-meta {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Page Content
   -------------------------------------------------------------------------- */
.page-content {
    padding: 60px 0;
}

.page-content .entry-content {
    font-size: 17px;
    line-height: 1.8;
}

.page-content .entry-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.page-content .entry-content p {
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-404 {
    padding: 100px 0;
    text-align: center;
}

.error-404 .error-icon svg {
    width: 120px;
    height: 120px;
    color: var(--primary);
    margin-bottom: 24px;
}

.error-404 h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   WordPress Admin Bar Fix
   -------------------------------------------------------------------------- */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar body {
    padding-top: 104px;
}

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

    .admin-bar body {
        padding-top: 118px;
    }
}

/* --------------------------------------------------------------------------
   Custom Logo Support
   -------------------------------------------------------------------------- */
.site-logo .custom-logo {
    max-height: 40px;
    width: auto;
}

/* --------------------------------------------------------------------------
   Post Subtitle
   -------------------------------------------------------------------------- */
.post-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 0;
    margin-top: 8px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--gray);
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   Single Post Page
   -------------------------------------------------------------------------- */
.single-post {
    padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   Quiz / Results Display Toggle
   -------------------------------------------------------------------------- */
#quiz-container,
#results-container {
    display: none;
}

/* --------------------------------------------------------------------------
   Responsive: Archive Tests
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .archive-tests .tests-grid {
        grid-template-columns: 1fr;
    }
}
