:root {
  --bg: #f6f8fb;
  --bg-soft: #edf2f7;
  --bg-card: rgba(255, 255, 255, 0.88);
  --border: #dce4ee;
  --text: #102033;
  --text-muted: #5d6b7c;
  --cis-accent: #1256a0;
  --cis-soft: #e8f1fb;
  --cis-glow: rgba(18, 86, 160, 0.14);
  --sip-accent: #0f7b55;
  --sip-soft: #e7f5ef;
  --sip-glow: rgba(15, 123, 85, 0.14);
  --gold: #f39a12;
  --app-accent: #1f2937;
  --news-accent: #7c3aed;
  --hub-accent: #24364b;
  --radius: 18px;
  --font: 'Inter', system-ui, sans-serif;
  --max: 1120px;
  --shadow-sm: 0 8px 24px rgba(16, 32, 51, 0.06);
  --shadow-md: 0 20px 50px rgba(16, 32, 51, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.92)),
    radial-gradient(ellipse 60% 35% at 15% 0%, rgba(18, 86, 160, 0.16), transparent),
    radial-gradient(ellipse 50% 35% at 85% 5%, rgba(15, 123, 85, 0.13), transparent),
    radial-gradient(ellipse 35% 25% at 50% 100%, rgba(243, 154, 18, 0.1), transparent),
    var(--bg);
}

.home-page .bg-gradient {
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.50) 0%, rgba(246, 248, 251, 0.34) 46%, rgba(246, 248, 251, 0.12) 100%),
    linear-gradient(180deg, rgba(246, 248, 251, 0.04), rgba(246, 248, 251, 0.38)),
    url('../assets/home/cis-building-bg.png') center center / cover no-repeat;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.03);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--hub-accent);
}

.brand-mark strong { color: var(--text); font-weight: 800; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(16, 32, 51, 0.05);
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.theme-cis .hero-tagline {
  color: var(--cis-accent);
  border-color: rgba(18, 86, 160, 0.22);
  background: var(--cis-soft);
}

.theme-sip .hero-tagline {
  color: var(--sip-accent);
  border-color: rgba(15, 123, 85, 0.22);
  background: var(--sip-soft);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 46rem;
  margin-bottom: 2rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 8px solid #fff;
  margin-top: 2.5rem;
  aspect-ratio: 21/9;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.hero-logo {
  max-height: 76px;
  height: auto;
  width: auto;
  margin-bottom: 1.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  width: fit-content;
  min-width: 190px;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.cis-wordmark { color: var(--cis-accent); }
.app-wordmark { color: var(--app-accent); }
.news-wordmark { color: var(--news-accent); }

/* —— Hub cards —— */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0 5rem;
}

.main-choice-grid {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.app-strip {
  padding-bottom: 4rem;
  display: grid;
  gap: 2rem;
}

.app-strip .hub-card {
  width: 100%;
  max-width: none;
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.home-page .hub-card {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(5px);
  box-shadow: 0 22px 60px rgba(16, 32, 51, 0.18);
}

.home-page .hub-card p {
  color: #243244;
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--hub-accent);
}

.hub-card.cis::before { background: linear-gradient(90deg, var(--cis-accent), #69a7de); }
.hub-card.sip::before { background: linear-gradient(90deg, var(--sip-accent), var(--gold)); }
.hub-card.app-card::before { background: linear-gradient(90deg, var(--app-accent), var(--gold)); }
.hub-card.news-card::before { background: linear-gradient(90deg, var(--news-accent), #2563eb); }

.app-strip .news-card {
  margin-top: 2.5rem;
}

.hub-card:hover {
  transform: translateY(-4px);
}

.hub-card.cis:hover {
  border-color: rgba(18, 86, 160, 0.24);
  box-shadow: 0 24px 60px var(--cis-glow);
}

.hub-card.sip:hover {
  border-color: rgba(15, 123, 85, 0.24);
  box-shadow: 0 24px 60px var(--sip-glow);
}

.hub-card.app-card:hover {
  border-color: rgba(31, 41, 55, 0.2);
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
}

.hub-card.news-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.12);
}

.hub-card img {
  max-height: 64px;
  height: auto;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
  object-position: left;
  align-self: flex-start;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hub-card .sip-card-logo {
  max-height: 130px;
  height: 130px;
  width: 330px;
  object-fit: contain;
  object-position: center center;
  align-self: center;
  margin-inline: auto;
  margin-bottom: 1.35rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.hub-card .cis-card-logo {
  max-height: 130px;
  height: 130px;
  width: 330px;
  object-fit: contain;
  align-self: center;
  margin-inline: auto;
  margin-bottom: 1.35rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.hub-card h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hub-card .pillar {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.hub-card.cis .pillar { color: var(--cis-accent); }
.hub-card.sip .pillar { color: var(--sip-accent); }
.hub-card.app-card .pillar { color: var(--app-accent); }
.hub-card.news-card .pillar { color: var(--news-accent); }

.hub-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-cis {
  background: linear-gradient(135deg, var(--cis-accent), #1976c9);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 86, 160, 0.18);
}

.btn-sip {
  background: linear-gradient(135deg, var(--sip-accent), #16a36f);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 123, 85, 0.18);
}

.btn-app {
  background: linear-gradient(135deg, var(--app-accent), #475569);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.16);
}

.btn-news {
  background: linear-gradient(135deg, var(--news-accent), #2563eb);
  color: #fff;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.16);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.section p {
  color: var(--text-muted);
  max-width: 40rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-card h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.theme-cis .pillar-card h3 { color: var(--cis-accent); }
.theme-sip .pillar-card h3 { color: var(--sip-accent); }

.pillar-card p {
  font-size: 0.9rem;
  margin: 0;
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.news-feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.news-feature-content {
  padding: 0.75rem 0.75rem 0.75rem 0;
}

.news-feature-content h2 {
  margin-top: 0.85rem;
}

.news-feature-content p {
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature-content {
    padding: 0;
  }
}

/* —— CTA band —— */
.cta-band {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.theme-cis .cta-band { background: linear-gradient(135deg, var(--cis-soft), #fff); }
.theme-sip .cta-band { background: linear-gradient(135deg, var(--sip-soft), #fff); }

.cta-band h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.cta-band p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #fff;
}

.site-footer .legal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.7;
}

.site-footer strong { color: var(--text); font-weight: 600; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-links a:hover { color: var(--text); }

.hub-footer-note {
  text-align: center;
  padding: 2rem 0 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Hub intro —— */
.hub-intro {
  text-align: center;
  padding: 4.5rem 0 1rem;
}

.hub-intro h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hub-intro p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.address-line {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
