* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #fff3e0;
    color: #4e342e;
}

/* HEADER */

.site-header {
    background: #ff6f00;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.logo {
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 20px;
    font-weight: bold;
}

.logo small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    opacity: .9;
}

.om {
    font-size: 42px;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 8px;
    font-weight: 600;
}

.main-nav a:hover {
    background: rgba(255,255,255,.18);
}

/* MAIN */

.main-content {
    min-height: calc(100vh - 300px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

/* HERO */

.hero {
    background:
        linear-gradient(
            135deg,
            #ff6f00,
            #e65100
        );

    color: white;

    padding: 70px 25px;

    text-align: center;

    margin-bottom: 35px;
}

.hero h1 {
    font-size: 48px;
    margin: 0 0 15px;
}

.hero p {
    font-size: 19px;
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
}

.hero-om {
    font-size: 70px;
    margin-bottom: 15px;
}

/* BUTTON */

.btn {
    display: inline-block;

    text-decoration: none;

    padding: 12px 20px;

    border-radius: 9px;

    font-weight: bold;

    border: none;

    cursor: pointer;
}

.btn-orange {
    background: #ff6f00;
    color: white;
}

.btn-orange:hover {
    background: #e65100;
}

.btn-white {
    background: white;
    color: #e65100;
}

.btn-white:hover {
    background: #fff8f0;
}

/* CHAPTER GRID */

.chapter-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.chapter-card {
    background: white;

    border-radius: 15px;

    padding: 25px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.08);

    text-decoration: none;

    color: #4e342e;

    border: 1px solid #ffe0b2;

    transition:
        transform .2s,
        box-shadow .2s;
}

.chapter-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.13);
}

.chapter-number {
    color: #ff6f00;

    font-size: 14px;

    font-weight: bold;

    text-transform: uppercase;

    margin-bottom: 8px;
}

.chapter-card h2 {
    margin: 0 0 8px;

    font-size: 22px;
}

.chapter-card .sanskrit-name {
    font-family: serif;

    font-size: 20px;

    color: #8d6e63;

    margin-bottom: 12px;
}

.chapter-card p {
    line-height: 1.6;

    color: #6d4c41;
}

/* CHAPTER HEADER */

.page-heading {
    text-align: center;

    padding: 35px 10px;
}

.page-heading h1 {
    color: #e65100;

    font-size: 40px;

    margin: 5px 0;
}

.page-heading p {
    color: #795548;

    font-size: 17px;
}

/* VERSE LIST */

.verse-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.verse-card {
    background: white;

    border-radius: 15px;

    padding: 25px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.07);

    border-left:
        5px solid #ff6f00;
}

.verse-number {
    color: #ff6f00;

    font-size: 15px;

    font-weight: bold;

    margin-bottom: 15px;
}

.sanskrit {
    font-family:
        "Noto Serif Devanagari",
        "Mangal",
        serif;

    font-size: 25px;

    line-height: 2;

    text-align: center;

    white-space: pre-line;

    color: #3e2723;
}

.transliteration {
    font-size: 17px;

    line-height: 1.8;

    font-style: italic;

    color: #6d4c41;

    white-space: pre-line;

    margin-top: 20px;
}

.meaning {
    margin-top: 20px;

    padding-top: 20px;

    border-top:
        1px solid #ffe0b2;

    line-height: 1.8;

    color: #4e342e;
}

.verse-actions {
    margin-top: 20px;
}

.verse-actions a {
    color: #e65100;

    font-weight: bold;

    text-decoration: none;
}

.verse-actions a:hover {
    text-decoration: underline;
}

/* SINGLE SLOKA */

.sloka-page {
    max-width: 900px;

    margin: auto;

    padding: 35px 20px;
}

.sloka-box {
    background: white;

    border-radius: 20px;

    padding: 40px;

    box-shadow:
        0 8px 35px rgba(0,0,0,.09);
}

.sloka-title {
    text-align: center;

    margin-bottom: 30px;
}

.sloka-title .chapter {
    color: #ff6f00;

    font-weight: bold;
}

.sloka-title h1 {
    font-size: 32px;

    margin: 10px 0;
}

/* NAVIGATION */

.verse-navigation {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 30px;
}

.nav-button {
    background: #ff6f00;

    color: white;

    text-decoration: none;

    padding: 12px 18px;

    border-radius: 9px;

    font-weight: bold;
}

.nav-button:hover {
    background: #e65100;
}

.nav-button.disabled {
    opacity: .4;

    pointer-events: none;
}

/* SEARCH */

.search-box {
    max-width: 850px;

    margin:
        0 auto 30px;
}

.search-form {
    display: flex;

    gap: 10px;
}

.search-input {
    flex: 1;

    padding: 14px;

    border:
        1px solid #ffcc80;

    border-radius: 10px;

    font-size: 16px;

    outline: none;
}

.search-input:focus {
    border-color: #ff6f00;

    box-shadow:
        0 0 0 3px rgba(255,111,0,.12);
}

.search-results {
    max-width: 1000px;

    margin: auto;
}

.no-results {
    background: white;

    padding: 30px;

    border-radius: 15px;

    text-align: center;
}

/* FOOTER */

.site-footer {
    background: #4e342e;

    color: #fff3e0;

    margin-top: 50px;

    text-align: center;
}

.footer-inner {
    max-width: 900px;

    margin: auto;

    padding: 45px 20px;
}

.footer-om {
    font-size: 55px;
}

.site-footer h2 {
    margin: 10px 0;
}

.site-footer p {
    opacity: .85;
}

.footer-links {
    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin: 25px 0;
}

.footer-links a {
    color: #fff3e0;

    text-decoration: none;
}

.footer-links a:hover {
    color: #ffb74d;
}

.copyright {
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 850px) {

    .header-inner {
        flex-direction: column;
    }

    .main-nav {
        justify-content: center;
    }

    .chapter-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .hero {
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-om {
        font-size: 55px;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .sanskrit {
        font-size: 21px;
    }

    .sloka-box {
        padding: 22px;
    }

    .verse-navigation {
        flex-direction: column;
    }

    .nav-button {
        text-align: center;
    }

    .search-form {
        flex-direction: column;
    }

}