﻿:root {
  --bg: #f4efe7;
  --surface: #fffdf9;
  --surface-soft: #f7f1e6;
  --brand: #13364d;
  --brand-strong: #0d2839;
  --accent: #b87735;
  --accent-soft: #efddc6;
  --text: #213544;
  --muted: #617380;
  --line: rgba(19, 54, 77, 0.12);
  --shadow: 0 18px 40px rgba(15, 37, 52, 0.12);
  --radius: 24px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(184, 119, 53, 0.1), transparent 30%),
    linear-gradient(180deg, #f8f4ee 0%, #f1eadf 100%);
  color: var(--text);
  font: 16px/1.7 Georgia, "Times New Roman", serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 245, 238, 0.92);
  border-bottom: 1px solid rgba(19, 54, 77, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 8px 0;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-mark img {
  width: auto;
  height: 56px;
  max-width: 240px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 10px 20px rgba(19, 54, 77, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.site-nav,
.nav-list,
.hero-grid > *,
.page-hero-grid > *,
.split-grid > *,
.form-grid > *,
.publication-card > * {
  min-width: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list a,
.nav-cta,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.nav-list a {
  color: var(--text);
}

.nav-list a.is-active,
.nav-list a:hover,
.nav-list a:focus {
  background: rgba(19, 54, 77, 0.08);
  color: var(--brand-strong);
}

.submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(19, 54, 77, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.submenu li + li {
  margin-top: 6px;
}

.submenu a {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
}

.has-submenu > a {
  position: relative;
  padding-right: 26px;
}

.has-submenu > a::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.has-submenu.is-open > a::after {
  transform: rotate(-135deg);
  margin-top: 0;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.nav-cta,
.button {
  border: 0;
  background: linear-gradient(135deg, var(--brand) 0%, #24516a 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(19, 54, 77, 0.16);
}

.nav-cta:hover,
.nav-cta:focus,
.button:hover,
.button:focus {
  color: #fff;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary:hover,
.button-secondary:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.page-shell {
  padding: 36px 0 80px;
}

.hero,
.page-hero {
  position: relative;
  overflow: clip;
  padding: 72px 0;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 6px;
  background:
    linear-gradient(135deg, rgba(13, 40, 57, 0.96), rgba(22, 71, 88, 0.86)),
    url("../images/banner/DrAbdulKalamQuote2.png") center/cover no-repeat;
}

.page-hero::before {
  background:
    linear-gradient(135deg, rgba(13, 40, 57, 0.98), rgba(18, 54, 77, 0.9)),
    radial-gradient(circle at top right, rgba(184, 119, 53, 0.16), transparent 28%);
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.page-hero-grid,
.stats-grid,
.card-grid,
.split-grid,
.publication-list,
.footer-layout,
.board-grid,
.form-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.page-hero-grid,
.split-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: stretch;
}

.eyebrow,
.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #f7e6cf;
  margin-bottom: 18px;
}

.chip {
  background: var(--accent-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.status-pill {
  background: rgba(19, 54, 77, 0.08);
  color: var(--muted);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.panel h3,
.card h3,
.form-panel h2 {
  margin: 0 0 16px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.05;
}

.hero h1,
.page-hero h1 {
  width: 100%;
  max-width: 100%;
  color: #fff;
  font-size: clamp(1.55rem, 3.15vw, 2.65rem);
  overflow-wrap: anywhere;
}

.hero p,
.page-hero p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.panel,
.card,
.metric,
.form-panel,
.publication-card,
.board-card {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel,
.card,
.board-card {
  height: 100%;
}

.panel h3,
.card h3,
.board-card h3,
.publication-card h3 {
  color: var(--brand-strong);
  font-size: 1.5rem;
  margin-top: 0;
}

.panel p,
.card p,
.board-card p,
.publication-card p,
.section-heading p,
.content-prose p,
.content-prose li {
  color: var(--muted);
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
}

.list-clean li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.metric strong {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.content-section {
  margin-top: 36px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.form-panel h2 {
  color: var(--brand-strong);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.card-grid,
.board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-card img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.content-prose ul {
  padding-left: 20px;
}

.content-prose li {
  margin-bottom: 10px;
}

.publication-list {
  grid-template-columns: 1fr;
}

.publication-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.publication-date {
  display: grid;
  place-items: center;
  min-height: 104px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 54, 77, 0.1), rgba(184, 119, 53, 0.16));
  color: var(--brand-strong);
  text-align: center;
}

.publication-date strong {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.publication-date span {
  display: block;
  margin-top: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.publication-summary {
  margin-top: 14px;
}

.form-panel {
  padding: 32px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 54, 77, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: rgba(19, 54, 77, 0.36);
  box-shadow: 0 0 0 4px rgba(19, 54, 77, 0.08);
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(19, 54, 77, 0.14);
  border-radius: 999px;
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.helper-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.is-hidden,
.d-none {
  display: none !important;
}

.form-message {
  margin-top: 18px;
}

.alert {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.alert-success {
  background: rgba(46, 114, 78, 0.1);
  color: #1d5d3c;
}

.alert-danger {
  background: rgba(153, 44, 44, 0.08);
  color: #7c2d2d;
}

.site-footer {
  padding: 24px 0 0;
  background: transparent;
}

.footer-layout {
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 28px 0;
  border-top: 1px solid rgba(19, 54, 77, 0.1);
}

.footer-brand img {
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-column h3 {
  margin: 0 0 12px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--brand-strong);
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0 36px;
  border-top: 1px solid rgba(19, 54, 77, 0.08);
  color: var(--muted);
}

@media (max-width: 1200px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 64px;
    gap: 10px;
  }

  .brand-mark {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 10px 20px rgba(19, 54, 77, 0.18);
    z-index: 3;
  }

  .menu-toggle span {
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(19, 54, 77, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-list a,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    min-height: 42px;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 4px;
    padding: 6px 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    display: none;
  }

  .has-submenu.is-open .submenu {
    display: block;
  }

  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .form-grid,
  .publication-card,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .board-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark img {
    height: 44px;
    max-width: 156px;
  }

  .hero,
  .page-hero {
    padding: 48px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero::before,
  .page-hero::before {
    inset: 0 0 4px;
  }

  .panel,
  .card,
  .metric,
  .form-panel,
  .publication-card,
  .board-card {
    padding: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
