/* =========================================================
   GIJSR – Global Stylesheet
   Colors: Bootstrap 4.2 Standard Palette
   Primary #007bff | Secondary #6c757d | Success #28a745
   Info #17a2b8 | Warning #ffc107 | Danger #dc3545
   Light #f8f9fa | Dark #343a40
   ========================================================= */

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

:root {
  --primary:    #25378b;
  --secondary:  #6c757d;
  --success:    #28a745;
  --info:       #17a2b8;
  --warning:    #ffc107;
  --danger:     #dc3545;
  --light:      #f8f9fa;
  --dark:       #343a40;
  --white:      #ffffff;
  --gray-100:   #f8f9fa;
  --gray-200:   #e9ecef;
  --gray-300:   #dee2e6;
  --gray-400:   #ced4da;
  --gray-500:   #adb5bd;
  --gray-600:   #868e96;
  --gray-700:   #495057;
  --gray-800:   #343a40;
  --gray-900:   #212529;
  --text:       #212529;
  --muted:      #6c757d;
  --border:     #dee2e6;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,.08);
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15.5px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #0056b3; }

img { max-width: 100%; }

ul { list-style: none; }

h1,h2,h3,h4,h5 { line-height: 1.3; font-weight: 700; }

/* ---------- Utility ---------- */
.container { width: 92%; max-width: 1180px; margin: 0 auto; }
.section    { padding: 64px 0; }
.section-alt { background: var(--light); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-dark { color: var(--dark); }

.section-title {
  font-size: 1.85rem;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 2px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--dark);
  color: var(--gray-400);
  font-size: 0.78rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .3px;
}

/* ---------- HEADER ---------- */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  flex-shrink: 0;
}
.brand-text { color: var(--white); }
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: .3px;
}
.brand-tagline {
  font-size: 0.7rem;
  color: var(--gray-300);
  margin-top: 2px;
  letter-spacing: .2px;
}

/* ---------- NAVBAR ---------- */
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

nav ul li a {
  color: rgba(255,255,255,.85);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  letter-spacing: .2px;
  display: block;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--secondary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 50%, var(--gray-700) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--white);
  object-fit: cover;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,.30);
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.30);
}
.hero h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.badge {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--gray-200);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.20); }
.btn-primary   { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-success   { background: var(--success); color: var(--white); }
.btn-info      { background: var(--info); color: var(--white); }
.btn-warning   { background: var(--warning); color: var(--dark); }
.btn-danger    { background: var(--danger); color: var(--white); }
.btn-outline-primary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-outline-light { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--dark); }

/* ---------- PAGE BANNER ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--dark), var(--gray-800));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
  border-bottom: 4px solid var(--primary);
}
.page-banner h1 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.page-banner p {
  color: var(--gray-400);
  font-size: 0.95rem;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray-500); }

/* ---------- CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--primary);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.12); }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--white);
}
.card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; }
.card p   { color: var(--muted); font-size: 0.88rem; }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
tbody tr:nth-child(even) { background: var(--light); }
tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:hover { background: var(--gray-200); }

/* ---------- LISTS ---------- */
.styled-list { margin: 16px 0 16px 0; }
.styled-list li {
  padding: 7px 0 7px 28px;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text);
  font-size: 0.93rem;
}
.styled-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.7rem;
  top: 10px;
}

/* ---------- STEPS / WORKFLOW ---------- */
.workflow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
  position: relative;
}
.workflow::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  opacity: .3;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.step-content h4 { color: var(--dark); margin-bottom: 4px; }
.step-content p  { color: var(--muted); font-size: 0.9rem; }

/* ---------- INFO BOX ---------- */
.info-box {
  background: var(--gray-100);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box h4 { color: var(--dark); margin-bottom: 8px; }
.info-box p  { color: var(--text); font-size: 0.92rem; }
.warning-box {
  background: #fff3cd;
  border-left: 5px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: #856404;
  font-size: 0.9rem;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--primary);
  padding: 32px 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2rem;
  color: var(--white);
  font-weight: 800;
}
.stat-item p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---------- ANNOUNCEMENT ---------- */
.announcement {
  background: #fff3cd;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.announcement h3 { color: var(--dark); margin-bottom: 10px; }
.announcement p  { color: var(--text); font-size: 0.92rem; }
.ann-badge {
  display: inline-block;
  background: var(--warning);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 0.88rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- CONTACT INFO ---------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--light);
  border-radius: var(--radius);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-text h4 { color: var(--dark); font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-text p  { color: var(--muted); font-size: 0.85rem; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark);
  color: var(--gray-400);
  font-size: 0.85rem;
}
.footer-main {
  padding: 50px 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--gray-500);
  font-size: 0.83rem;
  transition: color .2s, padding-left .2s;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { color: var(--gray-600); font-size: 0.78rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-links a {
  color: var(--gray-600);
  font-size: 0.78rem;
  padding: 2px 8px;
  border-left: 1px solid var(--gray-700);
}
.footer-links a:first-child { border-left: none; }
.footer-links a:hover { color: var(--white); }

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.20);
  border: none;
  font-weight: 700;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); }

/* ---------- EDITORIAL BOARD ---------- */
.board-position {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 5px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 20px;
}
.position-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}
.position-info h4 { color: var(--dark); margin-bottom: 4px; }
.position-info p  { color: var(--muted); font-size: 0.88rem; }

/* ---------- CURRENT ISSUE ---------- */
.issue-header {
  background: linear-gradient(135deg, var(--primary), #0056b3);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: var(--white);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.issue-header h2 { color: var(--white); }
.issue-header p  { color: rgba(255,255,255,.80); margin-top: 4px; }
.coming-soon {
  text-align: center;
  padding: 60px 30px;
  background: var(--light);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}
.coming-soon .icon { font-size: 3.5rem; margin-bottom: 16px; }
.coming-soon h3 { color: var(--dark); font-size: 1.4rem; margin-bottom: 12px; }
.coming-soon p  { color: var(--muted); font-size: 0.92rem; max-width: 500px; margin: 0 auto; }

/* ---------- ARCHIVE ---------- */
.archive-year {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.archive-year-header {
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background .2s;
}
.archive-year-header:hover { background: var(--gray-700); }
.archive-year-header h3 { font-size: 1.05rem; color: var(--white); }
.archive-year-header span { color: var(--gray-400); font-size: 0.85rem; }
.archive-year-body { padding: 20px 24px; }

/* ---------- SCOPE TABLE ---------- */
.scope-table thead th:first-child { width: 200px; }

/* ---------- APC TABLE ---------- */
.apc-highlight { background: #cce5ff !important; font-weight: 600; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  nav.open { max-height: 600px; }
  nav ul { flex-direction: column; padding: 10px 16px 20px; gap: 4px; }
  nav ul li a { padding: 10px 14px; border-radius: 6px; }

  .header-inner { position: relative; }

  .hero h1 { font-size: 1.6rem; }
  .hero h2 { font-size: 0.95rem; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .issue-header { flex-direction: column; }

  .page-banner h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .brand-name { font-size: 0.88rem; }
  .brand-logo { width: 52px; height: 52px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}