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

* {
  margin: 0;
  padding: 0;
}

:root {
  --wrap: 1050px;
  --blue: #087db1;
  --navy: #0E79B2;
  --dark: #2f3438;
  --red: #F55B47;
  --teal: #169f97;
  --yellow: #f4c400;
  --ink: #1e2226;
  --muted: #6b7280;
  --light-muted: #9ca3af;
  --line: #e5e7eb;
  --dashed: #d1d5db;
  --serif: "Domine", serif;
  --inter: "Inter", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--inter);
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--wrap));
  margin: 0 auto;
}


/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--wrap));
  margin: 0 auto;
  padding: 12px 0 0 0;
}

.brand {
  display: block;
  width: 210px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.hdr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hdr-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hdr-top-row>img {
  width: 115px;
  height: 13px;
  flex-shrink: 0;
}

.hdr-top-row a {
  position: relative;
  top: 2px;
}

.hdr-top-row a rect {
  transition: all .3s ease-in-out;
}

.hdr-top-row a:hover rect {
  fill: #0B72B5;
}

.search-box {
  display: flex;
  align-items: center;
  width: 245px;
  height: 34px;
}

.search-box input {
  flex: 1;
  height: 100%;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  outline: 0;
  padding: 0 12px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  transition: all .3s ease-in-out;
}

.search-box input:focus {
  border-color: #333;
}

.search-box button {
  width: 40px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle-box {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.site-header.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.main-nav a {
  padding: 12px 0;
}

.main-nav>a:hover {
  color: var(--red);
}

.nav-posts-wrap {
  position: relative;
}

.nav-posts-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  height: 30px;
}

.caret {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
}

.nav-posts-trigger.active {
  color: var(--red);
  pointer-events: none;
}

.nav-posts-trigger.active .caret {
  color: var(--red);
}

.nav-posts-trigger.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.posts-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -60px;
  z-index: 999;
  width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  display: none;
}

.nav-posts-wrap:hover .posts-dropdown {
  display: block;
}

.posts-dropdown a {
  display: block;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #f0f0f0;
}

.posts-dropdown a:last-child {
  border-bottom: 0;
}

.posts-dropdown a:nth-child(1):hover { color: #0E79B2; }
.posts-dropdown a:nth-child(2):hover { color: #333; }
.posts-dropdown a:nth-child(3):hover { color: var(--teal); }
.posts-dropdown a:nth-child(4):hover { color: var(--yellow); }
.posts-dropdown a:nth-child(5):hover { color: var(--red); }

.nav-contribute {
  height: 35px;
  padding: 0 20px !important;
  border-radius: 20px;
  background: var(--red);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-contribute:hover {
  background: #333;
}


/* ── Page Hero ── */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
  padding: 38px 0 34px;
}

.page-hero-inner {
  width: min(calc(100% - 48px), var(--wrap));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-title {
  margin-top: 0;
  font-family: var(--inter);
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 8px;
}

.page-hero-sub {
  margin: 0;
  font-family: var(--inter);
  font-size: 15px;
  color: rgba(255, 255, 255, .64);
  font-weight: 400;
}

.page-hero svg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: soft-light;
}


/* ── Category Tabs ── */

.category-tabs-wrap {
  background: #fff;
  padding: 6px 0 14px;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-pill {
  display: block;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  background: #fff;
  transition: background .2s, color .2s;
  line-height: 36px;
  text-align: center;
}

.tab-pill:hover {
  color: #fff;
}

.revelations-pill { background: #0E79B21A; color: var(--navy); }
.revelations-pill:hover { background: var(--navy); }

.causes-pill { background: #3333331A; color: var(--dark); }
.causes-pill:hover { background: var(--dark); }

.hooks-pill { background: #0F847E1A; color: var(--teal); }
.hooks-pill:hover { background: var(--teal); }

.tab-pill--yellow { background: #F7C2011A; color: var(--yellow); }
.tab-pill--yellow:hover { background: var(--yellow); }

.baes-pill { background: #F55B471A; color: var(--red); }
.baes-pill:hover { background: var(--red); }


/* ── Main Layout ── */

.page-main {
  display: grid;
  grid-template-columns: 1fr 313px;
  gap: 36px;
  padding: 32px 0 56px;
  align-items: start;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 26px;
}

.art-card {
  min-width: 0;
}

.art-thumb {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0d9d6;
  margin-bottom: 12px;
  border-radius: 4px;
}

.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

/* .art-thumb:hover img { transform: scale(1.04); } */

.art-title {
  font-family: var(--inter);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
  margin-bottom: 8px;
  transition: all .3s ease-in-out;
}

.articles-grid a:hover .art-title { color: var(--red); text-decoration: underline; }

.art-excerpt {
  font-family: var(--serif);
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line) !important;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.art-author {
  /* color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px; */
  color: #888;
}

/* .art-author:hover { color: var(--red); } */

.art-meta time { color: #888; }
.meta-sep { color: var(--dashed); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  width: 100px;
  height: 40px;
  padding: 0 25px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  background: linear-gradient(to bottom, #fafafa 0%, #f0f0f0 100%);
  border: 1px solid #e5e7eb;
  transition: .2s;
}

.page-btn:nth-child(1) svg { margin-right: 10px; }
.page-btn:nth-child(2) svg { margin-left: 10px; }

.page-btn--disable {
  opacity: 0.6;
  pointer-events: none;
}

.page-btn:hover {
  background: linear-gradient(to bottom, #f0f0f0 0%, #fafafa 100%);
}


/* ── Sidebar ── */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #e8e8e8;
}

.tabs-card { overflow: hidden; border-radius: 4px; }

.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tab-btn {
  height: 44px;
  border: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: .2s;
  border-bottom: 1px solid #ddd;
}

.tab-btn:nth-child(1) { border-radius: 4px 0 0 0; }

.tab-btn--active {
  color: var(--blue);
  background: #f5f5f5;
  border: none;
}

.tab-panel {
  padding: 6px 0;
  background: #f5f5f5;
}

.tab-panel--hidden { display: none; }

.popular-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #ddd;
  transition: background .2s;
}

.popular-item:last-child { border-bottom: 0; }
.popular-item:hover h4 { color: var(--red); text-decoration: underline; }

.popular-thumb {
  width: 100px;
  height: 75px;
  overflow: hidden;
  background: #f0d9d6;
  flex-shrink: 0;
  border-radius: 4px;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.popular-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #252a2f;
  line-height: 1.2;
  margin-bottom: 4px;
  transition: all .3s ease-in-out;
  text-wrap: balance;
}

.popular-info h4 u { text-underline-offset: 2px; }

.popular-info time {
  font-size: 13px;
  color: #999;
}

.ad-card {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #aaa;
  font-size: 13px;
  font-family: var(--serif);
}

.notify-card {
  padding: 20px;
  background: #80C79314;
  border: 1px solid #80C7933D;
  border-radius: 4px;
}

.notify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.notify-title {
  margin-top: 0;
  font-size: 24px;
  font-weight: 600;
  color: #0F847E;
  margin-bottom: 6px;
}

.notify-sub {
  font-size: 14px;
  font-family: var(--serif);
  color: #555;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 16px;
}

.notify-icon {
  flex-shrink: 0;
  color: #0F847E;
  margin-top: 3px;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.notify-form input {
  width: 100%;
  height: 38px;
  border: 1px solid #80C7935A;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  color: #444;
  outline: 0;
  background: #fafafa;
  transition: all .3s ease-in-out;
}

.notify-form input::placeholder { color: #aaa; }
.notify-form input:focus { border-color: var(--teal); background: #fff; }

.notify-form button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #0F847E;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

.notify-form button:hover { background: #333; }

.notify-terms {
  margin-block: 16px 0;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.notify-terms a {
  color: #0F847E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notify-terms a:hover { color: var(--red); }


/* ── Book Hero ── */

.book-hero {
  position: relative;
  overflow: hidden;
  background:
    url("assets/images/effects/Effect1.png") right bottom / 300px 200px no-repeat,
    linear-gradient(120deg, #F1DEFF 0%, #9CD6FF 25%, #88D8FF 50%, #DCEFFF 75%, #EAF4FF 100%);
  padding: 40px 0;
}

.book-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 320px 420px;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.book-badge {
  position: absolute;
  top: -40px;
  right: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.book-cover-wrap {
  display: flex;
  justify-content: center;
}

.book-copy h2 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}

.book-copy p {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.55;
  margin-bottom: 24px;
}

.book-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  height: 45px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}

.btn-blue {
  min-width: 200px;
  background: #446ABE;
  color: #fff;
  transition: all .3s ease-in-out;
}

.btn-blue:hover { background: #333; }

.btn-soft {
  min-width: 200px;
  border: 1px solid #446ABE52;
  color: #446ABE;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  transition: all .3s ease-in-out;
}

.btn-soft:hover {
  background: #446ABE;
  border-color: #446ABE;
  color: #fff;
}


/* ── Footer ── */

.site-footer {
  background: #144E95;
  color: #fff;
  padding: 52px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 240px 2px 1fr;
  gap: 30px;
  align-items: center;
  padding: 0 64px 32px 64px;
}

.footer-logo {
  display: block;
  text-align: right;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-divider-v {
  width: 2px;
  min-height: 100px;
  border-left: 1px dashed #FFFFFF3D;
  align-self: stretch;
}

.footer-about {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
}

.footer-divider-h {
  height: 1px;
  border-bottom: 1px dashed #FFFFFF3D;
}

.footer-nav-row {
  padding: 0;
}

.footer-nav-inner {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 70px;
  padding: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.back-top {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 35px;
  padding: 0 18px;
  border: 1px solid #FFFFFF1F;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF77 !important;
  transition: all .3s ease-in-out;
}

.back-top span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

.back-top:hover {
  background: #fff;
  color: #144E95 !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13px;
  color: #FFFFFF66;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  transition: all .3s ease-in-out;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-sep {
  color: rgba(255, 255, 255, .4);
}


/* ── Responsive ── */

@media (max-width: 1100px) {
  .book-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .book-copy h2 { font-size: 26px; }
}

@media (max-width: 900px) {
  /* Header — hamburger */
  .site-header {
    position: relative;
    z-index: 1000;
  }

  .hdr-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    min-height: 64px;
  }

  .brand {
    grid-column: 1;
    width: clamp(130px, 38vw, 180px);
  }

  .hdr-right { display: contents; }

  .hdr-top-row {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hdr-top-row>img,
  .search-box { display: none; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: #f5f5f5;
    border-radius: 4px;
    padding: 0 15px 15px;
  }

  .main-nav a { text-align: center; display: block; }

  .site-header.nav-open .main-nav { display: flex; }

  .main-nav>a,
  .nav-posts-trigger {
    width: 100%;
    min-height: 44px;
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-posts-trigger.active::after { display: none; }

  .nav-posts-wrap { width: 100%; }

  .posts-dropdown {
    position: static;
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    box-shadow: none;
    background: #f8fafc;
    border-radius: 4px;
  }

  .posts-dropdown a {
    padding: 12px 16px;
    border-bottom: 1px solid #edf0f3;
  }

  .posts-dropdown a:last-child { border-bottom: 0; }

  .nav-contribute {
    line-height: 44px;
    font-size: 15px;
  }

  /* Categories */
  .category-tabs-wrap { overflow-x: auto; }
  .category-tabs { flex-wrap: nowrap; min-width: max-content; }

  .page-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 10px;
  }

  .articles-col { order: 0 }

  .sidebar { order: 1; }

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

  /* Books — follow about-us page-hero behavior */
  .book-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .book-cover-wrap img {
    width: 200px;
    height: auto;
    margin: 0 auto;
  }

  .book-copy p { margin-inline: auto; }
  .book-actions { justify-content: center; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 0 64px 32px 64px;
  }

  .footer-divider-v { display: none; }
  .footer-logo { margin: 0 auto; }
  .footer-about { margin: 0 auto; }
  .footer-nav { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .back-top { position: static; }
  .footer-nav-inner { flex-direction: column; gap: 16px; padding: 16px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (min-width: 901px) {
  .site-header .main-nav { display: flex !important; }
}

@media (max-width: 680px) {
  .page-hero { padding: 28px 0 22px; }
  .page-hero-title { font-size: 28px; }
  .page-hero-sub { font-size: 12px; }

  .category-tabs { gap: 8px; }
  .tab-pill { padding: 0 10px; }

  .tab-switcher { font-size: 13px; }
  .popular-item { grid-template-columns: 80px 1fr; }
  .popular-thumb { width: 80px; height: 60px; }
  .popular-info h4 { font-size: 13px; }

  .pagination { gap: 8px; }
  .page-btn { width: auto; padding: 0 18px; }

  .book-copy h2 { font-size: 22px; }
  .book-copy p { font-size: 13px; }
  .btn { font-size: 13px; height: 40px; }
  .btn-soft { min-width: 150px;}

  .footer-about { font-size: 13px; line-height: 1.5; }
  .footer-nav { gap: 16px; }
  .footer-nav a { font-size: 13px; }
  .footer-bottom { font-size: 12px; }

  .hdr-top-row a { display: none; }
  .brand svg { position: relative; top: 3px; height: 40px; }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 16px);
  }

  .hero-overlay h1,
  .latest-heading h2,
  .cat-title {
    font-size: 20px;
  }

  .contrib-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
  }

  .contrib-btn {
    width: 100%;
    justify-content: center;
  }

  .book-btns {
    gap: 10px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .footer-top {
      padding: 0 15px 32px 15px;
  }
}