/* ==========================================================================
   VIEWS (Page Specific Layouts)
   ========================================================================== */

/* ==========================================================================
   READING PROGRESS BAR (Article Enhancement)
   ========================================================================== */

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg,
            var(--world-primary),
            var(--world-primary-dark));
    z-index: 9999;
    transition: width 0.1s linear;
    will-change: width;
}


/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--world-soft-bg) 0%, var(--world-badge-bg) 100%);
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        text-align: center;
    }

    .hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__badge {
        justify-content: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        font-size: 1.125rem;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}


/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__subtitle {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-header__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header__description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

.section-header--center .section-header__description {
    margin-left: auto;
    margin-right: auto;
}

/* Featured Articles Grid */
.featured-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Articles Grid (Blog Page) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Newsletter CTA */
.newsletter-cta {
    margin: 0;
    padding: 4rem 0;
    background-color: var(--color-text-main);
    color: white;
    text-align: center;
}

.newsletter-cta__inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta__title {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-cta__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.newsletter-cta__form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-cta__form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.newsletter-cta__form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-cta__form .btn {
    border-radius: 99px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .newsletter-cta__form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
        gap: 1rem;
    }

    .newsletter-cta__form input[type="email"] {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-md);
        padding: 1rem;
    }

    .newsletter-cta__form .btn {
        width: 100%;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   TOOLS PAGE STYLES
   ========================================================================== */

/* Tools Hero */
.tools-hero {
    background-color: var(--color-bg-surface);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.tools-hero__title {
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tools-hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Tool Card */
.tool-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-light);
}

.tool-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    transition: background 0.3s, color 0.3s;
}

.tool-card:hover .tool-card__icon {
    background: var(--color-primary);
    color: white;
}

.tool-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
}

.tool-card__description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tool-card__badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--popular {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.tool-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, var(--color-bg-body) 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.about-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Content Container */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* About Sections */
.about-section {
    margin-bottom: 4rem;
}

.about-section__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.about-section__title {
    font-size: 2rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Principles List */
.principle-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.principle-list li {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.principle-list__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    margin-top: 2px;
}

.principle-list__content strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.principle-list__content {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Disclosure Boxes */
.disclosure-box {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.disclosure-box:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
}

.disclosure-box__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-main);
}

.disclosure-box__icon {
    color: var(--color-primary);
}

/* About CTA */
.about-cta {
    text-align: center;
    padding: 3rem;
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    margin-top: 4rem;
    border: 1px solid var(--color-border);
}

.about-cta__title {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
}

.about-cta__text {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Last Updated */
.last-updated {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.footer {
    background-color: #111827;
    /* Deepest Charcoal */
    color: #F3F4F6;
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer__logo-icon {
    background: var(--color-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.footer__tagline {
    color: #9CA3AF;
    /* Gray-400 */
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.footer__column-title {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: #D1D5DB;
    /* Gray-300 */
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

.footer__link:hover {
    color: var(--color-primary-light);
    padding-left: 4px;
    /* Subtle movement */
}

/* Footer Social Icons */
.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Footer Newsletter */
.footer__newsletter-text {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.footer__newsletter-form input:focus {
    border-color: var(--color-primary);
}

.footer__newsletter-form .btn {
    width: 100%;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6B7280;
    /* Gray-500 */
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal-link {
    color: #9CA3AF;
    transition: color 0.2s;
}

.footer__legal-link:hover {
    color: white;
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    .footer__brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer__brand {
        grid-column: span 1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
}

/* About Founder Flip */
.founder-flip {
    width: 120px;
    height: 120px;
    perspective: 1000px;
    cursor: pointer;
}

.founder-flip__inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip on class toggle (JS), NOT hover */
.founder-flip.is-flipped .founder-flip__inner {
    transform: rotateY(180deg);
}

/* Hover hint (Scale only) */
.founder-flip:hover .founder-flip__inner {
    transform: scale(1.05);
}

.founder-flip__face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.founder-flip__front {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

.founder-flip__back {
    background-color: white;
    color: var(--color-text-main);
    transform: rotateY(180deg);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC (Migrated from Inline)
   ========================================================================== */

/* Hero Responsive */
.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

/* 4 WORLDS SECTION – tighten vertical rhythm */
#start-learning.section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Duplicate removed - kept later version at line ~1540 */



/* Popular Article Section */
.popular-article-grid {
    display: grid;
    gap: 2rem;
}

.popular-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 600px) {
    .popular-stats {
        gap: 2rem;
    }
}

/* 
   LONG TERM RESPONSIVE UTILITIES 
   Specific for Homepage 
*/

/* Hero Sections */
.hero__badge {
    background: #14B8A6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero__description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 1.5rem 0 2.5rem;
    max-width: 540px;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    /* Mobile First: Stack buttons */
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .hero__cta {
        flex-direction: row;
        align-items: center;
    }
}

.hero__trust-signals {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.trust-signal-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Founder Story Section (Refactored from About Preview) */
.founder-story {
    margin-top: 0;
    padding: 3rem 0;
}

.founder-story__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

@media (min-width: 900px) {
    .founder-story__inner {
        display: grid;
        grid-template-columns: auto 1fr;
        /* Flip card automatic width, content takes rest */
        gap: 4rem;
        text-align: left;
        align-items: center;
    }
}

.founder-story__content {
    flex: 1;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--color-primary-light);
}

@media (max-width: 899px) {
    .founder-story__content {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--color-primary-light);
        padding-top: 2rem;
    }
}

.founder-story__content .btn {
    margin-top: 1rem;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Common Section Spacing */
.mb-lg {
    margin-bottom: 1.5rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

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

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Transparency Section */
.transparency-commitments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-secondary);
}

/* 
   MONEY EVOLUTION WIDGET 
   (Migrated from Inline) 
   Enhanced with smoother shadows and transitions
*/
.money-evolution {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.15);
    animation: floatIn 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: none;
    /* Hidden on Mobile */
}

@media (min-width: 900px) {
    .money-evolution {
        display: block;
        /* Visible on Desktop */
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evolution-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.evolution-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.evolution-stage {
    text-align: center;
    opacity: 0;
    animation: stageAppear 0.6s ease-out forwards;
    animation-delay: var(--delay);
    transition: transform 0.3s ease;
}

@keyframes stageAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.evolution-stage:hover {
    transform: translateY(-8px) scale(1.05);
}

.stage-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.evolution-stage:hover .stage-icon {
    filter: grayscale(0);
    transform: rotate(10deg) scale(1.1);
}

.evolution-stage--current .stage-icon {
    filter: grayscale(0);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.stage-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.stage-year {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.evolution-stage--current .stage-label {
    color: var(--color-primary);
    font-weight: 700;
}

.evolution-arrow {
    font-size: 1.5rem;
    color: #CBD5E1;
    font-weight: bold;
    opacity: 0;
    animation: arrowFade 0.4s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes arrowFade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .evolution-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .evolution-arrow {
        transform: rotate(90deg);
    }

    .money-evolution {
        padding: 2rem 1.5rem;
    }
}

/* 
   POPULAR ARTICLE SECTION 
   (Migrated from Inline) 
*/
.popular-section {
    background: linear-gradient(135deg, var(--world-primary-dark) 0%, var(--world-primary) 100%);
    color: white;
    padding-top: 3rem;
    padding-bottom: 0rem;
    /* Proper spacing matching hero rhythm */
}

.popular-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.popular-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .popular-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .popular-title {
        font-size: 1.75rem;
    }
}

.popular-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
    .popular-description {
        font-size: 1.125rem;
    }
}

.popular-btn {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 9px;
    /* Pill shape is better for mobile touch targets */
    display: inline-flex;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-btn:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

/* Contact Hero (Aligned with About Page) */
.contact-hero {
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, var(--color-bg-body) 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.contact-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

/* Contact Info Side */
.contact-info {
    padding-right: 2rem;
}

.contact-info__item {
    margin-bottom: 2.5rem;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light-alpha, rgba(13, 148, 136, 0.1));
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-info__label {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.contact-info__text {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-info__link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-info__link:hover {
    text-decoration: underline;
}

/* Contact Form Side */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface);
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light-alpha, rgba(13, 148, 136, 0.1));
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, var(--color-bg-body) 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.blog-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.blog-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blog-hero__description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.blog-trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-trust__icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

/* Category Filters */
.category-filter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 70px;
    z-index: 90;
    display: flex;
    align-items: center;
}

.category-filter-container {
    position: relative;
    width: 100%;
}

.category-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 0.25rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Scroll Shadows */
.category-filter-section::before,
.category-filter-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-filter-section::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
    opacity: 0;
}

.category-filter-section.is-scrolled-left::before {
    opacity: 1;
}

.category-filter-section::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
    opacity: 1;
}

.category-filter-section.is-scrolled-right::after {
    opacity: 1;
}

.category-filter-section:not(.is-scrolled-right)::after {
    opacity: 0;
}

@media (min-width: 901px) {

    .category-filter-section::before,
    .category-filter-section::after {
        display: none;
    }
}

.category-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

@media (min-width: 901px) {
    .category-list {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.category-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill--active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3) !important;
}

.category-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.category-pill--active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Homepage Worlds Grid */
.worlds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.world-card {
    padding: 3rem 2.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 440px;
    position: relative;
    overflow: hidden;
}

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

    .world-card {
        min-height: 180px;
        aspect-ratio: 1 / 1;
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .world-card__title {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .world-card__tagline {
        font-size: 0.75rem;
        margin-bottom: 0;
        opacity: 0.9;
    }

    /* Hide detailed info in Ludo mode to maintain grid symmetry */
    .world-card__description,
    .world-card__stats,
    .world-card__cta {
        display: none !important;
    }

    /* Add a subtle indicator that it's clickable */
    .world-card::after {
        content: '→';
        position: absolute;
        bottom: 0.75rem;
        right: 0.75rem;
        font-size: 1rem;
        opacity: 0.6;
    }
}

.world-card:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

.world-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.world-card:hover::after {
    opacity: 1;
}

.world-card__content {
    position: relative;
    z-index: 5;
}

.world-card__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    font-family: var(--font-display);
}

.world-card__tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.world-card__description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.popular-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.popular-stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
}

.popular-stat-item svg {
    color: inherit;
}

.world-card__stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    margin-bottom: 2rem;
}

.world-card__stat-item {
    text-align: left;
}

.world-card__stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    display: block;
}

.world-card__stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.world-card__cta {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: gap 0.3s ease;
}

.world-card:hover .world-card__cta {
    gap: 1rem;
    opacity: 1;
}

/* Blog Results Header */
.results-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#results-count {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* Articles Grid */
.articles-section {
    padding: 4rem 0;
    background: var(--color-bg-surface);
    min-height: 400px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem 2rem;
}

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

/* Article Card */
.article-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

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

.article-card__decor-line {
    height: 4px;
    background: var(--color-primary);
}

.article-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 99px;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card__excerpt {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ==========================================================================
   WORLD PAGES STYLES (World 1, 2, 3, 4)
   ========================================================================== */

/* World Hero Section */
.world-hero {
    background: linear-gradient(135deg, var(--world-primary-dark) 10%, var(--world-primary) 90%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
}

.world-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.world-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.world-hero__tagline {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
    font-style: italic;
}

.world-hero__description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.world-hero__stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.world-stat__number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.world-stat__label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Learning Path / Category Cards */
.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.path-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--world-primary), var(--world-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.path-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--world-primary);
}

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

.path-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.path-card__icon {
    width: 64px;
    height: 64px;
    background: var(--world-soft-bg);
    color: var(--world-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.path-card__icon svg {
    width: 32px;
    height: 32px;
}

.path-card__badge {
    background: var(--world-badge-bg);
    color: var(--world-badge-text);
    padding: 0.375rem 0.875rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.path-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.path-card__description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.path-card__cta {
    color: var(--world-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    font-size: 1rem;
}

.path-card:hover .path-card__cta {
    gap: 0.875rem;
}

/* Featured Article Compact */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card-feat {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card-feat:hover {
    border-color: var(--world-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-card-feat__badge {
    display: inline-block;
    background: var(--world-badge-bg);
    color: var(--world-badge-text);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-card-feat__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card-feat__description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-card-feat__meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.article-card-feat__cta {
    margin-top: 1rem;
    color: var(--world-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .world-hero__stats {
        gap: 2rem;
    }

    .world-stat__number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SCAM RISK CHECKER STATES (Refactor conformance)
   ========================================================================== */

/* Dynamic Width via Variable (Removes inline style violation) */
#risk-fill {
    width: var(--risk-percent, 0%) !important;
}

/* State Colors */
.risk-state--safe #risk-fill {
    background-color: #10B981;
}

.risk-state--low #risk-fill {
    background-color: #3B82F6;
}

.risk-state--warning #risk-fill {
    background-color: var(--color-accent);
}

.risk-state--danger #risk-fill {
    background-color: #EF4444;
}

.text-state--safe {
    color: #10B981;
}

.text-state--low {
    color: #3B82F6;
}

.text-state--warning {
    color: var(--color-accent);
}

.text-state--danger {
    color: #EF4444;
}

/* ==========================================================================
   CALCULATOR UI (Professional Tool Interface)
   ========================================================================== */

.tool-interface {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .tool-interface {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

/* ⬅️ SIDEBAR (Inputs) */
.tool-sidebar {
    position: sticky;
    top: 90px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

@media (max-width: 900px) {
    .tool-sidebar {
        position: relative;
        top: 0;
        z-index: 1;
    }
}

.tool-sidebar__title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-sidebar__title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Input Groups */
.tool-input-group {
    margin-bottom: 2rem;
}

.tool-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.tool-input-controls {
    display: flex;
    align-items: center;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    transition: all 0.2s;
}

.tool-input-controls:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.currency-symbol {
    color: var(--color-text-muted);
    font-weight: 500;
}

.tool-input-field {
    border: none;
    background: transparent;
    padding: 0.875rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-main);
    width: 100%;
    outline: none;
    font-family: var(--font-display);
}

.tool-input-range {
    width: 100%;
    margin-top: 1rem;
    accent-color: var(--color-primary);
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    appearance: none;
}

.tool-input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.tool-input-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Chips for Preset Selection */
.tool-chips {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ➡️ MAIN CONTENT */
.tool-header {
    margin-bottom: 2.5rem;
}

.tool-header__title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.tool-header__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Result Card (The Hero) */
.result-card {
    background: linear-gradient(135deg, var(--world-primary-dark) 0%, var(--world-primary) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
    position: relative;
    overflow: hidden;
}

/* Bubble decoration removed - now handled by Layer-1 .colored-surface */


.result-card__label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-card__value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    gap: 1rem;
}

.result-stat__label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.result-stat__value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Insight Banner */
.insight-banner {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    color: #92400E;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chart Section */
.chart-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-container {
    height: 350px;
    width: 100%;
}

/* Interactive Toggle */
.toggle-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-control input {
    display: none;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: var(--color-border);
    border-radius: 99px;
    position: relative;
    transition: background 0.2s;
}

.toggle-control input:checked+.toggle-track {
    background: var(--color-primary);
}

.toggle-track::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-control input:checked+.toggle-track::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* Related Content */
.tool-related {
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;

}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-main);
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.related-card .icon {
    font-size: 1.5rem;
}

/* Education Cards */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.edu-card {
    background: var(--color-bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.edu-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.edu-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .result-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .chart-container {
        height: 250px;
    }

    .tool-header__title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   HERO SYSTEM UNIFICATION  
   ========================================================================== */

/* Base Hero Structure - all heroes share padding and layout */
.hero,
.about-hero,
.blog-hero,
.tools-hero,
.contact-hero,
.world-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

/* Neutral Heroes - use subtle neutral gradients */
.about-hero,
.blog-hero,
.tools-hero,
.contact-hero {
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, var(--color-bg-body) 100%);
}

/* World Hero - ONLY this uses world colors */
.world-hero {
    background: linear-gradient(135deg, var(--world-primary-dark) 0%, var(--world-primary) 100%);
    color: white;
}

/* Homepage Hero - uses world soft bg (adapts to world context) */
.hero {
    background: linear-gradient(135deg, var(--world-soft-bg) 0%, var(--world-badge-bg) 100%);
}

@media (max-width: 768px) {

    .hero,
    .about-hero,
    .blog-hero,
    .world-hero,
    .tools-hero,
    .contact-hero {
        padding: 4rem 0;
        text-align: center;
    }
}

/* ==========================================================================
   VISUAL TRANSITION BRIDGES
   ========================================================================== */

/* Smooth section-to-footer bridge - eliminates white gaps */
.section-to-footer-bridge {
    background: linear-gradient(to bottom,
            var(--color-bg-surface) 0%,
            var(--color-bg-body) 100%);
    padding: 2rem 0;
    margin-bottom: 0;
}

/* World-color to neutral bridge - for colored sections transitioning to white */
.world-to-neutral-bridge {
    background: linear-gradient(to bottom,
            var(--world-soft-bg) 0%,
            var(--color-bg-body) 50%,
            var(--color-bg-body) 100%);
    padding: 3rem 0 0 0;
    margin-bottom: 0;
}

/* Colored section to footer - smooth handoff */
.colored-to-footer-bridge {
    background: linear-gradient(to bottom,
            var(--world-badge-bg) 0%,
            var(--color-bg-surface) 50%,
            var(--color-bg-body) 100%);
    padding: 2.5rem 0;
    margin-bottom: 0;
}

/* Tool interface visual consistency helper */
.tool-interface {
    background-color: var(--color-bg-body);
}

.tool-interface .tool-sidebar,
.tool-interface .tool-main {
    background-color: var(--color-bg-body);
}

/* World Card Modifiers (Homepage) - Removes inline styles */
.world-card--personal {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
}

.world-card--business {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.world-card--macro {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
}

.world-card--dark {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

/* Card Image Placeholders */
.card__image--placeholder {
    background-color: #1e3a5f;
}

/* Mobile Hero Fixes */
@media (max-width: 768px) {

    /* Prevent tool hero from pushing header */
    .tools-hero {
        padding-top: 3rem;
    }
}

/* ==========================================================================
   ARTICLE LAYOUT (Added to fix missing grid class)
   ========================================================================== */

.grid--content-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
    overflow: visible;
    /* Safari sticky fix */
}



/* ==========================================================================
   SIDEBAR & NAVIGATION (Polished)
   ========================================================================== */

/* Layout (Migrated from inline) */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

@media (min-width: 1024px) {
    .article-sidebar {
        position: sticky;
        top: 90px;
        /* Aligned with tool sidebar */
        height: fit-content;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

/* Visual Polish (New "Premium" Look) */
.sidebar-widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.sidebar-widget__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

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

.sidebar-widget__list li {
    margin-bottom: 0.25rem;
}

.sidebar-widget__list a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    display: block;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sidebar-widget__list a:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-surface);
    padding-left: 1rem;
}

/* ScrollSpy Active State */
.sidebar-widget__list a.is-active {
    border-left-color: var(--color-primary);
    color: var(--color-heading);
    font-weight: 600;
    background: linear-gradient(to right, var(--color-bg-surface-secondary), transparent);
    padding-left: 1rem;
}

/* ==========================================================================
   ARTICLE ENHANCEMENTS (Key Takeaways, Callouts, Meta)
   ========================================================================== */

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Hero Image Fix - 16:9 Aspect Ratio */
.article-hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    background-color: var(--color-bg-surface-secondary);
}

.callout-box,
.key-takeaways {
    background-color: var(--color-surface-sunken);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.key-takeaways {
    background-color: var(--color-bg-surface-secondary);
    /* Use var for theme support */
    border-left-color: var(--color-success);
}

.callout-box h4,
.key-takeaways h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.callout-box h4::before {
    content: "💡";
}

.key-takeaways h4::before {
    content: "🔑";
}

/* ==========================================================================
   ARTICLE CONTENT TYPOGRAPHY & SPACING (Desktop)
   ========================================================================== */

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-content .lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ==========================================================================
   COMPARISON TABLE STYLES
   ========================================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table thead {
    background-color: var(--world-primary);
    color: white;
}

.comparison-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: var(--color-bg-surface-secondary);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1rem;
    vertical-align: top;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
}

/* Mobile Table Responsiveness */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table thead th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .comparison-table td:first-child {
        white-space: normal;
    }
}

/* ==========================================================================
   ARTICLE MOBILE NORMALIZATION (Enhanced Layer-1)
   Ensures consistent mobile reading experience across all articles
   ========================================================================== */

@media (max-width: 768px) {

    /* STEP 1: Force Single Column Layout */
    .grid--content-sidebar {
        display: block;
    }

    /* STEP 1.5: Horizontal Safe Area (NYTimes/Apple Rule) */
    .article-column {
        max-width: 100%;
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
    }

    /* STEP 2: Optimize Article Header Typography */
    .article-header__title {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .article-meta {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .article-hero-image {
        width: 100%;
        border-radius: 12px;
        margin: 1.25rem 0 1.5rem;
    }

    /* STEP 3: Improve Content Reading Flow */
    .article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    /* STEP 4: Hide Sidebar Completely on Mobile */
    .article-sidebar {
        display: none;
    }

    .sidebar-widget {
        margin-bottom: 1.5rem;
    }

    .sidebar-widget__title {
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    /* STEP 5: Editorial Rhythm for Headings */
    .article-content h2 {
        font-size: 1.4rem;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }

    .article-content p {
        margin-bottom: 1.25rem;
    }

    /* STEP 6: Optimize Callouts */
    .callout-box,
    .key-takeaways {
        padding: 1.25rem;
        margin: 1.5rem 0;
        font-size: 0.9375rem;
    }

    .callout-box h4,
    .key-takeaways h4 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container.section {
        padding-left: 0;
        padding-right: 0;
    }

    .article-column {
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
    }
}

/* ==========================================================================
   MOBILE TOC SYSTEM (Slide-up Panel)
   ========================================================================== */

.mobile-toc-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: var(--world-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: none;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-toc-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-toc-toggle {
        display: flex;
    }
}

.mobile-toc-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1001;
    max-height: 80vh;
    padding: 2rem 1.5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-toc-panel.is-active {
    transform: translateY(0);
}

.mobile-toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-toc-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.mobile-toc-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.mobile-toc-content {
    overflow-y: auto;
    flex: 1;
}

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

.mobile-toc-item a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-bg-surface);
}

.mobile-toc-item a:active {
    color: var(--world-primary);
}