/* ==============================================================================
   Shabdarth (शब्दार्थ) - Multilingual Design System & Typography
   Multi-script Google Fonts + Warm Ivory Editorial Surface
   ============================================================================== */

:root {
    --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-deva: 'Noto Sans Devanagari', 'Inter', -apple-system, sans-serif;
    --font-beng: 'Noto Sans Bengali', 'Inter', -apple-system, sans-serif;
    --font-gujr: 'Noto Sans Gujarati', 'Inter', -apple-system, sans-serif;
    --font-guru: 'Noto Sans Gurmukhi', 'Inter', -apple-system, sans-serif;
    --font-taml: 'Noto Sans Tamil', 'Inter', -apple-system, sans-serif;
    --font-telu: 'Noto Sans Telugu', 'Inter', -apple-system, sans-serif;
    --font-knda: 'Noto Sans Kannada', 'Inter', -apple-system, sans-serif;
    --font-mlym: 'Noto Sans Malayalam', 'Inter', -apple-system, sans-serif;
    --font-orya: 'Noto Sans Oriya', 'Inter', -apple-system, sans-serif;
    --font-arab: 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Inter', sans-serif;
    --font-tiro-deva: 'Tiro Devanagari Hindi', 'Tiro Devanagari Sanskrit', 'Tiro Devanagari', 'Adobe Devanagari', 'Noto Sans Devanagari', serif;
    --page-font: var(--font-deva);

    /* Flagship Royal-Blue -> Light-Purple Theme & Outer #e7e6f9 Periwinkle Canvas */
    --color-primary: #3b52ea;       /* Royal Sapphire Blue */
    --color-primary-hover: #2f43d6;
    --color-primary-deep: #3142ce;
    --color-primary-light: #eceefe;
    --hero-top-gradient: linear-gradient(92deg, #3152eb 0%, #4b53e9 52%, #6755e7 100%);
    --hero-gradient: linear-gradient(180deg, rgba(124, 94, 235, 0) 0%, rgba(124, 94, 235, 0.20) 100%),
                     linear-gradient(92deg, #3152eb 0%, #4b53e9 52%, #6755e7 100%);
    --footer-gradient: linear-gradient(135deg, #4959ea 0%, #6d5be9 52%, #8d6cf0 100%);
    --frame-surface-gradient: linear-gradient(180deg, #fafaff 0%, #f4f3fd 48%, #e9e5fa 80%, #ddd6f9 100%);
    --color-navy: #141c44;          /* Deep Ink Navy */
    --color-accent: #0f766e;        /* Editorial Teal */
    --color-accent-light: #f0fdf4;
    --color-gold: #b45309;          /* Warm Gold */
    --color-gold-light: #fffbeb;

    --color-bg-outer: #e7e6f9;      /* Exact Outer Periwinkle Lavender Canvas */
    --color-bg-page: #f5f4fd;
    --color-bg-surface: #ffffff;
    --color-bg-subtle: #eae8fb;

    --color-text-main: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #5d6687;
    --color-border: #e1dff5;
    --color-border-dark: #c7c3ec;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-shell: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px -1px rgba(62, 58, 138, 0.06);
    --shadow-md: 0 10px 26px -6px rgba(62, 58, 138, 0.11), 0 3px 8px -2px rgba(62, 58, 138, 0.05);
    --shadow-lg: 0 18px 42px -10px rgba(58, 52, 146, 0.16), 0 4px 14px -4px rgba(58, 52, 146, 0.08);
    --shadow-frame-shell: 0 26px 64px -12px rgba(104, 100, 188, 0.34),
                          0 10px 26px -6px rgba(124, 120, 202, 0.22),
                          0 0 0 1px rgba(182, 178, 234, 0.50);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--page-font);
    background-color: var(--color-bg-outer);
    color: var(--color-text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
}

body > * {
    min-width: 0;
    max-width: 100%;
}

/* Framed Page Canvas & Centered Container Shell */
.page-frame-outer {
    flex: 1 0 auto;
    width: 100%;
    padding: 0 1.25rem 2.75rem;
}

.page-frame-shell {
    width: 100%;
    max-width: 1416px;
    margin: 0 auto;
    border-radius: 0 0 var(--radius-shell) var(--radius-shell);
    overflow: clip;
    background: var(--frame-surface-gradient);
    box-shadow: var(--shadow-frame-shell);
    display: flex;
    flex-direction: column;
}

.page-frame-main {
    flex: 1 0 auto;
    min-width: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1344px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

/* Seamless Royal-Blue Top Site Header inside Framed Shell */
.site-header {
    background: var(--hero-top-gradient);
    color: #ffffff;
    position: relative;
    z-index: 60;
}

.page-inner .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-primary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-top: 1.05rem;
    padding-bottom: 0.85rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.68rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.015em;
    flex-shrink: 0;
}

.brand-logo:hover {
    text-decoration: none;
    color: #ffffff;
}

.brand-emblem {
    width: auto;
    height: 42px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.brand-emblem-img {
    width: auto;
    height: 40px;
    max-width: 52px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(10, 16, 56, 0.28));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-title-line {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    color: #ffffff;
}

.brand-hi-name {
    font-family: var(--font-tiro-deva, "Tiro Devanagari Hindi", "Tiro Devanagari Sanskrit", "Tiro Devanagari", "Adobe Devanagari", "Noto Sans Devanagari", serif);
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(10, 16, 56, 0.25);
}

.brand-en-name {
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    line-height: 1;
}

.brand-sub-pos {
    display: none;
}

.header-primary-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-primary-nav a {
    font-family: var(--font-latin);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    padding: 0.32rem 0.52rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-primary-nav a:hover,
.header-primary-nav a.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.92rem;
    border-radius: var(--radius-md);
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-action-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
}

.header-menu-btn {
    display: none; /* Hidden on PC / desktop views */
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.92rem;
    border-radius: var(--radius-md);
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

.header-nav-drawer {
    display: none;
    background: rgba(22, 29, 98, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.header-nav-drawer.open {
    display: block;
}

.header-nav-drawer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.header-nav-drawer-inner a {
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.32rem 0.72rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.header-nav-drawer-inner a:hover,
.header-nav-drawer-inner a.active {
    background: #ffffff;
    color: var(--color-primary);
    text-decoration: none;
}

/* Global Royal-Indigo Hero Section (Home & Subpage Portals) */
.hero-section {
    padding: 2.35rem 0 2.15rem;
    background: var(--hero-gradient);
    color: #ffffff;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.10) 0%, transparent 48%);
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.9rem, 3.8vw, 2.75rem);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.4rem;
    letter-spacing: 0;
    line-height: 1.22;
    font-family: var(--font-tiro-deva);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 100%;
    width: 100%;
    margin: 0 auto 1.45rem;
    text-align: center;
}

/* Pill-Styled Search Component */
.search-container {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    align-items: stretch;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    box-shadow: 0 12px 30px rgba(20, 28, 72, 0.14);
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 0.25rem;
}

.search-form:focus-within {
    box-shadow: 0 14px 36px rgba(20, 28, 72, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.search-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1rem;
}

.search-icon {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-right: 0.5rem;
}

.search-input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 1.12rem;
    font-family: var(--font-deva);
    color: var(--color-text-main);
    background: transparent;
    padding: 0.72rem 0.5rem;
}

.search-clear-btn {
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.75rem;
    display: none;
}

.search-submit-btn {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-latin);
    font-size: 0.96rem;
    font-weight: 600;
    padding: 0 1.55rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit-btn:hover {
    background-color: var(--color-primary-hover);
}

/* Autocomplete Suggestion Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.1s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover, .search-suggestion-item.active {
    background-color: var(--color-primary-light);
}

.suggestion-word {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.suggestion-translit {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-latin);
    margin-left: 0.5rem;
}

.suggestion-meaning {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.suggestion-pos {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

/* Quick Search Hint Tags (frosted pill style inside hero, crisp outline elsewhere) */
.search-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.95rem;
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.search-hints a {
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    padding: 0.22rem 0.72rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-size: 0.84rem;
    transition: all 0.15s ease;
}

.search-hints a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    text-decoration: none;
}

.hero-section .search-hints {
    color: rgba(255, 255, 255, 0.78);
}

.hero-section .search-hints a {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.hero-section .search-hints a:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Alphabet Browse Bar */
.alpha-browse-section {
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.alpha-nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.alpha-nav-group:last-child {
    margin-bottom: 0;
}

.alpha-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 75px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alpha-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.alpha-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all 0.15s ease;
    text-decoration: none;
}

.alpha-link:hover, .alpha-link.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    text-decoration: none;
}

/* Home Grid Content */
.main-content {
    padding: 2.5rem 0 4rem;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 860px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* Card System */
.card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.card:last-child {
    margin-bottom: 0;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-wotd {
    background: var(--color-gold-light);
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid #fde68a;
}

/* Word of the Day Specific styling */
.wotd-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 1.45rem 1.65rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.wotd-headword-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.wotd-headword {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.wotd-headword:hover {
    color: var(--color-primary-hover);
}

.wotd-translit {
    font-family: var(--font-latin);
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.wotd-definition {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin: 0.75rem 0;
    line-height: 1.6;
}

.wotd-translations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.pill-translation {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-latin);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

/* Lexicon Word Lists (Recent & Featured) */
.word-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.word-list-item {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.15s ease;
    text-decoration: none;
    display: block;
}

.word-list-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.word-item-headword {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.word-item-translit {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-latin);
    margin-bottom: 0.4rem;
}

.word-item-meaning {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Collections Grid */
.domain-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
}

.domain-card-link {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-decoration: none;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.domain-card-link:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    text-decoration: none;
}

.domain-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.domain-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.4rem;
}

/* Word Detail Page Components */
.word-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.word-header-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.word-headword-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.word-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
}

.word-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.word-audio-btn:hover {
    background: #dbeafe;
    color: var(--color-primary-hover);
}

.word-pronounce-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-family: var(--font-latin);
}

.word-translit-badge {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.word-ipa-badge {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.word-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.meta-pill {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-bg-page);
}

.meta-pill-pos {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.meta-pill-gender {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

.meta-pill-domain {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

/* Senses & Meanings Block */
.senses-container {
    margin-bottom: 2rem;
}

.sense-item-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.sense-number-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sense-body {
    padding-left: 2.5rem;
}

.sense-definition {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.sense-simple-def {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.sense-translations-row {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sense-translations-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-family: var(--font-latin);
}

.sense-example-box {
    background: var(--color-bg-page);
    border-left: 3px solid var(--color-accent);
    padding: 0.85rem 1.15rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 1rem;
}

.example-hindi {
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.example-english {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-family: var(--font-latin);
}

/* Relations Block (Synonyms & Antonyms) */
.relations-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .relations-section {
        grid-template-columns: 1fr;
    }
}

.relation-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chip-synonym {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
    text-decoration: none;
}

.chip-synonym:hover {
    background: #dbeafe;
    text-decoration: none;
}

.chip-antonym {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #fecaca;
    text-decoration: none;
}

.chip-antonym:hover {
    background: #fee2e2;
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span.separator {
    color: var(--color-border-dark);
}

/* Search Results Specific Styles */
.search-results-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.search-result-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.15s ease;
}

.search-result-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.result-translit {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-latin);
}

.result-tier-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-btn:hover, .page-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    text-decoration: none;
}

/* Bottom Blue-to-Light-Purple Footer (Closes Rounded Framed Shell) */
.site-footer {
    background: var(--footer-gradient);
    color: rgba(255, 255, 255, 0.88);
    padding: 2rem 0 1.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: auto;
    text-align: center;
}

.footer-top-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 1.5rem;
    margin-bottom: 0.9rem;
}

.footer-top-links a {
    font-family: var(--font-latin);
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-top-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 0.55rem;
    font-family: var(--font-latin);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.76);
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==============================================================================
   Top Single-Row Grid Language Navbar (Theme-Harmonized Bottom Accent Stripes)
   ============================================================================== */

.lang-grid-navbar {
    width: 100%;
    background: #ebe9f9;
    border-bottom: 1px solid #d4d0f2;
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(8px);
}

/* Mobile Language Menu Bar (Hidden on PC/Desktop; Sleek 40px bar on Mobile) */
.lang-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.42rem 1rem;
    background: #ebe9f9;
    border-bottom: 1px solid #d4d0f2;
    min-height: 40px;
}

.lang-mobile-current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #273166;
    font-weight: 600;
    min-width: 0;
}

.lang-mobile-globe {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.lang-mobile-label {
    font-size: 0.78rem;
    color: #555d88;
    white-space: nowrap;
}

.lang-mobile-active-tag {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    background: #d8d3f8;
    color: #1728a8;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #c7c1f2;
}

.lang-mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    background: #3b52ea;
    color: #ffffff;
    border: 1px solid #2f43d6;
    border-radius: var(--radius-md, 10px);
    font-family: var(--font-latin);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 82, 234, 0.22);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.lang-mobile-toggle-btn:hover {
    background: #2f43d6;
}

.lang-mobile-toggle-btn .lang-caret {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.lang-mobile-toggle-btn.active .lang-caret {
    transform: rotate(180deg);
}

.lang-top-grid {
    display: grid;
    grid-template-columns: repeat(var(--lang-count, 15), minmax(0, 1fr));
    max-width: 100%;
    margin: 0 auto;
    background: #dedaf6;
    gap: 1px;
}

.lang-top-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 0.25rem 0.48rem;
    text-align: center;
    text-decoration: none;
    color: #252e64;
    background: #f1f0fd;
    border-right: none;
    border-bottom: 4px solid var(--lang-bar-color, #4f46e5);
    min-width: 0;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-top-item:last-child {
    border-right: none;
}

.lang-top-item:hover {
    background: #e3dffa;
    color: #1a2eb8;
    text-decoration: none;
}

.lang-top-item.active {
    background: #d8d3f8;
    color: #1526a6;
    font-weight: 700;
}

.lang-top-native {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Cohesive Blue / Indigo / Periwinkle / Violet / Teal Accent Palette */
.lang-accent-0  { --lang-bar-color: #3152eb; }
.lang-accent-1  { --lang-bar-color: #3b55ea; }
.lang-accent-2  { --lang-bar-color: #5b53e8; }
.lang-accent-3  { --lang-bar-color: #7c58e6; }
.lang-accent-4  { --lang-bar-color: #2d7d76; }
.lang-accent-5  { --lang-bar-color: #0e7490; }
.lang-accent-6  { --lang-bar-color: #4f46e5; }
.lang-accent-7  { --lang-bar-color: #6d4aff; }
.lang-accent-8  { --lang-bar-color: #9333ea; }
.lang-accent-9  { --lang-bar-color: #6b52ae; }
.lang-accent-10 { --lang-bar-color: #3f62c8; }
.lang-accent-11 { --lang-bar-color: #2563eb; }
.lang-accent-12 { --lang-bar-color: #5760d4; }
.lang-accent-13 { --lang-bar-color: #437c90; }
.lang-accent-14 { --lang-bar-color: #4755d6; }

/* ==============================================================================
   Flagship Homepage Hero, Search Pill & Hero Stats Strip
   ============================================================================== */

/* ==============================================================================
   Shabdarth Flagship Hero Component (Based on Design Reference)
   ============================================================================== */

.shabdarth-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 0 54px;
    color: #ffffff;
    background:
        radial-gradient(ellipse at 52% 62%, rgba(139, 130, 255, 0.34), transparent 48%),
        linear-gradient(110deg, #4059e9 0%, #4b4ee9 50%, #674ce1 100%);
    font-family: var(--font-sans, Inter, "Noto Sans Devanagari", sans-serif);
}

.shabdarth-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.19;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.7px, transparent 0.9px);
    background-size: 17px 17px;
    pointer-events: none;
}

.shabdarth-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(48, 66, 208, 0.13), transparent 25%, transparent 75%, rgba(72, 49, 195, 0.12));
    pointer-events: none;
}

.sh-hero-inner {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

.sh-hero-heading {
    text-align: center;
    margin: 0 auto 52px;
    width: 100%;
}

.sh-platform-tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.36rem 1.05rem;
    margin: 0 auto 1.15rem;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(16, 22, 78, 0.14);
    text-align: center;
}

.sh-platform-tagline .tagline-hi {
    font-family: var(--font-tiro-deva, 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif);
    font-size: 0.96rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.015em;
}

.sh-platform-tagline .tagline-sep {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.sh-platform-tagline .tagline-en {
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.sh-hero-heading h1,
.shabdarth-hero .hero-title {
    margin: 0 auto 8px;
    font-family: var(--font-tiro-deva, "Tiro Devanagari Hindi", "Tiro Devanagari Sanskrit", "Tiro Devanagari", "Adobe Devanagari", "Noto Sans Devanagari", serif);
    font-size: clamp(32px, 3.45vw, 48px);
    line-height: 1.32;
    font-weight: 400;
    letter-spacing: 0;
    text-wrap: balance;
    color: #ffffff;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.sh-hero-heading p,
.shabdarth-hero .hero-subtitle {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: clamp(16px, 1.45vw, 21px);
    font-weight: 400;
    text-align: center;
    display: block;
}

.sh-search-panel {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 26px 76px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 31px;
    background: rgba(255, 255, 255, 0.105);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sh-illustration {
    position: absolute;
    z-index: 1;
    top: -48px;
    width: 225px;
    height: 230px;
    object-fit: contain;
    pointer-events: none;
}

.sh-illustration-left {
    left: 35px;
}

.sh-illustration-right {
    right: 40px;
}

.sh-search-content {
    position: relative;
    z-index: 2;
    width: min(675px, 61%);
}

.sh-search-line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    height: 74px;
}

.sh-search-line input {
    flex: 1;
    min-width: 0;
    height: 74px;
    padding: 0 45px 0 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 42px;
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font: 600 17px var(--font-sans, Inter, "Noto Sans Devanagari", sans-serif);
    box-shadow: inset 0 1px 3px rgba(28, 39, 132, 0.08);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sh-search-line input::placeholder {
    color: rgba(255, 255, 255, 0.91);
    opacity: 1;
}

.sh-search-line input:focus {
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.31);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.sh-search-line .search-clear-btn {
    position: absolute;
    right: 88px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    display: none;
    z-index: 5;
    transition: color 0.15s ease;
}

.sh-search-line .search-clear-btn:hover {
    color: #ffffff;
}

.sh-search-button {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #4d50e9;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sh-search-button:hover {
    transform: scale(1.045);
    box-shadow: 0 8px 22px rgba(25, 31, 118, 0.18);
}

.sh-search-button svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
}

.sh-search-content .search-suggestions-dropdown {
    position: absolute;
    top: 80px;
    left: 0;
    right: 87px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(15, 22, 82, 0.28);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

.sh-search-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 8px 0 10px;
}

.sh-search-hint {
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    white-space: nowrap;
}

.sh-search-subline select,
.sh-search-subline .hero-dir-select {
    width: 232px;
    min-width: 190px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 24px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font: 600 11px var(--font-sans, Inter, sans-serif);
    cursor: pointer;
}

.sh-search-subline select option,
.sh-search-subline select optgroup {
    color: #26345f;
    background: #ffffff;
}

.sh-popular {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.sh-popular-label {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.sh-popular a,
.sh-popular .hero-popular-chip {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.sh-popular a:hover,
.sh-popular .hero-popular-chip:hover {
    color: #4b50e6;
    background: #ffffff;
    transform: translateY(-1px);
}

.sh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-stats-band {
    max-width: 920px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.76);
    margin-top: 0.22rem;
}

@media (max-width: 980px) {
    .sh-illustration {
        width: 180px;
    }
    .sh-illustration-left {
        left: 4px;
    }
    .sh-illustration-right {
        right: 4px;
    }
    .sh-search-content {
        width: 65%;
    }
}

@media (max-width: 700px) {
    .shabdarth-hero {
        padding: 27px 0 35px;
    }
    .sh-hero-inner {
        width: calc(100% - 30px);
    }
    .sh-hero-heading {
        margin-bottom: 28px;
    }
    .sh-platform-tagline {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.35rem 0.8rem;
        margin-bottom: 0.9rem;
    }
    .sh-platform-tagline .tagline-sep {
        display: none;
    }
    .sh-platform-tagline .tagline-hi {
        font-size: 0.86rem;
    }
    .sh-platform-tagline .tagline-en {
        font-size: 0.76rem;
    }
    .sh-hero-heading h1,
    .shabdarth-hero .hero-title {
        font-size: clamp(26px, 6.5vw, 36px);
        font-family: var(--font-tiro-deva, "Tiro Devanagari Hindi", "Tiro Devanagari Sanskrit", "Tiro Devanagari", "Adobe Devanagari", "Noto Sans Devanagari", serif);
        text-align: center;
        width: 100%;
        margin: 0 auto 8px;
    }
    .sh-hero-heading p,
    .shabdarth-hero .hero-subtitle {
        font-size: 15px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }
    .sh-search-panel {
        min-height: 0;
        padding: 28px 15px 92px;
        border-radius: 23px;
    }
    .sh-search-content {
        width: 100%;
    }
    .sh-search-line {
        height: 56px;
        gap: 8px;
    }
    .sh-search-line input {
        height: 56px;
        padding: 0 38px 0 16px;
        font-size: 14px;
    }
    .sh-search-line .search-clear-btn {
        right: 64px;
        font-size: 1.2rem;
    }
    .sh-search-button {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }
    .sh-search-button svg {
        width: 24px;
        height: 24px;
    }
    .sh-search-content .search-suggestions-dropdown {
        top: 60px;
        right: 0;
    }
    .sh-search-subline {
        align-items: flex-start;
        flex-direction: column;
        margin: 12px 2px 0;
    }
    .sh-search-hint {
        white-space: normal;
        line-height: 1.5;
        font-size: 10px;
    }
    .sh-search-subline select,
    .sh-search-subline .hero-dir-select {
        width: 100%;
    }
    .sh-illustration {
        top: -10px;
        width: 122px;
        height: 142px;
        opacity: 0.2;
    }
    .sh-illustration-left {
        left: -20px;
    }
    .sh-illustration-right {
        right: -20px;
    }
    .sh-popular {
        left: 10px;
        right: 10px;
        bottom: 13px;
        gap: 6px;
        padding-top: 12px;
    }
    .sh-popular-label {
        width: 100%;
        text-align: center;
    }
    .sh-popular a,
    .sh-popular .hero-popular-chip {
        padding: 6px 9px;
        font-size: 10px;
    }
    .hero-stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
    }
}

/* ==============================================================================
   Floating Word of the Day Showcase Card
   ============================================================================== */

.wotd-floating-section {
    position: relative;
    z-index: 12;
    margin-top: -3.2rem;
    margin-bottom: 2.5rem;
}

.hero-floating-container {
    max-width: 1176px;
}

.wotd-showcase-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.wotd-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.45rem 2rem 1.15rem;
    border-bottom: 1px solid var(--color-border);
}

.wotd-headword-cluster {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.wotd-showcase-word {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.wotd-showcase-word a {
    color: var(--color-navy);
    text-decoration: none;
}

.wotd-showcase-word a:hover {
    color: var(--color-primary);
}

.wotd-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.78rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid #d7dfff;
    font-family: var(--font-latin);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.wotd-listen-btn:hover {
    background: #dfe5ff;
}

.wotd-phonetics {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: var(--font-latin);
    font-size: 0.94rem;
    color: var(--color-text-muted);
}

.wotd-phonetic-roman {
    font-style: italic;
}

.wotd-phonetic-ipa {
    color: var(--color-text-secondary);
}

.wotd-meta-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wotd-flag-pill {
    display: inline-block;
    font-family: var(--font-latin);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.wotd-full-entry-link {
    font-family: var(--font-latin);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.wotd-full-entry-link:hover {
    color: var(--color-primary);
}

.wotd-showcase-body {
    padding: 1.25rem 2rem 1.35rem;
}

.wotd-pos-line {
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 600;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.wotd-senses-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.wotd-sense-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wotd-sense-num {
    font-family: var(--font-latin);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text-muted);
    min-width: 1.3rem;
}

.wotd-sense-def-hi {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.55;
}

.wotd-sense-def-sub {
    font-family: var(--font-latin);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-top: 0.14rem;
}

.wotd-sense-example {
    font-size: 0.84rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.wotd-relations-footer {
    padding: 1rem 2rem 1.3rem;
    background: #f9fafe;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.wotd-rel-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wotd-rel-label {
    font-family: var(--font-latin);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    min-width: 82px;
}

.wotd-rel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.wotd-pill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.72rem;
    border-radius: var(--radius-full);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wotd-pill-tag:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

/* ==============================================================================
   Explore the Dictionaries (Collection B Cards + Collection A 5-Column Tiles)
   ============================================================================== */

.explore-section {
    padding: 1.5rem 0 2.75rem;
}

.explore-heading-block {
    margin-bottom: 1.85rem;
}

.explore-main-title {
    font-family: var(--font-latin);
    font-size: 1.78rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.explore-sub-hi {
    font-size: 0.96rem;
    color: var(--color-text-muted);
    margin: 0;
}

.explore-group-block {
    margin-bottom: 2.4rem;
}

.explore-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.explore-kicker {
    font-family: var(--font-latin);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.22rem;
}

.explore-group-title {
    font-family: var(--font-latin);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.15rem;
}

.explore-group-desc {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.explore-all-link {
    font-family: var(--font-latin);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.explore-all-link:hover {
    text-decoration: underline;
}

.comp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.comp-dict-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.comp-dict-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.comp-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.comp-monogram {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #3b53eb 0%, #6855e7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comp-card-titles {
    flex: 1;
    min-width: 0;
}

.comp-card-native {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.2rem;
}

.comp-card-meta {
    font-family: var(--font-latin);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.comp-card-arrow {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.comp-card-stats {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-latin);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding-top: 0.65rem;
    border-top: 1px solid #f1f4fa;
}

.comp-card-stats strong {
    color: var(--color-navy);
}

.bilingual-tiles-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.bilingual-tile-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.05rem 1.15rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.bilingual-tile-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.bilingual-tile-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.22rem;
}

.bilingual-tile-native {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.25;
}

.bilingual-tile-arrow {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    opacity: 0.65;
}

.bilingual-tile-card:hover .bilingual-tile-arrow {
    color: var(--color-primary);
    opacity: 1;
}

.bilingual-tile-sub {
    font-family: var(--font-latin);
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.bilingual-tile-count {
    font-family: var(--font-latin);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Compact Linguistic & Vocabulary Resources Strip */
.resources-strip-section {
    padding: 0 0 3rem;
}

.resources-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.resource-box-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.comp-dict-card,
.bilingual-tile-card,
.wotd-showcase-card,
.resource-recent-list,
.resource-recent-item {
    min-width: 0;
}

.resource-box-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

.resource-box-head h3 {
    font-family: var(--font-latin);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

.resource-box-head a {
    font-family: var(--font-latin);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.resource-links-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-row-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.78rem;
    border-radius: var(--radius-md);
    background: #f8fafe;
    border: 1px solid var(--color-border);
    color: var(--color-navy);
    text-decoration: none;
    transition: border-color 0.14s ease, background-color 0.14s ease;
}

.resource-row-link strong {
    display: block;
    font-family: var(--font-latin);
    font-size: 0.86rem;
}

.resource-row-link div span {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

.resource-row-link:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}

.resource-domains-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.resource-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    background: #f8fafe;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.resource-domain-pill small {
    font-family: var(--font-latin);
    color: var(--color-primary);
    font-weight: 700;
}

.resource-domain-pill:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}

.resource-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.resource-recent-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.44rem 0.65rem;
    border-radius: var(--radius-md);
    background: #f8fafe;
    border: 1px solid var(--color-border);
    text-decoration: none;
    overflow: hidden;
}

.resource-recent-item:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}

.recent-hw {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.94rem;
    flex-shrink: 0;
}

.recent-tr {
    font-family: var(--font-latin);
    font-size: 0.76rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.recent-def {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subpage Royal-Indigo Hero Compatibility & Shared Collection Classes */
.hero-section .collection-eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-section .meta-pill,
.hero-section .hero-stat-chip {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 0.28rem 0.85rem;
}

.hero-section .meta-pill strong,
.hero-section .hero-stat-chip strong {
    color: #ffffff;
}

.hero-section nav[aria-label="Breadcrumb"],
.hero-section nav[aria-label="Breadcrumb"] a {
    color: rgba(255, 255, 255, 0.82);
}

.hero-section nav[aria-label="Breadcrumb"] strong {
    color: #ffffff;
}

.subpage-hero-band {
    background: var(--hero-gradient);
    color: #ffffff;
    padding: 1.75rem 0;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.subpage-hero-band .breadcrumbs,
.subpage-hero-band .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.65rem;
}

.subpage-hero-band .breadcrumbs strong,
.subpage-hero-band h1 {
    color: #ffffff;
}

.subpage-hero-band p {
    color: rgba(255, 255, 255, 0.88);
}

.collection-eyebrow {
    display: inline-block;
    font-family: var(--font-latin);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.45rem;
}

.eyebrow-bilingual {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid #d5ddff;
}

.eyebrow-comprehensive {
    background: var(--color-gold-light);
    color: var(--color-gold);
    border: 1px solid #fde68a;
}

.bilingual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.comprehensive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.2rem;
}

.dict-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dict-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.dict-card-comprehensive {
    border-top: 4px solid var(--color-primary);
}

.dict-card-bilingual {
    border-top: 3px solid var(--color-primary);
}

.dict-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--color-border);
    flex-wrap: wrap;
}

.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.82rem;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-family: var(--font-latin);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-sm-primary:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
    text-decoration: none;
}

.btn-sm-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.82rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid #d5ddff;
    border-radius: var(--radius-md);
    font-family: var(--font-latin);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-sm-outline:hover {
    background: #dfe5ff;
    text-decoration: none;
}

/* ==============================================================================
   Responsive Breakpoints
   ============================================================================== */

@media (max-width: 1024px) {
    .lang-mobile-bar {
        display: flex;
    }

    .lang-top-grid {
        display: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        background: #dedaf6;
        gap: 1px;
        box-shadow: 0 10px 28px rgba(18, 24, 78, 0.16);
    }

    .lang-top-grid.lang-grid-open {
        display: grid;
    }

    .bilingual-tiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-search-stage {
        grid-template-columns: minmax(0, 100%);
    }

    .hero-illus {
        display: none;
    }

    .resources-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1260px) {
    .header-primary-nav {
        gap: 0.15rem;
    }
    .header-primary-nav a {
        font-size: 0.72rem;
        padding: 0.26rem 0.40rem;
    }
}

@media (max-width: 1080px) {
    .header-primary-nav {
        display: none;
    }

    .header-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 860px) {
    .brand-sub-pos {
        display: none;
    }

    .comp-cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .resources-bento-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem 0.75rem;
    }
}

@media (max-width: 640px) {
    .page-frame-outer {
        padding: 0 0.65rem 1.5rem;
    }

    .page-frame-shell {
        border-radius: 0 0 18px 18px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-primary-row {
        gap: 0.65rem;
    }

    .brand-hi-name {
        font-size: 1.45rem;
    }

    .brand-en-name {
        font-size: 0.72rem;
    }

    .header-action-pill,
    .header-menu-btn {
        padding: 0.36rem 0.68rem;
        font-size: 0.76rem;
    }

    .lang-mobile-bar {
        padding: 0.38rem 0.75rem;
    }

    .lang-mobile-label {
        display: none;
    }

    .lang-top-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lang-top-item {
        padding: 0.52rem 0.25rem 0.44rem;
        border-bottom-width: 3px;
    }

    .lang-top-native {
        font-size: 0.76rem;
    }

    .hero-dir-select {
        max-width: 100%;
    }

    .bilingual-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-home-flagship {
        padding: 1.65rem 0 4.25rem;
    }

    .wotd-showcase-top,
    .wotd-showcase-body,
    .wotd-relations-footer {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .hero-section .search-form {
        border-radius: var(--radius-lg);
        flex-wrap: wrap;
        padding: 0.35rem;
    }

    .hero-section .search-form select {
        width: 100%;
        border-left: none !important;
        border-top: 1px solid var(--color-border);
        padding: 0.55rem 0.75rem !important;
    }

    .hero-section .search-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.68rem 1rem;
        margin-top: 0.25rem;
    }
}

/* ==============================================================================
   BhashaIndia.in Sister Community Banner (Site-wide)
   ============================================================================== */
.bhashaindia-banner-section {
    padding: 0 0 2.5rem;
    background: transparent;
}

.bhashaindia-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 1.4rem 1.75rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.bhashaindia-content {
    flex: 1 1 auto;
    min-width: 0;
}

.bhashaindia-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.bhashaindia-community-badge {
    display: inline-block;
    font-family: var(--font-latin);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--color-gold-light);
    color: var(--color-gold);
    border: 1px solid #fde68a;
}

.bhashaindia-features-line {
    font-family: var(--font-latin);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-primary);
}

.bhashaindia-title {
    font-family: var(--font-deva);
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-navy);
    margin: 0 0 0.45rem;
}

.bhashaindia-title span {
    color: var(--color-primary);
}

.bhashaindia-desc {
    font-family: var(--font-deva);
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 780px;
}

.bhashaindia-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.bhashaindia-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    background: linear-gradient(135deg, #3b53eb 0%, #6b55e7 100%);
    color: #ffffff;
    font-family: var(--font-latin);
    font-size: 0.96rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.bhashaindia-cta-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.bhashaindia-cta-caption {
    font-family: var(--font-deva);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .bhashaindia-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 1.15rem;
    }

    .bhashaindia-action {
        align-items: flex-start;
        width: 100%;
    }

    .bhashaindia-cta-btn {
        width: 100%;
    }
}

/* Shared Interactive Pills & Action Buttons */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: var(--font-latin);
    font-size: 0.84rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.stat-pill:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    border-radius: var(--radius-md);
    font-family: var(--font-latin);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-navy);
    border-color: var(--color-border-dark);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}
