/*
Theme Name: Dergi.az News
Theme URI: https://dergi.az/
Author: Dergi.az Development Team
Author URI: https://dergi.az/
Description: DƏRGİ.AZ — pluginsiz, sürətli və SEO-optimallaşdırılmış Azərbaycan şou-biznes / xəbər portalı teması. Manşet slayderi, SON DƏQİQƏ lenti, xəbər statusları, qismən qırmızı başlıq, video embed, reklam sahələri, NewsArticle schema və AJAX canlı axtarış daxildir.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dergiaz
Tags: news, magazine, blog, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, block-styles, wide-blocks
*/


/* ==========================================================================
   DƏRGİ.AZ — dizayn sistemi (WordPress teması ilə eyni dəyərlər)
   ========================================================================== */

:root {
  --pink: #f4187b;
  --pink-2: #ff3d8b;
  --pink-soft: #ffe9f2;
  --ink: #16161a;
  --muted: #9b9ba4;
  --line: #efeff3;
  --radius: 14px;
  --shadow-card: 0 10px 28px rgba(20, 20, 40, 0.08);
  --shadow-soft: 0 4px 18px rgba(20, 20, 40, 0.06);
  --container: 1180px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Dizayndakı yumşaq çəhrayı fon dalğası */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto auto;
  width: 780px;
  height: 720px;
  background:
    radial-gradient(circle at 78% 12%, rgba(244, 24, 123, 0.11), transparent 58%),
    radial-gradient(circle at 96% 30%, rgba(255, 122, 173, 0.14), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ------------------------------- HEADER --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pink);
  font-style: italic;
  flex: none;
}
.brand span {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
}

/* Sayt loqosu — sabit hündürlük, CLS yaratmır */
.brand-logo {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}
.site-footer .brand-logo {
  height: 42px;
}
@media (max-width: 600px) {
  .brand-logo {
    height: 38px;
    max-width: 150px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.main-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2a2a31;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--pink);
  border-color: var(--pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(92deg, var(--pink) 0%, var(--pink-2) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(244, 24, 123, 0.28);
}
.btn-ig:hover {
  filter: brightness(1.05);
}

.search-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #2a2a31;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.menu-toggle {
  display: none;
}

.search-panel {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 0;
}
.search-field {
  display: flex;
  gap: 10px;
}
.search-field input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fafafc;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.search-field button {
  border: 0;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 0 22px;
  border-radius: 10px;
  cursor: pointer;
}
.live-results {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.live-results a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.live-results a:last-child {
  border-bottom: 0;
}
.live-results a:hover {
  background: var(--pink-soft);
}
.live-results img {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

/* ---------------------------- MOBİL MENYU -------------------------------- */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 0 18px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------------------------- SON DƏQİQƏ LENTİ --------------------------- */
.ticker {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin: 16px 0 6px;
  border: 1px solid var(--line);
}
.ticker-label {
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-item {
  display: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-item.active {
  display: block;
  animation: fade-in 0.4s ease;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ MANŞET ----------------------------------- */
.headline {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 0;
  margin: 22px 0 8px;
  align-items: start;
}

.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f2f6;
  box-shadow: var(--shadow-card);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 22px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}
.slide-caption h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink);
  font-size: 17px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 3;
}
.slider-btn:hover {
  background: #fff;
}
.slider-btn.prev {
  left: 14px;
}
.slider-btn.next {
  right: 14px;
}

.headline-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px 20px;
  margin-left: -34px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .headline-list {
    margin-left: 0;
    margin-top: 16px;
  }
}
.headline-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  width: 100%;
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font: inherit;
  cursor: pointer;
}
.headline-item:last-child {
  border-bottom: 0;
}
.headline-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #cfcfd8;
}
.headline-item.is-active .headline-num,
.headline-item:hover .headline-num {
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
}
.headline-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}
.headline-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
}
.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #e2e2ea;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.slider-dots button[aria-current="true"] {
  width: 28px;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
}

/* ------------------------------- KARTLAR --------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
  margin: 34px 0;
}
.grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Kartlar: başlıq uzunluğundan asılı olmayaraq tarix və "OXU" düyməsi
   eyni sırada qalır (başlıq blokU boşluğu udur). */
.grid > .card {
  height: 100%;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f4f4f8;
  box-shadow: var(--shadow-card);
  flex: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-title {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Qalan boşluğu udur — beləliklə aşağıdakı meta və düymə hizalanır. */
  flex: 1 1 auto;
}
.card-title a:hover {
  color: var(--pink);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  flex: none;
}
.meta-arrow {
  color: var(--pink);
  flex: none;
}
.btn-read {
  align-self: flex-start;
  margin-top: 14px;
  flex: none;
  display: inline-block;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(244, 24, 123, 0.25);
}
.btn-read:hover {
  filter: brightness(1.06);
}

.red {
  color: var(--pink);
}

.status-badge {
  display: inline-block;
  background: linear-gradient(92deg, #e2124f, var(--pink));
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 8px;
  vertical-align: middle;
  animation: soft-blink 2.4s ease-in-out infinite;
}
@keyframes soft-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------ BÖLMƏ BAŞLIĞI ---------------------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 4px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  padding-left: 14px;
  border-left: 5px solid var(--pink);
  line-height: 1.2;
}
.section-head a {
  font-size: 12px;
  font-weight: 800;
  color: var(--pink);
  text-transform: uppercase;
}

/* -------------------------------- LAYOUT --------------------------------- */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  margin: 26px 0;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.widget h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-left: 10px;
  border-left: 4px solid var(--pink);
}
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.mini-item:last-child {
  border-bottom: 0;
}
.mini-item img {
  width: 78px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.mini-item h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.mini-item time {
  font-size: 12px;
  color: var(--muted);
}
.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-links a {
  font-size: 12px;
  font-weight: 700;
  background: var(--pink-soft);
  color: #b5155c;
  padding: 7px 12px;
  border-radius: 999px;
}
.cat-links a:hover {
  background: var(--pink);
  color: #fff;
}

.ad-slot {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

/* ------------------------------- SINGLE ---------------------------------- */
.breadcrumbs {
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a:hover {
  color: var(--pink);
}

.article-head h1 {
  font-size: 34px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #45454f;
  font-weight: 500;
  margin: 0 0 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cat-pill {
  display: inline-block;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 6px;
  text-transform: uppercase;
}
.article-figure {
  margin: 20px 0 8px;
}
.article-figure img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-figure figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.article-body {
  font-size: 17.5px;
  line-height: 1.78;
  color: #24242b;
}
.article-body p {
  margin: 0 0 18px;
}
.article-body h2 {
  font-size: 23px;
  margin: 28px 0 12px;
}
.article-body a {
  color: var(--pink);
  text-decoration: underline;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin: 22px 0;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.source-line {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--pink);
  padding-left: 12px;
  margin: 18px 0;
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.share span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share a,
.share button {
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #2a2a31;
  cursor: pointer;
  font-family: inherit;
}
.share a:hover,
.share button:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.tag-list a {
  font-size: 12px;
  font-weight: 600;
  background: #f5f5f8;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ----------------------------- PAGINATION -------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 44px 0 28px;
  font-size: 13px;
  color: #4a4a55;
  font-weight: 600;
}
.pagination a {
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(244, 24, 123, 0.22);
}

/* ------------------------------- FOOTER ---------------------------------- */
.site-footer {
  margin-top: 50px;
  background: linear-gradient(180deg, #fff, #fff5f9);
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 34px;
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: #4b4b56;
}
.footer-grid a:hover {
  color: var(--pink);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #6c6c78;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(244, 24, 123, 0.35);
  z-index: 45;
  display: grid;
  place-items: center;
}

/* --------------------------------- 404 ----------------------------------- */
.error-hero {
  text-align: center;
  padding: 56px 0 20px;
}
.error-hero .code {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ------------------------------ RESPONSIVE ------------------------------- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 13px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .with-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .headline {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-nav,
  .search-toggle {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-inner {
    height: 64px;
    justify-content: space-between;
  }
  .article-head h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .card-title {
    font-size: 18px;
  }
  .slide-caption h2 {
    font-size: 17px;
  }
  .slide-caption {
    padding: 40px 14px 14px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand {
    font-size: 25px;
  }
  .article-body {
    font-size: 16.5px;
  }
}

/* ==========================================================================
   HEADER / MENYU SƏRTLƏŞDİRMƏSİ
   Alt-menyular açılan (dropdown) kimi işləsin, header heç vaxt iki sətrə
   düşməsin. Plugin və ya köhnə tema CSS-i üstələməsin deyə specificity
   yüksəldilib.
   ========================================================================== */

body .site-header .header-inner {
  flex-wrap: nowrap !important;
  min-height: 74px;
}

body .site-header .main-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: clamp(9px, 1.15vw, 18px) !important;
  min-width: 0;
  flex: 1 1 auto;
}

body .site-header .main-nav li {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  float: none !important;
}

body .site-header .main-nav > a,
body .site-header .main-nav li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(11px, 0.85vw, 13px) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2a2a31;
  white-space: nowrap !important;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  line-height: 1.2;
}

/* Alt menyusu olan bənddə ox işarəsi (dizayndakı kimi) */
body .site-header .main-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
}

/* Açılan menyu — normal halda TAM gizli */
body .site-header .main-nav .sub-menu,
body .site-header .main-nav ul ul {
  position: absolute !important;
  top: 100% !important;
  left: 0;
  display: block !important;
  visibility: hidden !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 8px 0 !important;
  margin: 0;
  min-width: 200px;
  z-index: 70;
}

body .site-header .main-nav li:hover > .sub-menu,
body .site-header .main-nav li:focus-within > .sub-menu {
  visibility: visible !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body .site-header .main-nav .sub-menu li {
  display: block !important;
  width: 100%;
}

body .site-header .main-nav .sub-menu a {
  display: block !important;
  width: 100%;
  padding: 9px 16px !important;
  font-size: 12.5px !important;
  border-bottom: 0 !important;
  white-space: nowrap;
}

body .site-header .main-nav .sub-menu a:hover {
  background: var(--pink-soft);
  color: var(--pink);
}

/* İkinci səviyyə açılan menyu yana açılsın */
body .site-header .main-nav .sub-menu .sub-menu {
  top: 0 !important;
  left: 100%;
}

/* Mobil menyuda alt bəndlər sadə siyahı kimi */
body .mobile-nav .sub-menu {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
}
body .mobile-nav .sub-menu a {
  padding-left: 18px !important;
  text-transform: none;
  font-weight: 600;
}
body .mobile-nav .menu-item-has-children > a::after {
  content: none !important;
}

/* Çox bəndli menyularda header yığcamlaşsın */
@media (max-width: 1180px) {
  body .site-header .main-nav {
    gap: 9px !important;
  }
  body .site-header .main-nav li > a {
    font-size: 11px !important;
  }
  body .site-header .btn-ig {
    padding: 10px 13px;
    font-size: 11px;
  }
}

/* ==========================================================================
   MANŞET VƏ SON DƏQİQƏ LENTİ — DİZAYNA UYĞUNLUQ QORUMASI
   ========================================================================== */

/* Lent: dizayndakı ağ, yumru kart görünüşü (tam enli qara zolaq deyil) */
body .ticker {
  display: flex !important;
  align-items: stretch;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin: 16px 0 6px !important;
}
body .ticker-label {
  background: linear-gradient(92deg, var(--pink), var(--pink-2)) !important;
  color: #fff !important;
}
body .ticker-item a {
  color: var(--ink);
}
body .ticker-item a:hover {
  color: var(--pink);
}

/* Manşet: solda slayder, sağda üstünə minən ağ kart */
body .headline {
  display: grid !important;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr) !important;
  align-items: start;
  margin: 22px 0 8px;
}
body .headline .headline-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 8px 20px;
  margin-left: -34px;
  margin-top: 22px;
  max-height: none !important;
  overflow: visible !important;
}
body .headline .headline-item {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 14px;
  align-items: start;
}
body .headline .headline-item h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}
body .headline .headline-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Slayder oxları — dizayndakı ağ dairə + çəhrayı ox */
body .slider-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--pink) !important;
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
}

/* Nöqtələr slayderin altında, aktiv olan uzun çəhrayı həb */
body .slider-dots {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
}
body .slider-dots button[aria-current="true"] {
  width: 28px !important;
  background: linear-gradient(92deg, var(--pink), var(--pink-2)) !important;
}

@media (max-width: 900px) {
  body .headline {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body .headline .headline-list {
    margin-left: 0;
    margin-top: 16px;
  }
}

/* Slayd başlığı — həmişə ağ mətn + tünd qradiyent (oxunaqlılıq) */
body .slide-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)) !important;
  color: #fff !important;
  padding: 60px 22px 20px;
}
body .slide-caption h2,
body .slide-caption h2 a {
  color: #fff !important;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.28;
  margin: 6px 0 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
body .slide-caption .red {
  color: #ff8ab8 !important;
}

/* Kart şəbəkəsi — 3 sütun, düymələr eyni sırada */
body .grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
  align-items: stretch;
}
body .grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body .grid > .card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
body .grid > .card .card-title {
  flex: 1 1 auto !important;
}
body .grid > .card .btn-read {
  align-self: flex-start;
  margin-top: 14px;
  flex: none;
}
@media (max-width: 900px) {
  body .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body .grid,
  body .grid.grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   YÜKLƏMƏ BANNERİ — ana səhifədə WordPress temasını yüklə bölməsi
   ========================================================================== */
.download-banner {
  margin: 40px 0 10px;
  background: linear-gradient(135deg, #fff5f9 0%, #ffe3ef 30%, #fff 70%, #fef0f7 100%);
  border: 2px solid var(--pink-soft);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.download-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(244, 24, 123, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 28px 32px;
  position: relative;
  z-index: 1;
}
.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #fff;
  flex: none;
  box-shadow: 0 8px 24px rgba(244, 24, 123, 0.25);
}
.download-text {
  flex: 1 1 300px;
  min-width: 0;
}
.download-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.download-text p {
  margin: 0;
  font-size: 14px;
  color: #55555f;
  line-height: 1.55;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(92deg, var(--pink), var(--pink-2));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(244, 24, 123, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 24, 123, 0.4);
}
.btn-download-alt {
  background: #fff;
  color: var(--pink);
  border: 2px solid var(--pink);
  box-shadow: 0 4px 14px rgba(244, 24, 123, 0.12);
}
.btn-download-alt:hover {
  background: var(--pink-soft);
  box-shadow: 0 8px 20px rgba(244, 24, 123, 0.2);
}
.download-details {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  padding-top: 4px;
}
.download-details:hover {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .download-inner {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }
  .download-buttons {
    justify-content: center;
  }
  .btn-download {
    padding: 12px 18px;
    font-size: 11.5px;
  }
}

/* ========================= WORDPRESS NÜVƏ SİNİFLƏRİ ====================== */
.alignnone { margin: 12px 0; }
.aligncenter { display: block; margin: 18px auto; }
.alignleft { float: left; margin: 6px 22px 14px 0; }
.alignright { float: right; margin: 6px 0 14px 22px; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.sticky .card-title::before { content: "📌 "; }
.article-body ul,
.article-body ol { margin: 0 0 18px 22px; }
.article-body blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--pink);
  background: var(--pink-soft); border-radius: 0 10px 10px 0; font-size: 17px;
}
.article-body img { height: auto; border-radius: 12px; }
.article-body iframe { max-width: 100%; border-radius: 12px; }

/* Şərhlər */
.comments-area { margin: 34px 0; }
.comments-area h2, .comment-reply-title {
  font-size: 18px; font-weight: 800; text-transform: uppercase;
  padding-left: 12px; border-left: 4px solid var(--pink); margin: 0 0 18px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.comment-list .children { list-style: none; margin: 0 0 0 26px; padding: 0; }
.comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font: inherit; background: #fafafc; margin-top: 6px;
}
.comment-form .submit {
  background: linear-gradient(92deg, var(--pink), var(--pink-2)); color: #fff;
  border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 800;
  text-transform: uppercase; font-size: 12px; cursor: pointer;
}

/* Widget-lər */
.widget ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget ul li:last-child { border-bottom: 0; }
.widget select, .widget input[type="search"] {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit;
}

/* Sayt loqosu */
.custom-logo { max-height: 46px; width: auto; }

/* Səhifələmə (WordPress paginate_links) */
.pagination .page-numbers {
  display: inline-block; padding: 9px 15px; border-radius: 8px; background: #f5f5f8;
  color: #3a3a44; font-weight: 700; font-size: 13px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: linear-gradient(92deg, var(--pink), var(--pink-2)); color: #fff;
}
.pagination .page-numbers.dots { background: none; }

/* ===================== WP MENYU / KÖMƏKÇİ DÜZƏLİŞLƏR ==================== */
.main-nav ul, .main-nav li, .mobile-nav ul, .mobile-nav li,
.footer-grid ul li { list-style: none; margin: 0; padding: 0; }
.main-nav li { display: inline-flex; align-items: center; }
.main-nav .sub-menu {
  position: absolute; top: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-card); padding: 8px 0;
  min-width: 190px; display: none; z-index: 60;
}
.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 9px 16px; border: 0; font-size: 12.5px; }
.mobile-nav li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 700; text-transform: uppercase; }
.mobile-nav .sub-menu a { padding-left: 18px; text-transform: none; font-weight: 600; }
.slider-col { min-width: 0; }
.thumb-placeholder {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #f7f7fa, #ffeef5);
}
.only-mobile { display: none; }
@media (max-width: 700px) { .only-mobile { display: flex; } }
.site-header.not-sticky { position: static; }
.author-avatar { border-radius: 50%; }
