:root {
    --primary-color: #FF9933;
    --secondary-color: #138808;
    --accent-color: #000080;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    font-weight: 400;
}

.intro {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 0% ;
}

.chapters-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.chapter-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.chapter-card a {
    display: block;
    padding: 1.3rem;
    text-decoration: none;
    color: var(--text-color);
}

.chapter-number {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.chapter-title-en {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.chapter-title-hi {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.chapter-desc {
    font-size: 0.9rem;
    color: #666;
}

footer {
    background: linear-gradient(135deg, var(--accent-color), #000);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Chapter Content Styles */
.chapter-content {
    display: none;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.chapter-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.chapter-text {
    white-space: pre-line;
    line-height: 1.8;
}

.back-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

button{
    background-color: #e25239;
    padding: 5px;
    width: 100px;
}


@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .chapters-container {
        grid-template-columns: 1fr;
    }
    
    .intro {
        padding: 1rem;
        margin: 1rem auto;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chapter-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.chapter-card:nth-child(1) { animation-delay: 0.1s; }
.chapter-card:nth-child(2) { animation-delay: 0.2s; }
.chapter-card:nth-child(3) { animation-delay: 0.3s; }
.chapter-card:nth-child(4) { animation-delay: 0.4s; }
.chapter-card:nth-child(5) { animation-delay: 0.5s; }
.chapter-card:nth-child(6) { animation-delay: 0.6s; }
.chapter-card:nth-child(7) { animation-delay: 0.7s; }
.chapter-card:nth-child(8) { animation-delay: 0.8s; }
.chapter-card:nth-child(9) { animation-delay: 0.9s; }
.chapter-card:nth-child(10) { animation-delay: 1.0s; }
.chapter-card:nth-child(11) { animation-delay: 1.1s; }
.chapter-card:nth-child(12) { animation-delay: 1.2s; }
.chapter-card:nth-child(13) { animation-delay: 1.3s; }
.chapter-card:nth-child(14) { animation-delay: 1.4s; }
.chapter-card:nth-child(15) { animation-delay: 1.5s; }
.chapter-card:nth-child(16) { animation-delay: 1.6s; }
.chapter-card:nth-child(17) { animation-delay: 1.7s; }
.chapter-card:nth-child(18) { animation-delay: 1.8s; }