/* মূল পোর্টাল — লগইন ও হোম */
@font-face { font-family: "Kalpurush"; src: url("../fonts/Kalpurush.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* একটাই রঙের থিম — ডিও আর্কাইভেও (style.css) হুবহু এই রং ব্যবহার হয় */
:root { --p-900:#0a1f3d; --p-800:#0f2d57; --p-700:#16407a; --p-600:#1f56a3; --p-100:#d6e3f6; --p-50:#eef3fb; --rule:#c9a24a; }

:root {
  --navy-950: #061426;
  --navy-900: var(--p-900);
  --navy-800: var(--p-800);
  --navy-700: var(--p-700);
  --navy-600: var(--p-600);
  --gold:     var(--rule);
  --gold-lt:  #e6c97a;
  --green:    #12805c;
  --ink:      #14202f;
  --muted:    #5b6878;
  --line:     #e2e8f0;
  --paper:    #f4f6fa;
  --font:     "Kalpurush", "SolaimanLipi", "Nirmala UI", "Vrinda", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { flex: none; }

/* ---------- পটভূমির নকশা ---------- */
.bg-art { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-art i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg-art i:nth-child(1) { width: 520px; height: 520px; background: var(--p-600); top: -160px; left: -120px; }
.bg-art i:nth-child(2) { width: 460px; height: 460px; background: var(--rule); opacity: .22; bottom: -180px; right: 25%; }
.bg-art i:nth-child(3) { width: 380px; height: 380px; background: var(--p-700); opacity: .18; top: 30%; left: 35%; }
.bg-art::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.bg-art.light i:nth-child(1) { background: var(--p-100); opacity: .8; width: 560px; height: 560px; top: -220px; left: -160px; }
.bg-art.light i:nth-child(2) { background: color-mix(in srgb, var(--rule) 30%, white); opacity: .7; right: -120px; bottom: auto; top: 120px; }
.bg-art.light::after { display: none; }

/* ============================================================
   লগইন
   ============================================================ */
.p-login { background: linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800)); color: #fff; }
.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

.hero { padding: 2.5rem clamp(1.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.hero-brand { display: flex; align-items: center; gap: 1rem; }
.hero-brand img { width: 64px; height: 64px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.hero-brand span { font-size: .95rem; letter-spacing: .02em; color: rgba(255,255,255,.8); padding-left: 1rem; border-left: 2px solid var(--gold); }
.eyebrow { display: inline-block; color: var(--gold-lt); font-size: 1rem; padding: .3rem .9rem; border: 1px solid color-mix(in srgb, var(--gold-lt) 45%, transparent); border-radius: 99px; background: color-mix(in srgb, var(--rule) 1%, transparent); }
.hero h1 { font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.2; margin: 1.25rem 0 1rem; }
.hero h1 small { display: block; margin-top: .6rem; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--gold-lt); }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,.78); max-width: 34ch; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.pills li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .95rem; backdrop-filter: blur(6px); }
.pills .icon { color: var(--gold-lt); }
.hero-foot { font-size: .88rem; color: rgba(255,255,255,.5); }

.login-card-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem clamp(1rem, 4vw, 3.5rem); }
.login-card { width: 100%; max-width: 440px; background: #fff; color: var(--ink); border-radius: 18px; padding: 2.4rem 2.2rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); position: relative; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.login-card::before { content: ""; position: absolute; top: 0; left: 2rem; right: 2rem; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold)); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lc-head { text-align: center; margin-bottom: 1.6rem; }
.lc-icon { width: 54px; height: 54px; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); box-shadow: 0 8px 20px color-mix(in srgb, var(--p-800) 35%, transparent); }
.lc-head h2 { font-weight: 400; font-size: 1.9rem; }
.lc-head p { color: var(--muted); font-size: .98rem; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; margin-bottom: 1.1rem; border-radius: 10px; background: #fef1f0; color: #a4251a; border: 1px solid #f6c9c5; font-size: .95rem; }
.alert .icon { margin-top: .15rem; }
.alert-success { background: #ecf8f2; color: #0e6a4a; border-color: #bfe6d3; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .92rem; color: #33414f; margin-bottom: .4rem; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: .95rem; color: #8895a7; pointer-events: none; }
.input-wrap input { width: 100%; height: 50px; padding: 0 3rem 0 2.75rem; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 12px; outline: none; transition: .18s; }
.input-wrap input::placeholder { color: #a0abba; }
.input-wrap input:hover { border-color: #cfd8e4; }
.input-wrap input:focus { background: #fff; border-color: var(--navy-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-600) 14%, transparent); }
.input-wrap:focus-within > .icon { color: var(--navy-600); }
.reveal { position: absolute; right: .4rem; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: #8895a7; border-radius: 9px; cursor: pointer; }
.reveal:hover, .reveal.on { color: var(--navy-600); background: color-mix(in srgb, var(--p-600) 08%, transparent); }

.btn-login { width: 100%; height: 52px; margin-top: .4rem; display: flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-size: 1.08rem; color: #fff; cursor: pointer; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); box-shadow: 0 10px 24px color-mix(in srgb, var(--p-800) 35%, transparent); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.btn-login .icon { transform: rotate(180deg); transition: transform .2s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 14px 28px color-mix(in srgb, var(--p-800) 42%, transparent); }
.btn-login:hover .icon { transform: rotate(180deg) translateX(-4px); }
.btn-login:active { transform: none; }
.btn-login.busy { pointer-events: none; opacity: .85; }
.btn-login.busy .icon { display: none; }
.btn-login.busy span::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: .6rem; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lc-foot { display: flex; gap: .45rem; align-items: flex-start; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.lc-foot .icon { margin-top: .2rem; color: var(--gold); }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; }
  .hero { padding: 1.75rem 1.5rem 0; gap: 1.25rem; }
  .hero-foot, .pills, .hero .lead { display: none; }
  .hero h1 { margin: .9rem 0 0; }
  .login-card-wrap { padding: 1.75rem 1rem 2.5rem; }
}

/* ============================================================
   হোম
   ============================================================ */
.p-home { background: var(--paper); }
.pwrap { position: relative; z-index: 1; width: min(1600px, 100% - 2.5rem); margin-inline: auto; }

.ptop { position: sticky; top: 0; z-index: 10; background: linear-gradient(110deg, var(--navy-950), var(--navy-800)); color: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 6px 24px color-mix(in srgb, var(--navy-950) 2%, transparent); }
.ptop .pwrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.pbrand { display: flex; align-items: center; gap: .85rem; }
.pbrand img { width: 46px; height: 46px; }
.pbrand strong { display: block; font-weight: 400; font-size: 1.2rem; line-height: 1.25; }
.pbrand small { color: rgba(255,255,255,.65); font-size: .82rem; }
.puser { display: flex; align-items: center; gap: .8rem; }
.puser .who { text-align: right; line-height: 1.3; }
.puser .who b { display: block; font-weight: 400; }
.puser .who small { color: var(--gold-lt); font-size: .8rem; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; color: var(--navy-900); background: linear-gradient(135deg, var(--gold-lt), var(--gold)); }
.out { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 10px; font-size: .92rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: .15s; }
.out:hover { background: rgba(255,255,255,.2); }

.welcome { padding: 2.2rem 0 1.4rem; }
.welcome .date { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .95rem; padding: .3rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: 99px; }
.welcome h1 { font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 1rem 0 .3rem; color: var(--navy-900); line-height: 1.25; }
.welcome h1 span { color: var(--navy-600); }
.welcome .sub { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.mod { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.mod-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); box-shadow: 0 6px 14px color-mix(in srgb, var(--p-800) 25%, transparent); }
.mod-txt { flex: 1; min-width: 0; }
.mod h2 { font-weight: 400; font-size: 1.2rem; color: var(--navy-900); line-height: 1.3; }
.mod p { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.tag { flex: none; font-size: .75rem; padding: .15rem .6rem; border-radius: 99px; color: #7b8796; background: #eef1f6; border: 1px solid var(--line); }
.mod .go { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-700); background: var(--p-50); transition: .2s; }

.mod.live { cursor: pointer; border-color: var(--p-100); box-shadow: 0 4px 14px color-mix(in srgb, var(--p-800) 07%, transparent); border-left: 4px solid var(--gold); }
.mod.live:hover { transform: translateY(-3px); border-color: var(--navy-600); box-shadow: 0 14px 28px color-mix(in srgb, var(--p-800) 15%, transparent); }
.mod.live:hover .go { background: var(--navy-700); color: #fff; transform: translateX(3px); }

.mod.soon { background: rgba(255,255,255,.55); border-style: dashed; }
.mod.soon .mod-ic { background: #dfe5ee; color: #8794a7; box-shadow: none; }
.mod.soon h2 { color: #55657a; }
.mod.soon p { color: #8693a4; }

.pfoot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .88rem; }
.pfoot .pwrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.1rem; }

@media (max-width: 640px) {
  .pbrand small, .puser .who, .out span { display: none; }
  .pbrand strong { font-size: 1rem; }
  .welcome { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ফুটার সবসময় পেজের একদম নিচে */
.p-home { display: flex; flex-direction: column; min-height: 100vh; }
.p-home .home { flex: 1 0 auto; width: min(1600px, 100% - 2.5rem); }
.p-home .pfoot { margin-top: auto; }
.mod .pub-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; font-size: .8rem; color: var(--navy-700); text-decoration: underline; }

.sec-title { font-weight: 400; font-size: 1.1rem; color: var(--navy-900); margin: .2rem 0 .9rem; padding-top: .4rem; }
.grid:has(+ .sec-title) { padding-bottom: 1.2rem; }
.no-access { padding: 2rem 1.2rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.puser { gap: .6rem; }

/* গ্রুপ (বড় সেকশন) → ভেতরে সাব-সেকশনের কার্ড */
.grp { margin-bottom: 2.2rem; }
.grp:last-of-type { margin-bottom: 4rem; }
.grp-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.grp-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--navy-700); background: var(--p-50); border: 1px solid var(--p-100); }
.grp-head h2 { font-weight: 500; font-size: 1.25rem; color: var(--navy-900); line-height: 1.25; }
.grp-head p { color: var(--muted); font-size: .88rem; }
.grp .grid { padding-bottom: 0; }
