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

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

body {
    font-family: 'Noto Sans Devanagari', 'Mangal', 'Devanagari MT', 'Lohit Devanagari', sans-serif;
    line-height: 1.9;
    color: #333;
    background: #f5f7fa;
    font-size: 16px;
}

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

header {
    background: linear-gradient(135deg, #004d99 0%, #003366 100%);
    color: white;
    padding: 25px 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

header h1 {
    text-align: center;
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    opacity: 0.9;
}

.term-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.term-list a {
    background: white;
    padding: 14px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #004d99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    font-size: 1.05em;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.term-list a:hover {
    background: #004d99;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,77,153,0.25);
    border-left-color: #ffd700;
}

.term-detail {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.term-detail h1 {
    color: #004d99;
    border-bottom: 4px solid #004d99;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
}

.romanization {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-style: italic;
}

.english-equiv {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #f0f4f8;
    border-radius: 6px;
    display: inline-block;
}

.description {
    font-size: 1.1em;
    line-height: 2;
    margin-bottom: 30px;
    text-align: justify;
}

.description a {
    color: #004d99;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.description a:hover {
    color: #003366;
}

.related {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4e8f7 100%);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
}

.related h2 {
    font-size: 1.15em;
    margin-bottom: 18px;
    color: #004d99;
    font-weight: 600;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-list a {
    background: #004d99;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.related-list a:hover {
    background: #003366;
    transform: scale(1.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #004d99;
    text-decoration: none;
    font-weight: 500;
    gap: 5px;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 25px;
    color: #666;
    font-size: 0.9em;
    margin-top: 30px;
}

.section-title {
    font-size: 1.5em;
    color: #004d99;
    border-bottom: 3px solid #004d99;
    padding-bottom: 10px;
    margin: 35px 0 25px 0;
    font-weight: 700;
}

.letter-section {
    margin-bottom: 30px;
}

.letter-heading {
    font-size: 1.2em;
    color: white;
    background: linear-gradient(135deg, #004d99 0%, #003366 100%);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4e8f7 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    line-height: 2;
    color: #333;
    font-size: 1.1em;
    border-left: 5px solid #004d99;
}

.stats {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stats-number {
    font-size: 2em;
    font-weight: 700;
    color: #004d99;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .term-detail {
        padding: 20px;
    }

    .term-detail h1 {
        font-size: 1.7em;
    }

    .term-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
