/* ========================================
   閱讀點亮未來 - 公益送書活動
   Color Palette: Malachite Stone
   Primary: #1A535C (Deep Teal)
   Accent: #B08B59 (Golden Bronze)
   Dark: #2D2D2D (Charcoal)
   ======================================== */

/* CSS Variables */
:root {
    --primary: #1A535C;
    --primary-light: #2A6A75;
    --primary-dark: #0F3A41;
    --accent: #B08B59;
    --accent-light: #C9A470;
    --accent-dark: #8A6C44;
    --dark: #2D2D2D;
    --dark-light: #4A4A4A;
    --text: #2D2D2D;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #FFFFFF;
    --off-white: #F8F6F3;
    --cream: #F5F1EB;
    --border: rgba(26, 83, 92, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(26, 83, 92, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 83, 92, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 83, 92, 0.16);
    --shadow-accent: 0 4px 20px rgba(176, 139, 89, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--off-white);
    overflow-x: hidden;
    padding-bottom: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(176, 139, 89, 0.4);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 24px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Notification Bubble */
.notification-bubble {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: var(--transition);
}

.notification-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.bubble-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent);
}

.bubble-content i {
    font-size: 20px;
    color: var(--accent);
}

.bubble-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: url(../images/bgc.png)no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(176, 139, 89, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(176, 139, 89, 0.1) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='rgba(176,139,89,0.03)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.floating-books {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-book {
    position: absolute;
    font-size: 40px;
    color: rgba(176, 139, 89, 0.2);
    animation: float 6s ease-in-out infinite;
}

.book-1 { top: 15%; left: 10%; animation-delay: 0s; }
.book-2 { top: 25%; right: 15%; animation-delay: 1.5s; }
.book-3 { bottom: 30%; left: 8%; animation-delay: 3s; }
.book-4 { bottom: 20%; right: 10%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(176, 139, 89, 0.2);
    border: 1px solid rgba(176, 139, 89, 0.4);
    border-radius: var(--radius-xl);
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(176, 139, 89, 0.5);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-hint {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.cta-hint i {
    margin-right: 5px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(26, 83, 92, 0.1);
    border-radius: var(--radius-xl);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-tag.center {
    display: inline-flex;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Section Grid - Left/Right Image */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-grid.left-image .section-image {
    order: 1;
}

.section-grid.left-image .section-content {
    order: 2;
}

.section-grid.right-image .section-content {
    order: 1;
}

.section-grid.right-image .section-image {
    order: 2;
}

.image-frame {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20L20 0z' fill='rgba(176,139,89,0.1)'/%3E%3C/svg%3E");
}

.image-placeholder i {
    font-size: 80px;
    color: rgba(176, 139, 89, 0.5);
    position: relative;
    z-index: 1;
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    top: 20px;
    left: -20px;
    z-index: -1;
}

.image-decoration.right {
    left: auto;
    right: -20px;
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text);
}

.feature-list i {
    font-size: 20px;
    color: var(--accent);
}

/* Books Section */
.books {
    background: var(--cream);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.book-category {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.book-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.book-category.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.book-category.featured h3,
.book-category.featured p {
    color: var(--white);
}

.book-category.featured .book-icon {
    background: rgba(176, 139, 89, 0.3);
}

.book-category.featured .book-list li {
    color: rgba(255, 255, 255, 0.9);
}

.category-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 16px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.book-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(26, 83, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-icon i {
    font-size: 32px;
    color: var(--accent);
}

.book-category h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.book-category p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.book-list {
    list-style: none;
    text-align: left;
}

.book-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    border-top: 1px solid var(--border);
}

.book-list li:first-child {
    border-top: none;
}

.book-list i {
    color: var(--accent);
    font-size: 12px;
}

/* Quote Box */
.quote-box {
    position: relative;
    padding: 25px 30px;
    background: rgba(26, 83, 92, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 30px 0;
}

.quote-box i {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 24px;
    color: var(--accent);
    background: var(--off-white);
    padding: 5px;
}

.quote-box p {
    font-size: 18px;
    font-style: italic;
    color: var(--primary);
    margin: 0;
}

/* Mission Stats */
.mission-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.mission-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mission-stat i {
    font-size: 28px;
    color: var(--accent);
}

.mission-stat .number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.mission-stat .label {
    font-size: 14px;
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    background: var(--white);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--cream);
    -webkit-text-stroke: 2px var(--accent);
    margin-bottom: 20px;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.step-icon i {
    font-size: 36px;
    color: var(--white);
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    font-size: 15px;
    color: var(--text-light);
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 100px;
    color: var(--accent);
    font-size: 24px;
}

/* Reviews Section */
.reviews {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.reviews .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
}

.reviews .section-title {
    color: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-avatar i {
    font-size: 20px;
    color: var(--white);
}

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.reviewer-title {
    font-size: 13px;
    color: var(--text-muted);
}

.review-rating {
    margin-left: auto;
}

.review-rating i {
    color: var(--accent);
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.review-book {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary);
}

.review-book i {
    color: var(--accent);
}

/* FAQ Section */
.faq {
    background: var(--off-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    background: none;
    border: none;
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 14px;
    color: var(--accent);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 22px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: var(--cream);
}

.contact-wrapper {
    text-align: center;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-header .section-title {
    margin-bottom: 15px;
}

.contact-header .section-subtitle {
    max-width: 500px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.contact-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.contact-card.featured h3,
.contact-card.featured p {
    color: var(--white);
}

.contact-card.featured .contact-icon {
    background: rgba(176, 139, 89, 0.3);
}

.contact-card.featured .contact-hint {
    color: rgba(255, 255, 255, 0.7);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-accent);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(26, 83, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 32px;
    color: var(--accent);
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-card .btn {
    margin-bottom: 15px;
}

.contact-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.contact-feature i {
    font-size: 18px;
    color: var(--accent);
}

/* Legacy form styles - kept for compatibility */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-light);
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Fixed CTA Button */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 15px 20px;
   
    display: flex;
    justify-content: center;
}

.fixed-cta .btn {
    max-width: 400px;
    width: 100%;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: translateY(30px);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 20px;
}

.modal-content h2 i {
    color: var(--accent);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 16px;
    margin: 25px 0 10px;
    color: var(--primary);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    background: var(--white);
    padding: 30px;
    transform: translateX(-100%);
    transition: var(--transition);
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-grid {
        gap: 50px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-grid.left-image .section-image,
    .section-grid.left-image .section-content,
    .section-grid.right-image .section-image,
    .section-grid.right-image .section-content {
        order: unset;
    }
    
    .image-decoration {
        display: none;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 50px;
    }
    
    .contact-card.featured {
        transform: none;
        order: -1;
    }
    
    .contact-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .contact-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .notification-bubble {
        left: 10px;
        right: 10px;
        bottom: 90px;
    }
    
    .bubble-content {
        width: 100%;
    }
    
    .mission-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .btn-lg {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .book-category {
        padding: 30px 20px;
    }
    
    .review-card {
        padding: 25px 20px;
    }
    
    .apply-wrapper {
        padding: 30px 20px;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

