:root {
  --primary:#153b5b;
  --primary-light:#356b94;
  --accent:#397ba8;
  --text-main:#334155;
  --text-muted:#64748b;
  --bg-light:#f5f9fd;
  --card-bg:#fff;
  --border-color:#d9e6f0;
  --font-main:'Inter','Hind Siliguri',sans-serif;
  --max-width:1200px;
}

* { box-sizing:border-box; margin:0; padding:0; }
body { color:var(--text-main); background:var(--bg-light); font:400 1rem/1.6 var(--font-main); }
a { color:var(--accent); text-decoration:none; transition:color .2s ease; }
a:hover { color:var(--primary-light); }
.container { max-width:var(--max-width); margin:0 auto; padding:0 1.5rem; }

/* Header and navigation */
header { position:sticky; top:0; z-index:100; background:rgba(255,255,255,.96); border-bottom:1px solid var(--border-color); }
.top-bar { padding:.5rem 0; color:#fff; background:var(--primary); font-size:.875rem; }
.top-bar .container { display:flex; align-items:center; justify-content:space-between; }
.nav-container { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.5rem; }
.logo-area { display:flex; align-items:center; gap:1rem; color:inherit; }
.site-logo { width:65px; height:65px; border-radius:12px; object-fit:contain; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.logo-title h1 { color:var(--primary); font-size:1.25rem; font-weight:700; }
.logo-title p { color:var(--text-muted); font-size:.85rem; font-weight:700; }
nav ul { display:flex; align-items:center; gap:1.25rem; list-style:none; }
nav li { position:relative; }
nav a, nav .nav-menu-button { display:block; padding:.45rem 0; color:var(--text-main); font:500 .95rem var(--font-main); }
nav a:hover, nav .nav-menu-button:hover, nav .nav-menu-button:focus-visible { color:var(--accent); }
nav .nav-menu-button { border:0; background:transparent; cursor:pointer; }
nav .dropdown-menu { position:absolute; top:100%; left:0; z-index:110; display:none; min-width:230px; flex-direction:column; align-items:stretch; gap:0; padding:.45rem 0; background:var(--card-bg); border:1px solid var(--border-color); border-radius:6px; box-shadow:0 8px 18px rgba(21,59,91,.12); }
nav li:hover > .dropdown-menu, nav li:focus-within > .dropdown-menu { display:flex; }
nav .dropdown-menu a { padding:.55rem .9rem; white-space:nowrap; }
nav .dropdown-menu a:hover, nav .dropdown-menu a:focus { background:var(--bg-light); }

/* Index hero and buttons */
.hero { padding:4rem 0; color:#fff; text-align:center; background:linear-gradient(135deg,var(--primary),var(--primary-light)); }
.hero h2 { margin-bottom:1rem; font-size:2.25rem; font-weight:700; }
.hero p { max-width:800px; margin:0 auto 2rem; font-size:1.1rem; opacity:.9; }
.hero-btns { display:flex; justify-content:center; gap:1rem; }
.btn { display:inline-block; padding:.75rem 1.5rem; border-radius:6px; font-weight:600; cursor:pointer; transition:transform .12s ease,box-shadow .12s ease,filter .12s ease,background-color .2s ease; }
.btn:active { transform:translateY(2px) scale(.97); filter:brightness(.9); box-shadow:inset 0 2px 5px rgba(15,44,89,.22); }
.btn:focus-visible { outline:3px solid #7dd3fc; outline-offset:3px; }
.btn-primary { color:#fff; background:var(--accent); }
.btn-primary:hover { color:#fff; background:#2f648d; }
.btn-outline { color:#fff; border:2px solid #fff; }
.btn-outline:hover { color:var(--primary); background:#fff; }
.btn-block { display:block; text-align:center; font-size:.9rem; }

/* Layout and cards */
.main-layout { display:grid; grid-template-columns:2fr 1fr; gap:2rem; padding:3rem 0; }
.page-main { min-height:55vh; padding-top:3rem; }
.card { margin-bottom:1.5rem; padding:1.75rem; background:linear-gradient(145deg,#fff,#f0f7fc); border:1px solid #d4e4ef; border-radius:8px; box-shadow:0 5px 18px rgba(21,59,91,.07); }
.card-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; padding-bottom:.5rem; color:var(--primary); border-bottom:2px solid #d8e7f1; font-size:1.25rem; letter-spacing:.5px; text-transform:uppercase; }
.card-title-compact { font-size:1.1rem; }
.view-all-link { font-size:.85rem; font-weight:400; text-transform:none; }
.card.featured { border-left:4px solid var(--accent); }
.card p { margin-bottom:1rem; color:var(--text-main); }
.card p:last-child { margin-bottom:0; }

/* Articles, lists, and section cards */
.article-preview { margin-bottom:1.25rem; padding-bottom:1.25rem; border-bottom:1px solid var(--border-color); }
.article-preview:last-child { margin-bottom:0; padding-bottom:0; border:0; }
.article-preview h4 { margin-bottom:.35rem; font-size:1.05rem; }
.article-meta { color:var(--text-muted); font-size:.85rem; }
.article-title-bangla { margin:.35rem 0; color:var(--text-main); font:400 1.08rem 'Hind Siliguri',var(--font-main); }
.translation-note { color:var(--text-muted); font:400 .75rem var(--font-main); }
.article-pdf-link { overflow-wrap:anywhere; }
.styled-list { margin:1rem 0; list-style:none; }
.styled-list li { position:relative; margin-bottom:.5rem; padding-left:1.5rem; }
.styled-list li::before { position:absolute; top:-.1rem; left:.25rem; color:var(--accent); content:'•'; font-size:1.2rem; font-weight:700; }
.scope-item { margin-bottom:1.25rem; padding-bottom:1.25rem; border-bottom:1px dashed var(--border-color); }
.scope-item:last-child { margin-bottom:0; padding-bottom:0; border-bottom:0; }
.scope-item h4 { margin-bottom:.35rem; color:var(--primary-light); font-size:1.05rem; }
.text-note { color:var(--text-muted)!important; font-size:.9rem; }
body.subpage, body.index-page { background-color:#f3f8fc; background-image:linear-gradient(145deg,#eaf3fa 0%,#f9fbfd 42%,#edf5fb 100%); }
body.subpage header { background:rgba(255,255,255,.94); }
body.index-page .hero { background:linear-gradient(135deg,var(--primary),var(--primary-light)); }
body.board-page .scope-item, body.guidelines-page .scope-item { margin:1rem 0; padding:1rem 1.2rem; background:linear-gradient(135deg,#edf5fb,#f8fbfe); border:1px solid #d5e4ef; border-left:3px solid #bfd8ea; border-radius:8px; box-shadow:0 2px 8px rgba(15,44,89,.035); }
body.board-page .scope-item h4, body.guidelines-page .scope-item h4 { color:var(--primary-light); }

/* Publication links and badges */
.publication-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin:1.25rem 0; }
.publication-link { display:block; padding:1.1rem 1.25rem; color:var(--primary); background:#edf5fb; border:1px solid #d5e4ef; border-radius:8px; font-weight:600; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.publication-link:hover, .publication-link:focus { color:#2b5f87; background:#e1eef8; border-color:#bed7e8; transform:translateY(-2px); }
.publication-link span { display:block; margin-top:.2rem; color:var(--text-muted); font-size:.85rem; font-weight:400; }
.badge { padding:.25rem .5rem; color:#285c83; background:#e5f1fa; border-radius:4px; font-size:.75rem; font-weight:600; letter-spacing:normal; text-transform:none; }
.info-list { list-style:none; }
.info-list li { display:flex; justify-content:space-between; padding:.6rem 0; border-bottom:1px solid var(--border-color); font-size:.9rem; }
.info-list li:last-child { border-bottom:0; }

/* Footer */
footer { margin-top:2rem; padding:3rem 0 1.5rem; color:#fff; background:var(--primary); }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:2rem; margin-bottom:2rem; }
.footer-col h4 { margin-bottom:1rem; font-size:1.1rem; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:.5rem; }
.footer-col a { color:#cbd5e1; }
.footer-col a:hover { color:#fff; }
.footer-copy { color:#cbd5e1; font-size:.85rem; }
.footer-copy-spaced { margin-top:.5rem; }
.footer-bottom { padding-top:1.5rem; color:#94a3b8; border-top:1px solid rgba(255,255,255,.1); text-align:center; font-size:.85rem; }

/* Small index-specific treatments */
.small-copy { margin-bottom:1rem!important; font-size:.9rem; }

@media (max-width:768px) {
  .main-layout { grid-template-columns:1fr; }
  .nav-container { flex-direction:column; gap:1rem; }
  nav ul { flex-wrap:wrap; justify-content:center; gap:1rem; }
  nav .dropdown-menu { left:50%; transform:translateX(-50%); }
  .hero h2 { font-size:1.8rem; }
  .logo-title h1 { font-size:1.1rem; }
}

/* Featured journal cover on the index page */
.current-issue-card { text-align:center; }
.current-issue-card .card-title { text-align:left; }
.journal-cover { display:block; width:min(100%,320px); height:auto; margin:0 auto 1rem; border:1px solid #c8dbe9; border-radius:6px; box-shadow:0 8px 22px rgba(21,59,91,.16); transition:transform .2s ease,box-shadow .2s ease; }
.current-issue-card > a:first-of-type:hover .journal-cover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(21,59,91,.2); }
.current-issue-card .article-meta { margin-bottom:.75rem; }
