@font-face {
    font-family: 'SHREE0592';
    src: url('../font/SangbadUni.woff2') format('woff');
    font-display: swap;
}

:root {
    --primary: #ff1818;
    --accent: #0ea5e9;
    --ink: #0f172a;
    --card: rgba(255, 255, 255, 0.88);
    --muted: #475569;
    --border: #e2e8f0;
}

* {
    font-family: 'SHREE0592', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
}

.heading-font {
    font-family: 'SHREE0592', 'Space Grotesk', 'Inter', sans-serif;
}

.text-2xl {
    font-size: 1.3rem;
    letter-spacing: 1.2px !important;
    color: #303030 !important;
}

.english-font {
    font-family: 'Hind Siliguri', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.leading-tight {
    line-height: 1.2 !important;
    letter-spacing: 1.2px !important;
    color: #303030 !important;
}

.brand-gradient {
    background: linear-gradient(to right, #ff1818, #b90606);
    color: #fff;
}

body {
    background:
        radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.14), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.12), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.05), transparent 34%),
        #f6f7fb;
    color: var(--ink);
}

.glass {
    background: var(--card);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 25px 60px -32px rgba(15, 23, 42, 0.35);
}

/* ── Pills ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 1px 17px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 9999px;
    font-weight: 600;
    color: #000 !important;
    transition: all 0.25s ease;
    font-size: 22px;
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.35);
}

.pill:hover {
    border-color: #ff1818;
    color: #ff1818 !important;
    transform: translateY(-2px);
}

.pill.active,
.pill.outline {
    border-color: #ff1818;
    color: #ff1818 !important;
}

.pill.outline {
    background: transparent;
}

/* ── Section kicker ── */
.section-kicker {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c2410c;
    font-weight: 800;
}

/* ── Hero shell ── */
.hero-shell {
    position: relative;
    border-radius: 32px;
    padding: 24px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-shell {
        border-radius: 16px;
    }
}

.hero-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.08), rgba(14, 165, 233, 0.08));
    opacity: 0.85;
}

.hero-shell > * {
    position: relative;
    z-index: 1;
}

/* ── Hero slider ── */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgb(249 115 22 / 0.25);
    height: 540px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
    }
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
    padding: 40px 36px 36px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    color: #fff !important;
}

@media (max-width: 768px) {
    .caption {
        padding: 20px 16px 16px;
    }
    
    .caption h1 {
        font-size: 18px !important;
    }
    
    .caption a {
        font-size: 18px !important;
        line-height: 1.3;
    }
    
    .caption .mt-6 {
        margin-top: 8px !important;
        font-size: 11px !important;
    }
}

.caption a,
.caption span {
    color: #fff !important;
}

.caption h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ── Ticker ── */
.ticker-track {
    display: flex;
    gap: 48px;
    animation: ticker 15s linear infinite;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ticker-track {
        animation: ticker 18s linear infinite;
        gap: 32px;
    }
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── News cards ── */
.news-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 38px -14px rgb(15 23 42 / 0.18);
}

@media (max-width: 768px) {
    .news-card h4 {
        font-size: 18px !important;
    }
    
    .news-card .p-5 {
        padding: 12px 12px 14px !important;
    }
}

/* ── Category page cards ── */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.card img {
    width: 100%;
    display: block;
}

.card-body {
    padding: 14px 16px 16px;
}

.meta {
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

/* ── Category header underline ── */
.category-header {
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 72px;
    height: 4px;
    background: linear-gradient(to right, #ff1818, #b90606);
    border-radius: 9999px;
}

/* ── Section title (category page) ── */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 14px;
}

.section-title .bar {
    width: 6px;
    height: 65px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    border-radius: 10px;
}

/* ── Page layouts ── */
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 16px 32px;
}

@media (max-width: 768px) {
    .page-shell {
        padding: 12px 12px 20px;
    }
    
    main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.grid-3 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini {
    display: flex;
    gap: 12px;
}

.mini img {
    width: 120px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
}

.empty {
    padding: 28px;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* ── Lazy images ── */
.lazy-image {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* ── Slider dots ── */
.dot {
    transition: all 0.3s ease;
}

.dot.active {
    transform: scale(1.3);
}

/* ── Scrollbar ── */
.custom-scrollbar::-webkit-scrollbar { height: 8px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.45); border-radius: 999px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* ── Utilities ── */
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) {
    .line-clamp-3 {
        -webkit-line-clamp: 2;
    }
}

/* Mobile button adjustments */
@media (max-width: 768px) {
    .absolute.left-6, 
    .absolute.right-6 {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        left: 12px !important;
        right: 12px !important;
    }
    
    .absolute.bottom-8 {
        bottom: 6px !important;
        gap: 8px !important;
    }
    
    .dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .hero-shell {
        margin-left: 12px;
        margin-right: 12px;
    }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .page-shell { padding: 14px 12px 26px; }
}

@media (max-width: 768px) {
    .hero-shell {
        padding: 0 !important;
    }
    
    .hero-shell.glass {
        border-radius: 16px;
    }
    
    .section-title .bar {
        height: 45px !important;
    }
    
    .category-header {
        font-size: 22px !important;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .text-2xl {
        font-size: 18px !important;
    }
    
    .text-3xl {
        font-size: 20px !important;
    }
    
    .text-lg {
        font-size: 14px !important;
    }
    
    .w-28 {
        width: 80px !important;
    }
    
    .h-20 {
        height: 60px !important;
    }
}


/* ═══════════════════════════════════════════
   details.php — Article page styles
   ═══════════════════════════════════════════ */

/* Two-column layout: article + sidebar */
.two-col {
    display: grid;
    grid-template-columns: 2fr 0.9fr;
    gap: 20px;
    align-items: start;
}

/* Main article card */
.article-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Hero image wrapper */
.article-hero {
    position: relative;
}

.article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Article body padding */
.article-body {
    padding: 22px 24px 26px;
}

/* Category pill inside article */
.article-body .pill {
    background: #fff3f3;
    color: #ff1818 !important;
    border-color: #ffd6d6;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 4px 14px 0px 14px;
}

/* Article headline */
.article-body h1 {
    font-size: 32px;
    line-height: 1.28;
    margin: 12px 0;
    color: var(--ink);
    font-weight: bold;
    color: #E92222
}

/* Article body text */
.article-content {
    color: #111827;
    font-size: 24px;
    line-height: 1.78;
}

.article-content p {
    margin-bottom: 1em;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 12px 0;
}

/* Share row */
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

/* Social share buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-x  { background: #111;    }

/* Sidebar card */
.side-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 14px 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* Prev / Next navigation */
.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 4px;
}

.nav-links a {
    flex: 1;
    background: #0f172a;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    display: inline-block;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: #1e293b;
}

/* Related articles grid */
.related-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Mini thumbnail row inside related cards */
.mini img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── details.php responsive ── */
@media (max-width: 992px) {
    .two-col { grid-template-columns: 1fr; }
    .article-hero img { height: 240px; }
    .article-body h1 { font-size: 24px; }
    .article-content { font-size: 16px; }
    .nav-links { flex-direction: column; }
    .nav-links a { text-align: center; }
}