/* ===================================================================
   নাটোর প্রেস ক্লাব — Public Theme
   Premium newspaper / press-club style. Bootstrap 5 + Noto Sans Bengali.
=================================================================== */

:root {
    --npc-primary: #0b3d2e;       /* deep press green */
    --npc-primary-rgb: 11, 61, 46;
    --npc-secondary: #c0392b;     /* editorial red */
    --npc-accent: #d4af37;        /* gold */
    --npc-dark: #0f1419;
    --npc-body: #f6f7f5;
    --npc-card: #ffffff;
    --npc-text: #1f2a25;
    --npc-muted: #6b7770;
    --npc-border: #e6e9e6;
    --npc-shadow: 0 6px 24px rgba(11, 61, 46, .08);
    --npc-shadow-lg: 0 18px 48px rgba(11, 61, 46, .14);
    --npc-radius: 16px;
    --npc-radius-sm: 10px;
    --npc-font: 'Ador Noirrit', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
    --npc-transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

[data-bs-theme="dark"] {
    --npc-body: #0f1419;
    --npc-card: #18211d;
    --npc-text: #e8ece9;
    --npc-muted: #9aa8a0;
    --npc-border: #283330;
    --npc-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --npc-shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
}

* { scroll-behavior: smooth; }

body {
    font-family: var(--npc-font);
    background-color: var(--npc-body);
    color: var(--npc-text);
    overflow-x: hidden;
    transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--npc-text); }
a { text-decoration: none; transition: var(--npc-transition); }
img { max-width: 100%; }

.text-primary-npc { color: var(--npc-primary) !important; }
.bg-primary-npc { background-color: var(--npc-primary) !important; }
.bg-accent-npc { background-color: var(--npc-accent) !important; }

/* ---------- Top bar ---------- */
.npc-topbar {
    background: var(--npc-primary);
    color: #d8e6df;
    font-size: .85rem;
    padding: .4rem 0;
}
.npc-topbar a { color: #d8e6df; }
.npc-topbar a:hover { color: var(--npc-accent); }

/* ---------- Navbar ---------- */
.npc-navbar {
    background: var(--npc-card);
    box-shadow: var(--npc-shadow);
    transition: var(--npc-transition);
    padding: .6rem 0;
}
.npc-navbar.sticky-active {
    position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    backdrop-filter: blur(8px);
}
.npc-navbar .navbar-brand { display: flex; align-items: center; gap: .6rem; }
.npc-navbar .brand-logo { height: 52px; width: auto; }
.npc-navbar .brand-title { font-weight: 800; font-size: 1.25rem; color: var(--npc-primary); line-height: 1.1; }
.npc-navbar .brand-sub { font-size: .72rem; color: var(--npc-muted); }
.npc-navbar .nav-link {
    font-weight: 600; color: var(--npc-text); padding: .5rem .9rem !important;
    border-radius: 8px; position: relative;
}
.npc-navbar .nav-link:hover, .npc-navbar .nav-link.active { color: var(--npc-primary); }
.npc-navbar .nav-link.active::after {
    content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 2px;
    height: 3px; border-radius: 3px; background: var(--npc-accent);
}
.dropdown-menu { border: none; box-shadow: var(--npc-shadow-lg); border-radius: var(--npc-radius-sm); }

/* ---------- Buttons ---------- */
.btn-npc {
    background: var(--npc-primary); color: #fff; border: none;
    padding: .6rem 1.5rem; border-radius: 50px; font-weight: 600;
}
.btn-npc:hover { background: #0a563d; color: #fff; transform: translateY(-2px); box-shadow: var(--npc-shadow); }
.btn-npc-outline {
    border: 2px solid var(--npc-primary); color: var(--npc-primary);
    background: transparent; padding: .55rem 1.4rem; border-radius: 50px; font-weight: 600;
}
.btn-npc-outline:hover { background: var(--npc-primary); color: #fff; }
.btn-accent { background: var(--npc-accent); color: #1a1a1a; border: none; font-weight: 700; border-radius: 50px; padding: .6rem 1.5rem; }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* ---------- Hero slider ---------- */
.npc-hero .carousel-item { height: 78vh; min-height: 460px; }
.npc-hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.npc-hero .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,61,46,.88) 0%, rgba(11,61,46,.55) 50%, rgba(11,61,46,.2) 100%);
}
.npc-hero .carousel-caption {
    top: 50%; bottom: auto; transform: translateY(-50%);
    left: 8%; right: auto; text-align: start; max-width: 640px;
}
.npc-hero .hero-subtitle { color: var(--npc-accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .9rem; }
.npc-hero .hero-title { font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 800; color: #fff; margin: .6rem 0; }
.npc-hero .hero-desc { color: #e6efe9; font-size: 1.05rem; }

/* ---------- Section ---------- */
.npc-section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head .eyebrow {
    color: var(--npc-secondary); font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; font-size: .82rem;
}
.section-head .title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; position: relative; display: inline-block; }
.section-head .title::after {
    content: ''; display: block; width: 64px; height: 4px; border-radius: 4px;
    background: var(--npc-accent); margin-top: .6rem;
}
.section-head.text-center .title::after { margin: .6rem auto 0; }

/* ---------- Cards ---------- */
.npc-card {
    background: var(--npc-card); border: 1px solid var(--npc-border);
    border-radius: var(--npc-radius); box-shadow: var(--npc-shadow);
    overflow: hidden; transition: var(--npc-transition);
}
.npc-card:hover { transform: translateY(-6px); box-shadow: var(--npc-shadow-lg); }
.news-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.news-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .card-img-wrap img { transform: scale(1.08); }
.news-card .badge-cat {
    position: absolute; top: 12px; inset-inline-start: 12px;
    background: var(--npc-secondary); color: #fff; font-size: .72rem;
    padding: .3rem .7rem; border-radius: 50px; font-weight: 600;
}
.news-card .card-body { padding: 1.2rem; }
.news-card .card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.news-card .card-title a { color: var(--npc-text); }
.news-card .card-title a:hover { color: var(--npc-primary); }
.news-meta { font-size: .8rem; color: var(--npc-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.news-meta i { color: var(--npc-primary); }

/* ---------- Breaking news ticker ---------- */
.breaking-bar { background: var(--npc-card); border-bottom: 1px solid var(--npc-border); padding: .5rem 0; }
.breaking-label { background: var(--npc-secondary); color: #fff; padding: .35rem 1rem; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.breaking-track { overflow: hidden; flex: 1; }
.breaking-list { display: flex; gap: 3rem; white-space: nowrap; animation: ticker 32s linear infinite; }
.breaking-list a { color: var(--npc-text); font-weight: 500; }
.breaking-list a:hover { color: var(--npc-secondary); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Message cards (President / Secretary) ---------- */
.message-card { display: flex; gap: 1.5rem; align-items: flex-start; }
.message-card .photo { flex-shrink: 0; width: 120px; height: 120px; border-radius: 16px; object-fit: cover; border: 4px solid var(--npc-accent); }
.message-card .quote-icon { color: var(--npc-accent); font-size: 2rem; }

/* ---------- Stats counter ---------- */
.stats-section { background: linear-gradient(135deg, var(--npc-primary), #07271d); color: #fff; }
.stat-box { text-align: center; padding: 1.5rem; }
.stat-box .stat-icon { font-size: 2.4rem; color: var(--npc-accent); }
.stat-box .stat-number { font-size: 2.6rem; font-weight: 800; margin: .4rem 0 0; }
.stat-box .stat-label { color: #cfe0d8; font-weight: 500; }

/* ---------- Committee / member cards ---------- */
.person-card { text-align: center; background: var(--npc-card); border-radius: var(--npc-radius); padding: 1.6rem 1rem; box-shadow: var(--npc-shadow); border: 1px solid var(--npc-border); transition: var(--npc-transition); }
.person-card:hover { transform: translateY(-6px); box-shadow: var(--npc-shadow-lg); }
.person-card .avatar { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid var(--npc-border); margin-bottom: 1rem; }
.person-card .name { font-weight: 700; font-size: 1.1rem; margin-bottom: .15rem; }
.person-card .desig { color: var(--npc-secondary); font-weight: 600; font-size: .9rem; }
.person-card .socials a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(var(--npc-primary-rgb), .08); color: var(--npc-primary); margin: 0 3px; }
.person-card .socials a:hover { background: var(--npc-primary); color: #fff; }

/* ---------- Notice list ---------- */
.notice-item { display: flex; gap: 1rem; padding: 1rem; border-radius: var(--npc-radius-sm); background: var(--npc-card); border: 1px solid var(--npc-border); margin-bottom: .8rem; transition: var(--npc-transition); }
.notice-item:hover { box-shadow: var(--npc-shadow); border-color: var(--npc-accent); }
.notice-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--npc-primary); color: #fff; border-radius: 10px; padding: .5rem 0; }
.notice-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.notice-date .month { font-size: .72rem; }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--npc-radius-sm); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; aspect-ratio: 4/3; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay { position: absolute; inset: 0; background: rgba(11,61,46,.55); opacity: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.8rem; transition: var(--npc-transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- Video ---------- */
.video-thumb { position: relative; border-radius: var(--npc-radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); color: #fff; font-size: 3rem; transition: var(--npc-transition); }
.video-thumb:hover .play-btn { background: rgba(192,57,43,.6); }

/* ---------- Sponsors ---------- */
.sponsor-logo { display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--npc-card); border-radius: var(--npc-radius-sm); border: 1px solid var(--npc-border); height: 110px; filter: grayscale(1); opacity: .75; transition: var(--npc-transition); }
.sponsor-logo:hover { filter: grayscale(0); opacity: 1; }
.sponsor-logo img { max-height: 70px; object-fit: contain; }

/* ---------- Page header ---------- */
.page-header { background: linear-gradient(135deg, var(--npc-primary), #07271d); color: #fff; padding: 3.5rem 0 3rem; position: relative; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: #b9cfc6; margin: 0; }
.page-header .breadcrumb a { color: var(--npc-accent); }
.page-header .breadcrumb-item.active { color: #d8e6df; }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Footer ---------- */
.npc-footer { background: var(--npc-dark); color: #b9c4bf; padding-top: 3.5rem; position: relative; z-index: 1; }
.npc-footer h5 { color: #fff; margin-bottom: 1.2rem; font-size: 1.05rem; position: relative; padding-bottom: .6rem; }
.npc-footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--npc-accent); }
.npc-footer a { color: #b9c4bf; }
.npc-footer a:hover { color: var(--npc-accent); padding-inline-start: 4px; }
.npc-footer .footer-links li { margin-bottom: .6rem; }
.npc-footer .social-icons a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin-inline-end: .5rem; }
.npc-footer .social-icons a:hover { background: var(--npc-accent); color: #1a1a1a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; margin-top: 2.5rem; font-size: .88rem; }

/* ---------- Floating controls ---------- */
.theme-toggle { cursor: pointer; border: none; background: transparent; color: var(--npc-text); font-size: 1.2rem; width: 42px; height: 42px; border-radius: 50%; }
.theme-toggle:hover { background: rgba(var(--npc-primary-rgb), .1); }
.back-to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--npc-primary); color: #fff; border: none; display: none; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 1040; box-shadow: var(--npc-shadow-lg); }
.back-to-top.show { display: flex; }

/* ---------- Article body ---------- */
.article-body { font-size: 1.08rem; line-height: 2; color: var(--npc-text); }
.article-body p { margin-bottom: 1.2rem; }
.article-body img { border-radius: var(--npc-radius-sm); margin: 1rem 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-inline-start: 2rem; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 8px; top: 0; bottom: 0; width: 2px; background: var(--npc-border); }
.timeline-item { position: relative; padding-bottom: 1.8rem; }
.timeline-item::before { content: ''; position: absolute; inset-inline-start: -1.75rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--npc-accent); border: 3px solid var(--npc-card); }
.timeline-item .t-title { font-weight: 700; }
.timeline-item .t-date { font-size: .82rem; color: var(--npc-muted); }

/* ---------- AOS-lite reveal ---------- */
/* Reveal animation only hides content when JS is active (.js-reveal set by inline script).
   Without JS — or if app.js fails — content stays fully visible. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Membership card ---------- */
.membership-card { width: 100%; max-width: 420px; aspect-ratio: 1.586; border-radius: 16px; background: linear-gradient(135deg, var(--npc-primary), #0a563d); color: #fff; padding: 1.3rem; position: relative; box-shadow: var(--npc-shadow-lg); overflow: hidden; }
.membership-card::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(212,175,55,.18); }
.membership-card .mc-photo { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 2px solid var(--npc-accent); }
.membership-card .mc-org { color: var(--npc-accent); font-weight: 700; letter-spacing: .5px; }

@media (max-width: 768px) {
    .npc-hero .carousel-item { height: 60vh; min-height: 380px; }
    .npc-hero .carousel-caption { left: 5%; right: 5%; }
    .message-card { flex-direction: column; align-items: center; text-align: center; }
    .npc-section { padding: 3rem 0; }
}

/* ---------- Print ---------- */
@media print {
    .npc-topbar, .npc-navbar, .breaking-bar, .npc-footer, .back-to-top,
    .theme-toggle, .btn, .news-meta a, aside, .page-header .breadcrumb,
    form, .gallery-overlay, .play-btn { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .npc-card, .article-body { box-shadow: none !important; border: none !important; }
    .page-header { background: #fff !important; color: #000 !important; padding: 1rem 0 !important; }
    .page-header h1 { color: #000 !important; }
    a { color: #000 !important; text-decoration: none !important; }
    .container { max-width: 100% !important; }
    @page { margin: 1.5cm; }
}

/* Keep page content on a layer below the footer so reveal transforms never overlap it */
main { position: relative; z-index: 0; }
