/*
 * Public site stylesheet (source of truth for layouts/app.blade.php).
 * Edit this file directly. resources/css/app.css is Vite/Tailwind scaffold only.
 */
:root {
  --primary: #D4AF37;
  --primary-text: #8F6E1F;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --heading: #111111;
  --text: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --breaking: #DC2626;
  --sports: #16A34A;
  --sports-text: #15803D;
  --business: #F59E0B;
  --business-text: #B45309;
  --technology: #0EA5E9;
  --technology-text: #0369A1;
  --politics: #B91C1C;
  --world: #7C3AED;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(17,17,17,.06), 0 8px 24px rgba(17,17,17,.06);
  --shadow-lg: 0 12px 32px rgba(17,17,17,.12);
  --font: 'Inter', 'Noto Sans Gurmukhi', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur: .35s;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Focus visibility & skip link ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Form controls: keep a strong visible ring on top of the border colour change */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .28);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--heading);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ===== Meta utilities ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
}

.badge--breaking {
  background: var(--breaking);
  color: #fff;
  animation: pulse 1.8s infinite;
}

.badge--soft {
  background: color-mix(in srgb, var(--cat, var(--primary)) 12%, #fff);
  color: var(--cat-text, var(--primary-text));
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #6b7280;
  flex-wrap: wrap;
}

.meta__author { font-weight: 700; color: var(--heading); }
.meta__time { display: inline-flex; align-items: center; gap: 5px; }
.meta__time::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.meta__cat {
  color: var(--cat-text, var(--primary-text));
  font-weight: 700;
}
.meta__views { color: #9ca3af; }

.card-overlay { position: relative; }

/* ===== Topbar ===== */
.topbar { background: #0c0c0c; color: #e5e7eb; font-size: 12.5px; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
}
.topbar__actions { display: flex; align-items: center; gap: 14px; }
.topbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar__lang { display: flex; align-items: center; gap: 4px; color: #d1d5db; }
.topbar__lang-link { color: inherit; text-decoration: none; padding: 2px 4px; border-radius: 4px; transition: .2s; }
.topbar__lang-link:hover { color: #111; background: var(--primary); }
.topbar__lang-link.is-active { color: #111; background: var(--primary); font-weight: 700; }
.topbar__lang-sep { display: none; /* Removed the dots, using badges instead */ }

.social { display: flex; gap: 8px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #e5e7eb;
  transition: .2s;
}
.social a:hover { background: var(--primary); color: #111; }

/* ===== Ticker ===== */
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
  max-width: 600px; /* Prevent it from taking over the whole bar on large screens */
}
.ticker__label {
  background: var(--primary);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.ticker__viewport { flex: 1; overflow: hidden; height: 28px; display: flex; align-items: center; }
.ticker__list {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker__item {
  font-size: 13px;
  font-weight: 500;
  padding-inline: 20px;
  position: relative;
  color: #e5e7eb;
  transition: .2s;
}
.ticker__item:hover { color: var(--primary); }
.ticker__item::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--primary);
}
.ticker__viewport:hover .ticker__list,
.ticker__viewport:focus-within .ticker__list {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__logo-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(212,175,55,.45);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}
.brand:hover .brand__logo-img {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 6px 22px rgba(212,175,55,.65);
}
.brand__logo {
  width: 68px; height: 68px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e6c95c, var(--primary) 55%, #a8842a);
  color: #111;
  font-weight: 900;
  font-size: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(212,175,55,.4);
}
.brand__name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--heading);
  line-height: 1.1;
}
.brand__tag { display: block; font-size: 11.5px; font-weight: 600; color: #9ca3af; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.header__right { display: flex; align-items: center; gap: 10px; }
.header__edition {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--breaking);
  border: 1.5px solid var(--breaking);
  padding: 6px 12px;
  border-radius: 999px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--breaking);
  animation: pulse 1.4s infinite;
}
.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  color: var(--heading);
  transition: .2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 4px; }
.hamburger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* Searchbar */
.searchbar {
  display: none;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}
.searchbar.open { display: block; animation: nav-slide .3s var(--ease); }
.searchbar__form { display: flex; gap: 8px; }
.searchbar input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: .2s;
}
.searchbar input:focus { border-color: var(--primary); }
.searchbar button {
  padding: 0 22px;
  border: none;
  background: var(--primary);
  color: #111;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}

/* Nav */
.nav { border-top: 1px solid var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.nav__link {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
  position: relative;
  transition: .2s;
}
.nav__link:hover { color: var(--nav-color, var(--primary)); }
.nav__link--home { color: var(--primary-text); }
@media (min-width: 1024px) {
  .nav__link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 6px;
    height: 2px;
    background: var(--nav-color, var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: .25s;
  }
  .nav__link:hover::after { transform: scaleX(1); }
}

/* ===== Main layout ===== */
.main { padding-block: 24px; }
.sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

/* ===== Section head ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--heading);
  padding-bottom: 10px;
}
.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -.01em;
}
.section-title--bar {
  padding-left: 14px;
  position: relative;
}
.section-title--bar::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 5px;
  border-radius: 3px;
  background: var(--bar, var(--primary));
}
.section-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  animation: hero-in .9s var(--ease) both;
}
.hero__lead { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.hero__lead-photo {
  position: absolute;
  inset: -5%;
  width: calc(100% + 10%);
  height: calc(100% + 10%);
  overflow: hidden;
  z-index: 0;
}
.hero__lead-photo .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-kenburns 24s var(--ease) infinite alternate;
  will-change: transform;
}
.hero__img {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(rgba(17,17,17,.15), rgba(17,17,17,.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__lead-body { padding: 26px; color: #fff; }
.hero__lead-body .badge { margin-bottom: 12px; }
.hero__lead-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__lead-excerpt {
  font-size: 15px;
  max-width: 60ch;
  margin-bottom: 14px;
  color: rgba(255,255,255,.85);
}
.hero__lead-body .meta { color: rgba(255,255,255,.7); }
.hero__lead-body .meta__author { color: #fff; }
.hero__lead-body .meta__cat, .hero__card-body .meta__cat { color: var(--cat, var(--primary)); }

.hero__side { display: grid; gap: 20px; }
.hero__card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.hero__card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: block;
}
.hero__card-img .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(17,17,17,.12), rgba(17,17,17,.85));
  pointer-events: none;
  z-index: 2;
}
.hero__card-body {
  position: absolute;
  left: 0; bottom: 0; right: 0; top: 30%;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.92));
  color: #fff;
}
.hero__card-title { font-size: 16px; font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.hero__card-body .meta { color: rgba(255,255,255,.7); }

/* ===== Latest ===== */
.latest { margin-bottom: 40px; }
.tabs { display: flex; gap: 8px; }
.tab {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: .2s;
}
.tab.active { background: var(--primary); border-color: var(--primary); color: #111; }
.tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Panel crossfade animation */
.latest__panels { position: relative; }
.latest__panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.latest__panel.is-active {
  opacity: 1;
  transform: translateY(0);
}
.latest__panel[hidden] {
  display: none !important;
}

.latest__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Views badge for trending cards */
.n-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px;
  margin-bottom: 4px;
}
.badge--views {
  background: rgba(255, 152, 0, 0.12);
  color: #ff9800;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}


/* ===== News card ===== */
.n-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 16px;
  transition: transform .25s, box-shadow .25s;
}
.n-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.n-card__img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}
.n-card .badge { margin: 0 16px 8px; }
.n-card__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--heading);
  padding-inline: 16px;
  margin-bottom: 10px;
}
.n-card__title a:hover { color: var(--primary-text); }
.n-card .meta { padding-inline: 16px; }

/* ===== Category section ===== */
.cat-section { margin-bottom: 44px; }
.cat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.cat-feature {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .25s, box-shadow .25s;
}
.cat-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-feature__img { border-radius: 8px; margin-bottom: 12px; }
.cat-feature .badge { margin-bottom: 8px; }
.cat-feature__title {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--heading);
  margin-bottom: 8px;
}
.cat-feature__title:hover { color: var(--primary-text); }

.cat-list { display: grid; gap: 14px; }
.h-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  transition: box-shadow .2s, transform .2s;
  align-items: flex-start;
}
.h-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.h-card__img {
  flex-shrink: 0;
  width: 104px;
  aspect-ratio: 4/3;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}
.h-card__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h-card__title:hover { color: var(--primary-text); }

/* cards row */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== Two columns ===== */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ===== Load more ===== */
.loadmore { text-align: center; margin-block: 8px 40px; }
.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.btn--primary { background: var(--primary); color: #111; }
.btn--primary:hover { background: #c19e2e; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary-text); }

/* ===== Page head ===== */
.page-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 2px solid var(--heading);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.page-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--cat-text, var(--heading));
}
.page-count { font-size: 13px; color: #6b7280; font-weight: 600; }

/* ===== List grid ===== */
.list-grid { display: grid; gap: 20px; }
.list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  transition: box-shadow .2s, transform .2s;
}
.list-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.list-card__img {
  display: block;
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}
.list-card__img .cover-img { min-height: 190px; }
.list-card__body { padding: 20px 22px 22px 0; }
.list-card .badge { margin-bottom: 10px; }
.list-card__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 8px;
}
.list-card__title a:hover { color: var(--primary-text); }
.list-card__excerpt { font-size: 14.5px; margin-bottom: 12px; }

.empty {
  padding: 50px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: #9ca3af;
  font-weight: 600;
}

/* ===== Pagination ===== */
.pagination { margin-top: 32px; }
.pagination nav { display: flex; }
.pagination nav > div { display: flex; justify-content: center; }
.pagination .flex { justify-content: center !important; gap: 4px; }
.pagination a, .pagination span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  margin-inline: 2px;
}
.pagination .active > span, .pagination .active a { background: var(--primary); border-color: var(--primary); color: #111; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination p { display: none; }

/* ===== Article ===== */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 40px;
}
.article .badge { margin-bottom: 14px; }
.article__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  color: var(--heading);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.article__meta { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.article__img-wrap { margin-bottom: 26px; }
.article__img {
  aspect-ratio: 16/8;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease);
}
.article__body { font-size: 17.5px; line-height: 1.85; color: #374151; }
.article__body p { margin-bottom: 1.4em; }
.article__body p:first-child::first-letter {
  font-size: 54px;
  font-weight: 900;
  color: var(--primary);
  float: left;
  line-height: 1;
  padding-right: 10px;
}
.article__share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--heading);
}
.article__share .social a { background: var(--background); color: var(--heading); border: 1px solid var(--border); }
.article__share .social a:hover { background: var(--primary); color: #111; }

.related { margin-bottom: 40px; }

/* ===== Sidebar widgets ===== */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.widget__title {
  font-size: 17px;
  font-weight: 900;
  color: var(--heading);
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}
.widget__title::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 5px;
  border-radius: 3px;
  background: var(--primary);
}
.widget__title-en { color: #9ca3af; font-weight: 600; font-size: 12.5px; }
.widget__media {
  display: block;
  aspect-ratio: 5/3;
  border-radius: 9px;
  margin-bottom: 12px;
  background-image: var(--img), linear-gradient(135deg, #e5e7eb, #d1d5db);
  background-size: cover;
  background-position: center;
}
.widget__text { font-size: 14px; }

.ranked { list-style: none; display: grid; gap: 0; }
.ranked li {
  display: flex;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}
.ranked li:last-child { border-bottom: none; }
.ranked__num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  font-style: italic;
}
.ranked__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  margin-bottom: 3px;
}
.ranked__title a:hover { color: var(--primary-text); }

.about-card { text-align: center; }
.about-card__logo-wrap {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.about-card__logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(212,175,55,.4);
  transition: transform 0.3s ease;
}
.about-card:hover .about-card__logo-img {
  transform: scale(1.08) rotate(3deg);
}
.about-card__logo {
  width: 60px; height: 60px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e6c95c, var(--primary) 55%, #a8842a);
  color: #111;
  font-weight: 900;
  font-size: 30px;
  border-radius: 14px;
}
.about-card__name { font-size: 18px; font-weight: 900; color: var(--heading); margin-bottom: 6px; }
.about-card__line { font-size: 13.5px; color: var(--text); }

/* ===== Footer ===== */
.footer { background: #0c0c0c; color: #9ca3af; margin-top: 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: 48px 32px;
}
.brand--footer .brand__name { color: #fff; }
.footer__desc { font-size: 14px; margin-block: 16px; max-width: 36ch; }
.footer .social a { background: rgba(255,255,255,.08); color: #cfcfcf; }
.footer .social a:hover { background: var(--primary); color: #111; }

.footer__heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { font-size: 14px; transition: .2s; }
.footer__links a:hover { color: var(--primary); }

.footer__bottom { border-top: 1px solid #262626; padding-block: 18px; }
.footer__bottom p { font-size: 13px; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__img { min-height: 380px; }
  .hero__side { grid-template-columns: 1fr 1fr; }
  .latest__grid, .cards-row { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .list-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 700px) {
  .brand { gap: 10px; }
  .brand__logo-img { width: 50px; height: 50px; }
  .brand__name { font-size: 20px; }
  .brand__tag { font-size: 10px; }
  .hamburger { display: flex; }
  .header__edition { display: none; }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 200;
    padding-top: 60px;
    overflow-y: auto;
  }
  .nav.open { display: block; animation: nav-slide .3s var(--ease); }
  .nav__inner { flex-direction: column; align-items: stretch; overflow: visible; }
  .nav__link { padding: 16px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .topbar__lang { display: none; }
  .latest__grid, .cards-row, .hero__side { grid-template-columns: 1fr; }
  .list-card { grid-template-columns: 1fr; }
  .list-card__img { min-height: 180px; }
  .list-card__body { padding: 16px; }
  .article { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Motion & polish ===== */
@keyframes nav-slide {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(1.2%, 1.2%); }
}
@keyframes card-pop {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes btn-shine {
  0%, 62% { left: -80%; }
  100% { left: 135%; }
}

/* Scroll-reveal helpers (driven by IntersectionObserver in app.js) */
/* Gated behind html.js so content stays visible when JavaScript is unavailable. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.reveal--left { transform: translateX(-32px); }
html.js .reveal.reveal--right { transform: translateX(32px); }
html.js .reveal.reveal--zoom { transform: scale(.94); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }
.reveal[data-d="7"] { transition-delay: .56s; }
.reveal[data-d="8"] { transition-delay: .64s; }

/* Image hover zoom */
.n-card__img,
.h-card__img,
.cat-feature__img,
.list-card__img,
.widget__media,
.hero__card-img {
  position: relative;
  overflow: hidden;
}
.n-card:hover .n-card__img .cover-img,
.cat-feature:hover .cat-feature__img .cover-img,
.list-card:hover .list-card__img .cover-img,
.hero__card:hover .hero__card-img .cover-img,
.h-card:hover .h-card__img .cover-img,
.widget__media:hover .cover-img { transform: scale(1.09); }

/* Card hover polish */
.n-card,
.cat-feature,
.h-card,
.list-card,
.hero__card,
.cat-feature {
  border-color: var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.n-card:hover,
.cat-feature:hover,
.list-card:hover,
.hero__card:hover { border-color: rgba(212, 175, 55, .5); }

/* Buttons — shine sweep + lift */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background .25s;
}
.btn--primary { background: var(--primary); color: #111; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-22deg);
  animation: btn-shine 3.6s var(--ease) infinite;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(212, 175, 55, .38); }
.btn--primary:active { transform: translateY(0); }

/* Tabs */
.tab { transition: transform var(--dur) var(--ease), background .25s, color .25s, border-color .25s; }
.tab:hover { transform: translateY(-2px); }
.tab:active { transform: translateY(0); }

/* Sticky header shadow */
.header { transition: box-shadow .3s var(--ease); }
.header--scrolled { box-shadow: 0 8px 26px rgba(17, 17, 17, .1); }

/* Social icons */
.social a { transition: transform var(--dur) var(--ease), background .2s, color .2s; }
.social a:hover { transform: translateY(-2px); }

/* Icon buttons */
.icon-btn { transition: transform var(--dur) var(--ease), border-color .2s, color .2s; }
.icon-btn:hover { transform: translateY(-2px) rotate(-4deg); }

/* Section links */
.section-link { position: relative; transition: color .2s; }
.section-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.section-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Meta dots pulse gently */
.meta__time::before { animation: pulse 2.4s ease-in-out infinite; }

/* Reading progress bar (top of page on article pages) */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #f2dd9b);
  z-index: 500;
  transition: width .1s linear;
}

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 13px;
  background: var(--primary);
  color: #111;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(212, 175, 55, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  z-index: 300;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top:active { transform: translateY(0) scale(.95); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 999px;
  border: 2px solid var(--background);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* List card — subtle entrance stagger handled by data-d */

/* Ranked list micro-interaction */
.ranked li { transition: transform var(--dur) var(--ease), background .2s; border-radius: 8px; padding-inline: 6px; }
.ranked li:hover { transform: translateX(6px); background: linear-gradient(90deg, rgba(212,175,55,.08), transparent); }
.ranked__num { transition: transform var(--dur) var(--ease), color .2s; display: inline-block; }
.ranked li:hover .ranked__num { transform: scale(1.18) rotate(-6deg); color: #c19e2e; }

/* H-card / n-card title color sweep */
.n-card__title a, .h-card__title a, .list-card__title a, .ranked__title a, .cat-feature__title a {
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left calc(100% - 1px);
  transition: color .25s, background-size .35s var(--ease);
}
.n-card:hover .n-card__title a,
.h-card:hover .h-card__title a,
.list-card:hover .list-card__title a,
.ranked li:hover .ranked__title a,
.cat-feature:hover .cat-feature__title a { background-size: 100% 2px; color: var(--primary-text); }

/* Brand logo subtle glow breathing */
.brand__logo { animation: brand-glow 4s ease-in-out infinite; }
@keyframes brand-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(212,175,55,.35); }
  50% { box-shadow: 0 4px 22px rgba(212,175,55,.6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero, .n-card, .h-card, .cat-feature, .list-card, .hero__card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Static pages ===== */
.static-page {
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.static-page__lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
}
.static-page h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
  margin: 28px 0 10px;
}
.static-page p,
.static-page li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}
.static-page ul { padding-left: 22px; margin-bottom: 16px; }
.static-page a { color: var(--primary-text); font-weight: 700; }
.static-page a:hover { text-decoration: underline; }
.static-page__note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: #6b7280;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.contact-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
}
.contact-card h2 {
  margin-top: 0;
  font-size: 18px;
}
.contact-card--social .social { margin-top: 8px; }
.about-card a { color: var(--primary-text); font-weight: 700; }
.about-card a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .static-page { padding: 22px 18px 24px; }
}

.contact-form-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px 24px;
  margin-bottom: 22px;
}
.contact-form-card h2 { margin-top: 0; font-size: 20px; }
.contact-form { display: grid; gap: 16px; margin-top: 16px; }
.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-form__field { display: grid; gap: 6px; }
.contact-form__field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form__field textarea { resize: vertical; min-height: 140px; }
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}
.alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert__list { margin: 0; padding-left: 18px; }

/* ===== Newsletter ===== */
.footer__newsletter { margin: 18px 0; }
.newsletter-form { display: grid; gap: 10px; }
.newsletter-form__intro { font-size: 14px; color: var(--muted); margin: 0; }
.newsletter-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.newsletter-form__row input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
}
.newsletter-form__row input:focus {
  outline: none;
  border-color: var(--primary);
}
.newsletter-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Comments ===== */
.comments { margin: 36px 0 28px; }
.comment-form-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px 22px;
  margin-bottom: 22px;
}
.comment-form-card h3 { margin: 0 0 14px; font-size: 18px; }
.comment-form { display: grid; gap: 14px; }
.comment-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.comment-form__field { display: grid; gap: 6px; }
.comment-form__field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}
.comment-form__field input,
.comment-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
}
.comment-form__field input:focus,
.comment-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.comment-form__field textarea { resize: vertical; min-height: 110px; }
.comment-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.comment-list { display: grid; gap: 16px; }
.comment-list__empty { color: var(--muted); font-size: 14px; }
.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.comment-item--reply {
  padding: 12px 14px;
}
.comment-item__avatar { flex-shrink: 0; }
.comment-item__avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.comment-item--reply .comment-item__avatar img { width: 40px; height: 40px; }
.comment-item__content { flex: 1; min-width: 0; }
.comment-item__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.comment-item__author { font-size: 15px; }
.comment-item__time { font-size: 13px; color: var(--muted); }
.comment-item__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.comment-replies {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 12px;
}
.btn-reply {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--primary-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
.btn-reply:hover { color: var(--primary); text-decoration: underline; }
.comment-form__actions { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.cancel-reply {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: none;
}
.cancel-reply.is-active { display: inline-block; }
.cancel-reply:hover { border-color: var(--primary); color: var(--primary-text); }
.replying-to {
  display: none;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.replying-to.is-active { display: block; }

/* ===== Small utilities (used by tag/author/list pages) ===== */
.capitalize { text-transform: capitalize; }
.pagination-wrap { margin-top: 2rem; }
.state-empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 0;
}
.widget__note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Author profile ===== */
.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.author-profile__avatar { flex-shrink: 0; }
.author-profile__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  display: block;
}
.author-profile__name { margin: 0 0 0.5rem 0; font-size: 2rem; color: var(--heading); }
.author-profile__designation {
  color: var(--primary-text);
  font-weight: 600;
  margin-bottom: 1rem;
}
.author-profile__bio { margin-bottom: 1rem; line-height: 1.6; }
.author-profile__social { display: flex; flex-wrap: wrap; gap: 1rem; }
.author-profile__social a {
  color: var(--muted);
  text-transform: capitalize;
}
.author-profile__social a:hover { color: var(--primary-text); }

/* ===== Article tags ===== */
.article__tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.article__tags-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.article__tag {
  background: var(--surface);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: inherit;
  border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.article__tag:hover {
  border-color: var(--primary);
  color: var(--primary-text);
}

@media (max-width: 640px) {
  .newsletter-form__row { grid-template-columns: 1fr; }
}
