:root {
  --red: #c8102e;
  --red-dark: #9a0c22;
  --ink: #171512;
  --ink-soft: #3a3733;
  --paper: #f7f5ef;
  --paper-2: #efebe1;
  --line: #dcd6c7;
  --gray: #6f6a5f;
  --gold: #b8892b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  margin: 0;
}
h1,
h2,
h3,
.serif {
  font-family: "Playfair Display", serif;
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
::selection {
  background: var(--red);
  color: #fff;
}
.gold-rule {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--gold) 50%,
    var(--ink) 100%
  );
}
.topbar {
  background: var(--ink);
  color: #cfc9ba;
  font-size: 12.5px;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  display: flex;
  border: 1px solid #4a473f;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  background: none;
  border: 0;
  color: #a39d8c;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--red);
  color: #fff;
}
.masthead {
  padding: 22px 0 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: inherit;
}
.brand img {
  height: 56px;
  display: block;
}
.search-mini {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}
.search-mini input {
  border: 0;
  outline: 0;
  font-size: 13px;
  width: 100%;
  background: transparent;
}
.datebox {
  font-size: 13px;
  color: var(--gray);
  text-align: right;
  font-weight: 500;
}
.datebox .d1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--ink-soft);
}
.datebox .d2 {
  font-size: 11.5px;
  letter-spacing: 0.05em;
}
nav.catnav {
  background: var(--red);
  border-bottom: 1px solid var(--red-dark);
}
nav.catnav .wrap {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.catnav .wrap::-webkit-scrollbar {
  display: none;
}
nav.catnav a {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 11px 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}
nav.catnav a:hover {
  border-color: #fff;
}
.cat {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cat::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--red);
  flex-shrink: 0;
}
.hero {
  padding: 28px 0 10px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 30px;
}
/* .lead {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 14px 34px rgba(23, 21, 18, 0.16);
  cursor: pointer;
}
.lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.6s ease;
}
.lead:hover img {
  transform: scale(1.03);
}
.lead .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 15, 12, 0.05) 30%,
    rgba(12, 10, 8, 0.94) 100%
  );
}
.lead .content {
  position: relative;
  padding: 36px 34px 30px;
  color: #fff;
}
.lead .cat {
  color: #fff;
}
.lead .cat::before {
  background: var(--gold);
}
.lead h1 {
  font-size: clamp(27px, 3.3vw, 44px);
  line-height: 1.12;
  margin: 12px 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lead p {
  color: #d9d2c3;
  font-size: 15.5px;
  max-width: 58ch;
  line-height: 1.55;
}
.lead .meta {
  font-size: 12px;
  color: #b0a793;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.03em;
} */
.side-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 9px;
  margin-bottom: 2px;
}
.side-list {
  display: flex;
  flex-direction: column;
}
.side-item {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  cursor: pointer;
}
.side-num {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--line);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.side-item img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.side-item .cat {
  font-size: 10.5px;
}
.side-item .cat::before {
  width: 4px;
  height: 4px;
}
.side-item h3 {
  font-size: 14.5px;
  line-height: 1.3;
  margin: 4px 0 0;
  font-weight: 700;
}
.section {
  padding: 38px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-style: italic;
}
.section-head h2::before {
  content: "";
  width: 4px;
  height: 21px;
  background: var(--red);
}
.section-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.card:hover {
  border-color: #c8c2af;
  box-shadow: 0 10px 26px rgba(23, 21, 18, 0.09);
  transform: translateY(-2px);
}
.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.05);
}
.card .card-body {
  padding: 17px 18px 19px;
}
.card .cat {
  font-size: 11px;
}
.card h3 {
  font-size: 16px;
  line-height: 1.32;
  margin: 9px 0 8px;
  font-weight: 700;
}
.card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}
.card .meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.row-list {
  display: flex;
  flex-direction: column;
}
.row-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.row-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 2px;
}
.row-item h3 {
  font-size: 16.5px;
  margin: 6px 0;
  font-weight: 700;
}
.row-item p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}
.ticker {
  background: var(--ink);
  border-top: 1px solid var(--red-dark);
  border-bottom: 1px solid var(--red-dark);
  padding: 10px 0;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #cfc9ba;
}
.ticker b {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 3px 10px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  border-radius: 1px;
}
.ticker span {
  font-style: italic;
  font-family: "Playfair Display", serif;
}
footer {
  background: var(--ink);
  color: #a39d8c;
  padding: 0 0 20px;
  margin-top: 24px;
}
.newsletter {
  border-bottom: 1px solid #38352d;
  padding: 28px 0;
}
.newsletter .nl-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.newsletter h3 {
  color: #fff;
  font-size: 19px;
  font-style: italic;
  margin: 0 0 4px;
}
.newsletter p {
  font-size: 12.5px;
  color: #8b8574;
  margin: 0;
}
.newsletter form {
  display: flex;
  flex-shrink: 0;
}
.newsletter input {
  border: 1px solid #45412f;
  background: #211f19;
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  width: 230px;
  border-radius: 2px 0 0 2px;
  outline: none;
}
.newsletter button {
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}
footer .fwrap {
  padding-top: 32px;
}
footer .fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}
footer h4 {
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
footer a {
  display: block;
  color: #a39d8c;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.15s;
}
footer a:hover {
  color: #fff;
}
footer .bottom {
  border-top: 1px solid #3a372f;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.post-head {
  padding: 32px 0 18px;
  border-bottom: 1px solid var(--line);
}
.post-head .cat {
  font-size: 14px;
}
.post-head h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.14;
  margin: 12px 0;
}
.post-head .sub {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 14px;
}
.post-head .meta {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.post-cover {
  margin: 22px 0;
}
.post-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 2px;
}
.post-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 6px 0 40px;
}
.post-content {
  font-size: 17.5px;
  line-height: 1.85;
}
.post-content p {
  margin-bottom: 20px;
}
.post-content h2 {
  font-size: 23px;
  margin: 30px 0 12px;
  font-weight: 800;
}
.share-row {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-row a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.sidebar-block {
  margin-bottom: 28px;
}
.sidebar-block h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.mini-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mini-item img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.mini-item h5 {
  font-size: 13px;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}
.crumbs {
  font-size: 12.5px;
  color: var(--gray);
  padding: 14px 0 0;
}
.crumbs a {
  color: var(--gray);
}
.crumbs a:hover {
  color: var(--red);
}
.cat-hero {
  background: var(--ink);
  color: #fff;
  padding: 26px 0;
  margin-bottom: 6px;
}
.cat-hero h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 800;
}
.cat-hero p {
  color: #b7b0a0;
  margin: 4px 0 0;
  font-size: 13.5px;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .lead {
    min-height: 300px;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .post-body {
    grid-template-columns: 1fr;
  }
  footer .fgrid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .datebox {
    display: none;
  }
}
@media (max-width: 576px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
  .brand img {
    height: 42px;
  }
  .row-item {
    grid-template-columns: 110px 1fr;
  }
  .search-mini {
    display: none;
  }
  footer .fgrid {
    grid-template-columns: 1fr;
  }
}

/* ── Language switching ──────────────────────────────
   Only hide the inactive language.
   Let the active one use its natural display
   (block for <div>, inline for <span>). */
html[data-lang="en"] [data-tr],
html[data-lang="tr"] [data-en] {
  display: none !important;
}

/* ── Breaking news bar link ────────────────────── */
.breaking-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
.breaking-link:hover {
  color: #fff;
}
.breaking-link b {
  color: var(--red);
  margin-right: 4px;
}
.topbar .breaking-link {
  color: #cfc9ba;
}

/* ═══════════════════════════════════════════════════
   HERO SLIDER — self-contained, no external deps
   ═══════════════════════════════════════════════════ */

/* Breaking news link in the topbar */
.breaking-link {
  color: #cfc9ba;
  text-decoration: none;
  display: inline-block;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
.breaking-link:hover {
  color: #fff;
}
.breaking-link b {
  color: var(--red);
  margin-right: 4px;
}

/* The slider viewport */
.gh-slider {
  position: relative;
  width: 100%;
  min-height: 460px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(23, 21, 18, 0.16);
}

/* Each slide is absolutely positioned and hidden by default */
.gh-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s ease,
    visibility 0s linear 0.55s;
  cursor: pointer;
  overflow: hidden;
}
.gh-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.55s ease,
    visibility 0s;
}

/* Cover image */
.gh-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.gh-slide.is-active .gh-slide-img {
  transform: scale(1.03);
}

/* Dark gradient overlay for text legibility */
.gh-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 15, 12, 0.1) 0%,
    rgba(17, 15, 12, 0.3) 40%,
    rgba(12, 10, 8, 0.94) 100%
  );
  pointer-events: none;
}

/* Text block anchored to the bottom */
.gh-slide-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 34px 30px;
  color: #fff;
}

.gh-slide-body .cat {
  color: #fff;
  font-style: italic;
}
.gh-slide-body .cat::before {
  background: var(--gold);
}

.gh-slide-body h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.14;
  margin: 12px 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.gh-slide-body p {
  color: #d9d2c3;
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

.gh-slide-body .meta {
  font-size: 12px;
  color: #b0a793;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.03em;
}

/* Slider dots */
.gh-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.gh-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.gh-dots button:hover {
  transform: scale(1.3);
}
.gh-dots button.is-active {
  background: var(--red);
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .gh-slider {
    min-height: 340px;
  }
  .gh-slide-body {
    padding: 24px 22px 22px;
  }
  .gh-slide-body p {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════
   MARKET TICKER
   ═══════════════════════════════════════════════════ */
.ticker {
  background: var(--ink);
  border-top: 1px solid var(--red-dark);
  border-bottom: 1px solid var(--red-dark);
  padding: 0;
  overflow: hidden;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  overflow: hidden;
}

.ticker-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  letter-spacing: 0.12em;
  border-radius: 1px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.ticker-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1px;
  animation: ticker-pulse 2s infinite;
  pointer-events: none;
}
@keyframes ticker-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(200, 16, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
  }
}

/* The scrolling strip — width and duration are set by JS */
.ticker-track {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-width: 0;
  will-change: transform;
  animation: ticker-scroll 40s linear infinite; /* always on, no JS needed */
}
.ticker-track.is-running {
  animation-name: ticker-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 40s; /* overridden by JS */
}
.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-items {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 40px;
  padding-right: 40px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: #cfc9ba;
}

.ticker-label {
  font-weight: 700;
  color: #e8e3d5;
  letter-spacing: 0.02em;
}

.ticker-price {
  font-family: ui-monospace, Consolas, monospace;
  color: #fff;
}

.ticker-change {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
}
.ticker-item.up .ticker-change {
  color: #4ade80;
}
.ticker-item.down .ticker-change {
  color: #f87171;
}

/* Divider between items */
.ticker-item::before {
  content: "·";
  color: #5a5546;
  margin-right: 4px;
  font-weight: 400;
}
.ticker-item:first-child::before {
  content: "";
  margin: 0;
}

/* Keyframe uses the CSS variable --ticker-shift, set by JS to the
   exact pixel width of one block. This makes the loop perfectly seamless. */
@keyframes ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--ticker-shift, -50%), 0, 0);
  }
}

@media (max-width: 576px) {
  .ticker-item {
    font-size: 12px;
  }
  .ticker-items {
    gap: 26px;
    padding-right: 26px;
  }
}
