/* General Styles */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1d4ed8;
    --secondary-color: #f0f7ff;
    --text-color: #6a6a6a;
    --text-secondary: #999;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;

    /* Brand gradient variations */
    --brand-gradient: linear-gradient(135deg, #2563EB 0%, #3b82f6 50%, #2563EB 100%);
    --brand-gradient-subtle: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 50%, #f0f7ff 100%);
    --sage-dark: #1e40af;
    --sage-light: #60a5fa;
    --sage-ultra-light: #eff6ff;
}

/* Custom Fonts */
@font-face {
    font-family: 'KGPrimaryDots';
    src: url('../assets/fonts/KGPrimaryDotsLined.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Navigation */
header {
    background: var(--brand-gradient);
    padding: 15px 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: visible;
    z-index: 10000;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.6em;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

nav .logo:hover {
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

nav .logo i {
    color: rgba(255, 255, 255, 0.9);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
    transform: translateY(-1px);
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

/* Desktop dropdown link styling - matches other nav links exactly */
.nav-dropdown > a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-dropdown > a:hover,
.nav-dropdown > a.active {
    color: white;
    transform: translateY(-1px);
}

.nav-dropdown > a.active::after,
.nav-dropdown > a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, white 50%, transparent 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-icon {
    transform: rotate(180deg);
}

/* Desktop dropdown menu - ensure vertical layout */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    min-width: 220px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    display: block; /* Ensure block layout */
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block; /* Force each item to be block */
    width: 100%;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.nav-dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #2563EB;
}

.nav-dropdown-menu li a::after {
    display: none;
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .nav-dropdown {
        position: relative;
        overflow: visible; /* Allow dropdown to expand outside */
    }
    
    /* Ensure dropdown is hidden when nav is not active */
    nav ul#nav-links:not(.nav-active) .nav-dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .nav-dropdown > a {
        display: block;
        padding: 0;
        width: auto;
        text-align: center;
        position: relative;
        /* Remove font-size override - let it inherit from nav ul li a */
    }
    
    .nav-dropdown-icon {
        margin-left: 0.5rem;
        font-size: 1rem;
    }
    
    .nav-dropdown.active .nav-dropdown-icon {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid #e0e0e0;
        border-radius: 0.5rem;
        background: white;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        width: 280px;
        min-width: 280px;
        padding: 0;
        display: none; /* Start hidden */
        z-index: 9999;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block; /* Show when active */
        max-height: 400px;
        padding: 0.5rem 0;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-dropdown-menu li {
        margin: 0;
        display: block; /* Force block layout */
        width: 100%;
    }
    
    .nav-dropdown-menu li a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1rem; /* Smaller than main nav (1.5rem) but readable */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        color: #4a4a4a;
        white-space: nowrap;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }
    
    .nav-dropdown-menu li a:hover {
        background-color: #f8f9fa;
        color: #2563EB;
    }
}

/* Typography */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* Page Titles */
.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.generator-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.generator-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.generator-card h3 {
    margin-bottom: 0.5rem;
}

.generator-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.generator-card .button-accent {
    width: auto;
    padding: 12px 24px;
    display: inline-block;
    text-decoration: none;
}

/* Forms */
.item-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.item-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.item-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.item-form .form-grid {
    display: grid;
    gap: 1rem 2rem;
}

.item-form .form-grid.two-by-two {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

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

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.custom-select {
    position: relative;
}

.custom-select::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Buttons */
.button-accent {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.button-accent:hover {
    background-color: var(--primary-hover);
}

.button-accent:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.large-input {
    padding: 20px 15px !important;
    font-size: 1.2em !important;
}

/* Loading & Error States */
.loading-state, .error-message {
    text-align: center;
    padding: 30px;
    margin-top: 2rem;
    border-radius: var(--border-radius);
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-message {
    background-color: #fff1f1;
    border: 1px solid #ffb8b8;
    color: #cf5050;
}

.error-message p {
    margin: 0;
    color: #cf5050;
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 3rem 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--text-color);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 220px;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
}

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

.email-input-group {
    display: flex;
    margin-top: 1rem;
}

.email-input-group input[type="email"] {
    width: 100%;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.email-input-group button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0 1rem;
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1.25rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.3rem;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* --- FONT FACE --- */
@font-face {
    font-family: 'KGPrimaryDots';
    src: url('../assets/fonts/KGPrimaryDotsLined.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- WORKSHEET STYLES (SHARED) --- */
.worksheet-page {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 1rem auto;
    padding: 1rem;
    width: 100%;
}

.worksheet-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.worksheet-header h1 {
    font-size: 2.2rem;
    margin: 0;
}

.worksheet-header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.25rem;
}

.worksheet-name {
    align-self: flex-end;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.worksheet-name-label {
    font-weight: bold;
}

.worksheet-name-line {
    display: inline-block;
    width: 250px;
    border-bottom: 1px solid #ccc;
}

.worksheet-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* Word Family Worksheet - only apply to main content area, not hero section */
.word-family-page main {
    max-width: 950px;
    margin: 0 auto;
}

/* Word family page print styles */
@media print {
    .word-family-page {
        max-width: 950px;
        min-height: 11in;
    }
}

.word-table {
    width: 100%;
    border-collapse: collapse;
}

.word-table tr {
    border-bottom: 1px dotted #ccc;
    display: flex;
    align-items: baseline;
}

.word-table td {
    padding: 0.2rem 0;
}

.word-table td.read-col { width: 30%; font-size: 3.87rem; font-weight: bold; padding-right: 0.5rem; }
.word-table td.trace-col { width: 35%; font-family: 'KGPrimaryDots', sans-serif; font-size: 6.75rem; color: #777; padding-right: 0.5rem; }
.word-table td.write-col { width: 35%; }

.handwriting-lines {
    width: 100%;
    height: 6em;
}

/* Math Worksheet */
.math-worksheet-page {
    max-width: 950px;
    min-height: 11in;
}

.math-problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.math-problem {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 1rem;
}

/* Word Search Styles */
.word-search-section {
    margin-top: 2rem;
}

.word-search-puzzle {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.puzzle-title {
    text-align: center;
    margin-bottom: 2rem;
}

.puzzle-title h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.puzzle-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.puzzle-grid {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.grid-container {
    display: inline-block;
    border: 3px solid #333;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.grid-row {
    display: flex;
}

.grid-cell {
    width: 68px;
    height: 68px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 30px;
    background: white;
    font-family: 'Courier New', monospace;
    transition: background-color 0.2s ease;
}

.grid-cell:hover {
    background-color: #e8f4f8;
}

.word-list {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.word-list h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.words-to-find {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    justify-content: center;
}

.word-item {
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    text-align: center;
}

.word-item:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .grid-cell {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border: 0.5px solid #ddd;
    }
    
    .grid-container {
        padding: 8px;
        border: 2px solid #333;
        max-width: 100%;
        overflow-x: auto;
    }
    
    .word-search-container {
        padding: 0 1rem;
    }
    
    .puzzle-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .words-to-find {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .word-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .word-list h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .grid-cell {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .grid-container {
        padding: 6px;
        margin: 0 auto;
    }
    
    .word-search-container {
        padding: 0 0.5rem;
    }
    
    .words-to-find {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.4rem;
    }
    
    .word-item {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .result-header {
        padding: 0 0.5rem;
    }
    
    .result-header h2 {
        font-size: 1.3rem;
    }
}

.math-problem .question {
    display: flex;
    align-items: baseline;
    font-weight: 500;
    font-size: 1.2rem;
}

.math-problem .emojis {
    font-size: 1.8rem;
    padding-left: 0.5rem;
    word-break: break-word;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em;
}

.bead {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-color: #d8d8d8;
    border: 1px solid #b8b8b8;
    border-radius: 50%;
}

.math-problem .answer-line {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.math-problem .answer-box {
    width: 60px;
    height: 60px;
    border: 1px solid #999;
    margin-left: 0.5rem;
}

/* Patterns & Sequences */
.pattern-problem .question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pattern-sequence {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    font-size: 1.6rem;
    padding-left: 0.25rem;
}

.pattern-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.pattern-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 1.3rem;
    font-weight: 600;
}

.pattern-blank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px dashed #2563EB;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2563EB;
    background: #eff6ff;
}

.pattern-comma {
    font-size: 1.2rem;
    color: #999;
    margin: 0 0.1rem;
}

.pattern-hint {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
}

/* Shapes & Geometry */
.shape-problem .question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shape-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.shape-svg svg {
    display: block;
}

.shape-choices {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-left: 1.5rem;
    margin-top: 0.4rem;
}

.shape-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 2px solid #ccc;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

.shape-match-problem {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.match-columns {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.match-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-col-names {
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: capitalize;
}

.match-row-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-label {
    font-weight: 600;
    min-width: 1.5rem;
}

.match-answers {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.color-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.color-instruction {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: capitalize;
}

.color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #999;
}

.color-scene {
    text-align: center;
    margin-top: 0.5rem;
}

.color-scene svg {
    max-width: 100%;
    height: auto;
}

/* --- RESOURCE PAGE --- */
.resource-box-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.icon-heading-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.icon-heading {
    margin: 0;
    font-size: 1.5rem;
    color: #4a4a4a;
}

.resource-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.resource-box ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.resource-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.resource-box p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .item-form .form-grid.two-by-two,
    .math-problems-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.most-popular {
        transform: scale(1);
    }

    .word-family-page .worksheet-header h1 { font-size: 1.8rem; }
    .word-family-page .worksheet-name { margin-bottom: 0.25rem; }
    .word-family-page .word-table td { padding: 0.2rem 0; }
    .word-family-page .word-table td.read-col { font-size: 2.2rem; padding-right: 0.5rem; }
    .word-family-page .word-table td.trace-col { font-size: 4.0rem; padding-right: 0.5rem; }



    /* Mobile styles for result header */
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-header h2 {
        font-size: 1.5rem;
    }
}

/* --- PRINT STYLES --- */
@media print {
    body, html {
        background: #fff;
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body > header, footer, .item-form, #print-btn, .generator-section,
    .chatgpt-hero-section .chatgpt-content > h1,
    .chatgpt-hero-section .chatgpt-subtitle,
    .main-input-container,
    .quick-actions,
    .results-header,
    .print-results-btn,
    .below-fold-content {
        display: none !important;
    }
    
    .chatgpt-hero-section {
        background: white !important;
        min-height: auto !important;
        padding: 0 !important;
    }
    
    .main-results-area {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: white !important;
    }
    
    .main-activity-card {
        border: 1px solid #ddd !important;
        margin-bottom: 0.5rem !important;
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 0.75rem !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .main-activity-card h4 {
        color: #000 !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }
    
    .main-activity-card > p {
        color: #333 !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Hide print buttons and other non-essential elements */
    .main-activity-card .activity-print-btn,
    .main-activity-card button,
    .results-header button,
    .print-results-btn {
        display: none !important;
    }
    
    
    .main-activity-details {
        grid-template-columns: 1fr !important;
    }
    
    .main-activity-detail {
        border: none !important;
        padding: 0.5rem 0 !important;
        background: transparent !important;
    }
    
    .main-activity-detail strong {
        color: #000 !important;
    }
}

    main.container, #worksheet-section {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        display: block !important;
    }
    
    .main-activity-container {
        display: block !important;
    }

    .worksheet-page {
        border: none;
        box-shadow: none;
        padding: 0.1in;
        margin: 0;
        min-height: 0;
    }

    .worksheet-footer {
        display: block !important;
        font-size: 0.7rem;
        margin-top: 0.25rem;
        padding-top: 0.25rem;
        border-top: 1px solid #eee;
    }

    /* Word Family Print Styles */
    .word-family-page .worksheet-header { margin-bottom: 0.25rem; }
    .word-family-page .worksheet-header h1 { font-size: 1.8rem; }
    .word-family-page .worksheet-name { margin-bottom: 0.25rem; }
    .word-family-page .word-table td { padding: 0.1rem 0; }
    .word-family-page .word-table td.read-col { font-size: 2.5rem; padding-right: 0.5rem; }
    .word-family-page .word-table td.trace-col { font-size: 4.5rem; padding-right: 0.5rem; }
    .word-family-page .handwriting-lines { height: 4em; }
    
    /* Math Worksheet Print Styles */
    .math-worksheet-page .worksheet-header { margin-bottom: 0.5rem; }
    .math-worksheet-page .worksheet-header h1 {
        font-size: 1.6rem;
        margin: 0 auto;
    }
    .math-worksheet-page .worksheet-header p {
        font-size: 0.9rem;
        margin: 0.25rem auto 0;
    }
    
    .math-problems-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .math-problem { padding: 0.5rem; }
    .math-problem .question { font-size: 1rem; }
    .math-problem .emojis { font-size: 1.5rem; padding-left: 0.5rem; }
    .math-problem .answer-line { padding-top: 0.5rem; font-size: 0.9rem; }
    .math-problem .answer-box { width: 45px; height: 45px; }

    /* Pattern print */
    .pattern-sequence { font-size: 1.4rem; }
    .pattern-blank {
        border-color: #999 !important;
        background: #f5f5f5 !important;
        color: #999 !important;
    }

    /* Word Search Print Styles */
    .word-search-section {
        page-break-inside: avoid;
    }
    
    .word-search-puzzle {
        margin: 0;
        padding: 1rem;
        box-shadow: none;
        border: none;
    }
    
    .puzzle-content {
        gap: 1.5rem;
    }
    
    .grid-container {
        margin: 0 auto;
        border: 2px solid #333;
        padding: 10px;
    }
    
    .grid-cell {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .word-list {
        max-width: 100%;
        text-align: center;
    }
    
    .words-to-find {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }
    
    .word-item {
        background: white !important;
        color: #333 !important;
        border: 1px solid #333 !important;
        padding: 8px 10px;
        font-size: 0.9rem;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* --- Auth & Account Page Styles --- */
.auth-container, .account-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

/* My Generations Styles */
.generations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.generation-item {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.generation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.generation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.generation-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

.generation-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.generation-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.generation-preview {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.generation-preview img {
    max-width: 100%;
    border-radius: 0.25rem;
}

.generation-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.generation-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

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

.generation-btn.delete {
    background: #dc3545;
    color: white;
}

.generation-btn:hover {
    opacity: 0.9;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.section-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

.auth-container h1, .account-container h1 {
    margin-bottom: 0.5rem;
}

.auth-container p, .account-container p {
    margin-bottom: 2rem;
    color: #888;
}

#auth-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none; /* Hidden by default */
}

.auth-container .form-row {
    text-align: left;
}

.auth-container .auth-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

#logout-btn {
    margin-top: 1rem;
}

#manage-billing-btn {
    background-color: #4a90e2;
    margin-top: 1.5rem;
}

#manage-billing-btn:hover {
    background-color: #357ABD;
}

.button-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.button-secondary:hover {
    background-color: #e0e0e0;
}

.button-secondary img {
    width: 20px;
    height: 20px;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 1.5rem 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.separator:not(:empty)::before {
    margin-right: .5em;
}

.separator:not(:empty)::after {
    margin-left: .5em;
}

/* --- Pricing Page Styles --- */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #fff;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.pricing-card.recommended {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
    padding-top: 3.5rem;
}

.pricing-card.most-popular {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
    transform: scale(1.05); /* Subtle visual cue */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Another visual cue */
    z-index: 10;
}

.pricing-card.most-popular .button-accent {
    background-color: var(--primary-color); /* Matches the badge color */
}

.recommended-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-tier-name h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    font-weight: normal;
    color: #888;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1; /* Pushes button to the bottom */
}

.pricing-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features .fa-check {
    color: #4CAF50;
}

.pricing-features .fa-times {
    color: #F44336;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ACTIVITY GENERATOR STYLES ===== */
.activity-generator-section {
    margin-bottom: 3rem;
}

.generator-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.generator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.generator-header .generator-icon {
    font-size: 3rem;
    color: #2563EB;
    margin-bottom: 1rem;
}

.generator-header h2 {
    color: #4a4a4a;
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.generator-header p {
    color: #6a6a6a;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.safety-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.safety-warning i {
    color: #e17055;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.safety-warning strong {
    color: #d63031;
}

.input-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f5f5f5;
    padding: 0.25rem;
    border-radius: 0.75rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #6a6a6a;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: white;
    color: #2563EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
    font-weight: 600;
}

.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 0.75rem;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #2563EB;
}

.input-help {
    margin-top: 0.5rem;
}

.input-help small {
    color: #6a6a6a;
    font-size: 0.9rem;
}

.input-help i {
    margin-right: 0.25rem;
    color: #2563EB;
}

.activity-suggestions-section {
    margin-bottom: 3rem;
}

.result-section {
    animation: fadeIn 0.5s ease;
}

.result-section h2 {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.suggestions-container {
    display: grid;
    gap: 2rem;
}

.activity-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
}

.activity-card h3 {
    color: #4a4a4a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #2563EB;
    padding-bottom: 0.5rem;
}

.activity-card p {
    color: #6a6a6a;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563EB;
}

.detail-item strong {
    color: #4a4a4a;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-item ul, .detail-item ol {
    margin: 0;
    padding-left: 1.25rem;
}

.detail-item li {
    color: #6a6a6a;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.activity-card h4 {
    color: #4a4a4a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.activity-card ol {
    padding-left: 1.5rem;
    color: #6a6a6a;
}

.activity-card ol li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #6a6a6a;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563EB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #c44;
    text-align: center;
    margin: 1rem 0;
}

/* How It Works Section */
.how-it-works-section {
    margin: 3rem 0;
    text-align: center;
}

.how-it-works-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

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

.works-step {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.works-step .step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.works-step h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.works-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hero Section Updates */
.hero-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .generator-card {
        padding: 1.5rem;
    }
    
    .input-toggle {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .toggle-btn {
        flex: 1;
        padding: 0.75rem 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .works-grid, .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SIGNUP MODAL STYLES ===== */
.signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.signup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.signup-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.signup-modal-overlay.active .signup-modal {
    transform: translateY(0);
}

.signup-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.signup-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.signup-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.signup-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563EB, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.signup-modal h2 {
    color: #1f2937;
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.signup-modal-subtitle {
    color: #6b7280;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.signup-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.signup-modal-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

.signup-modal-features li:before {
    content: "✓";
    color: #2563EB;
    font-weight: bold;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.signup-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signup-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.signup-modal-btn-primary {
    background: linear-gradient(135deg, #2563EB, #1e40af);
    color: white;
}

.signup-modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.signup-modal-btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.signup-modal-btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
}

.signup-modal-divider {
    text-align: center;
    margin: 1rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
    position: relative;
}

.signup-modal-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: -1;
}

.signup-modal-divider span {
    background: white;
    padding: 0 1rem;
}

/* Email Capture Form */
.email-capture-form {
    margin: 1.5rem 0;
}

.email-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.email-input-container input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.email-input-container input[type="email"]:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.email-submit-btn {
    background: linear-gradient(135deg, #2563EB, #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.email-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.email-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.success-message {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .signup-modal {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .signup-modal h2 {
        font-size: 1.25rem;
    }
}



/* Result Header */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-header h2 {
    margin: 0;
}

/* Activity Card Print Buttons */
.activity-print-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

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

.activity-print-btn i {
    margin-right: 0.5rem;
}

/* Activity Generator Specific Print Styles */
@media print {
    .hero-section,
    .activity-generator-section,
    .how-it-works-section,
    .tips-section,
    .result-header,
    .visual-example-section,
    #print-all-btn,
    .activity-print-btn {
        display: none !important;
    }
    
    .activity-suggestions-section {
        margin: 0;
        padding: 0;
    }
    
    .result-section {
        display: block !important;
    }
    
    .suggestions-container {
        display: block !important;
        gap: 0;
    }
    
    .activity-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 0.5rem;
        border: 1px solid #ddd;
        box-shadow: none;
        padding: 0.75rem;
    }
    
    .activity-card h3 {
        color: #000 !important;
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        padding-bottom: 0.3rem;
    }
    
    .activity-card p {
        color: #333 !important;
        line-height: 1.3;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .details-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .detail-item {
        margin-bottom: 0;
        padding: 0.5rem;
        background: #f9f9f9;
        border-left: 3px solid #2563EB;
    }
    
    /* Materials - first item, left column */
    .detail-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Age - second item, full width bottom */
    .detail-item:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    
    /* Skills - third item, right column */
    .detail-item:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .detail-item strong {
        color: #000 !important;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .detail-item ul, .detail-item ol {
        margin: 0;
        padding-left: 1rem;
    }
    
    .detail-item li {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .activity-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .activity-card ol li {
        margin-bottom: 0.3rem;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Homepage Activity Print Styles */
    .main-activity-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 0.5rem;
        border: 1px solid #ddd;
        box-shadow: none;
        padding: 0.75rem;
    }
    
    
    .main-activity-card p {
        color: #333 !important;
        line-height: 1.3;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .main-activity-details {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .main-activity-detail {
        margin-bottom: 0;
        padding: 0.5rem;
        background: #f9f9f9;
        border-left: 3px solid #2563EB;
        border-radius: 4px;
    }
    
    /* Materials - first child, left column */
    .main-activity-details .main-activity-detail:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Age - second child, full width second row */
    .main-activity-details .main-activity-detail:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    
    /* Skills - third child, right column */
    .main-activity-details .main-activity-detail:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Instructions section - separate element below */
    .main-activity-detail:not(.main-activity-details .main-activity-detail) {
        margin-top: 0.5rem;
    }
    
    .main-activity-detail strong {
        color: #000 !important;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        display: block;
        font-weight: 600;
    }
    
    .main-activity-detail ul, .main-activity-detail ol {
        margin: 0;
        padding-left: 1rem;
    }
    
    .main-activity-detail li {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
        line-height: 1.3;
        color: #333;
    }
    
    .main-activity-detail p {
        font-size: 0.85rem;
        margin: 0;
        color: #333;
        line-height: 1.3;
    }
    
    .instructions-section {
        margin-top: 0.25rem;
        padding: 0.5rem;
        background: #fff;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
    }
    
    .instructions-section ol {
        margin: 0;
        padding-left: 1.2rem;
    }
    
    .instructions-section ol li {
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
        line-height: 1.2;
        color: #333;
    }
    
    /* Ensure instructions section has proper spacing */
    .main-activity-detail .instructions-section {
        margin-top: 0.25rem;
    }
}

/* Tips Section */
.tips-section {
    margin-bottom: 3rem;
}

.tips-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.tip {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.tip:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.tip p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

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

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

/* --- RESPONSIVE STYLES (768px and below) --- */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: block;
        z-index: 1001; /* Ensure it's above other content */
    }

    nav ul#nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--brand-gradient);
        z-index: 9999;
        backdrop-filter: blur(10px);
        transition: left 0.3s ease-in-out;
        gap: 2rem;
        overflow: hidden; /* Prevent any content from leaking out */
    }

    nav ul#nav-links.nav-active {
        left: 0; /* Slide in */
    }
    
    .hamburger.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 1.5rem;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    nav ul li a:hover::after,
    nav ul li a.active::after {
        display: none;
    }

    /* General Layout Fixes */
    main.container {
        padding: 0 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Homepage Mobile Fixes */
    .hero-content h1 {
        font-size: 2rem;
    }

    .introduction-section h1, .features-section h2 {
        font-size: 1.8rem;
    }

    .feature-selectors {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    /* Auth Page Fixes */
    .auth-container, .account-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .item-form .form-grid.two-by-two,
    .math-problems-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.most-popular {
        transform: scale(1);
    }

    .word-family-page .worksheet-header h1 { font-size: 1.8rem; }
    .word-family-page .worksheet-name { margin-bottom: 0.25rem; }
    .word-family-page .word-table td { padding: 0.2rem 0; }
    .word-family-page .word-table td.read-col { font-size: 2.2rem; padding-right: 0.5rem; }
    .word-family-page .word-table td.trace-col { font-size: 4.0rem; padding-right: 0.5rem; }

    /* Result Header */
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-header h2 {
        font-size: 1.5rem;
    }
}

/* Generation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-content-area {
    text-align: center;
}

.modal-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-content-area .activity-content {
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.modal-content-area .activity-item {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.modal-content-area .activity-item h4 {
    color: var(--accent-color);
    margin-top: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Print-specific styles */
@media print {
    .modal-overlay {
        position: static !important;
        background: none !important;
        padding: 0 !important;
    }
    
    .modal-content {
        max-width: none !important;
        max-height: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .modal-header,
    .modal-footer {
        display: none !important;
    }
    
    .modal-body {
        padding: 0 !important;
        max-height: none !important;
    }
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

/* Add print button to generation items */
.generation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.generation-btn.print {
    background-color: #6c757d;
    color: white;
}

.generation-btn.print:hover {
    background-color: #5a6268;
}

/* ===== CHATGPT-STYLE HOMEPAGE INTERFACE ===== */
.chatgpt-hero-section {
    background: linear-gradient(rgba(250, 250, 250, 0.5), rgba(245, 245, 245, 0.5)), url('../images/hero2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* ===== SPECIFIC PAGE BACKGROUNDS ===== */
/* Coloring page and Word family page with Scandinavian room background */
body.coloring-page .chatgpt-hero-section,
body.word-family-page .chatgpt-hero-section {
    background: linear-gradient(rgba(250, 250, 250, 0.5), rgba(245, 245, 245, 0.5)), url('../images/Flux_Dev_generate_me_a_hyperrealistic_image_of_A_bright_Scandi_3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.chatgpt-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.chatgpt-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.chatgpt-content h1 {
    font-size: 3rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.chatgpt-subtitle {
    font-size: 1.3rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.main-input-container {
    margin-bottom: 2rem;
}

.main-input {
    width: 100%;
    max-width: 600px;
    min-height: 120px;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.main-input:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.generate-btn {
    background: #2563EB;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.generate-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.generate-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.also-try-text {
    text-align: center;
    color: #6a6a6a;
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 500;
}

.quick-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: #bfdbfe;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.quick-action-btn:hover {
    border-color: #2563EB;
    background: #2563EB;
    color: white;
    transform: translateY(-1px);
}

.quick-action-btn .emoji {
    font-size: 1.2rem;
}

.main-results-area {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    text-align: left;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2563EB;
}

.results-header h3 {
    color: #2c2c2c;
    font-size: 1.5rem;
    margin: 0;
}

.print-results-btn {
    background: none;
    border: 1px solid #2563EB;
    color: #2563EB;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.print-results-btn:hover {
    background: #2563EB;
    color: white;
}

.main-activity-container {
    display: grid;
    gap: 2rem;
    counter-reset: activity-counter;
}

.main-activity-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    counter-increment: activity-counter;
    transition: all 0.2s ease;
}

.main-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    border-color: #2563EB;
}

.main-activity-card::before {
    content: counter(activity-counter);
    position: absolute;
    top: -12px;
    left: 20px;
    background: #2563EB;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.main-activity-card h4 {
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-top: 0.5rem;
    font-weight: 600;
}

.main-activity-card p {
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.main-activity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.main-activity-detail {
    background: #f0f7ff;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    border-left: 3px solid #2563EB;
}

.main-activity-detail strong {
    color: #2c2c2c;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.main-activity-detail ul,
.main-activity-detail ol {
    margin: 0;
    padding-left: 1.3rem;
}

.main-activity-detail li {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.main-activity-detail .instructions-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.main-activity-detail .instructions-section ol {
    margin: 0;
    padding-left: 1.2rem;
}

.main-activity-detail .instructions-section li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.below-fold-content {
    padding-top: 3rem;
}

/* Loading and Error States for Homepage */
.main-results-area .loading-state {
    text-align: center;
    padding: 2rem;
    color: #666666;
}

.main-results-area .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.main-results-area .error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 1rem;
    color: #c44;
    text-align: center;
}

.main-results-area .error-message a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.main-results-area .error-message a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for ChatGPT Interface */
@media (max-width: 768px) {
    .chatgpt-hero-section {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .chatgpt-content {
        padding: 2rem 1.5rem;
    }
    
    .chatgpt-content h1 {
        font-size: 2.2rem;
    }
    
    .chatgpt-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .main-input {
        min-height: 100px;
        padding: 16px;
        font-size: 16px;
    }
    
    .generate-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .quick-actions {
        gap: 8px;
    }
    
    .quick-action-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .main-results-area {
        padding: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .main-activity-details {
        grid-template-columns: 1fr;
    }
    
    .main-activity-card {
        padding: 1.5rem;
    }
    
    .main-activity-card::before {
        top: -10px;
        left: 16px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* ===== GENERATOR NAVIGATION STYLES ===== */

.generator-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0 2rem 0;
    flex-wrap: wrap;
}

.generator-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #bfdbfe;
    border: 1px solid #93c5fd;
    border-radius: 2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.generator-nav-btn:hover {
    background: #93c5fd;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.generator-nav-btn .emoji {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .generator-nav {
        gap: 0.5rem;
    }
    
    .generator-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== IMPROVED FORM SPACING AND DROPDOWN STYLES ===== */

.input-options {
    margin: 1rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    max-width: 300px;
    width: fit-content;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    align-items: center;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    text-align: center;
}

.custom-select {
    position: relative;
    max-width: 187px; /* Increased by 25% from 150px */
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-select select:focus {
    outline: none;
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-select::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

.form-grid.two-by-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-grid.two-by-two {
        grid-template-columns: 1fr;
    }
    
    .custom-select {
        max-width: 100%;
    }
    
    /* Ensure all form inputs are at least 16px on mobile to prevent zoom */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

.input-help {
    margin-top: 0.5rem;
    opacity: 0.8;
}

.input-help small {
    font-size: 0.85rem;
    color: #666;
}

/* ===== WORD-FAMILY PREVIEW TWEAKS ===== */
@media screen {
    /* Base preview sizes (shorter than print sizes) */
    .word-family-page .read-col  { font-size: 3rem; }
    .word-family-page .trace-col { font-size: 5rem; }

    /* Adjust for 8–9-letter words */
    .word-family-page tr.word-long  .read-col  { font-size: 2.4rem; }
    .word-family-page tr.word-long  .trace-col { font-size: 4rem;  }

    /* Adjust for 10+-letter words */
    .word-family-page tr.word-xlong .read-col  { font-size: 2rem;  }
    .word-family-page tr.word-xlong .trace-col { font-size: 3.5rem; }

    /* Prevent spillover */
    .word-family-page .read-col,
    .word-family-page .trace-col,
    .word-family-page .write-col {
        overflow: hidden;
        white-space: nowrap;
    }

    /* Slight overall scale on very small screens */
    @media (max-width: 480px) {
        .worksheet-page.word-family-page {
            transform: scale(0.9);
            transform-origin: top left;
        }
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    margin: 2rem 0;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-header h2 {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonials-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.testimonial-card.featured::before {
    content: "⭐ Featured Review";
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.testimonial-content blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    position: relative;
}

.testimonial-content blockquote strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.author-avatar {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.author-title {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.author-location {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.rating {
    color: #ffd700;
    font-size: 0.9rem;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

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

.trust-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.trust-stat p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonials-header h2 {
        font-size: 2rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .trust-stat h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 2rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1rem;
    }
}

/* ===== RESOURCES PAGE STYLING ===== */
.resources-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.resource-box {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.resource-box:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.icon-heading-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resource-box-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.icon-heading {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.resource-box p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.resource-box ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.resource-box li {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* FAQ Section Styling */
.faq-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f1f1;
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

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

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    padding: 1rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::marker {
    content: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer-wrapper {
    margin-top: 1rem;
}

.faq-answer {
    padding: 1rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    background: var(--sage-ultra-light);
    border-radius: 0 8px 8px 0;
    margin-left: 1rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    color: var(--sage-dark);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .resources-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.7rem;
    }
    
    .icon-heading {
        font-size: 1.3rem;
    }
}

/* ===== COMMUNITY LINKS AND BUTTONS ===== */
.community-button {
    display: inline-block;
    background: linear-gradient(135deg, #2563EB, #1e40af);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.community-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.community-link {
    display: inline-block;
    background: linear-gradient(135deg, #2563EB, #1e40af);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.community-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
    color: white !important;
}

/* Make footer community links more prominent */
.footer-links a[href*="skool.com"] {
    background: linear-gradient(135deg, #2563EB, #1e40af);
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.2rem;
}

.footer-links a[href*="skool.com"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    color: white !important;
}

/* ===== EMAIL CAPTURE MESSAGES ===== */
.email-capture-message {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.email-capture-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-capture-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LEARNING TYPE DROPDOWN STYLES ===== */
.learning-type-selector {
    margin-bottom: 1rem;
}

.learning-type-selector label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.learning-type-dropdown {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.learning-type-dropdown:hover {
    border-color: var(--primary-color);
}

.learning-type-dropdown:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .learning-type-dropdown {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== AUTH FORM IMPROVEMENTS ===== */
.auth-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--sage-ultra-light);
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    border: 1px solid #f0f0f0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #dbeafe;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form input::placeholder {
    color: #999;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbeafe;
}

.auth-separator span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.google-signin-btn {
    width: 100%;
    padding: 0.875rem;
    background: white;
    color: var(--text-color);
    border: 2px solid #dbeafe;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.google-signin-btn:hover {
    border-color: var(--primary-color);
    background: var(--sage-ultra-light);
    transform: translateY(-1px);
}

.google-signin-btn img {
    width: 20px;
    height: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Remember me and forgot password */
.remember-forgot {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-me {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0 !important;
}

.remember-me input[type="checkbox"] {
    margin: 0 0.5rem 0 0;
    width: auto;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auth-page-wrapper {
        padding: 1rem;
        min-height: 70vh;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .remember-forgot {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    /* Prevent zoom on iOS */
    .auth-form input {
        font-size: 16px;
    }
}

/* ===== CONTACT FORM IMPROVEMENTS ===== */
.contact-page-wrapper {
    padding: 2rem 0;
    background: var(--sage-ultra-light);
    min-height: 80vh;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

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

.contact-option {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-option:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-option i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-option h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-option p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

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

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #dbeafe;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form .submit-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-form .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-form .success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.email-direct {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.email-direct p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.email-direct a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.email-direct a:hover {
    text-decoration: underline;
}

/* Mobile responsive for contact form */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }
    
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-option {
        padding: 1rem;
    }
    
    /* Prevent zoom on iOS */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }
}

/* ===== VISUAL EXAMPLES SECTION ===== */
.visual-example-section {
    padding: 3rem 0;
    background-color: var(--sage-ultra-light);
    margin-top: 4rem;
}

.visual-example-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.example-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.example-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #dbeafe;
    background: white;
    padding: 1rem;
}

.example-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.example-features h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.example-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-features li {
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.example-features i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .visual-example-section {
        padding: 2rem 0;
    }
    
    .example-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .example-features {
        text-align: center;
    }
    
    .example-features li {
        justify-content: center;
    }
    
    .visual-example-section h2 {
        font-size: 1.7rem;
    }
}

