﻿:root {
  --primary: #184c96;
  --primary-dark: #10386e;
  --primary-soft: #dfeeff;
  --gold: #f4c95d;
  --bg: #f5f8fd;
  --surface: #ffffff;
  --text: #1d2433;
  --muted: #59677d;
  --line: rgba(18, 76, 150, 0.12);
  --shadow: 0 20px 40px rgba(16, 56, 110, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef5ff 0%, #f9fbff 100%);
  color: var(--text);
  line-height: 1.7;
}

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

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

input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--primary-dark);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 4px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem;
  margin-left: auto;
}

.lang-switch label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

#lang-en:checked ~ .page-shell .lang-switch label[for="lang-en"],
#lang-si:checked ~ .page-shell .lang-switch label[for="lang-si"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 76, 150, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--gold);
}

.hero-copy h1,
.content-box h2,
.section-heading h2 {
  margin: 0 0 1rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  max-width: 680px;
}

.lead,
.content-box p,
.program-card p,
.site-footer li,
.site-footer p {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d75c6);
  color: #fff;
  box-shadow: 0 20px 28px rgba(24, 76, 150, 0.2);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: min(100%, 560px);
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(24, 76, 150, 0.12);
  box-shadow: var(--shadow);
  background: #dfeeff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-label,
.add-photo-text {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  display: block;
  z-index: 2;
}

.photo-label {
  top: 1.25rem;
  color: #fff;
  background: rgba(16, 56, 110, 0.7);
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.add-photo-text {
  bottom: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 700;
}

.stats-section {
  padding-bottom: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(16, 56, 110, 0.03);
}

.stat-box strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.2;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 5.5rem 0;
}

.alt-bg {
  background: var(--bg);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.content-box h2,
.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.info-panel {
  background: linear-gradient(135deg, var(--primary), #2b74b9);
  color: #fff;
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(16, 56, 110, 0.04);
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: var(--primary-soft);
  font-size: 1.7rem;
}

.program-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(24, 76, 150, 0.12);
  background: linear-gradient(135deg, rgba(24, 76, 150, 0.06), rgba(244, 201, 93, 0.12));
  box-shadow: 0 10px 24px rgba(16, 56, 110, 0.04);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding-top: 3rem;
}

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

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 2rem;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lang {
  display: none;
}

#lang-en:checked ~ .page-shell .lang-en,
#lang-si:checked ~ .page-shell .lang-si {
  display: block;
}

#lang-en:checked ~ .page-shell .lang-si,
#lang-si:checked ~ .page-shell .lang-en {
  display: none;
}

@media (max-width: 900px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .lang-switch {
    margin-left: 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .split-grid,
  .stats-grid,
  .card-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main-nav {
    gap: 0.7rem 1rem;
  }

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

  .photo-frame {
    min-height: 320px;
  }
}
