/* Reset and base styles (tokens now in tokens.css) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--kg-text);
    background: var(--kg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation styles migrated to components/nav.css (legacy removed) */

/* Hero Section */
.hero {
    background: radial-gradient(1200px 600px at 20% -10%, rgba(244, 233, 155, 0.25), transparent 60%),
                radial-gradient(900px 500px at 90% 0%, rgba(45, 90, 39, 0.18), transparent 60%),
                linear-gradient(135deg, var(--kg-hero-start) 0%, var(--kg-hero-end) 100%);
    color: white;
    padding: 150px 0 110px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    /* subtle golden shimmer line */
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 900px);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--kg-gold), transparent);
    opacity: 0.7;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 760px; /* constrain line length for readability */
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-green) 100%);
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: transform var(--kg-transition), box-shadow var(--kg-transition), filter var(--kg-transition);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(212, 175, 55, 0.45);
    filter: brightness(1.05);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--kg-green);
}

.cta-button:focus-visible {
    outline: 3px solid var(--kg-gold-200);
    outline-offset: 3px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--kg-surface);
}

.about h2 {
    text-align: center;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--kg-green);
}

.about p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--kg-muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: var(--kg-radius-md);
    background-color: #f8fffe;
    box-shadow: var(--kg-shadow-sm);
    border: 1px solid var(--kg-border);
    transition: transform var(--kg-transition), box-shadow var(--kg-transition);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--kg-shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--kg-green);
}

.feature p {
    color: var(--kg-muted);
    margin: 0;
}

/* Topics Section */
.topics {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fffe 0%, #f1fbf8 100%);
}

.topics h2 {
    text-align: center;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: var(--kg-green);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.topic-card {
    background-color: var(--kg-surface);
    padding: 2rem;
    border-radius: var(--kg-radius-md);
    border: 1px solid var(--kg-border);
    box-shadow: var(--kg-shadow-sm);
    transition: transform var(--kg-transition), box-shadow var(--kg-transition);
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--kg-shadow-md);
}

.topic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--kg-green);
}

.topic-card p {
    color: var(--kg-muted);
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--kg-link);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--kg-transition);
}

.learn-more:hover {
    color: var(--kg-link-hover);
}

/* Topic resource styling */
.topic-resource {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8f5e8;
}

.topic-resource h4 {
    font-size: 1.1rem;
    color: #2d5a27;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resource-description {
    font-size: 0.9rem;
    color: var(--kg-muted);
    line-height: 1.5;
    margin-bottom: 1rem !important;
}

/* Guides Section */
.guides {
    padding: 100px 0;
    background-color: var(--kg-surface);
}

.guides h2 {
    text-align: center;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--kg-green);
}

.guides > .container > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--kg-muted);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guide-card {
    background-color: #f8fffe;
    padding: 2rem;
    border-radius: var(--kg-radius-md);
    border: 1px solid var(--kg-border);
    box-shadow: var(--kg-shadow-sm);
    transition: transform var(--kg-transition), box-shadow var(--kg-transition);
    text-align: center;
}

.guide-card.featured {
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-green) 100%);
    color: white;
    transform: scale(1.02);
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--kg-shadow-md);
}

.guide-card.featured:hover {
    transform: translateY(-5px) scale(1.02);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--kg-green);
}

.guide-card.featured h3 {
    color: white;
}

.guide-card p {
    color: var(--kg-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    hyphens: auto;
    word-wrap: break-word;
    max-width: 100%;
}

.guide-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.guide-meta span {
    background-color: #e8f5e8;
    color: var(--kg-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.guide-card.featured .guide-meta span {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.guide-status {
    background-color: #ffeaa7 !important;
    color: #2d3436 !important;
}

.guide-link {
    color: var(--kg-green);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--kg-transition);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid var(--kg-green);
}

.guide-card.featured .guide-link {
    color: white;
    border-color: white;
}

.guide-link:hover {
    background-color: var(--kg-green);
    color: white;
}

.guide-card.featured .guide-link:hover {
    background-color: white;
    color: #667eea;
}

.guide-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--kg-surface);
}

.contact h2 {
    text-align: center;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--kg-green);
}

.contact > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--kg-muted);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--kg-green);
}

.contact-item p {
    color: var(--kg-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--kg-link);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--kg-transition);
}

.social-link:hover {
    color: var(--kg-link-hover);
}

/* Footer styles moved to components/footer.css */

/* Error Page Styles */
.error-page {
    padding: 150px 0 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #2d5a27;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.error-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-illustration {
    margin-top: 3rem;
}

.plant {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-illustration p {
    font-style: italic;
    color: #999;
}

/* Eudaimonia foundation card */
.eudaimonia-intro {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.foundation-card {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border: 2px solid var(--kg-green);
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.15);
    position: relative;
}

.foundation-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--kg-green), #4a7c59, var(--kg-green));
    border-radius: 22px;
    z-index: -1;
}

.foundation-header h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    color: var(--kg-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.foundation-header .intro-subtitle {
    font-size: 1.1rem;
    color: #4a7c59;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 500;
}

.eudaimonia-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-section {
    margin-bottom: 2rem;
}

.philosophy-section h4 {
    font-size: 1.3rem;
    color: var(--kg-green);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.philosophy-section p {
    color: var(--kg-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.flourishing-paths p {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
}

.philosophy-section strong {
    color: var(--kg-green);
    font-weight: 600;
}

/* Critical Response section */
.critical-response {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.critique-card {
    background: linear-gradient(135deg, #fff8f0 0%, #fef5f0 100%);
    border: 2px solid #d2691e;
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.15);
    position: relative;
}

.critique-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #d2691e, #cd853f, #d2691e);
    border-radius: 22px;
    z-index: -1;
}

.critique-header h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    color: #d2691e;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.critique-header .critique-subtitle {
    font-size: 1.1rem;
    color: #8b4513;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 500;
}

.critique-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.critique-section {
    margin-bottom: 2rem;
}

.critique-section h4 {
    font-size: 1.2rem;
    color: #d2691e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.critique-section p {
    color: var(--kg-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.critique-section blockquote {
    font-style: italic;
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(210, 105, 30, 0.1);
    border-left: 4px solid #d2691e;
    border-radius: 0 8px 8px 0;
    color: #8b4513;
}

.resource-links {
    margin-top: 1rem;
}

.resource-link {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-link strong {
    color: #d2691e;
    font-weight: 600;
    flex: 1;
    min-width: 250px;
}

.resource-link a {
    color: #8b4513;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.resource-link a:hover {
    color: #d2691e;
}

/* Book Reviews Specific Styles */
.book-author {
    font-style: italic;
    color: var(--kg-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.book-rating {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.book-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.book-highlights .highlight {
    background-color: #e8f5e8;
    color: var(--kg-green);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Accessible focus styles for interactive elements */
button, a, select, input, .guide-link, .cta-button {
    outline: none;
}

button:focus-visible, .guide-link:focus-visible, .cta-button:focus-visible, a:focus-visible {
    outline: 3px solid var(--kg-gold-200);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button, .cta-button.secondary {
        width: 200px;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .error-code {
        font-size: 6rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .secondary-button {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about, .topics, .contact {
        padding: 60px 0;
    }

    .topic-card, .feature {
        padding: 1.5rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--kg-green) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    z-index: 1000 !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.scroll-to-top:hover {
    background-color: var(--kg-green-700) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(45, 90, 39, 0.4) !important;
}

.scroll-to-top:active {
    transform: translateY(0) !important;
}

.scroll-to-top svg {
    width: 24px !important;
    height: 24px !important;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    .scroll-to-top svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Topics intro (homepage blurb) */
.topics .topics-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--kg-muted);
}

/* Philosophy cards on homepage (scoped to avoid collisions) */
.philosophy-showcase {
    margin: 2rem 0;
}

.philosophy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.philosophy-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--kg-shadow-sm);
    /* no border so the left accent stands out */
}

/* Scoped variants inside the philosophy section only */
.philosophy-showcase .eudaimonia-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border-left: 5px solid var(--kg-green);
    border-radius: 12px;
    box-shadow: var(--kg-shadow-sm);
}

.philosophy-showcase .critique-card {
    background: linear-gradient(135deg, #fdf2f2 0%, #fef7f7 100%);
    /* Override global .critique-card border/padding when used in homepage showcase */
    border: none;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--kg-shadow-sm);
    border-left: 5px solid #f44336;
}

.foundation-header h3,
.critique-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.intro-subtitle,
.critique-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.philosophy-section,
.critique-section {
    margin-bottom: 1.5rem;
}

.philosophy-section h4,
.critique-section h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.philosophy-section p,
.critique-section p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.flourishing-paths p {
    background: rgba(76, 175, 80, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--kg-green);
}

.philosophy-showcase .critique-section blockquote {
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
    margin: 1rem 0;
    padding: 0.75rem;
    font-style: italic;
    color: #333;
    border-radius: 6px;
}

.resource-link {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.resource-link a {
    color: #007bff;
    text-decoration: none;
}

.resource-link a:hover {
    text-decoration: underline;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .philosophy-card {
        padding: 1.5rem;
    }
    .foundation-header h3,
    .critique-header h3 {
        font-size: 1.2rem;
    }
}

/* Golden Ratio Learning Progression */

.learning-progression {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 50%, #fff8e1 100%);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--kg-shadow-lg);
}

.learning-progression::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg,
        var(--kg-gold) 0%, var(--kg-gold-200) 15%, #ffffff 25%,
        var(--kg-gold-200) 35%, var(--kg-gold) 50%, var(--kg-gold-200) 65%,
        #ffffff 75%, var(--kg-gold-200) 85%, var(--kg-gold) 100%);
    padding: 6px;
    border-radius: 24px;
    z-index: 1;
}

.learning-progression::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 50%, #fff8e1 100%);
    border-radius: 18px;
    z-index: 2;
}

.learning-progression .golden-accent {
    position: absolute;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 3;
}

.learning-progression .golden-accent:nth-child(1) {
    top: -20px; left: -20px;
}

.learning-progression .golden-accent:nth-child(2) {
    bottom: -20px; right: -20px;
    background: radial-gradient(circle, rgba(244, 233, 155, 0.15) 0%, transparent 70%);
}

.learning-progression h2 {
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-green) 50%, var(--kg-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
    position: relative; z-index: 4; text-align: center;
}

.learning-progression h2::after {
    content: '';
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--kg-gold), transparent);
    border-radius: 2px;
}

.progression-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #555;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative; z-index: 4; text-align: center;
}

.progression-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; z-index: 4;
}

.progression-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),
                0 1px 8px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.progression-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-gold-200) 25%, #ffffff 50%, var(--kg-gold-200) 75%, var(--kg-gold) 100%);
    padding: 2px; border-radius: 20px; z-index: -2;
}

.progression-card::after {
    content: '';
    position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 18px; z-index: -1;
}

.progression-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.progression-card:hover::before {
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-gold-200) 15%, var(--kg-gold) 30%, var(--kg-gold-200) 45%, var(--kg-gold) 60%, var(--kg-gold-200) 75%, var(--kg-gold) 90%, var(--kg-gold-200) 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.progression-card h3 {
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-green) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.75rem; font-weight: 700;
}

.progression-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-gold-200) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.progression-card p {
    color: #555; line-height: 1.7; margin-bottom: 1.5rem; font-size: 1.05rem;
}

.progression-examples {
    list-style: none; padding: 0; margin: 0;
}

.progression-examples li {
    background: linear-gradient(135deg, #fff8e1 0%, #f8f9fa 100%);
    padding: 1rem 1.25rem; margin: 0.75rem 0; border-radius: 12px;
    border-left: 4px solid var(--kg-gold);
    font-size: 0.95rem; color: #555; position: relative;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.progression-examples li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border-left-color: var(--kg-green);
}

/* progression-link legacy button replaced by unified .btn (gradient variant) */

.progression-cta { margin-top: 3rem; text-align: center; position: relative; z-index: 4; }

.cta-content {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 50%, #f8f9fa 100%);
    border-radius: 20px; padding: 3rem 2rem; position: relative; overflow: hidden;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.cta-content::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-gold-200) 25%, #ffffff 50%, var(--kg-gold-200) 75%, var(--kg-gold) 100%);
    padding: 3px; border-radius: 20px; z-index: -2;
}

.cta-content::after {
    content: '';
    position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 50%, #f8f9fa 100%);
    border-radius: 17px; z-index: -1;
}

.cta-content h3 {
    background: linear-gradient(135deg, var(--kg-gold) 0%, var(--kg-green) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; font-size: 2rem; margin-bottom: 1rem; font-weight: 700;
}

.cta-content p {
    color: #555; font-size: 1.2rem; line-height: 1.6; margin-bottom: 2rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}

@media (max-width: 768px) {
    .learning-progression { padding: 2rem 1rem; margin: 2rem 0; }
    .progression-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
