@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../font/cairo-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../font/cairo-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
:root {
  --font-main: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-primary: #1b365d;
  --color-primary-dark: #122540;
  --color-primary-light: #284b7e;
  --color-accent: #c4820a;
  --color-accent-hover: #a16803;
  --bg-page: #fbfbf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f4f6;
  --bg-muted: #e9ecef;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --text-inverse: #ffffff;
  --border-color: #e5e7eb;
  --border-subtle: #f0f1f3;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --max-width: 1200px;
  --reading-width: 980px;
  --header-height: 72px;
  --button-bg-color: var(--color-primary);
  --button-text-color: var(--text-inverse);
  --title-font: var(--font-main);
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  background-color: var(--bg-page);
  text-rendering: optimizeLegibility;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover,
a:focus {
  text-decoration: none !important;
}
ul, ol {
  list-style-position: inside;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.site-main {
  flex: 1 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 992px) {
  .site-header {
    top: calc(-1 * var(--header-height)); /* أو اكتب مباشرة top: -72px; حسب ارتفاع الهيدر لديك */
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}
.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
  display: block;
  padding-right: 48px;
  line-height: 1.2;
  user-select: none;
}
.header-search {
  flex: 0 0 auto;
  width: 260px;
  max-width: 280px;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  height: 38px;
  padding: 0 2.3rem 0 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  font-size: 0.88rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.search-input:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.12);
}
.search-button {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.search-button:hover {
  color: var(--color-primary);
}
.desktop-nav {
  display: none !important;
}
.categories-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}
.categories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-chip:hover {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}
.cat-chip.active {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}
.nav-toggle,
.mobile-menu-btn,
.mobile-drawer-overlay,
.mobile-drawer {
  display: none;
}
.mobile-menu-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-main);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mobile-menu-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-primary);
}
@media (max-width: 991px) {
  .header-inner {
    justify-content: space-between;
    width: 100%;
  }
  .header-search {
    display: none !important;
  }
  .desktop-nav {
    display: none !important;
  }
  .categories-bar {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    order: 10;
  }
  .brand-container {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  .brand-logo {
    order: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
    padding: 6px;
  }
  .brand-title {
    font-size: 1.25rem;
    line-height: 1.1;
  }
  .brand-tagline {
    order: 2;
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    padding-right: calc(34px + 0.5rem);
    margin-top: 2px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .nav-toggle:checked ~ .mobile-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
  .nav-toggle:checked ~ .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background-color: var(--bg-surface);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    overflow-y: auto;
    animation: slideInRTL 0.25s ease forwards;
  }
  @keyframes slideInRTL {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
  }
  .mobile-search-wrapper {
    flex: 1;
    margin-bottom: 0;
  }

  .mobile-search-wrapper .search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .mobile-search-wrapper .search-input {
    width: 100%;
    height: 38px;
    padding: 0 1rem 0 2.3rem;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    margin: 0 !important;
  }
  .mobile-search-wrapper .search-button {
    position: absolute;
    left: 8px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .mobile-drawer-close-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-drawer-close-btn:hover {
    background-color: var(--bg-subtle);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .mobile-drawer-close {
    display: none;
  }
  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .mobile-nav-list a {
    display: block;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
  }
  .mobile-nav-list a:hover {
    background-color: var(--bg-subtle);
    color: var(--color-primary);
  }
  .mobile-categories-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
  }
}
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background-color: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: var(--text-light);
  font-size: 0.82rem;
}
.ad-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}
.hero-section {
  background: linear-gradient(135deg, #1b365d 0%, #122540 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(196, 130, 10, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f6d365;
}
.stat-label {
  font-size: 0.82rem;
  color: #cbd5e1;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.85rem;
  right: 0;
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}
.view-all-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.view-all-link:hover {
  color: var(--color-accent-hover);
  text-decoration: none !important;
}
.stories-grid,
.topics-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .stories-grid,
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .stories-grid,
  .topics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .stories-grid,
  .topics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.story-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-subtle);
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.story-card:hover .card-thumb img {
  transform: scale(1.04);
}
.card-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(18, 37, 64, 0.92);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.65rem;
  color: var(--text-main);
  min-height: 2.9em;
}
.card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover {
  color: var(--color-primary);
}
.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
  max-height: 4.8em;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  margin-top: auto;
  flex-wrap: nowrap;
}
.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(27, 54, 93, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-read-btn:hover {
  background-color: var(--color-accent);
  color: #ffffff !important;
  box-shadow: 0 3px 6px rgba(217, 119, 6, 0.28);
  transform: translateY(-1px);
}
.card-read-btn .btn-arrow {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.card-read-btn:hover .btn-arrow {
  transform: translateX(-2px);
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}
.pagination-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.page-link,
.page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.2s ease;
}
.page-link:hover {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}
.page-current {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
  cursor: default;
}
.page-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.article-container {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .article-container {
    padding: 3rem 2.5rem;
  }
}
.breadcrumb-nav {
  margin-bottom: 1.25rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-light);
}
.breadcrumb-separator {
  color: var(--border-color);
}
.breadcrumb-item a:hover {
  color: var(--color-primary);
  text-decoration: none !important;
}
.breadcrumb-item.active {
  color: var(--text-muted);
  font-weight: 600;
}
.article-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}
.article-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-light);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.article-figure {
  margin: 1.5rem 0 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: var(--radius-md);
  box-shadow: none !important;
}
.article-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem;
  background-color: var(--bg-subtle);
}
.article-intro {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--text-main);
  background-color: #f8fafc;
  border-right: 4px solid var(--color-accent);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
}
.story-toc {
  display: block;
  margin: 2.25rem 0;
  clear: both;
  width: 100%;
}
.story-toc:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.toc-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.toc-details {
  width: 100%;
}
.toc-header,
.toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 700;
  color: var(--color-primary);
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}
.toc-summary::-webkit-details-marker {
  display: none;
}
.toc-header:hover,
.toc-summary:hover {
  background-color: #e2e8f0;
}
.toc-box.is-open .toc-header,
.toc-details[open] .toc-summary {
  border-bottom: 1px solid var(--border-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.toc-title {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.toc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: var(--color-primary);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.toc-chevron {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.25s ease;
}
.toc-box.is-open .toc-chevron,
.toc-details[open] .toc-chevron {
  transform: rotate(180deg);
}
.toc-body {
  display: none;
}
.toc-box.is-open .toc-body {
  display: block;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.5rem;
  margin: 0;
}
.toc-list li a {
  color: var(--text-main);
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
  border-bottom: none !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  cursor: pointer;
}
.toc-list li a:hover {
  color: var(--color-accent);
  border-bottom: none !important;
  text-decoration: none !important;
}
.toc-list .toc-sub {
  margin-right: 1.25rem;
  font-size: 0.9rem;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2d3748;
}
.article-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-subtle);
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.article-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.article-content blockquote {
  background-color: var(--bg-subtle);
  border-right: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.reader-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}
.reader-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-primary);
}
.reader-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}
.reader-info p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2.25rem auto;
  box-shadow: var(--shadow-sm);
  clear: both;
}
.article-content .article-figure {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.article-content .article-figure img {
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
}
.related-topics-section {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.related-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}
.related-stories,
.related-topics-section .stories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 1.25rem !important;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  min-height: 250px;
}
@media (min-width: 992px) {
  .related-stories,
  .related-topics-section .stories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
.ads-header:empty,
.ads-up-story:empty,
.ads-center-story:empty,
.ads-bottom-story:empty,
.ads-footer:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  border: none !important;
  overflow: hidden !important;
}
.ads-header,
.ads-footer {
  display: block;
  position: relative;
  width: 100%;
  margin: 1.75rem auto;
  text-align: center;
  clear: both;
}
.ads-up-story,
.ads-center-story,
.ads-bottom-story {
  display: block;
  position: relative;
  width: 100%;
  margin: 2.25rem auto;
  text-align: center;
  clear: both;
}
.static-page-box {
  max-width: 980px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.static-page-box h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.static-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-main);
}
.static-content h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.static-content p {
  margin-bottom: 1.25rem;
}
.notfound-box {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.notfound-code {
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.notfound-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.notfound-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
}
.search-page-box {
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0 3rem 0;
}
.search-page-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}
.search-page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}
.search-page-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.search-large-input {
  width: 100%;
  height: 52px;
  padding: 0 3.5rem 0 1.25rem;
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.search-large-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(27, 54, 93, 0.12);
}
.search-large-btn {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 38px;
  height: 38px;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-status {
  padding: 0px 0px 10px 0px;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
}
.site-footer {
  background-color: #122540;
  color: #e2e8f0;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 4px solid var(--color-accent);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3.5rem;
  margin-bottom: 3rem;
}
.footer-brand {
  max-width: 680px;
  flex: 1;
}
.footer-grid > div:last-child {
  flex-shrink: 0;
  min-width: 160px;
}
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
}
.footer-brand h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.4rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(-4px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 440px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem 1.25rem;
  z-index: 1000;
  display: none;
  animation: fadeUp 0.3s ease forwards;
  box-sizing: border-box;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-content {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.btn-cookie-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #ffffff !important;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  line-height: 1.4;
}
.btn-cookie-policy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  color: var(--color-primary) !important;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  line-height: 1.4;
}
.btn-cookie-accept:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}
.btn-cookie-policy:hover {
  background-color: #e2e8f0;
  border-color: var(--color-primary);
  color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 1rem;
  }
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.45rem;
  }
  .btn-cookie-accept,
  .btn-cookie-policy {
    width: 100%;
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
    text-align: center;
    justify-content: center;
  }
}
.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.contact-us {
  max-width: 680px;
  margin: 0 auto;
}
.contact-us .webp-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 2rem;
}
.contact-us .webp-wrapper > p {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.contact-form .form-group {
  margin-bottom: 1.25rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color) !important;
  background-color: var(--bg-subtle) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  color: var(--text-main) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none !important;
  background-color: var(--bg-surface) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.12) !important;
}
.contact-form .submit-btn {
  background-color: var(--color-primary) !important;
  color: var(--text-inverse) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-main) !important;
  padding: 0.85rem 3.5rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: none !important;
}
.contact-form .submit-btn:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 0.9 !important;
}
#form-response {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem !important;
  text-align: center;
  font-size: 1rem !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.35rem;
    line-height: 1.35;
  }
  .article-intro {
    font-size: 0.98rem;
    padding: 1rem 1.15rem;
    line-height: 1.7;
  }
  .article-content {
    font-size: 1rem;
    line-height: 1.8;
  }
  .article-content h2 {
    font-size: 1.2rem;
  }
  .article-content h3 {
    font-size: 1.1rem;
  }
  .article-content h4 {
    font-size: 1.02rem;
  }
}
