@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Merriweather:wght@700&display=swap');

:root {
  --ink: #12202a;
  --muted: #5f6f7a;
  --paper: #f5f8fb;
  --card: #ffffff;
  --line: #dfe7ef;
  --line-strong: #cfd9e4;
  --shadow: 0 14px 30px rgba(12, 32, 50, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 0% -15%, #d6e8f7 0%, transparent 60%),
    radial-gradient(800px 420px at 100% 0%, #ffe7db 0%, transparent 62%),
    var(--paper);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.site-header.modern-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(92deg, rgba(9, 99, 126, 0.96), rgba(8, 131, 149, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .brand {
  font-family: 'Merriweather', serif;
  font-size: 1.55rem;
  letter-spacing: 0.4px;
  color: #fff;
}

.site-header .nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-header .nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.site-header .nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px auto;
  border-radius: 3px;
  background: #fff;
}

.container.layout {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.main { min-width: 0; }

.home-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.home-grid.no-left {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.home-grid.no-side {
  grid-template-columns: minmax(0, 1fr);
}

.panel,
.card,
.hero,
.breaking,
.trending,
.row-block,
.side-card,
.article,
.form,
.note,
.comment-item,
.search-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 14px;
  margin-bottom: 12px;
}

.panel h2,
.panel h3,
.section-title,
.hero-content h2,
.card h2,
.card h3,
.article h1 {
  font-family: 'Merriweather', serif;
}

.panel h2,
.panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.cat-list,
.quick-list,
.panel-editor ul,
.row-block ul,
.side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list li,
.quick-list li,
.panel-editor li,
.row-block li,
.side-card li {
  border-top: 1px solid var(--line);
}

.cat-list li:first-child,
.quick-list li:first-child,
.panel-editor li:first-child,
.row-block li:first-child,
.side-card li:first-child {
  border-top: 0;
}

.cat-list a,
.quick-list a,
.panel-editor a,
.row-block a,
.side-card a {
  display: block;
  padding: 9px 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: #1a3344;
}
.is-hidden {
  display: none;
}

.cat-more-btn {
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(95deg, #eef7ff, #ffffff);
  color: #184058;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cat-more-btn:hover {
  background: #ffffff;
  border-color: #a8c4d7;
}

.panel-editor span,
.row-block span,
.meta,
.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero {
  padding: 16px;
  margin-bottom: 12px;
  background:
    linear-gradient(145deg, #ffffff 0%, #fbfdff 74%),
    radial-gradient(450px 260px at 100% 0%, #ffe2d5 0%, transparent 70%);
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #b55a27;
}

.hero-header h1 {
  margin: 4px 0 6px;
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
}

.hero-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-controls {
  display: flex;
  gap: 8px;
}

.hero-btn,
#loadMoreBtn,
.form button,
.side-card button {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.hero-slider { position: relative; }

.hero-slide {
  display: none;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: center;
}

.hero-slide.active { display: grid; }

.hero-media img {
  width: 100%;
  min-height: 230px;
  max-height: 290px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-content .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde8dd;
  color: #a04814;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-content h2 {
  margin: 10px 0 8px;
  font-size: 1.26rem;
  line-height: 1.35;
}

.hero-content p {
  margin: 8px 0;
  color: #314756;
  font-size: 0.92rem;
  line-height: 1.56;
}

.hero-content .cta {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(95deg, #09637e, #0a7d96);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #b9c8d4;
  background: #fff;
}

.hero-dots .dot.active {
  background: #0c6f8a;
  border-color: #0c6f8a;
}

.breaking {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.breaking-label {
  display: inline-block;
  background: #0b6984;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 1px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.breaking-track-wrap {
  overflow: hidden;
  min-width: 0;
}

.breaking-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
  will-change: transform;
}

.breaking-track span {
  color: #233f51;
  font-weight: 700;
  font-size: 0.86rem;
}

.breaking:hover .breaking-track { animation-play-state: paused; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40%); }
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.lead-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.lead-item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.lead-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead-item h3 a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-title {
  margin: 8px 0 10px;
  font-size: 1.26rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  padding: 12px;
}

.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h2,
.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.42;
}

.excerpt {
  margin-top: 6px;
  color: #2b4250;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spotlight-title {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 1.06rem;
  line-height: 1.45;
  margin: 6px 0;
}

.panel-spotlight p {
  margin: 8px 0 0;
  color: #355161;
  font-size: 0.88rem;
  line-height: 1.54;
}

.panel-editor li,
.row-block li {
  padding: 8px 0;
}

.section-rows {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.row-block {
  padding: 12px;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.row-head h3 {
  margin: 0;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
}

.row-head a {
  color: #0a6782;
  font-size: 0.82rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  color: #38505f;
  font-size: 0.88rem;
}

.pagination a {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.home-right,
.home-left { min-width: 0; }

.sidebar-block {
  position: sticky;
  top: 76px;
}

.side-card {
  padding: 13px;
  margin-bottom: 12px;
}

.side-card h3 {
  margin: 0 0 10px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
}

.side-card input,
.form input,
.form textarea,
.search-box input,
.search-box textarea,
form input[type='text'],
form input[type='email'],
form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin-bottom: 8px;
  background: #fff;
}

.side-card button,
.form button,
form button {
  background: linear-gradient(95deg, #09637e, #0a7b94);
  color: #fff;
  border-color: transparent;
}

.form-msg,
.note {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d2dce7;
  border-radius: 10px;
  background: #f8fbff;
  color: #2c4a5d;
  font-size: 0.86rem;
}

.article {
  padding: 18px;
}

.article h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.3;
}

.article .hero {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article .content {
  margin-top: 14px;
  line-height: 1.75;
  font-size: 1rem;
}

.comments { margin-top: 18px; }

.comment-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.comment-user img,
.comment-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.comment-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 10px;
}

.comment-author {
  font-weight: 800;
  font-size: 0.9rem;
}

.comment-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.comment-text {
  margin-top: 5px;
  color: #274556;
  line-height: 1.5;
  font-size: 0.89rem;
}

.search-box,
form[method='get'] {
  padding: 12px;
  margin-bottom: 12px;
}

.site-footer {
  margin-top: 24px;
  background:
    linear-gradient(130deg, #0b3040 0%, #104f66 42%, #0f6c82 100%),
    radial-gradient(380px 190px at 10% 0%, rgba(255, 255, 255, 0.17) 0%, transparent 70%);
  color: #dcecf4;
  border: 1px solid rgba(12, 58, 77, 0.7);
  border-radius: 18px;
  box-shadow: 0 20px 38px rgba(6, 31, 42, 0.3);
  overflow: hidden;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 22px 18px;
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-brand p {
  margin: 10px 0 12px;
  color: rgba(225, 242, 250, 0.92);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.42rem;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chips span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200, 232, 246, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf8fd;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.footer-links h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 0.98rem;
  font-family: 'Merriweather', serif;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  color: rgba(221, 241, 250, 0.93);
  font-size: 0.87rem;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(210, 238, 249, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 22px 14px;
  font-size: 0.79rem;
  color: rgba(214, 238, 248, 0.9);
}

@media (max-width: 1220px) {
  .container.layout {
    grid-template-columns: 1fr;
  }

  .sidebar-block {
    position: static;
  }
}

@media (max-width: 1060px) {
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .home-grid.no-left {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

.home-grid.no-side {
  grid-template-columns: minmax(0, 1fr);
}

.home-left {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-left .panel { margin-bottom: 0; }

  .section-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .nav {
    position: absolute;
    top: 60px;
    right: 12px;
    background: #0a6c86;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
    width: 220px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .site-header .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-grid.no-left {
    grid-template-columns: 1fr;
  }

.home-grid.no-side {
  grid-template-columns: minmax(0, 1fr);
}

.home-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .panel {
    margin-bottom: 10px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 200px;
    max-height: 230px;
  }

  .lead-grid,
  .cards,
  .section-rows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    border-radius: 14px;
  }

  .footer-shell {
    padding: 20px 14px 14px;
  }

  .footer-bottom {
    padding: 10px 14px 12px;
  }

  .container.layout {
    padding: 14px 10px 24px;
  }

  .site-header .header-inner {
    padding: 10px 12px;
  }

  .site-header .brand {
    font-size: 1.32rem;
  }

  .hero-header {
    flex-direction: column;
  }

  .breaking {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-left,
  .home-right {
    grid-template-columns: 1fr;
  }

  .article h1 {
    font-size: 1.38rem;
  }
}

.article .content pre {
  margin: 14px 0;
  padding: 12px 14px;
  background: #0f1720;
  color: #e8f1f7;
  border: 1px solid #1f3342;
  border-radius: 10px;
  overflow-x: auto;
}

.article .content code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92em;
}

.article .content :not(pre) > code {
  background: #edf4fa;
  color: #113347;
  border: 1px solid #c8dbe7;
  border-radius: 6px;
  padding: 2px 6px;
}

.article .content pre {
  position: relative;
  padding-top: 42px;
}

.article .content .code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid #365369;
  background: #152635;
  color: #e8f1f7;
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}

.article .content .code-copy-btn:hover {
  background: #1e3447;
}

/* Light code block theme */
.article .content pre {
  position: relative;
  margin: 14px 0;
  padding: 42px 14px 12px;
  background: #f6f9fc;
  color: #1c2f3d;
  border: 1px solid #d3e0ea;
  border-radius: 10px;
  overflow-x: auto;
}

.article .content code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92em;
}

.article .content :not(pre) > code {
  background: #edf5fb;
  color: #12384d;
  border: 1px solid #c8dcec;
  border-radius: 6px;
  padding: 2px 6px;
}

.article .content .code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid #b9cfdf;
  background: #ffffff;
  color: #17435c;
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}

.article .content .code-copy-btn:hover {
  background: #f0f7fd;
}

.article .content code {
  cursor: copy;
}

.article .content code.is-copied {
  background: #dff4e7;
  border-color: #8fc9a5;
}











.social-share {
  margin: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #42667e;
  margin-right: 4px;
}

.share-btn {
  border: 1px solid #c9d9e5;
  background: #f7fbff;
  color: #18384b;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 50, 70, .14);
}

.share-btn.wa { color: #1a7f49; border-color: #97d7b6; background: #effcf5; }
.share-btn.fb { color: #1e4ba8; border-color: #a9c2ef; background: #f2f6ff; }
.share-btn.x  { color: #20242c; border-color: #c8ced8; background: #f8f9fb; }
.share-btn.tg { color: #006f9f; border-color: #98cfe5; background: #eff8fc; }
.share-btn.copy { color: #6d4f00; border-color: #e8d59e; background: #fff8e6; }
.share-btn.copy.copied { color: #0f6a33; border-color: #95d9af; background: #ebfaf1; }

@media (max-width: 640px) {
  .social-share {
    gap: 6px;
  }

  .share-btn {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

.article .content .content-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: 10px;
}

.post-categories {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.post-categories .cat-label {
  font-size: 0.9rem;
  color: #4a6478;
  font-weight: 600;
}

.post-categories .cat-pill {
  text-decoration: none;
  background: #ecf6ff;
  color: #12507a;
  border: 1px solid #bfd9ee;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.post-categories .cat-pill:hover {
  background: #dff0ff;
}

.post-categories .cat-pill.is-muted {
  background: #f3f5f8;
  border-color: #d9e1e8;
  color: #5a6d7d;
  cursor: default;
}

.post-video {
  margin-top: 16px;
}

.post-video-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1720;
}

.post-video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fix: More Categories button hover contrast inside sidebar */
.side-card .cat-more-btn {
  background: linear-gradient(95deg, #eef7ff, #ffffff) !important;
  color: #184058 !important;
  border: 1px solid #cfd9e4 !important;
}

.side-card .cat-more-btn:hover,
.side-card .cat-more-btn:focus {
  background: #ffffff !important;
  color: #184058 !important;
  border-color: #a8c4d7 !important;
}
