/* build 1787829198988 */
:root {
  --navy: #122c65;
  --navy-deep: #073372;
  --gold: #eaae40;
  --gold-soft: #f9e1af;
  --cream: #f7f4ec;
  --bg: #ffffff;
  --muted: #5b6b86;
  --line: rgba(18, 44, 101, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--navy);
  font-family: Almarai, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 68px;
}

body.lang-en { font-family: Inter, Almarai, system-ui, sans-serif; }
body.lang-ur { font-family: 'Noto Nastaliq Urdu', Almarai, serif; }
body.lang-zh { font-family: 'Noto Sans SC', Almarai, sans-serif; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }

.wrap {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* ===== NAVBAR (matches landing) ===== */
.navbar,
.footer,
.navbar a,
.footer a,
.btn-join,
.lang-selected,
.lang-menu {
  font-family: Almarai, system-ui, sans-serif;
}

body.lang-ur .navbar,
body.lang-ur .navbar a,
body.lang-ur .btn-join,
body.lang-ur .lang-selected,
body.lang-ur .lang-menu,
body.lang-ur .footer,
body.lang-ur .footer a {
  font-family: 'Noto Nastaliq Urdu', serif;
}

body.lang-zh .navbar,
body.lang-zh .navbar a,
body.lang-zh .btn-join,
body.lang-zh .lang-selected,
body.lang-zh .lang-menu,
body.lang-zh .footer,
body.lang-zh .footer a {
  font-family: 'Noto Sans SC', sans-serif;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 1px 16px rgba(18, 44, 101, 0.10);
  height: 68px;
}

.nav-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
}

.logo { flex-shrink: 0; }

.logo-img {
  height: 90px;
  margin-top: 15px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.navbar-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 68px;
  width: auto;
  pointer-events: none;
}

html[dir="ltr"] .navbar-corner {
  right: auto;
  left: 0;
  transform: scaleX(-1);
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: space-evenly;
  margin: 0;
  gap: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #122c65;
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 11px;
  left: 11px;
  height: 2px;
  background-color: #eaae40;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links li a:hover::after,
.nav-links li a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-dropdown { position: relative; }

.lang-selected {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #122c65;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}

.lang-selected:hover {
  border-color: #eaae40;
  background: #fffbf0;
}

.lang-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-icon svg { width: 18px; height: 18px; }

.arrow {
  font-size: 10px;
  color: #122c65;
  transition: transform 0.2s;
}

.lang-dropdown.open .arrow { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 44, 101, 0.13);
  list-style: none;
  padding: 6px 0;
  min-width: 150px;
  z-index: 200;
}

.lang-menu.open { display: block; }

.lang-menu a {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #122c65;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
  background-color: #fffbf0;
  color: #eaae40;
}

.btn-join {
  background-color: #eaae40;
  color: #122c65 !important;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.btn-join:hover {
  background-color: #d49c2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 174, 64, 0.4);
}

.hamburger-btn { display: none; }

/* ===== PAGE HERO / LISTING ===== */
.page-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 174, 64, 0.18), transparent 42%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.lede {
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
}

h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.25;
}

.empty { color: var(--muted); padding: 24px 0 64px; }

.post-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 44, 101, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 44, 101, 0.12);
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.card-media {
  position: relative;
  display: block;
  background: #eef2f8;
}

.card-media img,
.card-fallback {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-fallback {
  background: linear-gradient(135deg, #122c65, #eaae40);
}

.card-tag {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  background: rgba(18, 44, 101, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}

.card-body h2 {
  font-size: 1.12rem;
  line-height: 1.4;
  margin: 0;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.card-meta time { color: var(--muted); font-size: 0.85rem; }

.read-more {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
}

.post-card:hover .read-more { color: #c99420; }

/* ===== ARTICLE ===== */
.article-shell { padding-bottom: 48px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a:hover { color: var(--gold); }

.article { padding-bottom: 24px; max-width: 760px; }
.article h1 { margin-top: 12px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin: 20px 0;
  background: #f4f6fb;
  box-shadow: 0 12px 32px rgba(18, 44, 101, 0.1);
}

.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; color: var(--navy); }
.prose p, .prose li { color: #1d2c4a; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.prose img { border-radius: 12px; margin: 16px 0; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 8px 0 0;
}

.tags li {
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

.related { padding: 12px 0 64px; }
.related h2 { margin-bottom: 20px; }

/* ===== FOOTER (matches landing) ===== */
.footer {
  background: #f9e1af;
  color: #073372;
  padding: 50px 40px 0;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.footer::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: rgba(7, 51, 114, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(7, 51, 114, 0.2);
}

.footer-logo {
  width: 160px;
  margin-bottom: 16px;
  mix-blend-mode: multiply;
}

.footer-brand p {
  font-size: 13px;
  color: #073372;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #073372;
  color: #f9e1af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: #0a4a9e;
  transform: translateY(-3px);
  color: #f9e1af;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 15px;
  font-weight: 800;
  color: #073372;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(7, 51, 114, 0.2);
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 10px; }

.footer-links ul li a {
  color: #073372;
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.footer-links ul li a::before {
  content: '←';
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
}

html[dir="ltr"] .footer-links ul li a::before { content: '→'; }

.footer-links ul li a:hover {
  opacity: 1;
  padding-inline-start: 4px;
}

.footer-links ul li a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  font-size: 18px;
  color: #073372;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item strong,
.footer-contact-item a {
  font-size: 13px;
  color: #073372;
  display: block;
  font-weight: 700;
}

.footer-contact-item span {
  font-size: 11px;
  color: rgba(7, 51, 114, 0.65);
}

.phone-ltr { direction: ltr; unicode-bidi: isolate; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(7, 51, 114, 0.7);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links li a {
    font-size: 11px;
    padding: 5px 5px;
  }

  .nav-links li a::after {
    right: 5px;
    left: 5px;
  }

  .btn-join {
    font-size: 11px;
    padding: 7px 10px;
  }
}

@media (max-width: 768px) {
  body { padding-top: 80px; }

  .navbar {
    height: 80px;
    min-height: 80px;
    z-index: 1000;
  }

  .nav-container {
    flex-wrap: nowrap;
    padding: 0 16px;
    gap: 12px;
    height: 80px;
  }

  .logo {
    display: flex;
    align-items: center;
    order: 3;
  }

  .logo-img {
    height: 90px;
    margin-top: 10px;
  }

  .navbar-corner { display: none; }

  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
  }

  .hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #122c65;
    border-radius: 2px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    background: rgba(18, 44, 101, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(18, 44, 101, 0.3);
    z-index: 999;
    flex-direction: column;
    padding: 12px 0 20px;
    border-top: 2px solid #eaae40;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .nav-links.mobile-open { display: flex !important; }

  .nav-links li { width: 100%; }

  .nav-links li a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-links li a:hover,
  .nav-links li a[aria-current="page"] {
    background: rgba(234, 174, 64, 0.15);
    color: #eaae40 !important;
  }

  .nav-links li a::after { display: none; }

  .nav-actions {
    gap: 8px;
    order: 1;
  }

  .lang-selected {
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .lang-text { display: none; }

  .lang-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .lang-icon svg {
    width: 100% !important;
    height: 100% !important;
  }

  .btn-join { display: none; }

  .page-hero { padding: 28px 0 24px; }

  .footer {
    padding: 36px 20px 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
