﻿:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --ink: #111927;
  --muted: #617086;
  --brand: #c4292f;
  --brand-2: #f18c49;
  --line: #dde4ef;
  --shadow: 0 20px 45px rgba(24, 39, 61, 0.14);
}

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

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcff 0%, #f2f6fd 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.45;
}

.bg-glow-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: #ffa775;
}

.bg-glow-2 {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 120px;
  background: #8cb6ff;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(12, 18, 30, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand-wrap {
  display: grid;
}

.brand {
  font: 700 1.8rem/1 "Oswald", sans-serif;
  color: #fff;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #afc2df;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 12px;
}

.nav .nav-btn {
  color: #dce6f7;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.nav .nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav .nav-btn.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid #516581;
  color: #fff;
  background: transparent;
  border-radius: 8px;
  padding: 7px 11px;
  font-weight: 800;
}

.ticker {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
}

.ticker-inner {
  padding: 11px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  border-radius: 999px;
  background: #fff;
  color: #b51f25;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  flex-shrink: 0;
}

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}

.hero-main {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(13, 24, 43, 0.94), rgba(21, 39, 66, 0.9)),
    linear-gradient(90deg, #253f68, #203657);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  animation: rise 500ms ease forwards;
}

.hero-kicker {
  color: #ffd8c2;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-main h1 {
  font: 700 clamp(1.7rem, 2.6vw, 2.75rem)/1.18 "Oswald", sans-serif;
  margin-bottom: 10px;
}

.hero-main p {
  color: #e8edf8;
  max-width: 60ch;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(23, 39, 59, 0.09);
}

.mini-card span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.mini-card h2 {
  margin-top: 6px;
  font-size: 1.03rem;
  line-height: 1.32;
}

.section-head {
  margin: 30px 0 13px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.section-head h2 {
  font: 700 1.55rem/1.1 "Oswald", sans-serif;
}

.section-head p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(20, 35, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ab3037;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card h3 {
  font-size: 1.03rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.card-link {
  margin-top: 12px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  color: #7a1f23;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Source Sans 3", system-ui, sans-serif;
  padding: 0;
}

.article-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.article-viewer.hidden {
  display: none;
}

.article-viewer-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 17, 30, 0.58);
}

.article-viewer-card {
  position: relative;
  width: min(760px, 92%);
  max-height: 80vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(20, 35, 55, 0.28);
}

.article-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.article-viewer-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.viewer-close {
  border: 1px solid #d0d9e7;
  border-radius: 8px;
  background: #f4f7fc;
  color: #2d3e5f;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.article-viewer h3 {
  margin-top: 8px;
  font: 700 1.4rem/1.2 "Oswald", sans-serif;
}

.article-viewer p {
  margin-top: 8px;
  color: #4f607a;
}

.market-wrap {
  margin: 28px 0 30px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.market-card {
  background: linear-gradient(170deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(20, 35, 55, 0.08);
}

.market-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.market-value {
  margin: 8px 0;
  font: 700 1.52rem/1.1 "Oswald", sans-serif;
}

.market-change {
  font-size: 0.9rem;
  font-weight: 700;
}

.market-change.up {
  color: #127a2f;
}

.market-change.down {
  color: #b4232d;
}

.market-change.flat {
  color: var(--muted);
}

.market-change.err {
  color: #b4232d;
}

.weather-wrap {
  margin: 8px 0 30px;
}

.weather-card {
  background:
    linear-gradient(140deg, rgba(18, 33, 58, 0.95), rgba(23, 45, 78, 0.9)),
    linear-gradient(90deg, #2b4d7d, #27466f);
  border: 1px solid #3a5f93;
  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 36, 61, 0.28);
}

.weather-city {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d5e4ff;
  font-weight: 700;
}

.weather-temp {
  margin-top: 8px;
  font: 700 2.2rem/1 "Oswald", sans-serif;
}

.weather-meta {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #e2ecff;
  font-weight: 600;
}

.prayer-wrap {
  margin: 8px 0 34px;
}

.city-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-picker label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.city-picker select {
  border: 1px solid #ccd8e8;
  border-radius: 10px;
  background: #ffffff;
  color: #1a2740;
  padding: 7px 10px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.prayer-card {
  background: linear-gradient(170deg, #ffffff, #f7faff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(20, 35, 55, 0.08);
}

.prayer-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 800;
}

.prayer-value {
  margin: 8px 0 6px;
  font: 700 2rem/1 "Oswald", sans-serif;
  color: #12264a;
}

.prayer-meta {
  color: #5b6e89;
  font-weight: 700;
}

.prayer-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer {
  margin-top: 8px;
  border-top: 1px solid #d9e2ef;
  background: #f7f9fd;
}

.footer-inner {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #5b6c84;
  font-weight: 600;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(10, 16, 28, 0.97);
    border-top: 1px solid #2a3d59;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }

  .nav.open {
    display: flex;
  }

  .nav .nav-btn {
    border-radius: 0;
    padding: 11px 4%;
    text-align: left;
  }

  .ticker-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-main {
    padding: 22px;
  }

  .news-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .prayer-grid {
    grid-template-columns: 1fr;
  }

  .city-picker {
    width: 100%;
    justify-content: flex-start;
  }
}
