:root {
  --primary: #003366;
  --primary-light: #0d4b8a;
  --secondary: #008080;
  --accent: #f39c12;
  --dark: #222222;
  --light: #f8f9fa;
  --border: #e2e8f0;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #fdfdfd;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Top bar */
.top-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 6px 0;
  font-size: 0.85rem;
  color: #475569;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.top-links a {
  margin-right: 15px;
  color: #475569;
}

/* Header */
header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  padding: 15px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  max-width: 100%;
}
a.brand-group {
  color: inherit;
  text-decoration: none;
}
a.brand-group:hover {
  text-decoration: none;
}
a.brand-group:hover .brand-text h1 {
  color: var(--primary-light);
}
.brand-logo {
  height: 70px;
  width: auto;
}
.brand-text h1 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
.brand-text {
  min-width: 0;
}
.brand-wordmark {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}
@media (max-width: 760px) {
  a.brand-group .brand-wordmark {
    max-width: 200px;
  }
}
/* Keep the whole header on one line on phones: shrink all header images */
@media (max-width: 520px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .brand-logo {
    height: 46px;
  }
  .partner-logo {
    height: 38px;
  }
  .brand-group {
    gap: 10px;
    flex-shrink: 1;
  }
  .partner-logos {
    gap: 10px;
    flex-shrink: 0;
  }
  a.brand-group .brand-wordmark {
    max-width: 150px;
  }
  .brand-text p {
    font-size: 0.72rem;
  }
}
@media (max-width: 360px) {
  .brand-logo { height: 40px; }
  .partner-logo { height: 32px; }
  a.brand-group .brand-wordmark { max-width: 115px; }
}
@media (max-width: 520px) {
  .nav-link {
    padding: 10px 10px;
    font-size: 0.8rem;
  }
  .top-bar-inner {
    justify-content: center;
  }
}
.brand-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.partner-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}
.partner-logo {
  height: 60px;
  width: auto;
}
.partner-logos a {
  line-height: 0;
}
.partner-logos a:hover .partner-logo {
  opacity: 0.85;
}

/* Navigation */
nav {
  background: var(--primary);
}
nav .container {
  max-width: 1320px;
}
.nav-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 12px 13px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-link:hover, .nav-item.active .nav-link {
  background: var(--primary-light);
  text-decoration: none;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  z-index: 1000;
  border-top: 2px solid var(--accent);
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333333;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  text-transform: none;
}
.dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--primary);
}

/* Hero / Banner */
.hero {
  background: linear-gradient(135deg, #002244 0%, #004080 100%);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}
.page-banner {
  background: #0f172a;
  color: #ffffff;
  padding: 30px 0;
  margin-bottom: 30px;
}
.page-banner h2 {
  font-size: 1.8rem;
}
.page-banner p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Marquee / Ticker */
.ticker {
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #b7791f;
  display: flex;
  align-items: center;
}
.ticker strong {
  background: #f59e0b;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 12px;
  font-size: 0.8rem;
}

/* Main Content Layout */
.main-content {
  padding: 40px 0;
  min-height: 500px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}
@media (max-width: 850px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.sidebar {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}
.sidebar h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.sidebar-menu {
  list-style: none;
}
.sidebar-menu li {
  margin-bottom: 8px;
}
.sidebar-menu a {
  display: block;
  padding: 8px 12px;
  color: #334155;
  border-radius: 4px;
  font-size: 0.9rem;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* Content typography */
.content-box {
  background: #ffffff;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.content-box h1, .content-box h2 {
  color: var(--primary);
  margin-bottom: 15px;
}
.content-box h3, .content-box h4 {
  color: var(--secondary);
  margin: 20px 0 10px 0;
}
.content-box p {
  margin-bottom: 15px;
}
.content-box ul, .content-box ol {
  margin-left: 25px;
  margin-bottom: 20px;
}
.content-box li {
  margin-bottom: 8px;
}

/* Domain Cards */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.domain-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.domain-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.domain-card p {
  color: #64748b;
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 15px;
}
.btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
}
.btn:hover {
  background: var(--primary-light);
  text-decoration: none;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
}
.btn-secondary {
  background: var(--secondary);
}
.btn-warning {
  background: var(--accent);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  padding: 12px 15px;
  border: 1px solid var(--border);
  text-align: left;
}
th {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 600;
}
tr:nth-child(even) {
  background: #f8fafc;
}

/* Accordion FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.faq-answer {
  padding: 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 20px 0;
  font-size: 0.9rem;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: #94a3b8;
}
.footer-col a:hover {
  color: #ffffff;
}
.copyright {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 20px;
  font-size: 0.85rem;
}

/* ===== v2 additions ===== */

/* Hero slider (restored original slides) */
.hero-slider {
  position: relative;
  max-height: 505px;
  overflow: hidden;
  background: #0b2a4a;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slider .slide.active {
  opacity: 1;
  position: relative;
}
.hero-slider .slide img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-slider .slide a {
  display: block;
  line-height: 0;
}

/* Page banner with background image */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(3, 20, 43, 0.72), rgba(3, 20, 43, 0.72));
}
.page-banner .container {
  position: relative;
  z-index: 1;
}

/* Domain card icons */
.domain-card .domain-icon {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}
.domain-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.domain-card h3 .domain-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Objectives cards (original design) */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.objective-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 25px 20px 20px 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.objective-card img {
  height: 72px;
  width: auto;
  margin-bottom: 12px;
}
.objective-card p {
  color: #475569;
  margin: 0;
}
.objective-card.oc1 { border-bottom: 5px solid #004a8b; }
.objective-card.oc2 { border-bottom: 5px solid #08c2f0; }
.objective-card.oc3 { border-bottom: 5px solid #26da99; }
.objective-card.oc4 { border-bottom: 5px solid #52aa2b; }
.objective-card.oc5 { border-bottom: 5px solid #ec961c; }

/* System of monitoring cards (original design) */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.monitoring-card {
  border-radius: 6px;
  padding: 25px 20px;
  color: #1e293b;
  background: #f1f5f9;
}
.monitoring-card img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}
.monitoring-card p {
  margin: 0;
  font-size: 0.92rem;
}
.monitoring-card.mc1 { background: #e8f4fd; border-top: 5px solid #0ea5e9; }
.monitoring-card.mc2 { background: #e6f6ff; border-top: 5px solid #0284c7; }
.monitoring-card.mc3 { background: #eafaf1; border-top: 5px solid #16a34a; }
.monitoring-card.mc4 { background: #fdf8e8; border-top: 5px solid #d97706; }

/* Feature image on thrust pages */
.feature-image {
  margin-bottom: 25px;
}
.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* GoI initiative logos strip in footer */
.goi-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid #334155;
  margin-bottom: 25px;
}
.goi-strip img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
}
.goi-strip a:hover img {
  opacity: 1;
}

/* IP rights figure */
.figure-center {
  text-align: center;
  margin: 25px 0;
}
.figure-center img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
}

/* Approved results figure */
.results-figure {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.results-figure img {
  display: block;
  width: 100%;
  height: auto;
}
