* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ffd700 50%, #ff8c00 75%, #ff4500 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c1810;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 30px;
}

.header h1 {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header .sanskrit-title {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 15px;
    font-style: italic;
}

.header p {
    font-size: 1.2rem;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 12px 24px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
}

.lang-btn:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.chapter-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 6px solid #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    border-radius: 0 15px 0 50px;
    opacity: 0.1;
}

.chapter-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 10px;
    text-align: center;
}

.chapter-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c1810;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapter-verses {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.chapter-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.chapter-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.chapter-details.expanded {
    max-height: 800px;
}

.chapter-details-content {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.key-teachings {
    margin-bottom: 20px;
}

.key-teachings h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.key-teachings ul {
    list-style: none;
    padding-left: 0;
}

.key-teachings li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    line-height: 1.5;
}

.key-teachings li::before {
    content: '🕉️';
    position: absolute;
    left: 0;
    top: 5px;
}

.expand-btn {
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.expand-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.stats-section {
    background: url("images/profile6.jpg") center/cover no-repeat;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header .sanskrit-title {
        font-size: 1.3rem;
    }

    .chapters-grid {
        grid-template-columns: 1fr;
    }

    .language-selector {
        gap: 10px;
    }

    .lang-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

.page-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff6b35;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.page-link:hover {
    background: #ff4500;
    transform: scale(1.05);
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid var(--accent);
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
}

.nav-btn:hover {
    transform: scale(1.02);
}









.image-gallery {
    margin-top: 60px;
    text-align: center;
}

.image-gallery h2 {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 15px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.header {
    margin-bottom: 40px;
    padding: 100px 20px;
    /* bigger padding for hero look */
    border-radius: 15px;
    background: url("images/profile1.jpg") center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Dark overlay to keep text readable */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 253, 253, 0.45);
    z-index: 1;
}



/* 🔹 Responsive adjustments */
@media (max-width: 992px) {
    .header {
        padding: 80px 15px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .header .sanskrit-title {
        font-size: 1.4rem;
    }

    .header p {
        font-size: 1rem;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 20px 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header .sanskrit-title {
        font-size: 1.2rem;
    }

    .header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        perspective: 100px;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-grid img {
        flex: 0 0 auto;
        height: 120px;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        scroll-snap-align: center;
        transition: transform 0.4s ease;
    }
}

.footer {
    margin-top: 20px;
    text-align: center;
    background: linear-gradient(135deg, #ff8c00 0%, #f7931e 25%, #ffd700 50%, #ff6b35 75%, #ff4500 100%);
}
