.back-btn {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: all 0.4s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(245, 124, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.back-btn:hover {
    transform: translateY(-4px) rotateY(15deg);
    box-shadow: 0 12px 24px rgba(245, 124, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stats-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 225, 0.8));
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(245, 124, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 225, 0.8));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(245, 124, 0, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #5d4037;
    font-weight: 600;
}

.chapters-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 225, 0.8));
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(245, 124, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #e65100;
    margin-bottom: 30px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.chapter-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.9));
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 25px rgba(245, 124, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border-left: 6px solid #ff9800;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotate 12s linear infinite;
}

.chapter-card:hover {
    transform: translateY(-8px) rotateY(3deg) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(245, 124, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chapter-number {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: inline-block;
}

.chapter-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3e2723;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.chapter-summary {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5d4037;
    margin-bottom: 15px;
}

.read-btn {
    background: linear-gradient(45deg, #e65100, #d84315);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(230, 81, 0, 0.3);
    width: 100%;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 81, 0, 0.4);
}

.chapter-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.content-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 225, 0.95));
    border-radius: 25px;
    padding: 40px;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(245, 124, 0, 0.3), inset 0 4px 8px rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(255, 193, 7, 0.5);
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(45deg, #e65100, #d84315);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(230, 81, 0, 0.3);
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 12px rgba(230, 81, 0, 0.4);
}

.content-title {
    font-size: 2rem;
    color: #e65100;
    margin-bottom: 20px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3e2723;
    text-align: justify;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text h3 {
    color: #e65100;
    margin: 25px 0 15px 0;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .controls {
        position: fixed;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 20px;
    }

    .toggle-btn,
    .back-btn {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .content-box {
        margin: 10px;
        padding: 25px;
        max-height: 85vh;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .content-text {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .chapter-card {
        padding: 20px;
    }

    .content-box {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.verses-section {
    background:
        linear-gradient(145deg, rgba(248, 246, 240, 0.95), rgba(205, 133, 63, 0.08));
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid var(--primary-brown);
    box-shadow: 0 8px 16px var(--shadow-light);
}

.verse {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid rgba(205, 133, 63, 0.2);
    box-shadow: 0 6px 12px var(--shadow-light);
    transition: all 0.3s ease;
}

.verse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-medium);
    border-color: var(--secondary-brown);
}

.verse-number {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 1rem;
    margin-bottom: 15px;
    background: rgba(139, 69, 19, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.verse-sanskrit {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
    background: rgba(205, 133, 63, 0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.verse-translation {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 15px;
    font-weight: 500;
}

.verse-meaning {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    background: rgba(160, 82, 45, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-brown);
}