/* ===================================================================
   AIJHRIS - Frontend Theme (aijhris.com red palette, IJCNRS layout)
   Primary red #CC0000 · Deep navy/indigo #050049 · Light gray #F1F1F1
   =================================================================== */

:root {
  --red:        #cc0000;
  --red-dark:   #a30000;
  --red-light:  #e23b3b;
  --navy:       #050049;
  --navy-2:     #0c0a5c;
  --indigo:     #0c00a2;
  --gold:       #f4a92e;
  --ink:        #1f2530;
  --muted:      #5f6b78;
  --line:       #e2e6ea;
  --bg:         #ffffff;
  --bg-soft:    #f1f1f1;
  --bg-soft-2:  #f7eaea;
  --white:      #ffffff;
  --radius:     10px;
  --radius-sm:  7px;
  --shadow-sm:  0 1px 4px rgba(5,0,73,.08);
  --shadow:     0 6px 22px rgba(5,0,73,.10);
  --shadow-lg:  0 18px 48px rgba(5,0,73,.16);
  --grad:       linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  --grad-navy:  linear-gradient(135deg, var(--navy) 0%, var(--indigo) 130%);
  --font:       'Plus Jakarta Sans','Segoe UI', system-ui, sans-serif;
  --font-head:  'Sora','Plus Jakarta Sans', sans-serif;
  --max:        1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg-soft); line-height: 1.6; font-size: 15.5px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; font-weight: 700; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 46px 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: var(--radius-sm); font-weight: 600; font-family: var(--font); font-size: 14.5px; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(204,0,0,.28); }
.btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(204,0,0,.38); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(244,169,46,.3); }
.btn-gold:hover { color: var(--navy); transform: translateY(-2px); }
.btn-navy { background: var(--grad-navy); color:#fff; }
.btn-navy:hover { color:#fff; transform: translateY(-2px); }
.btn-outline { background:#fff; border: 1.5px solid var(--red); color: var(--red-dark); }
.btn-outline:hover { background: var(--red); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background:#fff; color: var(--navy); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Sticky header wrapper ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; box-shadow: 0 2px 12px rgba(5,0,73,.10); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #c9c7e6; font-size: 13px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar .meta span { margin-right: 16px; }
.topbar .meta strong { color: var(--gold); font-weight: 600; }
.topbar .util { display:flex; align-items:center; gap: 6px; }
.topbar .util a { color:#fff; padding: 4px 12px; border-radius: 5px; font-weight:600; font-size:12.5px; transition:.2s; }
.topbar .util a.reg { background: rgba(255,255,255,.12); }
.topbar .util a.reg:hover { background: rgba(255,255,255,.25); }
.topbar .util a.sub { background: var(--red); }
.topbar .util a.sub:hover { background: var(--red-light); }
.topbar .util .sep { color: rgba(255,255,255,.3); }

/* ---------- Main header (logo + banner) ---------- */
.site-head { background:#fff; border-bottom: 3px solid var(--red); }
.site-head .container { display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 16px 20px; }
.logo { display:flex; align-items:center; gap: 14px; }
.logo-img { height: 58px; width: auto; display:block; }
.logo .mark { width: 60px; height:60px; border-radius: 12px; background: var(--grad); display:grid; place-items:center; color:#fff; font-family: var(--font-head); font-weight:800; font-size: 24px; box-shadow: var(--shadow-sm); }
.logo .name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 22px; line-height:1.1; }
.logo .name small { display:block; font-family: var(--font); font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 5px; max-width: 430px; }
.head-right { text-align:right; font-size: 13px; color: var(--muted); }
.head-right .issn { font-weight:700; color: var(--navy); }
.head-right .issn b { color: var(--red); }

/* ---------- Red nav bar (sticky) ---------- */
.navbar { background: var(--grad); position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.navbar .container { display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.menu { display:flex; align-items:center; list-style:none; flex-wrap:wrap; }
.menu > li > a { display:block; padding: 14px 15px; color:#fff; font-weight:600; font-size: 14px; position:relative; transition: background .2s; }
.menu > li > a:hover, .menu > li > a.active { background: rgba(0,0,0,.18); color:#fff; }
.nav-search { display:flex; align-items:center; }
.nav-search input { border:none; padding: 8px 12px; border-radius: 5px 0 0 5px; font-size:13px; width: 150px; }
.nav-search button { border:none; background: var(--navy); color:#fff; padding: 9px 12px; border-radius: 0 5px 5px 0; cursor:pointer; }
/* mobile brand inside red bar */
.nav-brand { display:none; align-items:center; gap:9px; color:#fff; font-family:var(--font-head); font-weight:800; font-size:18px; }
.nav-brand .mark { width:34px; height:34px; border-radius:8px; background:rgba(255,255,255,.18); display:grid; place-items:center; font-size:14px; }
/* hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding: 12px 14px; }
.hamburger span { width:24px; height:3px; background:var(--navy); border-radius:3px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* mobile-only block inside slide menu */
.m-only { display:none; }
.m-search { display:flex; margin: 12px 0; }
.m-search input { flex:1; border:none; padding:10px 12px; border-radius:6px 0 0 6px; font-size:14px; }
.m-search button { border:none; background: var(--red); color:#fff; padding:0 14px; border-radius:0 6px 6px 0; cursor:pointer; }
.m-actions { display:flex; flex-direction:column; gap:8px; }

/* ---------- Journal banner (home) ---------- */
.jbanner { background: var(--grad-navy); color:#fff; padding: 40px 0; position:relative; overflow:hidden; }
.jbanner::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 88% 30%, rgba(204,0,0,.4), transparent 45%); }
.jbanner .container { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap; }
.jbanner h1 { color:#fff; font-size: clamp(22px, 3vw, 32px); max-width: 720px; line-height:1.25; }
.jbanner .tagline { color: var(--gold); font-weight:600; margin: 8px 0 14px; font-size: 15px; }
.jbanner .jmeta { display:flex; gap: 22px; flex-wrap:wrap; font-size: 14px; }
.jbanner .jmeta div b { display:block; color: var(--gold); font-size: 12px; text-transform:uppercase; letter-spacing:1px; }
.jbanner .jbtn { flex-shrink:0; }

/* ---------- Hero image slider ---------- */
.hero-slider { position:relative; overflow:hidden; background: var(--navy); height: clamp(340px, 44vw, 520px); }
.hero-slider .slides { position:relative; height:100%; }
.slide { position:absolute; inset:0; opacity:0; transition: opacity .9s ease; background-size:cover; background-position:center; display:flex; align-items:center; }
.slide.active { opacity:1; }
.slide::before { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(5,0,73,.88) 0%, rgba(5,0,73,.55) 48%, rgba(204,0,0,.22) 100%); }
.slide-content { position:relative; z-index:2; width:100%; max-width: var(--max); margin:0 auto; padding: 0 24px; }
.slide-text { max-width: 640px; color:#fff; animation: fadeUp .8s .15s both; }
.slide-badge { display:inline-block; background: var(--red); color:#fff; padding: 5px 14px; border-radius: 50px; font-size: 11.5px; font-weight:700; letter-spacing:1px; text-transform:uppercase; margin-bottom: 14px; }
.slide-text h1 { color:#fff; font-size: clamp(24px, 3.6vw, 42px); line-height:1.18; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.slide-text p { font-size: clamp(14px, 1.6vw, 18px); color: rgba(255,255,255,.92); margin-bottom: 22px; }
.slider-arrow { position:absolute; top:50%; transform: translateY(-50%); z-index:5; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); color:#fff; width:46px; height:46px; border-radius:50%; cursor:pointer; font-size:17px; transition:.25s; }
.slider-arrow:hover { background:#fff; color: var(--navy); }
.slider-arrow.prev { left: 18px; } .slider-arrow.next { right: 18px; }
.slider-dots { position:absolute; bottom: 18px; left:50%; transform: translateX(-50%); display:flex; gap:9px; z-index:5; }
.slider-dots button { width:11px; height:11px; border-radius:50%; border:2px solid #fff; background:transparent; cursor:pointer; padding:0; transition:.25s; }
.slider-dots button.active { background:#fff; width:26px; border-radius:7px; }

/* ---------- Journal info strip ---------- */
.jstrip { background: var(--grad-navy); color:#fff; padding: 14px 0; position:relative; overflow:hidden; }
.jstrip::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 92% 50%, rgba(204,0,0,.4), transparent 42%); }
.jstrip .container { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.jstrip .jmeta { display:flex; gap: 26px; flex-wrap:wrap; font-size: 13.5px; }
.jstrip .jmeta div b { display:block; color: var(--gold); font-size: 11px; text-transform:uppercase; letter-spacing:1px; margin-bottom:2px; }

/* ---------- About sub-links chips ---------- */
.sublinks { background:#fff; border-bottom:1px solid var(--line); }
.sublinks .container { display:flex; flex-wrap:wrap; gap: 4px; padding: 10px 20px; }
.sublinks a { font-size: 13px; font-weight:600; color: var(--navy); padding: 6px 13px; border-radius: 5px; transition:.2s; }
.sublinks a:hover { background: var(--bg-soft-2); color: var(--red-dark); }

/* ---------- Layout shell (2-column) ---------- */
.shell { display:grid; grid-template-columns: 1fr 320px; gap: 28px; align-items:start; padding: 30px 20px; max-width: var(--max); margin: 0 auto; }
.shell-main { min-width: 0; }
.shell-side { display:flex; flex-direction:column; gap: 20px; }

/* ---------- Boxed widgets / cards ---------- */
.box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow:hidden; }
.box-head { background: var(--grad-navy); color:#fff; padding: 12px 18px; font-family: var(--font-head); font-weight:700; font-size: 16px; display:flex; align-items:center; gap:9px; }
.box-head.red { background: var(--grad); }
.box-body { padding: 20px; }
.widget { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.widget-head { background: var(--grad); color:#fff; padding: 11px 16px; font-family: var(--font-head); font-weight:700; font-size: 14.5px; display:flex; align-items:center; gap:8px; }
.widget-head.navy { background: var(--grad-navy); }
.widget-body { padding: 16px; }
.widget-body ul { list-style:none; }
.widget-body li { padding: 9px 0; border-bottom:1px dashed var(--line); font-size: 13.5px; }
.widget-body li:last-child { border-bottom:none; }
.widget-body li a { color: var(--ink); font-weight:600; }
.widget-body li a:hover { color: var(--red); }
.widget-body li .meta { display:block; color: var(--muted); font-size: 12px; font-weight:400; margin-top:2px; }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: 24px; }
.sec-head.center { text-align:center; max-width: 720px; margin: 0 auto 30px; }
.sec-head .kicker { display:inline-block; color: var(--red-dark); font-weight:700; font-size: 12px; letter-spacing:2px; text-transform: uppercase; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(22px, 2.8vw, 30px); }
.sec-head .bar { width: 60px; height: 3px; background: var(--red); border-radius:3px; margin-top: 10px; }
.sec-head.center .bar { margin: 12px auto 0; }
.block-title { font-family: var(--font-head); font-size: 20px; color: var(--navy); padding: 0 0 10px; border-bottom: 2px solid var(--red); margin-bottom: 20px; display:inline-block; }

/* ---------- Article list ---------- */
.art-type-head { background: var(--bg-soft-2); color: var(--red-dark); font-family: var(--font-head); font-weight:700; font-size: 14px; text-transform:uppercase; letter-spacing:.5px; padding: 9px 16px; border-left: 4px solid var(--red); border-radius: 0 5px 5px 0; margin: 22px 0 14px; }
.article-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; transition:.25s; }
.article-card:hover { box-shadow: var(--shadow); border-color: #f0c9c9; }
.article-card .tag { display:inline-block; background: var(--navy); color:#fff; font-size:11px; font-weight:700; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; text-transform:uppercase; letter-spacing:.5px; }
.article-card h3 { font-size: 17px; margin-bottom: 6px; line-height:1.35; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--red); }
.article-card .authors { color: var(--red-dark); font-weight:600; font-size:13.5px; margin-bottom: 7px; }
.article-card .abs { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.article-meta { display:flex; flex-wrap:wrap; gap: 14px; font-size: 12.5px; color: var(--muted); align-items:center; }
.article-meta i { color: var(--red); margin-right:4px; }

/* ---------- Quick action cards ---------- */
.quick-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.qcard { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; box-shadow: var(--shadow-sm); transition:.25s; text-align:center; }
.qcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.qcard .ic { width:56px; height:56px; margin:0 auto 12px; border-radius:12px; background: var(--bg-soft-2); color: var(--red); display:grid; place-items:center; font-size:22px; transition:.25s; }
.qcard:hover .ic { background: var(--grad); color:#fff; }
.qcard h4 { font-size: 16px; margin-bottom: 6px; }
.qcard p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ---------- Feature / scope grid ---------- */
.feature-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.fcard { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: .25s; }
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color:#f0c9c9; }
.fcard .ic { width:48px; height:48px; border-radius:11px; background: var(--bg-soft-2); color: var(--red); display:grid; place-items:center; font-size:20px; margin-bottom:12px; transition:.25s; }
.fcard:hover .ic { background: var(--grad); color:#fff; }
.fcard h4 { font-size: 15.5px; margin-bottom: 6px; }
.fcard p { color: var(--muted); font-size: 13.5px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--grad-navy); color:#fff; position:relative; overflow:hidden; }
.stats::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 20% 50%, rgba(204,0,0,.35), transparent 38%); }
.stats-grid { display:grid; grid-template-columns: repeat(5,1fr); gap: 18px; position:relative; z-index:2; text-align:center; }
.stat b { font-family: var(--font-head); font-size: 36px; color: var(--gold); display:block; }
.stat span { color: rgba(255,255,255,.85); font-size: 13.5px; }

/* ---------- Team / board grid ---------- */
.team-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tcard { background:#fff; border-radius: var(--radius); border:1px solid var(--line); overflow:hidden; text-align:center; transition:.25s; box-shadow: var(--shadow-sm); }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tcard .ph { height: 210px; background: var(--bg-soft-2); overflow:hidden; }
.tcard .ph img { width:100%; height:100%; object-fit: cover; transition: transform .4s; }
.tcard:hover .ph img { transform: scale(1.05); }
.tcard .ph .ph-fallback { width:100%; height:100%; display:grid; place-items:center; background: var(--grad); }
.tcard .ph .ph-fallback span { color:#fff; font-size:50px; font-family:var(--font-head); }
.tcard .info { padding: 16px 14px; }
.tcard h4 { font-size: 16px; margin-bottom:4px; }
.tcard .desig { color: var(--red-dark); font-weight:600; font-size: 13px; }
.tcard .qual { color: var(--muted); font-size: 12px; margin-top: 5px; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: var(--grad-navy); color:#fff; padding: 38px 0; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 85% 30%, rgba(204,0,0,.35), transparent 45%); }
.page-hero .container { position:relative; z-index:2; }
/* Constrain hero content whether or not it is wrapped in a .container */
.page-hero > h1, .page-hero > .crumb { max-width: var(--max); margin-left:auto; margin-right:auto; padding-left:20px; padding-right:20px; position:relative; z-index:2; }
.page-hero h1 { color:#fff; font-size: clamp(24px,3vw,34px); }
.page-hero > .crumb { margin-top:8px; }
.page-hero .crumb { margin-top:8px; color: rgba(255,255,255,.8); font-size:13.5px; }
.page-hero .crumb a { color: var(--gold); }

/* ---------- Article detail (IJCNRS-style) ---------- */
.art-crumb { background: var(--bg-soft); border-bottom:1px solid var(--line); }
.art-crumb .container { padding: 12px 20px; font-size: 13px; color: var(--muted); }
.art-detail { margin-bottom: 22px; }
.art-type-label { color: var(--red-dark); font-weight:700; letter-spacing:.6px; text-transform:uppercase; font-size:14px; margin-bottom:6px; }
.art-authors { font-style: italic; color:#444; margin-bottom: 8px; font-size:15px; }
.art-title { font-size: clamp(20px,2.4vw,26px); color: var(--navy); line-height:1.3; margin-bottom: 12px; }
.art-brackets { color:#555; font-size:14px; margin-bottom:10px; }
.art-keywords { font-size:14px; margin-bottom:12px; color:#333; }
.art-doiline { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:14px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:11px 0; }
.art-doiline .sep { color:#d2d2d2; }
.art-doiline .cite-count b { color: var(--red-dark); }
.cite-box { background: var(--bg-soft); border:1px solid var(--line); border-left:4px solid var(--red); border-radius:0 8px 8px 0; padding:14px 16px; margin-top:14px; font-size:14px; color:#333; }
.art-figure { margin: 0 0 22px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.art-figure img { width:100%; height:auto; display:block; }
.art-figure figcaption { font-size:12.5px; color:var(--muted); padding:8px 12px; background:var(--bg-soft); }
.abstract-box { border:1px solid var(--line); border-radius:8px; overflow:hidden; margin-bottom:24px; }
.abstract-head { background: var(--grad-navy); color:#fff; padding:12px 18px; font-family:var(--font-head); font-weight:700; font-size:17px; }
.abstract-body { background:#f4f5f9; padding:20px; color:#333; line-height:1.75; font-size:15px; }
.abstract-body strong { color: var(--navy); }
/* In-page section nav */
.ft-nav { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 22px; border-bottom:2px solid var(--line); }
.ft-nav a { padding:9px 16px; font-weight:600; font-size:14px; color:var(--navy); border-bottom:3px solid transparent; margin-bottom:-2px; }
.ft-nav a:hover { color:var(--red); border-color:var(--red-light); }
/* Full text body (LWW-style readable article) */
.fulltext { color:#2c343d; font-size:15.5px; line-height:1.8; margin-bottom:26px; }
.fulltext h2 { font-size:21px; color:var(--navy); margin:26px 0 10px; padding-bottom:6px; border-bottom:2px solid var(--red); }
.fulltext h3 { font-size:17px; color:var(--red-dark); margin:20px 0 8px; }
.fulltext h4 { font-size:15.5px; color:var(--navy); margin:16px 0 6px; }
.fulltext p { margin-bottom:14px; }
.fulltext ul, .fulltext ol { margin:0 0 14px 22px; }
.fulltext li { margin-bottom:6px; }
.fulltext img { max-width:100%; height:auto; border-radius:8px; margin:14px 0; }
.fulltext table { width:100%; border-collapse:collapse; margin:16px 0; font-size:14px; }
.fulltext table th { background:var(--navy); color:#fff; padding:9px 12px; text-align:left; border:1px solid #0a0a55; }
.fulltext table td { padding:9px 12px; border:1px solid var(--line); }
.fulltext table tr:nth-child(even) td { background:var(--bg-soft); }
.fulltext blockquote { border-left:4px solid var(--red); background:var(--bg-soft); margin:14px 0; padding:10px 16px; color:#444; }
/* References */
.ref-list { margin:0 0 24px 0; padding-left:22px; font-size:14px; color:#333; }
.ref-list li { margin-bottom:9px; line-height:1.6; }
/* Keywords block */
.ft-keywords { margin:18px 0 26px; font-size:14px; }
.ft-keywords .kw { display:inline-block; background:var(--bg-soft-2); color:var(--red-dark); font-size:12.5px; font-weight:600; padding:4px 11px; border-radius:50px; margin:4px 4px 0 0; }
/* article thumbnail in listing cards */
.article-card { display:block; }
.article-card.has-thumb { display:flex; gap:18px; align-items:flex-start; }
.article-card .thumb { flex:0 0 120px; width:120px; height:90px; border-radius:8px; overflow:hidden; background:var(--bg-soft-2); }
.article-card .thumb img { width:100%; height:100%; object-fit:cover; }
@media (max-width:560px){ .article-card.has-thumb{ flex-direction:column; } .article-card .thumb{ width:100%; height:170px; flex-basis:auto; } }

/* ---------- Prose ---------- */
.prose h3 { color: var(--navy); font-size: 20px; margin: 24px 0 10px; padding-left: 12px; border-left: 3px solid var(--red); }
.prose p { color: #3c4651; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 20px; color:#3c4651; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red-dark); font-weight:600; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-grid .contact-li { color:#3c4a55; margin-bottom:18px; display:flex; gap:12px; }
.contact-grid .contact-li i { color: var(--red); font-size:20px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:600; font-size: 13.5px; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width:100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 14.5px; color: var(--ink); background:#fff; transition: border .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.auth-wrap { min-height: 68vh; display:grid; place-items:center; padding: 44px 0; }
.auth-box { width:100%; max-width: 440px; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; font-weight: 500; display:flex; gap:9px; align-items:flex-start; }
.alert-success { background: #e7f7ef; color: #167a4b; border:1px solid #bfe8d2; }
.alert-error   { background: #fdecea; color: #c0392b; border:1px solid #f5c6c0; }
.alert-info    { background: #fff4e0; color: #9a6a06; border:1px solid #f3dca9; }
.badge { display:inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11.5px; font-weight: 700; }
.badge-green { background:#e7f7ef; color:#167a4b; }
.badge-amber { background:#fff4e0; color:#b9770d; }
.badge-blue  { background:#e9f0fb; color: var(--indigo); }
.badge-red   { background:#fdecea; color: var(--red-dark); }
.badge-gray  { background:#eef1f3; color:#5b6b78; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--gold); color: var(--navy); padding: 9px 0; font-weight:600; font-size:13.5px; }
.announce .container { display:flex; gap:10px; align-items:center; }
.announce .tag { background: var(--red); color:#fff; padding:3px 11px; border-radius:5px; font-size:11.5px; white-space:nowrap; }

/* ---------- Search ---------- */
.searchbar { display:flex; gap:10px; max-width:620px; margin: 0 auto 28px; }
.searchbar input { flex:1; padding: 12px 16px; border:1.5px solid var(--line); border-radius: var(--radius-sm); font-size:15px; }
.searchbar input:focus { outline:none; border-color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9b7d8; padding: 54px 0 0; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
.footer-grid > div { min-width: 0; }
.footer p, .footer .contact-li span, .footer ul a { overflow-wrap: anywhere; }
.footer h5 { color:#fff; font-size: 15px; margin-bottom: 16px; position:relative; padding-bottom:9px; }
.footer h5::after { content:''; position:absolute; left:0; bottom:0; width:38px; height:3px; background: var(--red); border-radius:3px; }
.footer p { font-size: 13.5px; color:#a6a4cc; margin-bottom: 12px; }
.footer .flogo { font-family: var(--font-head); font-weight:800; color:#fff; font-size: 22px; margin-bottom: 12px; }
.footer ul { list-style:none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color:#a6a4cc; font-size:13.5px; }
.footer ul a:hover { color: var(--gold); padding-left: 4px; }
.footer .contact-li { display:flex; gap:10px; font-size:13.5px; margin-bottom:12px; color:#a6a4cc; }
.footer .contact-li i { color: var(--red-light); margin-top:3px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding: 18px 0; text-align:center; font-size:12.5px; color:#8886b0; }
.footer .social { display:flex; gap:8px; margin-top:8px; }
.footer .social a { width:34px; height:34px; display:grid; place-items:center; background:rgba(255,255,255,.1); border-radius:50%; color:#b9b7d8; transition:.2s; }
.footer .social a:hover { background: var(--red); color:#fff; }

/* ---------- Pagination ---------- */
.pagination { display:flex; gap:7px; justify-content:center; margin-top:30px; flex-wrap:wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 7px; border:1px solid var(--line); color: var(--navy); font-weight:600; font-size:14px; background:#fff; }
.pagination a:hover { background: var(--bg-soft-2); }
.pagination .current { background: var(--grad); color:#fff; border-color: transparent; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity:0; transform: translateY(24px);} to {opacity:1; transform:none;} }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
.reveal { opacity:0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s;} .reveal.d2{ transition-delay:.16s;} .reveal.d3{ transition-delay:.24s;} .reveal.d4{ transition-delay:.32s;}
.float-anim { animation: floaty 5s ease-in-out infinite; }

/* ---------- Responsive ---------- */
.menu-overlay { position:fixed; inset:0; background: rgba(5,0,73,.55); opacity:0; visibility:hidden; transition:.3s; z-index:205; }
.menu-overlay.show { opacity:1; visibility:visible; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .quick-grid, .feature-grid, .stats-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hamburger { display:flex; }
  /* Single header on mobile: hide top bar, collapse the red nav (its links live in the slide-in menu) */
  .topbar { display:none; }
  .navbar { background: transparent; box-shadow: none; position: static; z-index: auto; }
  .navbar .container { padding: 0; min-height: 0; }
  .menu {
    position: fixed; top: 0; right: -110%; bottom: 0;
    height: 100vh; height: 100dvh; width: min(88vw, 330px);
    background: var(--navy); flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap;
    padding: 18px 16px calc(32px + env(safe-area-inset-bottom)); gap: 0;
    box-shadow: var(--shadow-lg); transition: right .35s ease; z-index: 210;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .menu > li { flex: 0 0 auto; }
  .menu.open { right: 0; }
  .menu > li { width: 100%; }
  .menu > li > a { width:100%; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius:0; }
  .menu > li > a:hover, .menu > li > a.active { background: var(--red); }
  .m-only { display:block; margin-top: 14px; }
  .nav-search { display:none; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .head-right { display:none; }
  .site-head .container { padding: 12px 20px; }
  .logo .mark { width:46px; height:46px; font-size:19px; }
  .logo .name { font-size:18px; }
  .logo .name small { font-size:10.5px; max-width:230px; }
  .logo-img { height:46px; }
}
@media (max-width: 400px) {
  .logo .name small { display:none; }
  .topbar .util a.sub { padding: 4px 9px; }
  .logo-img { height:40px; }
}
@media (max-width: 560px) {
  .quick-grid, .feature-grid, .stats-grid, .team-grid, .form-row { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .jbanner .container { flex-direction:column; align-items:flex-start; }
  .hero-slider { height: 300px; }
  .slider-arrow { display: none; }      /* avoid arrows overlapping slide text on phones */
  .slider-dots { bottom: 12px; }
  .slide-text { max-width: 100%; }
  .jstrip .jmeta { gap:16px; font-size:12.5px; }
  .footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer h5 { margin-bottom: 12px; }
}
