/* =========================================
   SahityaShala – Core Styles
   ========================================= */

:root {
    --primary: #f4b400;   /* Sahitya yellow */
    --dark: #111111;
    --light: #ffffff;
    --muted: #666666;
    --paper: #faf7f2;
    --border: #e5e5e5;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ---------- Global ---------- */
body {
    font-family: 'Noto Serif Devanagari', 'Hind', serif;
    background: var(--paper);
    color: var(--dark);
    line-height: 1.75;
}

a {
    text-decoration: none;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 3px;
    background: var(--primary);
    display: block;
    margin: 15px auto 0;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
    background: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f")
        center center / cover no-repeat;
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.85)
    );
}

.hero-section h1 {
    letter-spacing: 1px;
}

.hero-section p {
    max-width: 750px;
    margin: auto;
    color: #eee;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn-warning {
    background: var(--primary);
    border: none;
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    background: #d89c00;
    color: #000;
}

.btn-outline-light {
    border-width: 2px;
}

/* =========================================
   LANGUAGE SWITCH
   ========================================= */

.language-switch,
form select {
    border-radius: 30px;
    padding: 8px 20px;
    border: none;
    box-shadow: var(--shadow);
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.section p {
    font-size: 1.05rem;
    color: #333;
}

/* =========================================
   GENRE CARDS
   ========================================= */

.section.bg-light .col-md-3 {
    background: #fff;
    padding: 30px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all .3s ease;
}

.section.bg-light .col-md-3:hover {
    transform: translateY(-6px);
}

.section.bg-light h6 {
    margin-top: 10px;
    font-size: 1.05rem;
}

/* =========================================
   HOW IT WORKS
   ========================================= */

ol {
    max-width: 600px;
    margin: auto;
    font-size: 1.05rem;
}

ol li {
    padding: 10px 0;
}

/* =========================================
   CTA SECTION
   ========================================= */

.section.bg-dark {
    background: var(--dark) !important;
}

.section.bg-dark h2 {
    font-weight: 700;
}

/* =========================================
   FOOTER OVERRIDE (Optional)
   ========================================= */

footer {
    background: #0e0e0e;
    color: #aaa;
    font-size: .95rem;
}

/* =========================================
   MULTI-LANGUAGE TYPOGRAPHY
   ========================================= */

/* Urdu */
html[lang="ur"] body {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
}

/* English */
html[lang="en"] body {
    font-family: 'Merriweather', serif;
}

/* Bengali */
html[lang="bn"] body {
    font-family: 'Noto Serif Bengali', serif;
}

/* Tamil */
html[lang="ta"] body {
    font-family: 'Noto Serif Tamil', serif;
}

/* Telugu */
html[lang="te"] body {
    font-family: 'Noto Serif Telugu', serif;
}

/* Marathi */
html[lang="mr"] body {
    font-family: 'Noto Serif Devanagari', serif;
}

/* =========================================
   RESPONSIVE
   ========================================= */
.lang-switch {
    background: #222;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .9rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 85vh;
    }

    .section-title {
        font-size: 1.7rem;
    }
}

/* ==============================
   HEADER / NAVBAR
   ============================== */
/* Desktop default */
.nav-menu {
    display: block;
}
.main-header {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: #f4b400;
}

/* Nav Menu */
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
}

.nav-menu a {
    color: #fff;
    font-size: .95rem;
    position: relative;
}

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

/* Login Button */
.btn-login {
    background: #f4b400;
    color: #000 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: #222;
    min-width: 180px;
    display: none;
    flex-direction: column;
    border-radius: 6px;
}

.dropdown-menu li {
    border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 10px 14px;
    display: block;
}

/* Hover for desktop */
.dropdown:hover .dropdown-menu {
    display: block;
}


/* ==============================
   HAMBURGER
   ============================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 26px;
    background: #fff;
    margin-bottom: 5px;
    border-radius: 2px;
}

/* ==============================
   MOBILE RESPONSIVE
   ============================== */

@media (max-width: 991px) {

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 70px);
        background: #111;
        transition: right .3s ease;
        padding: 20px;
    }

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

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        border: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

