:root {
    --sn-bg: #f4f7fb;
    --sn-ink: #132033;
    --sn-muted: #667085;
    --sn-line: #dbe4ef;
    --sn-card: #ffffff;
    --sn-brand: #dc2626;
    --sn-brand-dark: #991b1b;
    --sn-blue: #1d4ed8;
    --sn-green: #0f766e;
    --sn-gold: #b7791f;
    --sn-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --sn-radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(244, 247, 251, 0.92)),
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 30%),
        var(--sn-bg);
    color: var(--sn-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-devanagari {
    font-family: "Noto Sans Devanagari", Inter, sans-serif;
}

a {
    text-decoration: none;
}

.fw-black {
    font-weight: 900;
}

.top-strip {
    background: #fff;
    border-bottom: 1px solid var(--sn-line);
    padding: 0.65rem 0;
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--sn-line);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(14px);
}

.brand-lockup {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--sn-ink);
}

.brand-lockup:hover {
    color: var(--sn-brand);
}

.brand-lockup img,
.brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: var(--sn-shadow);
    flex: 0 0 auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sn-brand), #111827);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-lockup strong {
    display: block;
    font-size: clamp(1.65rem, 2.8vw, 2.55rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-lockup small {
    display: block;
    margin-top: 0.4rem;
    color: var(--sn-muted);
    max-width: 36rem;
}

.main-nav {
    background: #111827;
    padding: 0.65rem 0;
}

.main-nav .navbar-toggler {
    background: #fff;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-search {
    width: min(100%, 430px);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.45rem 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.nav-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: #fff;
    color: #111827;
    font-weight: 800;
}

.utility-link {
    color: var(--sn-muted);
    font-weight: 700;
}

.utility-link.active,
.utility-link:hover {
    color: var(--sn-brand);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--sn-brand-dark);
    border: 1px solid rgba(220, 38, 38, 0.18);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label-dark {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.14);
}

.surface-card,
.news-card,
.ad-card,
.auth-card,
.dashboard-card,
.content-panel {
    background: var(--sn-card);
    border: 1px solid var(--sn-line);
    border-radius: var(--sn-radius);
    box-shadow: var(--sn-shadow);
}

.hero-card {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--sn-shadow);
    background: #111827;
    color: #fff;
}

.hero-card .hero-media {
    position: relative;
    min-height: 520px;
    background: #111827;
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    opacity: 0.72;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.88));
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 4.8rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 950px;
}

.hero-copy {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.75;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    color: var(--sn-muted);
    font-size: 0.86rem;
}

.story-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--sn-brand-dark);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-card {
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1.25rem;
}

.news-card h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 850;
}

.news-card p {
    color: var(--sn-muted);
    line-height: 1.65;
}

.ad-card {
    overflow: hidden;
}

.ad-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--sn-line);
    color: var(--sn-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-card img,
.ad-card video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.ad-card--compact img {
    max-height: 135px;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: ticker 34s linear infinite;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.side-list a,
.footer-team a,
.list-link-card {
    display: block;
    border: 1px solid var(--sn-line);
    border-radius: 14px;
    padding: 1rem;
    color: var(--sn-ink);
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-list a:hover,
.footer-team a:hover,
.list-link-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.metric-card {
    padding: 1.25rem;
    border-radius: var(--sn-radius);
    background: #fff;
    border: 1px solid var(--sn-line);
    box-shadow: var(--sn-shadow);
}

.metric-card strong {
    display: block;
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 900;
}

.prose-news {
    color: #344054;
    font-size: 1.05rem;
    line-height: 1.9;
}

.prose-news p {
    margin-bottom: 1.3rem;
}

.btn-brand {
    --bs-btn-bg: var(--sn-brand);
    --bs-btn-border-color: var(--sn-brand);
    --bs-btn-hover-bg: var(--sn-brand-dark);
    --bs-btn-hover-border-color: var(--sn-brand-dark);
    color: #fff;
    font-weight: 800;
}

.auth-hero {
    background: linear-gradient(135deg, #111827, #24344f);
    color: #fff;
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 3rem);
    min-height: 100%;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--sn-line);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.12);
}

.site-footer {
    margin-top: 4rem;
    padding: 3.5rem 0;
    color: rgba(255, 255, 255, 0.78);
    background: #111827;
}

.footer-title {
    margin-top: 1rem;
    color: #fff;
    font-weight: 900;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.footer-team a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-team span {
    display: block;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.9rem;
}

.footer-contact p {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.popup-ad {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(360px, calc(100vw - 2rem));
    z-index: 1050;
}

.popup-close {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 2;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.86);
    color: #fff;
}

.table-card {
    padding: 1rem;
}

table.dataTable {
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .site-header {
        position: static;
    }

    .nav-search {
        width: 100%;
    }

    .hero-card .hero-media,
    .hero-card img {
        min-height: 420px;
    }
}

@media (max-width: 575.98px) {
    .brand-lockup {
        align-items: flex-start;
    }

    .brand-lockup img,
    .brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .hero-card .hero-media,
    .hero-card img {
        min-height: 480px;
    }
}
