:root {
    --primary-color: #333333;
    --accent-color: #2196F3;
    --background-color: #ffffff;
    --text-color: #424242;
    --border-color: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* .header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
} */

.header {
    position: relative;
    display: flex;
    /* justify-content: space-between;
     */
     justify-content: center;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 20px;
}

.back-arrow-overlay {
    position: absolute;
    left: 20px;
    top: 55%;
    transform: translateY(-50%);
    cursor: pointer;
    text-decoration: none;
}

.back-arrow-overlay svg {
    transition: transform 0.2s;
}

.back-arrow-overlay:hover svg {
    transform: translateX(-3px); /* Subtle movement on hover */
}

.logo {
    font-family: 'Noto Serif', serif;
    font-size: 32px;
    color: #333;
    text-decoration: none;
}

.menu-btn, .search-btn {
    background: none;
    border: none;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    z-index: 1000;
    padding-top: 60px;
}

.nav-menu.active {
    left: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu a:hover {
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.title-separator {
    width: 150px;
    margin: 1.5rem auto 2.5rem;
    border: none;
    border-top: 2px solid var(--primary-color);
    position: relative;
}

.title-separator::before {
    content: "॥";
    position: absolute;
    left: -20px;
    top: -12px;
    color: var(--accent-color);
}

.title-separator::after {
    content: "॥";
    position: absolute;
    right: -20px;
    top: -12px;
    color: var(--accent-color);
}

.toggle-container {
    text-align: center;
    margin: 2rem 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0 10px;
    vertical-align: middle;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.language-label {
    font-size: 1rem;
    color: var(--text-color);
    vertical-align: middle;
}

.verse {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 2;
}

.verse.hindi {
    font-family: 'Noto Serif', serif;
}

.verse.english {
    font-style: italic;
    display: none;
    color: #666;
    font-size: 1rem;
}

.prose {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 2;
}

.prose.hindi {
    font-family: 'Noto Serif', serif;
}

.prose.english {
    font-style: italic;
    display: none;
    color: #666;
    font-size: 1rem;
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
    font-weight: 700;
}

.heart {
    color: #e25555;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .verse {
        font-size: 1.1rem;
    }
}