/* ===== AJOGSMR — Azman Journal of General Studies & Multidisciplinary Research ===== */

/* --- Tokens --- */
:root {
  --green:      #1A6B3C;
  --green-dark: #145530;
  --red:        #C4232A;
  --red-dark:   #A01D23;
  --maroon:     #7B1A1F;
  --ink:        #222222;
  --muted:      #555D65;
  --white:      #FFFFFF;
  --off-white:  #F7F8F6;
  --light-green:#E6F0EA;
  --border:     #D2D6D3;
  --bg:         #FAFBFA;

  --font-head:  'Bitter', Georgia, serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w:      1120px;
  --gutter:     1.25rem;
  --radius:     4px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.625rem; font-weight: 700; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; font-weight: 600; }

p + p { margin-top: 1rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff;
  padding: .5rem 1rem; z-index: 1000; font-size: .875rem;
}
.skip-link:focus { left: var(--gutter); }

/* ===================== HEADER ===================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky; top: 0; z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* University logo */
.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text { line-height: 1.2; }
.brand-text a { color: var(--ink); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--green-dark);
}
.brand-sub {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--ink); cursor: pointer; padding: .25rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Main nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: .1rem;
}
.main-nav a {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  padding: .4rem .65rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--light-green); color: var(--green-dark); }
.main-nav a.active { background: var(--green); color: #fff; }

/* ===================== HERO ===================== */
.hero {
  background: var(--green);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
/* Diagonal accent stripe */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: linear-gradient(155deg, transparent 48%, var(--red) 48%, var(--red) 51%, transparent 51%);
  opacity: .18;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 700px;
}
.hero-abbr {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: .2rem .7rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.hero h1 {
  color: #fff;
  font-size: 2.35rem;
  margin-bottom: .5rem;
}
.hero-tagline {
  font-size: 1.05rem;
  opacity: .88;
  margin-bottom: 1.5rem;
  max-width: 580px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  font-size: .84rem;
  opacity: .72;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-size: .92rem;
  transition: background .2s;
}
.hero-cta:hover { background: var(--red-dark); color: #fff; }

/* ===================== SECTIONS ===================== */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--white); }

.section-head { margin-bottom: 2rem; }
.section-head h2 {
  display: inline-block;
  position: relative;
  padding-bottom: .4rem;
}
.section-head h2::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* -- Scope grid -- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.scope-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
}
.scope-card h3 { margin-bottom: 0; font-size: .95rem; }
.scope-card p { font-size: .9rem; color: var(--muted); }

/* -- Current-issue table -- */
.issue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.issue-table th {
  text-align: left;
  font-weight: 600;
  padding: .65rem .75rem;
  background: var(--green);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .02em;
}
.issue-table th:first-child { border-radius: var(--radius) 0 0 0; }
.issue-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.issue-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.issue-table tr:hover td { background: var(--light-green); }
.issue-table .author { color: var(--muted); font-size: .84rem; }
.issue-table .pages  { white-space: nowrap; color: var(--muted); font-size: .84rem; }

/* -- Call-to-action banner -- */
.cta-banner {
  background: var(--green);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  position: relative;
}
.cta-banner::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.cta-banner h2 { color: #fff; margin-bottom: .5rem; }
.cta-banner p { opacity: .8; margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===================== INNER PAGES ===================== */
.page-header {
  background: var(--green);
  color: #fff;
  padding: 2.25rem 0 1.75rem;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.page-header h1 { color: #fff; font-size: 1.9rem; }
.page-header p { opacity: .75; margin-top: .3rem; font-size: .92rem; }

.page-body { padding: 3rem 0 4rem; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .35rem; }
.prose ul, .prose ol {
  margin: .75rem 0;
  padding-left: 1.35rem;
}
.prose li { margin-bottom: .35rem; font-size: .94rem; }
.prose li::marker { color: var(--green); }

/* Editorial board grid */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.board-member {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.board-member h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.board-member .role { font-size: .82rem; color: var(--green); font-weight: 600; margin-bottom: .35rem; }
.board-member .affil { font-size: .84rem; color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-info dt { font-weight: 600; font-size: .9rem; margin-top: 1rem; color: var(--green-dark); }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: .92rem; color: var(--muted); margin-top: .15rem; }

.contact-form label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: .25rem; margin-top: 1rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .92rem;
  background: var(--white);
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.12);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  margin-top: 1.25rem;
  display: inline-block;
  background: var(--green);
  color: #fff; border: none;
  font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--green-dark); }

/* Archive list */
.archive-vol { margin-bottom: 2.25rem; }
.archive-vol h3 {
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
  margin-bottom: .75rem;
}

/* Callout */
.callout {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--light-green);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #162b1e;
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0 1.5rem;
  font-size: .84rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.site-footer p { max-width: 340px; }
.site-footer h4 { color: #fff; font-size: .88rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #8fcea4; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--green);
    padding: .5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0 var(--gutter); }
  .main-nav a { display: block; padding: .6rem 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .section { padding: 2.25rem 0; }
  .issue-table { font-size: .82rem; }
  .issue-table th, .issue-table td { padding: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Hide Netlify badge */
[data-netlify-badge], .netlify-badge,
a[href*="netlify.com"][rel*="noopener"],
img[alt*="Deploys by Netlify"],
.netlify-identity-signup,
div[style*="position: fixed"][style*="right"] a[href*="netlify"] {
  display: none !important;
  visibility: hidden !important;
}
