:root {
  --sky: #90d5ff;
  --sky-2: #bfe7ff;
  --deep: #0b3a5b;
  --ink: #0a1f33;
  --muted: #5b6b7a;
  --bg: #f6fbff;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #90d5ff 0%, #3a9be0 60%, #0b3a5b 100%);
  --shadow: 0 18px 40px -22px rgba(11, 58, 91, 0.35);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  line-height: 1.65;
}
h1,
h2,
h3,
h4,
.display-title {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.01em;
  color: var(--deep);
}
.lang-ti {
  font-family: "Noto Sans Ethiopic", "Inter", sans-serif;
}
a {
  color: var(--deep);
}
img {
  max-width: 100%;
  height: auto;
}

/* TOPBAR */
.topbar {
  background: var(--deep);
  color: #cfe9ff;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar a {
  color: #cfe9ff;
  text-decoration: none;
}
.topbar a:hover {
  color: var(--sky);
}

/* NAV */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #e6f1fa;
  padding: 0.7rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--deep) !important;
}
.navbar-brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: var(--shadow);
}
.navbar-brand small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-link {
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem !important;
  border-radius: 8px;
  transition: 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--deep) !important;
  background: #e9f5ff;
}
.dropdown-menu {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 230px;
}
.dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}
.dropdown-item:hover {
  background: #e9f5ff;
  color: var(--deep);
}
.btn-donate {
  background: var(--grad);
  color: #fff !important;
  border: 0;
  padding: 0.6rem 1.3rem !important;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn-donate:hover {
  transform: translateY(-1px);
  color: #fff !important;
}
.lang-switch {
  display: inline-flex;
  background: #e9f5ff;
  border-radius: 50px;
  padding: 3px;
  margin-left: 0.5rem;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  color: var(--muted);
}
.lang-switch button.active {
  background: var(--deep);
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(11, 58, 91, 0.85) 0%,
    rgba(11, 58, 91, 0.45) 60%,
    transparent 100%
  );
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 600px;
  color: #e7f4ff;
  margin-bottom: 2rem;
}
.eyebrow {
  display: inline-block;
  background: rgba(144, 213, 255, 0.2);
  border: 1px solid rgba(144, 213, 255, 0.5);
  color: var(--sky-2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.btn-primary-l {
  background: var(--sky);
  color: var(--deep);
  border: 0;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s;
  box-shadow: 0 12px 30px -10px rgba(144, 213, 255, 0.7);
}
.btn-primary-l:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--deep);
}
.btn-ghost {
  display: inline-block;
  color: #fff;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: 0.25s;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--deep);
}

/* SECTIONS */
section {
  padding: 5rem 0;
}
.section-eyebrow {
  color: var(--deep);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--sky);
}
.section-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
}

/* CARDS */
.card-soft {
  background: #fff;
  border: 1px solid #e6f1fa;
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--sky);
  color: inherit;
}
.card-soft .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e9f5ff, #cfe9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.card-soft h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.card-soft p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* BRANCH GRID */
.branch-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6f1fa;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.3s;
}
.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  color: inherit;
}
.branch-card .flag {
  height: 140px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.branch-card .body {
  padding: 1.3rem 1.5rem 1.5rem;
}
.branch-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}
.branch-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.branch-card .arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-weight: 700;
}

/* IMAGE BLOCKS */
.media-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-img img {
  display: block;
  width: 100%;
}

/* VERSE BANNER */
.verse {
  background: var(--grad);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.verse blockquote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-style: italic;
  max-width: 850px;
  margin: 0 auto 1rem;
  color: #fff;
}
.verse cite {
  color: var(--sky-2);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* PAGE HEADER */
.page-head {
  background: var(--grad);
  color: #fff;
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-head h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 0.6rem;
}
.page-head p {
  color: #dff0ff;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.crumbs {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  color: #dff0ff;
}
.crumbs a {
  color: #fff;
  text-decoration: none;
}

/* PROSE */
.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #2c4154;
}
.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
}
.prose p {
  margin-bottom: 1.2rem;
}
.prose blockquote {
  border-left: 4px solid var(--sky);
  padding: 0.6rem 0 0.6rem 1.4rem;
  color: var(--deep);
  font-style: italic;
  background: #f0f8ff;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}
.article {
  background: #fff;
  border: 1px solid #e6f1fa;
  border-radius: var(--radius);
  padding: 3rem;
  margin-top: 4rem;
  box-shadow: var(--shadow);
}
.article .tag {
  display: inline-block;
  background: #e9f5ff;
  color: var(--deep);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  background: var(--ink);
  color: #a8c2d8;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
footer h5 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
footer a {
  color: #a8c2d8;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  font-size: 0.92rem;
}
footer a:hover {
  color: var(--sky);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.footer-brand strong {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}
.copyright {
  border-top: 1px solid #1d3247;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #7a93ab;
  text-align: center;
}
.socials a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1d3247;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  color: #cfe9ff;
}
.socials a:hover {
  background: var(--sky);
  color: var(--deep);
}

/* LANGUAGE TOGGLE */
[data-lang] {
  display: none;
}
html[lang="en"] [data-lang="en"],
html[lang="ti"] [data-lang="ti"] {
  display: inline;
}
html[lang="en"] [data-lang="en"].block,
html[lang="ti"] [data-lang="ti"].block {
  display: block;
}
html[lang="ti"] {
  font-family: "Noto Sans Ethiopic", "Inter", sans-serif;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  .hero .container {
    padding: 4rem 0;
  }
  section {
    padding: 3rem 0;
  }
  .article {
    padding: 1.5rem;
  }
}
