@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.7;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

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

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.logo span {
    color: #2563eb;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav a:hover, .nav a.active {
    color: #2563eb;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
    padding: 0.25rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
    padding: 1rem 0 0.5rem;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #cbd5e1;
}

main {
    padding: 1rem 0 3rem;
}

.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.05rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.hero .badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-gray { background: #f1f5f9; color: #475569; }

.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.chapter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.chapter-card .card-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
}

.chapter-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.chapter-card .card-author {
    font-size: 0.85rem;
    color: #64748b;
}

.chapter-card .card-type {
    margin-top: 0.25rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.info-table th, .info-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.info-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.info-table tr:nth-child(even) {
    background: #f8fafc;
}

.cta-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.cta-box p {
    color: #475569;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.pdf-container {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.pdf-container embed,
.pdf-container iframe {
    width: 100%;
    height: 600px;
    display: block;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 1rem;
}

.pdf-link:hover {
    background: #e2e8f0;
    text-decoration: none;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.chapter-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
}

.chapter-nav .nav-next {
    margin-left: auto;
}

.summary-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.summary-box h3 {
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.author-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.author-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
}

.author-card .author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.author-card .author-work {
    font-size: 0.8rem;
    color: #64748b;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-bottom: 0.75rem;
}

.link-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
}

.link-list li a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e40af;
    text-decoration: none;
    transition: background 0.2s ease;
}

.link-list li a:hover {
    background: #eff6ff;
    text-decoration: none;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: #e2e8f0;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 1.75rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .pdf-container embed,
    .pdf-container iframe {
        height: 400px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .chapter-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .chapter-nav .nav-next {
        margin-left: 0;
    }
}
