/* Learn Hindi content pages — Devanagari display font + letter grids/tables.
   Shared across Hindi Alphabet, Barakhadi and Numbers pages. */

@font-face {
    font-family: 'NotoDeva';
    src: url('../fonts/notosansdevanagari.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.deva { font-family: 'NotoDeva', 'Noto Sans Devanagari', sans-serif; }

.learn-prose { color:#475569; line-height:1.9; font-size:1.06rem; }
[data-theme="dark"] .learn-prose { color:#94a3b8; }

.learn-section { padding: 56px 0; }
.learn-section:nth-child(even) { background:#f8fafc; }
[data-theme="dark"] .learn-section:nth-child(even) { background:#0f172a; }
.learn-h2 { font-size:1.8rem; font-weight:800; color:#1e293b; margin-bottom:6px; }
[data-theme="dark"] .learn-h2 { color:#f1f5f9; }
.learn-sub { color:#64748b; margin-bottom:26px; font-size:1rem; }
[data-theme="dark"] .learn-sub { color:#94a3b8; }

/* Letter grid */
.letter-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(112px, 1fr));
    gap:14px;
}
.letter-card {
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:16px 10px;
    text-align:center;
    transition:transform .2s, box-shadow .2s, border-color .2s;
}
.letter-card:hover { transform:translateY(-4px); box-shadow:0 12px 24px rgba(99,102,241,.1); border-color:rgba(99,102,241,.35); }
[data-theme="dark"] .letter-card { background:#1e1e2f; border-color:#2d2d44; }
.letter-glyph { font-size:2.4rem; line-height:1.1; color:#4f46e5; font-weight:600; }
[data-theme="dark"] .letter-glyph { color:#a5b4fc; }
.letter-tr { font-size:.8rem; color:#94a3b8; margin-top:4px; font-weight:600; letter-spacing:.3px; }
.letter-word { font-size:1rem; color:#1e293b; margin-top:8px; }
[data-theme="dark"] .letter-word { color:#e2e8f0; }
.letter-mean { font-size:.75rem; color:#94a3b8; }

.group-title { font-size:1.05rem; font-weight:700; color:#475569; margin:26px 0 12px; }
[data-theme="dark"] .group-title { color:#cbd5e1; }

/* Facts list */
.facts-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.facts-list li {
    background:#fff; border:1px solid #e2e8f0; border-left:4px solid #6366f1;
    border-radius:10px; padding:14px 18px; color:#475569; line-height:1.6;
}
[data-theme="dark"] .facts-list li { background:#1e1e2f; border-color:#2d2d44; border-left-color:#6366f1; color:#94a3b8; }

/* FAQ (matches other pages) */
.faq-button { width:100%; padding:18px 22px; background:#fff; border:1px solid #f1f5f9; border-radius:14px; font-size:1.02rem; font-weight:600; color:#1e293b; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
[data-theme="dark"] .faq-button { background:#1a1a2e; border-color:#2d2d44; color:#e2e8f0; }
.faq-button:not(.collapsed) { border-color:#6366f1; }
.faq-body { padding:0 22px 18px; color:#64748b; line-height:1.8; }
[data-theme="dark"] .faq-body { color:#94a3b8; }

/* Barakhadi table */
.barakhadi-scroll, .tense-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:14px; }
.barakhadi-table { border-collapse:separate; border-spacing:6px; margin:0 auto; }
.barakhadi-table th, .barakhadi-table td {
    min-width:52px; height:52px; text-align:center; vertical-align:middle;
    background:#fff; border:1px solid #e2e8f0; border-radius:10px; font-size:1.35rem; color:#1e293b;
}
.barakhadi-table thead th { background:#eef2ff; color:#4f46e5; font-weight:700; font-size:1.1rem; }
.barakhadi-table .bk-cons { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; font-weight:700; }
[data-theme="dark"] .barakhadi-table th, [data-theme="dark"] .barakhadi-table td { background:#1e1e2f; border-color:#2d2d44; color:#e2e8f0; }
[data-theme="dark"] .barakhadi-table thead th { background:#23233a; color:#a5b4fc; }

/* Tense table */
.tense-table { width:100%; border-collapse:collapse; background:#fff; border-radius:14px; overflow:hidden; }
.tense-table th, .tense-table td { padding:12px 14px; text-align:left; border-bottom:1px solid #eef2f7; font-size:.95rem; color:#475569; vertical-align:top; }
.tense-table thead th { background:#eef2ff; color:#4f46e5; font-weight:700; }
.tense-table .tense-ex { color:#1e293b; font-weight:600; font-size:1.05rem; }
[data-theme="dark"] .tense-table { background:#1e1e2f; }
[data-theme="dark"] .tense-table th, [data-theme="dark"] .tense-table td { border-color:#2d2d44; color:#94a3b8; }
[data-theme="dark"] .tense-table thead th { background:#23233a; color:#a5b4fc; }
[data-theme="dark"] .tense-table .tense-ex { color:#e2e8f0; }

/* related links */
.learn-related { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin-top:10px; }
.learn-related a { display:flex; align-items:center; gap:12px; padding:16px; border:1px solid #e2e8f0; border-radius:14px; text-decoration:none; background:#fff; transition:all .25s; }
.learn-related a:hover { border-color:#6366f1; transform:translateY(-3px); }
[data-theme="dark"] .learn-related a { background:#1e1e2f; border-color:#2d2d44; }
.learn-related .ic { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; flex-shrink:0; background:linear-gradient(135deg,#6366f1,#8b5cf6); }
.learn-related .nm { font-weight:600; color:#1e293b; font-size:.92rem; }
[data-theme="dark"] .learn-related .nm { color:#f1f5f9; }
