/* Book Page Custom Styles */

/* Hero Section */
.book-hero {
    background: linear-gradient(135deg, rgba(102,126,234,0.95) 0%, rgba(118,75,162,0.85) 50%, rgba(69,183,209,0.95) 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.book-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.book-hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-family: var(--font-heading);
}

.book-hero .tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Navigation Grid for Sub-pages */
.book-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .book-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .book-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.book-nav-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.book-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #2c5530 0%, #8b4513 100%);
    transition: height 0.3s ease;
}

.book-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #2c5530;
}

.book-nav-card:hover::before {
    height: 100%;
}

.book-nav-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5530 0%, #1a3320 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.book-nav-card:hover .book-nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.book-nav-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #1a3320;
    font-family: var(--font-heading);
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .book-nav-card h3 {
        font-size: 1.5rem;
    }
}

.book-nav-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .book-nav-card p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

.book-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-nav-card:hover .book-nav-arrow {
    transform: translateX(8px);
}

/* Achievement Grid - for stats and quick facts */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .achievement-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2c5530 0%, #1a3320 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1);
}

.achievement-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a3320;
    font-family: var(--font-heading);
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.05) 0%, rgba(26, 51, 32, 0.05) 100%);
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    position: relative;
}

.quote-box::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 3rem;
    color: rgba(44, 85, 48, 0.15);
    z-index: 0;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #1a3320;
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    padding-left: 3rem;
}

.quote-author {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
    margin: 0;
}

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    border: 2px solid rgba(139, 69, 19, 0.1);
}

.highlight-section h3 {
    font-size: 1.8rem;
    color: #1a3320;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-section h3 i {
    color: var(--accent-color);
}

/* About Content Styles */
.about-content {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about-content {
        max-width: 1000px;
    }
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .about-text {
        font-size: 1.2rem;
        line-height: 1.9;
    }
}

.about-text p {
    margin-bottom: 1.75rem;
}

.about-description {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a3320;
    line-height: 1.7;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .about-description {
        font-size: 1.5rem;
        line-height: 1.75;
    }
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100%;
    margin: -1rem auto 2rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section-subtitle {
        max-width: 800px;
        font-size: 1.25rem;
    }
}

/* Timeline Styles */
.timeline-container {
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5530 0%, #8b4513 50%, #f39c12 100%);
    border-radius: 2px;
    z-index: 0;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.timeline-item {
    text-align: center;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 4px solid var(--background-light);
}

.timeline-icon.green {
    background: #2c5530;
}

.timeline-icon.brown {
    background: #8b4513;
}

.timeline-icon.orange {
    background: #f39c12;
}

/* Mobile-only adjustments (these won't override desktop layouts) */
@media (max-width: 767px) {
    .book-nav-card {
        padding: 1.5rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .quote-text {
        font-size: 1.1rem;
        padding-left: 2rem;
    }

    .quote-box::before {
        font-size: 2rem;
        top: 1rem;
        left: 1rem;
    }

    .highlight-section {
        padding: 1.5rem;
    }

    .highlight-section h3 {
        font-size: 1.5rem;
    }

    /* Timeline Mobile Adjustments */
    .timeline-items {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline-line {
        display: none; /* Hide horizontal line on mobile */
    }

    /* Add vertical line for mobile */
    .timeline-container::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 35px;
        width: 4px;
        background: linear-gradient(180deg, #2c5530 0%, #8b4513 50%, #f39c12 100%);
        border-radius: 2px;
        z-index: 0;
    }

    .timeline-item {
        text-align: left;
        padding-left: 0;
    }

    .timeline-icon {
        margin: 0 0 1rem 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
