/* ═══════════════════════════════════════════════════════════
   HinduPoribar — Main Stylesheet  v2
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Cinzel:wght@400;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  --primary:       #E85D04;
  --primary-dk:    #C94E00;
  --primary-lt:    #FFF3EB;
  --navy:          #1A237E;
  --navy-dk:       #0F1654;
  --navy-lt:       #EEF0FB;
  --gold:          #D4AF37;
  --gold-lt:       #FEF9C3;

  --surface:       #FFFFFF;
  --surface-2:     #F8F9FB;
  --surface-3:     #F0F2F5;
  --bg:            #F2F4F8;

  --text:          #1A1D23;
  --text-2:        #4B5563;
  --text-3:        #9CA3AF;

  --border:        #E5E7EB;
  --border-2:      #CBD5E1;

  --success:       #059669;
  --danger:        #DC2626;
  --warning:       #D97706;
  --info:          #0284C7;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --radius-xl:     20px;

  --nav-h: 72px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:'Poppins','Noto Sans Bengali',sans-serif;
  font-size:15px; line-height:1.65;
  color:var(--text); background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img { max-width:100%; display:block; }
a { color:var(--primary); transition:color .15s; }
a:hover { color:var(--primary-dk); }
h1,h2,h3,h4,h5 { font-family:'Poppins',sans-serif; font-weight:700; line-height:1.25; color:var(--navy); }
h1 { font-size:clamp(1.6rem,4vw,2.4rem); margin-bottom:1rem; }
h2 { font-size:clamp(1.25rem,3vw,1.75rem); margin-bottom:.75rem; }
h3 { font-size:1.05rem; margin-bottom:.45rem; }
h4 { font-size:.92rem; }
p { margin-bottom:.75rem; color:var(--text-2); }
p:last-child { margin-bottom:0; }
ul,ol { padding-left:1.5rem; }

/* Layout */
.page    { max-width:1100px; margin:0 auto; padding:1.75rem 1.25rem 3.5rem; }
.page-md { max-width:760px;  margin:0 auto; padding:1.75rem 1.25rem 3.5rem; }
.page-sm { max-width:520px;  margin:0 auto; padding:1.75rem 1.25rem 3.5rem; }

/* ══ NAVBAR — white ══════════════════════════════════════════ */
.navbar {
  background:#fff;
  border-bottom:3px solid var(--primary);
  position:sticky; top:0; z-index:200;
  box-shadow:0 1px 0 #E5E7EB, 0 4px 16px rgba(0,0,0,.06);
}
.navbar-inner {
  max-width:1100px; margin:0 auto;
  padding:0 1.5rem;
  display:flex; align-items:center; gap:.75rem;
  height:var(--nav-h);
}
.navbar-brand {
  display:flex; align-items:center; gap:.75rem;
  text-decoration:none; flex-shrink:0; margin-right:.75rem;
}
.navbar-brand img {
  width:44px; height:44px; border-radius:10px; object-fit:cover;
  box-shadow:0 2px 8px rgba(232,93,4,.25);
}
.navbar-brand .brand-name {
  font-family:'Cinzel',serif; font-weight:700; font-size:1.18rem;
  color:var(--navy); letter-spacing:.03em; line-height:1.15;
}
.navbar-brand .brand-sub {
  font-size:.62rem; color:var(--primary); font-family:'Poppins',sans-serif;
  font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  margin-top:.15rem;
}
.navbar-nav {
  display:flex; align-items:center; gap:.15rem;
  margin-left:auto; list-style:none; padding:0;
}
.navbar-nav a {
  display:flex; align-items:center; gap:.3rem;
  padding:.55rem .85rem; border-radius:var(--radius-sm);
  font-size:.83rem; font-weight:600; color:var(--text-2);
  text-decoration:none; transition:all .18s; white-space:nowrap;
  position:relative;
}
.navbar-nav a:hover { color:var(--navy); background:var(--surface-2); }
.navbar-nav a.active { color:var(--primary); background:var(--primary-lt); }
.navbar-nav a.active::after {
  content:''; position:absolute;
  bottom:-3px; left:8px; right:8px;
  height:3px; background:var(--primary);
  border-radius:2px 2px 0 0;
}
.navbar-nav a.nav-cta {
  background:var(--primary); color:#fff !important;
  padding:.42rem 1rem; border-radius:var(--radius); margin-left:.35rem;
}
.navbar-nav a.nav-cta:hover { background:var(--primary-dk); color:#fff !important; }
.navbar-nav a.nav-cta::after { display:none; }
.navbar-nav .nav-divider {
  width:1px; height:20px; background:var(--border);
  margin:0 .35rem; flex-shrink:0;
}

/* Live dot */
.live-dot {
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background:#22C55E; animation:livePulse 1.6s ease-in-out infinite; flex-shrink:0;
}
@keyframes livePulse {
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:.45;transform:scale(1.35);}
}

/* Mobile toggle */
.nav-toggle {
  display:none; background:none;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  cursor:pointer; padding:.42rem .5rem;
  margin-left:auto; flex-direction:column; gap:5px;
}
.nav-toggle span {
  display:block; width:20px; height:2px;
  background:var(--text-2); border-radius:2px; transition:all .25s;
}

/* Cards */
.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:1.35rem; box-shadow:var(--shadow-sm);
}
.card+.card { margin-top:1rem; }
.card-gold { background:linear-gradient(135deg,#1A237E,#283593); border-color:transparent; color:#fff; }
.card-gold .stat-num  { color:var(--gold); }
.card-gold .stat-label { color:rgba(255,255,255,.7); }

/* Section headings */
.sec-heading {
  font-size:1rem; font-weight:700; color:var(--navy);
  margin-bottom:1rem; display:flex; align-items:center; gap:.4rem;
}

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.58rem 1.3rem; border-radius:var(--radius);
  font-family:'Poppins',sans-serif; font-size:.875rem; font-weight:600;
  cursor:pointer; text-decoration:none; border:2px solid transparent;
  transition:all .2s; line-height:1.2; white-space:nowrap;
}
.btn:focus { outline:2px solid var(--primary); outline-offset:2px; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.btn-primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-primary:hover:not(:disabled) {
  background:var(--primary-dk); border-color:var(--primary-dk); color:#fff;
  transform:translateY(-1px); box-shadow:0 4px 14px rgba(232,93,4,.35);
}
.btn-outline { background:transparent; color:var(--navy); border-color:var(--border-2); }
.btn-outline:hover:not(:disabled) { background:var(--surface-2); border-color:var(--navy); color:var(--navy); }
.btn-navy { background:var(--navy); color:#fff; border-color:var(--navy); }
.btn-navy:hover:not(:disabled) { background:var(--navy-dk); border-color:var(--navy-dk); color:#fff; }
.btn-gold { background:var(--gold); color:#1A1D23; border-color:var(--gold); }
.btn-gold:hover:not(:disabled) { background:#c9a030; color:#1A1D23; }
.btn-sm    { padding:.36rem .88rem; font-size:.8rem; }
.btn-lg    { padding:.72rem 1.65rem; font-size:.96rem; }
.btn-block { width:100%; }

/* Forms */
.form-group { margin-bottom:1.1rem; }
.form-label { display:block; font-size:.82rem; font-weight:600; color:var(--text-2); margin-bottom:.38rem; }
.form-control {
  width:100%; padding:.62rem .95rem;
  border:1.5px solid var(--border-2); border-radius:var(--radius);
  background:var(--surface); font-size:.9rem; font-family:inherit; color:var(--text);
  transition:border-color .15s, box-shadow .15s;
}
.form-control:focus { outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(26,35,126,.1); }
.form-control::placeholder { color:var(--text-3); }
select.form-control { cursor:pointer; }
.form-hint { font-size:.76rem; color:var(--text-3); margin-top:.3rem; }
.form-check { display:flex; align-items:flex-start; gap:.6rem; cursor:pointer; }
.form-check input[type="checkbox"] { width:17px; height:17px; accent-color:var(--primary); flex-shrink:0; margin-top:2px; }

/* Alerts */
.alert { padding:.9rem 1.1rem; border-radius:var(--radius); font-size:.875rem; font-weight:500; margin-bottom:1rem; border:1px solid transparent; }
.alert-success { background:#F0FDF4; color:#166534; border-color:#BBF7D0; }
.alert-danger  { background:#FEF2F2; color:#991B1B; border-color:#FECACA; }
.alert-warning { background:#FFFBEB; color:#92400E; border-color:#FDE68A; }
.alert-info    { background:#EFF6FF; color:#1E40AF; border-color:#BFDBFE; }

/* Badges */
.badge-role { display:inline-block; padding:.18rem .55rem; border-radius:20px; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.badge-admin     { background:#FEF3C7; color:#92400E; }
.badge-moderator { background:#EFF6FF; color:#1E40AF; }
.badge-user      { background:var(--surface-3); color:var(--text-3); }

/* Announcements */
.announcement {
  background:var(--surface); border:1px solid var(--border);
  border-left:4px solid var(--border-2); border-radius:var(--radius);
  padding:1rem 1.15rem; margin-bottom:.9rem; transition:box-shadow .15s, border-left-color .15s;
}
.announcement:hover { box-shadow:var(--shadow-sm); }
.announcement.pinned { border-left-color:var(--primary); background:#FFFAF7; }
.announcement h3 { font-size:.95rem; color:var(--navy); margin-bottom:.25rem; }
.announcement .meta { font-size:.76rem; color:var(--text-3); margin-bottom:.45rem; }
.announcement p  { font-size:.875rem; color:var(--text-2); margin:0; }

/* Article Cards */
.article-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm);
  transition:transform .2s, box-shadow .2s; display:flex; flex-direction:column; height:100%;
}
.article-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.article-card img { width:100%; }
.article-card-body { padding:1rem; display:flex; flex-direction:column; flex:1; }
.article-card-body h3 {
  font-size:.9rem; color:var(--navy); margin-bottom:.35rem; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.article-card-body p {
  font-size:.78rem; color:var(--text-3); margin-bottom:.5rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.article-cat { display:inline-block; padding:.12rem .5rem; border-radius:4px; font-size:.65rem; font-weight:700; background:var(--navy-lt); color:var(--navy); text-transform:uppercase; letter-spacing:.05em; }
.article-meta { display:flex; align-items:center; gap:.35rem; font-size:.72rem; color:var(--text-3); margin-top:auto; padding-top:.5rem; }

/* Event Cards */
.event-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; }
.event-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.event-card img { width:100%; height:200px; object-fit:cover; }
.event-card-body { padding:1.1rem; flex:1; display:flex; flex-direction:column; }
.event-card-body h3 { font-size:.95rem; color:var(--navy); margin-bottom:.4rem; }
.event-card-body p { font-size:.82rem; color:var(--text-3); line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Winners */
.winner-row { display:flex; align-items:center; gap:.75rem; padding:.65rem 0; border-bottom:1px solid var(--border); }
.winner-row:last-child { border-bottom:none; }
.winner-rank { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; flex-shrink:0; }
.rank-1 { background:#FEF9C3; color:#713F12; border:1.5px solid #FDE68A; }
.rank-2 { background:#F1F5F9; color:#374151; border:1.5px solid #CBD5E1; }
.rank-3 { background:#FEF3C7; color:#92400E; border:1.5px solid #FCD34D; }
.rank-n { background:var(--surface-3); color:var(--text-3); border:1.5px solid var(--border); font-size:.65rem; }

/* Leaderboard */
.lb-row { display:flex; align-items:center; gap:.5rem; padding:.5rem 0; border-bottom:1px solid var(--border); }
.lb-row:last-child { border-bottom:none; }
.lb-pts { font-size:.875rem; font-weight:700; color:var(--navy); white-space:nowrap; }

/* Tables */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.875rem; }
th { text-align:left; padding:.65rem .9rem; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); border-bottom:2px solid var(--border); white-space:nowrap; }
td { padding:.68rem .9rem; border-bottom:1px solid var(--border); color:var(--text); }
tr:last-child td { border-bottom:none; }
tr:hover td { background:var(--surface-2); }

/* Stats */
.stat-num { font-size:2rem; font-weight:800; color:var(--navy); line-height:1; margin-bottom:.2rem; }
.stat-label { font-size:.75rem; font-weight:600; color:var(--text-3); text-transform:uppercase; letter-spacing:.06em; }

/* Placeholders */
.img-placeholder { background:linear-gradient(135deg,var(--navy-lt),#DDE1F0); display:flex; align-items:center; justify-content:center; font-size:3rem; border-radius:var(--radius); color:var(--navy); }

/* Pagination */
.pagination { display:flex; align-items:center; gap:.35rem; justify-content:center; flex-wrap:wrap; }
.pagination a,.pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 .65rem; border-radius:var(--radius-sm); font-size:.82rem; font-weight:600; text-decoration:none; border:1.5px solid var(--border); color:var(--text-2); background:var(--surface); transition:all .15s; }
.pagination a:hover { border-color:var(--navy); color:var(--navy); background:var(--navy-lt); }
.pagination span.active { background:var(--navy); border-color:var(--navy); color:#fff; }

/* ══ FOOTER — white, warm ════════════════════════════════════ */
.site-footer {
  background:#fff;
  border-top:1px solid var(--border);
  padding:3rem 1.5rem 0;
  margin-top:4rem;
}
.footer-inner {
  max-width:1100px; margin:0 auto;
  display:grid; grid-template-columns:1.8fr 1fr 1fr 1fr;
  gap:2.5rem; padding-bottom:2.5rem;
}
.footer-brand .fb-logo { display:flex; align-items:center; gap:.6rem; margin-bottom:.85rem; }
.footer-brand .fb-logo img { width:40px; height:40px; border-radius:10px; object-fit:cover; box-shadow:0 2px 8px rgba(232,93,4,.2); }
.footer-brand .fb-name { font-family:'Cinzel',serif; font-size:1.05rem; font-weight:700; color:var(--navy); }
.footer-brand .fb-sub  { font-size:.65rem; color:var(--primary); font-weight:600; letter-spacing:.07em; text-transform:uppercase; }
.footer-brand p { font-size:.82rem; color:var(--text-3); line-height:1.75; margin-bottom:1rem; }
.footer-brand .fb-tag { display:inline-flex; align-items:center; gap:.4rem; background:var(--primary-lt); color:var(--primary); border-radius:20px; padding:.3rem .85rem; font-size:.75rem; font-weight:600; }
.footer-col h4 { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:var(--text-3); margin-bottom:1rem; padding-bottom:.5rem; border-bottom:2px solid var(--primary-lt); }
.footer-links { list-style:none; padding:0; display:flex; flex-direction:column; gap:.55rem; }
.footer-links a { font-size:.83rem; color:var(--text-2); text-decoration:none; font-weight:500; transition:color .15s, padding-left .15s; display:flex; align-items:center; gap:.4rem; }
.footer-links a:hover { color:var(--primary); padding-left:3px; }
.footer-bottom {
  max-width:1100px; margin:0 auto;
  padding:1.1rem 0 1.5rem; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; font-size:.76rem; color:var(--text-3); flex-wrap:wrap;
}
.footer-bottom a { color:var(--text-3); text-decoration:none; transition:color .15s; }
.footer-bottom a:hover { color:var(--primary); }

/* Utility */
.text-center{text-align:center;} .text-right{text-align:right;}
.mt-1{margin-top:.5rem;} .mt-2{margin-top:1rem;} .mt-3{margin-top:1.5rem;}
.mb-1{margin-bottom:.5rem;} .mb-2{margin-bottom:1rem;}
@keyframes spin{to{transform:rotate(360deg);}}

/* Responsive */
@media(max-width:1024px){
  .footer-inner{grid-template-columns:1.5fr 1fr 1fr;}
  .footer-inner .footer-col:last-child{display:none;}
}
@media(max-width:860px){
  .footer-inner{grid-template-columns:1fr 1fr;}
  .footer-brand{grid-column:1/-1;}
}
@media(max-width:640px){
  :root{--nav-h:64px;}
  .navbar-nav{display:none;flex-direction:column;gap:0;}
  .navbar-nav.open{
    display:flex; position:absolute;
    top:var(--nav-h); left:0; right:0;
    background:#fff; border-top:1px solid var(--border);
    border-bottom:3px solid var(--primary);
    padding:.5rem 0 .75rem; z-index:199;
    box-shadow:0 12px 32px rgba(0,0,0,.12);
  }
  .navbar-nav.open a{padding:.72rem 1.5rem;border-radius:0;font-size:.9rem;color:var(--text-2);}
  .navbar-nav.open a.active{color:var(--primary);background:var(--primary-lt);}
  .navbar-nav.open a.active::after{display:none;}
  .navbar-nav.open a.nav-cta{margin:.5rem 1.5rem 0;border-radius:var(--radius);text-align:center;justify-content:center;}
  .navbar-nav .nav-divider{display:none;}
  .nav-toggle{display:flex;}
  .footer-inner{grid-template-columns:1fr;gap:1.5rem;}
  .footer-inner .footer-col:last-child{display:block;}
  .footer-bottom{flex-direction:column;text-align:center;}
}