:root {
  --navy: #0a3a67;
  --blue: #1565c0;
  --blue-hover: #0d4d9c;
  --accent: #e23744;
  --text: #1f2933;
  --muted: #5b6677;
  --bg: #ffffff;
  --bg-muted: #f1f5fa;
  --border: #dde5ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Top bar ---------- */
.topbar {
  background: #072036;
  color: #cfe0f2;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.topbar-tagline {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links a {
  color: #cfe0f2;
}

.topbar-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e7eff8;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-cta:hover {
  background: #c52d39;
  color: #fff !important;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(7, 32, 54, 0.92) 30%, rgba(21, 101, 192, 0.62) 100%),
    url("../images/hero.webp") center / cover no-repeat,
    #0a3a67;
  color: #fff;
}

.hero-inner {
  padding: 5rem 1.25rem 5.5rem;
  max-width: 760px;
  margin: 0;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9ec5ee;
  margin: 0 0 0.75rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.75rem;
  margin: 0 0 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: #dceaf8;
  max-width: 620px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #c52d39;
}

.button-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-light:hover {
  background: #eef4fb;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Generic section ---------- */
.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.8rem;
  margin: 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

.kicker-light {
  color: #9ec5ee;
}

.link-arrow {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ---------- Highlight band ---------- */
.highlight {
  padding: 3.5rem 0;
}

.highlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.highlight-media {
  height: 280px;
  border-radius: 12px;
  background: url("../images/elearning.jpg") center / cover no-repeat, #0a3a67;
  box-shadow: 0 8px 24px rgba(10, 58, 103, 0.18);
}

.highlight-body h2 {
  font-size: 1.9rem;
  margin: 0 0 1rem;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  height: 160px;
  background: #1565c0 center / cover no-repeat;
}

.news-thumb--scholarship {
  background-image: url("../images/news2.jpg");
}

.news-thumb--aid {
  background-image: url("../images/news1.jpg");
}

.news-thumb--webinar {
  background-image: url("../images/webinar.png");
}

.news-content {
  padding: 1.25rem;
}

.tag {
  display: inline-block;
  background: #e3eefb;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.news-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.news-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.info-card p {
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* ---------- Tool grid ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tool {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 72px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tool:hover {
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(10, 58, 103, 0.12);
  transform: translateY(-2px);
}

/* ---------- Congress banner ---------- */
.congress {
  background: linear-gradient(115deg, var(--navy), var(--blue));
  color: #fff;
}

.congress-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.75rem 1.25rem;
  flex-wrap: wrap;
}

.congress-logo {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0.3rem 0 0.6rem;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.congress p {
  margin: 0;
  color: #dceaf8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07294a;
  color: #b9cde2;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-brand p {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.9rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #b9cde2;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  color: #b9cde2;
}

.footer-social a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-inner,
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .highlight-inner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2rem;
  }
  .stats-inner,
  .tool-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar-links {
    gap: 0.85rem;
  }
}
