/*
 * KidSmart Blog - Shared Styles
 * Modern purple theme for static HTML blog
 */

/* ========================================
   CSS VARIABLES - Purple Theme
   ======================================== */
:root {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --success: #10b981;
    --orange: #ff7700;
    --green: #72bb53;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #f6f6f6;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Font Families */
    --font-heading: "Newsreader", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
    outline: 0 !important;
}

html {
    font-size: 10px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    margin: 0;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3.6rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

h4 {
    font-size: 2rem;
}

p {
    font-size: 1.6rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: none;
}

ul,
ol {
    margin-bottom: 2rem;
}

li {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

figure {
    margin: 2rem 0;
}

figcaption {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   HEADER
   ======================================== */
header {
    background: white;
    box-shadow: 0 2px 15px rgba(124, 58, 237, 0.08);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    margin: 0;
    font-size: 2.4rem;
}

header h1 a {
    color: var(--text-dark);
    text-decoration: none;
}

header h1 a:hover {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-search {
    position: relative;
    width: 300px;
}

.header-search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.header-search input::placeholder {
    color: var(--text-light);
    font-size: 1.4rem;
}

.search-icon-header {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.header-search .search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    border: 2px solid var(--primary);
}

nav a {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
    padding: 4rem 0;
    min-height: 60vh;
}

/* ========================================
   BLOG LISTING PAGE
   ======================================== */
.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin: 3rem 0 5rem;
}

.post-preview {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.post-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

.post-preview h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 2rem 1rem;
    line-height: 1.4;
}

.post-preview h3 a {
    color: var(--text-dark);
}

.post-preview h3 a:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 0 2rem 2rem;
}

.post-preview .excerpt {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin: 0 2rem 2rem;
    line-height: 1.6;
}

/* ========================================
   SINGLE POST PAGE
   ======================================== */
.blog-post {
    margin: 0 auto;
    background: white;
    padding: 5rem 6rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.blog-post h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.blog-post .post-meta {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.post-content {
    font-size: 1.8rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 3rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
}

.post-content h3 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-top: 3rem;
}

.post-content h4 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content ul,
.post-content ol {
    margin: 2rem 0 2rem 4rem;
}

.post-content li {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.post-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.post-content figure {
    margin: 3rem 0;
}

.post-content blockquote {
    padding: 2rem 3rem;
    margin: 2rem 0;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.back-link {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.back-link a {
    display: inline-block;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.back-link a:hover {
    background: var(--bg-light);
    transform: translateX(-5px);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    border-top: 2px solid var(--border);
    padding: 5rem 0 3rem;
    margin-top: 8rem;
}

footer .container {
    text-align: center;
}

footer p {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0;
}

footer a {
    color: var(--text-medium);
    margin: 0 1rem;
}

footer a:hover {
    color: var(--primary);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 1024px) {
    .posts-list {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 9px;
    }

    h1 {
        font-size: 3rem;
    }

    .container {
        padding: 0 2rem;
    }

    main {
        padding: 2rem 0;
    }

    .posts-list {
        gap: 2rem;
        margin: 2rem 0 3rem;
    }

    .blog-post {
        padding: 2rem 1.5rem;
    }

    .blog-post h1 {
        font-size: 2.8rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-post h1 {
        font-size: 2.4rem;
    }

    .post-content h2 {
        font-size: 2.4rem;
    }

    .post-content h3 {
        font-size: 2rem;
    }
}

/* ========================================
   CATEGORIES AND TAGS
   ======================================== */
.post-categories,
.post-tags {
    margin: 1.5rem 0;
    padding: 1rem 0;
    font-size: 1.4rem;
    line-height: 2;
    border-bottom: 1px solid var(--border);
}

.post-categories strong,
.post-tags strong {
    display: inline-block;
    color: var(--text-dark);
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category,
.tag {
    padding: 0.8rem 1.4rem;
    margin: 0.4rem 0.5rem 0.4rem 0;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.category {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.tag {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.category:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.tag:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ========================================
   READING TIME & BREADCRUMBS
   ======================================== */
.reading-time {
    color: var(--text-light);
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.breadcrumb {
    margin: 1rem 0 2rem 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-medium);
}

/* ========================================
   POST META UPDATES
   ======================================== */
.post-meta .separator {
    margin: 0 0.75rem;
    color: var(--text-light);
}

.post-meta .updated {
    color: var(--success);
    font-weight: 600;
}

.post-meta time {
    color: var(--text-medium);
}

/* ========================================
   HERO SECTION - Clean Educational Design
   ======================================== */
.hero {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    padding: 6rem 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    line-height: 1.6;
    color: var(--text-medium);
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 1.4rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================
   SEARCH BOX - Clean Design
   ======================================== */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.18);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

#search-input {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    border: none;
    font-size: 1.6rem;
    color: var(--text-dark);
    outline: none;
    font-family: var(--font-body);
}

#search-input::placeholder {
    color: var(--text-light);
    font-size: 1.6rem;
}

.search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 500px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: var(--bg-light);
}

.search-result h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.search-result h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.search-result h3 a:hover {
    color: var(--primary);
}

.result-excerpt {
    color: var(--text-medium);
    font-size: 1.4rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.result-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 1.2rem;
}

.result-category {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.2rem;
}

.result-tags {
    color: var(--text-light);
    font-size: 1.2rem;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-medium);
}

mark {
    background: #fef08a;
    color: var(--text-dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* ========================================
   ENHANCED POST GRID
   ======================================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-preview {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-preview:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.post-preview:active {
    transform: translateY(-2px);
}

.post-preview h3 {
    margin: 0 0 1rem 0;
    font-size: 2.2rem;
    line-height: 1.4;
}

.post-preview h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-preview h3 a:hover {
    color: var(--primary);
}

.post-preview .excerpt {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-meta-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.category-badge {
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ========================================
   FOOTER ENHANCED
   ======================================== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-link,
.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-links a:hover {
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   RESPONSIVE - HERO & SEARCH
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
        margin-bottom: 3rem;
    }

    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }

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

    header .container {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .header-search {
        width: 100%;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    #search-input {
        font-size: 1.4rem;
        padding: 1rem 1rem 1rem 3.5rem;
    }

    #search-input::placeholder {
        font-size: 1.4rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   TABLE STYLES
   ======================================== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 1.6rem;
    min-width: 600px;
    /* Force scroll on small screens */
}

th,
td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--bg-gray);
}

/* Make links in tables stand out */
td a {
    font-weight: 600;
}

/* ========================================
   CTA (CALL-TO-ACTION) BOXES - Rich Link Preview Style
   ======================================== */
.cta-box {
    margin: 4rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    background: white;
    text-decoration: none;
    display: block;
}

.cta-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* Card Layout */
.cta-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    min-height: 200px;
}

/* Image/Icon Section */
.cta-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') center/80% no-repeat;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-icon {
    font-size: 6rem;
    z-index: 1;
}

/* Text Content Section */
.cta-text {
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.cta-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.2rem;
    width: fit-content;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.cta-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 1.8rem 0;
}

.cta-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
}

.cta-domain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-domain::before {
    content: '🔗';
    font-size: 1.4rem;
}

.cta-button-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.cta-box:hover .cta-button-inline {
    gap: 1rem;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-box:hover .cta-arrow {
    transform: translateX(4px);
}

/* Theme Variations */
.cta-purple .cta-image {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.cta-purple .cta-badge {
    background: #7c3aed;
}

.cta-blue .cta-image {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.cta-blue .cta-badge {
    background: #3b82f6;
}

.cta-blue .cta-button-inline {
    color: #3b82f6;
}

.cta-green .cta-image {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.cta-green .cta-badge {
    background: #10b981;
}

.cta-green .cta-button-inline {
    color: #10b981;
}

.cta-orange .cta-image {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.cta-orange .cta-badge {
    background: #f97316;
}

.cta-orange .cta-button-inline {
    color: #f97316;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-content {
        grid-template-columns: 1fr;
    }

    .cta-image {
        min-height: 180px;
    }

    .cta-text {
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 1.9rem;
    }

    .cta-description {
        font-size: 1.4rem;
    }

    .cta-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cta-box {
        margin: 3rem 0;
    }

    .cta-image {
        min-height: 140px;
    }

    .cta-text {
        padding: 1.5rem 1.2rem;
    }

    .cta-title {
        font-size: 1.7rem;
    }

    .cta-description {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.toc-container {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary);
}

.toc-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .toc-container {
        max-width: 350px;
        margin: 2rem auto 2rem 0;
    }
}

/* ========================================
   PHASE 3: DIGITAL PRODUCT STYLES
   ======================================== */

.product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.product-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-hero h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
}

.product-hero .lead {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.word-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.word-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.word-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.word-item h4 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.word-meaning,
.word-example,
.word-upgrade {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.word-meaning strong,
.word-example strong,
.word-upgrade strong {
    color: var(--text-dark);
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 3rem 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.warning-box ul {
    margin: 0;
}

.product-features {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-text p {
    color: var(--text-medium);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.testimonial {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    font-style: italic;
}

.testimonial p:last-child {
    margin-bottom: 0;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
    font-style: normal;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

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

.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.faq-item p {
    margin: 0;
    line-height: 1.7;
}

.cta-final {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem 0;
}

.cta-final h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.cta-button-large {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1.5rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-guarantee {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .word-showcase {
        grid-template-columns: 1fr;
    }
    
    .product-hero {
        padding: 2rem;
    }
    
    .product-hero h2 {
        font-size: 2.4rem;
    }
    
    .cta-final {
        padding: 2.5rem;
    }
    
    .cta-final h3 {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AFFILIATE DISCLOSURE STYLES
   ======================================== */

.affiliate-example {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    font-style: italic;
}

.blog-post hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 3rem 0;
}

/* ========================================
   AFFILIATE CTA COMPONENTS
   ======================================== */

/* Affiliate Disclosure Notice */
.affiliate-disclosure-notice {
    background: #e8f4fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: #1976d2;
    line-height: 1.6;
}

.affiliate-disclosure-notice a {
    color: #1565c0;
    text-decoration: underline;
    font-weight: 600;
}

.affiliate-disclosure-notice a:hover {
    color: #0d47a1;
}

/* Tutor Partner Box */
.tutor-partner-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.tutor-partner-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tutor-partner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutor-partner-box h3 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tutor-partner-box p {
    font-size: 1.7rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.tutor-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.tutor-features-list li {
    font-size: 1.6rem;
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    opacity: 0.95;
}

.tutor-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.8rem;
}

.tutor-cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1.5rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.tutor-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: var(--primary);
}

.tutor-partner-disclosure {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Comparison Table */
.affiliate-comparison-table {
    margin: 3rem 0;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.affiliate-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 1.5rem;
}

.affiliate-comparison-table th {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.6rem;
}

.affiliate-comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.affiliate-comparison-table tr:hover {
    background: var(--bg-light);
}

.affiliate-comparison-table .highlight-row {
    background: #f0f7ff;
    font-weight: 600;
}

.affiliate-comparison-table .cta-cell {
    text-align: center;
}

.table-cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.table-cta-button:hover {
    background: #5b21b6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Book Recommendation Box */
.book-recommendation {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    align-items: center;
    transition: all 0.3s ease;
}

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

.book-cover {
    width: 150px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: var(--text-dark);
}

.book-author {
    color: var(--text-medium);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.book-description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: #ffa000;
    margin-bottom: 0.5rem;
}

.book-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.book-cta-button {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.book-cta-button:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.affiliate-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #1976d2;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Financial Service Box */
.financial-service-box {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 3rem 0;
    color: white;
}

.financial-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.financial-service-box h3 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.financial-service-box p {
    font-size: 1.7rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.financial-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.financial-benefits li {
    font-size: 1.6rem;
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    opacity: 0.95;
}

.financial-benefits li::before {
    content: '💰';
    position: absolute;
    left: 0;
    font-size: 1.6rem;
}

.financial-cta-button {
    display: inline-block;
    background: white;
    color: #0f766e;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.financial-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: #0f766e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-recommendation {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-cover {
        margin: 0 auto;
    }
    
    .tutor-partner-box,
    .financial-service-box {
        padding: 2rem;
    }
    
    .tutor-partner-box h3,
    .financial-service-box h3 {
        font-size: 2.2rem;
    }
    
    .affiliate-comparison-table {
        font-size: 1.3rem;
    }
    
    .affiliate-comparison-table th,
    .affiliate-comparison-table td {
        padding: 1rem;
    }
}