/* ========================================
   CSS VARIABLES - Global Colors & Fonts
   ======================================== */
:root {
    /* Primary Colors - Beach, Sea & Sun Theme */
    --color-primary-blue: #87CEEB;
    /* Light Blue (Sky/Sea) */
    --color-primary-yellow: #FFD700;
    /* Bright Yellow (Sun) */
    --color-accent-green: #90EE90;
    /* Light Green (accent) */

    /* Supporting Colors */
    --color-blue-dark: #437e8e;
    /* Darker blue for depth */
    --color-yellow-soft: #FFF4B3;
    /* Soft yellow for backgrounds */
    --color-green-accent: #7CB982;
    /* Medium green for accents */

    /* Gradients */
    --gradient-teal: linear-gradient(135deg, #437e8e 0%, #87CEEB 100%);
    /* Teal to light blue gradient */
    --gradient-green: linear-gradient(135deg, #90EE90 0%, #7CB982 100%);
    /* Light to medium green gradient */

    /* Neutral Colors */
    --color-text-primary: #2c2c2c;
    /* Main text color */
    --color-text-secondary: #5a5a5a;
    /* Secondary text */
    --color-background: #FAFDF9;
    /* Main background */
    --color-white: #ffffff;

    /* Fonts */
    --font-primary: 'Spline Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 40px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, #FFE680 0%, var(--color-background) 50%, #A8D8FF 100%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Link Styles */
a {
    color: var(--color-blue-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

a:visited {
    color: #5a7d8a;
}

/* Content area links (within paragraphs) */
.chapter-text a,
.key-points a,
p a {
    color: var(--color-blue-dark);
    text-decoration: underline;
    text-decoration-color: rgba(67, 126, 142, 0.3);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.chapter-text a:hover,
.key-points a:hover,
p a:hover {
    color: var(--color-primary-blue);
    text-decoration-color: var(--color-primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-blue-dark);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 3rem 0 4rem;
    background: transparent;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-yellow) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.book-cover {
    flex-shrink: 0;
    filter: drop-shadow(var(--shadow-lg));
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-25px);
}

.book-cover img {
    width: 600px;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.hero-text {
    display: flex;
    align-items: center;
    flex: 1;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
    min-width: 200px;
    max-height: 70px;
    text-align: center;
    white-space: nowrap;
}

.cta-primary {
    background: var(--gradient-teal);
    color: var(--color-white) !important;
    border: none;
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.3);
}

/* Dropdown Order Button Styles */
.dropdown-order-button {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: none;
    z-index: 100;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    background: var(--gradient-teal);
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-order-button:hover .dropdown-arrow {
    transform: translateY(2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--color-text-primary) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.dropdown-item:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(67, 126, 142, 0.1) 0%, rgba(135, 206, 235, 0.1) 100%);
    color: var(--color-blue-dark) !important;
}

.dropdown-item .flag {
    font-size: 1.5em;
    line-height: 1;
}

.cta-primary:hover {
    background: linear-gradient(135deg, #3A7A8A 0%, #6BBEDB 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 164, 0.4);
    color: var(--color-white) !important;
}

.cta-secondary {
    background: var(--gradient-teal);
    color: var(--color-white) !important;
    border: none;
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.3);
}

.cta-secondary:hover {
    background: linear-gradient(135deg, #3A7A8A 0%, #6BBEDB 100%);
    color: var(--color-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 164, 0.4);
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.section-text {
    flex: 1;
}

.section-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-text p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

/* About Us Section */
.about-us {
    background-color: var(--color-background);
}

.about-us .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 0px;
}

.about-us .section-content {
    gap: 5rem;
}

.author-photo {
    width: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-top: 5rem;
}

.author-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.author-photo:hover {
    transform: scale(1.02);
}

.about-us .section-text {
    flex: 1;
}

.about-us .section-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-us .section-text p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    font-size: 0.88rem;
}

.about-us .section-text p:last-of-type {
    margin-bottom: 0;
}

/* Book Overview Section */
.book-overview {
    background-color: transparent;
    padding: var(--spacing-lg) 0;
    backdrop-filter: blur(10px);
}

.overview-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.overview-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.overview-content .lead-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.overview-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.overview-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.discovery-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.discovery-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.discovery-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-blue-dark);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.6;
}

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

.overview-content .closing-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-top: 1.5rem;
    padding: 1.2rem;
    background-color: var(--color-yellow-soft);
    border-left: 4px solid var(--color-primary-yellow);
    border-radius: var(--radius-sm);
}

.overview-content .closing-text em {
    font-style: italic;
    font-weight: 600;
}

/* Reviews Section */
.reviews-section {
    background: var(--color-background);
    padding: 3rem 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.reviews-container {
    width: 100%;
}

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

.reviews-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.reviews-scroll-wrapper::before,
.reviews-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.reviews-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.reviews-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

.reviews-track {
    display: flex;
    gap: 1rem;
    animation: scroll-reviews 60s linear infinite;
    width: max-content;
}

@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    background: transparent;
    padding: 2rem;
    min-width: 500px;
    max-width: 500px;
    flex-shrink: 0;
    text-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: scale(1.05);
}

.review-card .review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    min-height: auto;
}

.review-card .review-source {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    letter-spacing: 0.02rem;
    margin-bottom: 0.3rem;
}

.review-card .review-credentials {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    font-style: italic;
    letter-spacing: 0.01rem;
}

/* Join Community Section */
.join-community {
    background: transparent;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.join-community::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.community-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.form-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.form-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.community-form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

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

.form-full {
    margin-bottom: 1.2rem;
}

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

.form-group input {
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background-color: var(--color-white);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.form-group select,
.form-group textarea {
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background-color: var(--color-white);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.15);
}

.submit-button {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-primary-blue) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.2rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 164, 0.3);
    background: linear-gradient(135deg, #3A7A8A 0%, #6BBEDB 100%);
}

.form-disclaimer {
    margin-bottom: 1rem;
}

.form-disclaimer p {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: justify;
    text-align-last: center;
}

/* Footer */
.footer {
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--color-text-primary);
    text-align: center;
    padding: 3rem 0;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        justify-content: center;
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 0 5rem;
    }

    .hero-content,
    .section-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .section-text h2 {
        font-size: 2rem;
    }

    .section-text p {
        font-size: 1.1rem;
    }

    .book-cover img {
        width: 280px;
    }

    .author-photo,
    .book-info {
        width: 100%;
        max-width: 320px;
        height: 320px;
    }

    .forms-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   DIVE DEEPER PAGE STYLES
   ======================================== */

/* Chapters Grid Section */
.chapters-section {
    padding: 3rem 0 2rem;
    background: transparent;
}

.chapters-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.chapter-tile {
    position: relative;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chapter-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.chapter-tile:hover {
    transform: scale(1.02);
}

/* Black overlay */
.chapter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.chapter-tile:hover .chapter-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Text content */
.chapter-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.chapter-tile h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Workshop Section */
.workshop-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('../img/home_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.workshop-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.workshop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 112, 120, 0.5);
    transition: background-color 0.3s ease;
}

.workshop-section:hover .workshop-overlay {
    background-color: rgba(62, 112, 120, 0.75);
}

.workshop-section .container {
    position: relative;
    z-index: 1;
}

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

.workshop-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.workshop-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-white);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.workshop-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--color-text-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.workshop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: #1a1a1a;
}

/* Chapter Pages */
.chapter-hero {
    padding: 6rem 0 5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/food_banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
}

.chapter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.chapter-hero-content {
    position: relative;
    z-index: 1;
}

.chapter-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.chapter-subtitle {
    font-size: 1.3rem;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Fridge Makeover Section */
.fridge-makeover-section {
    padding: 5rem 0;
    background: var(--color-white);
}

.makeover-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.makeover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.makeover-column {
    text-align: center;
}

.makeover-label {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.makeover-image {
    background: var(--color-background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.makeover-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.makeover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chapter-content-section {
    padding: 1rem 0 1rem;
    background: var(--color-white);
}

.chapter-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.chapter-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    letter-spacing: -0.01em;
}

.chapter-text .subtitle {
    display: block;
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(44, 44, 44, 0.65);
    margin-bottom: 1.5rem;
    margin-top: 0.25rem;
}

.chapter-text h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.chapter-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.chapter-text iframe {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 2rem auto;
    display: block;
}

/* Article Preview Card - matches video embed style */
.article-preview-card {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.article-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-blue);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-accent-green) 100%);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-info {
    padding: 1.5rem 2rem;
}

.article-info h4 {
    color: var(--color-text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.article-publisher {
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Iframe link subtitle */
.iframe-link {
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.iframe-link a {
    color: var(--color-blue-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.iframe-link a:hover {
    color: var(--color-primary-blue);
}

.key-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.key-points li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
}

.key-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-blue-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Workshop Widget Section */
.workshop-widget-section {
    padding: 3rem 0 0rem;
    background: var(--color-white);
}

.workshop-widget {
    max-width: 900px;
    margin: 0 auto;
    background: #E6F4F9;
    border-left: 4px solid var(--color-primary-blue);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.workshop-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.workshop-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.workshop-content {
    padding: 0 2rem 2rem;
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
}

.workshop-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 2rem;
}

.workshop-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.workshop-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 1.5rem;
}

.workshop-content ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.workshop-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Show Me the Math Section */
.math-section {
    padding: 1rem 0 4rem;
    background: var(--color-white);
}

.math-widget {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-yellow-soft);
    border-left: 4px solid var(--color-primary-yellow);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.math-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.math-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text-primary);
    line-height: 1;
    transition: transform 0.3s ease;
}

.math-content {
    padding: 0 2rem 2rem;
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
}

.math-content p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.email-draft p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
}


/* Math Link Emphasis */
.math-link {
    font-weight: 600;
    font-size: 1.6rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.math-link:hover {
    text-decoration-thickness: 3px;
    transform: translateY(-1px);
}

/* Order Book Section */
.order-book-section {
    padding: 5rem 0;
    background: transparent;
}

.order-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.order-book-section .book-cover {
    flex-shrink: 0;
}

.order-book-section .book-cover img {
    width: 350px;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    filter: drop-shadow(var(--shadow-lg));
    transition: transform 0.3s ease;
}

.order-book-section .book-cover img:hover {
    transform: translateY(-10px);
}

.order-text {
    display: flex;
    align-items: center;
}

.order-buttons {
    display: flex;
    gap: 2rem;
}

/* Responsive for Dive Deeper page */
@media (max-width: 768px) {
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chapters-title {
        font-size: 2.5rem;
    }

    .workshop-content h2 {
        font-size: 2.5rem;
    }

    .order-content {
        flex-direction: column;
        gap: 2rem;
    }

    .order-book-section .book-cover img {
        width: 300px;
    }
}

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

    .chapter-tile {
        padding: 2rem 1.5rem;
    }

    .workshop-content h2 {
        font-size: 2rem;
    }

    .workshop-content p {
        font-size: 1rem;
    }

    /* Article preview card responsive */
    .article-image {
        height: 200px;
    }

    .article-info {
        padding: 1.2rem 1.5rem;
    }

    .article-info h4 {
        font-size: 1.2rem;
    }

    .article-publisher {
        font-size: 0.9rem;
    }
}

/* ================== ABOUT THE BOOK PAGE ================== */
.about-page {
    background: var(--color-white);
}

/* ================== SPEAKING PAGE STYLES ================== */

/* Nav with Page Title */
.nav-with-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-page-title:hover {
    color: var(--color-blue-dark);
}

/* Speaking Hero Section */
.speaking-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: transparent;
}

.speaking-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Individual Speaker Sections (Vertical Layout) */
.speaker-section-individual {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* .speaker-section-individual:nth-child(odd) {
    background: transparent;
} */

.speaker-card-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

/* Keep old styles for backwards compatibility */
.speakers-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.speaker-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Speaker Image Block */
.speaker-image-block {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.speaker-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.speaker-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.speaker-info p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.ted-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ted-link:hover {
    color: var(--color-blue-dark);
}

.stern-link {
    color: var(--color-blue-dark);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stern-link:hover {
    color: var(--color-primary-blue);
}

/* Speaking CTA Section */
.speaking-cta-section {
    padding: 3rem 0 5rem;
    background: transparent;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box {
    background: var(--gradient-teal);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cta-box p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-diy a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Responsive Styles for Speaking Page */
@media (max-width: 768px) {
    .nav-with-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-page-title {
        font-size: 1.1rem;
    }

    .speaking-hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .speaker-card-full {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-box {
        padding: 2.5rem 2rem;
        min-height: 150px;
    }

    .cta-box p {
        font-size: 1.2rem;
    }

    .makeover-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .makeover-title {
        font-size: 2rem;
    }

    .makeover-label {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .speaking-hero {
        padding: 4rem 0 3rem;
    }

    .speaking-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .speaker-color-block h3 {
        font-size: 1.5rem;
    }

    .speaker-info h4 {
        font-size: 1.1rem;
    }

    .speaker-info p {
        font-size: 1rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
        min-height: 130px;
    }

    .cta-box p {
        font-size: 1.1rem;
    }
}

/* ========================================
   Grid Layout Styles (Decisions Page)
   ======================================== */
.decisions-grid-section {
    padding: 2rem;
    width: 100%;
    background: var(--color-background);
}

.decisions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    min-height: 350px;
    box-shadow: var(--shadow-md);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.grid-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.3s ease;
}

.grid-item:hover .grid-item-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.grid-item-content {
    position: relative;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-item-content {
    transform: translateY(-10px);
}

.grid-item-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: white;
}

.grid-item-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-item-title {
        font-size: 2rem;
    }

    .grid-item-subtitle {
        font-size: 1rem;
    }

    .grid-item {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .decisions-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .grid-item-large {
        grid-row: auto;
        min-height: 400px;
    }

    .grid-item-group {
        grid-template-rows: auto;
    }

    .grid-item-medium {
        min-height: 350px;
    }

    .grid-item-title {
        font-size: 1.8rem;
    }

    .grid-item {
        padding: 2rem 1.5rem;
    }
}