/*
Theme Name: Content Hub - رواد المحتوى
Theme URI: https://fastlightgames.com
Author: 3laaelshekh
Author URI: https://fastlightgames.com
Description: قالب ووردبريس كامل ومخصص ومصمم لموقع عربي (RTL) عن الألعاب والتطبيقات والأخبار التقنية بدون استخدام أي Page Builder أو إضافات خارجية.
Version: 1.0.0
Text Domain: content-hub
Tags: rtl-language-support, custom-colors, custom-menu, featured-images, theme-options, translation-ready, e-commerce, gaming
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-blue: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --dark-hero: #0c1222;
  --dark-footer: #080d1a;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --body-bg: #f8fafc;
  --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  --border-radius: 18px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Header & Nav Matching React Preview */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 20px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: #0f172a;
  text-decoration: none;
}

.site-logo .logo-badge {
  background: linear-gradient(135deg, #f59e0b, #f43f5e, #4f46e5);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.main-navigation a {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.main-navigation li.active a,
.main-navigation a:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.join-header-btn {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.join-header-btn:hover {
  background-color: var(--primary-hover);
}

.search-box {
  position: relative;
  width: 220px;
}

.search-box input {
  width: 100%;
  padding: 8px 38px 8px 14px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary-blue);
  background-color: #ffffff;
}

.search-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  color: #94a3b8;
}

/* Explore Categories Section */
.explore-cats-section {
  padding: 40px 0 32px;
}

.explore-cats-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.explore-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.explore-cats-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.explore-cats-header h2 .highlight-blue {
  color: var(--primary-blue);
}

.explore-cats-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.explore-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-box:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #eff6ff;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.cat-box h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cat-count {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

@media (max-width: 700px) {
  .explore-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-cats-header h2 { font-size: 1.3rem; }
}

/* Home Section Layout */
.home-section {
  margin-bottom: 48px;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.title-with-squiggly {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-squiggly h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.view-all-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.2s;
  text-decoration: none;
}

.view-all-pill:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
}

/* Dense Icon Grid (6 Columns matching React preview) */
.dense-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .dense-icon-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .dense-icon-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.icon-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.25s ease;
  text-decoration: none;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.icon-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #0f172a;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.icon-thumb img,
.icon-thumb .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.icon-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  height: 2.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.icon-card:hover .icon-title {
  color: var(--primary-blue);
}

/* News Section Cards Grid (3 Columns) */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto 56px auto;
  padding: 0 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-tag {
  color: #f97316;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}

.section-header p {
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 4px;
  font-weight: 500;
}

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

@media (max-width: 992px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.news-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.news-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  background-color: #0f172a;
  overflow: hidden;
}

.news-thumb img,
.news-thumb .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.news-date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.news-cat-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.news-link {
  color: var(--primary-blue);
  font-weight: 800;
}

/* Single Post Page Specs Grid & Circular Avatar */
.game-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  margin: 0 auto 20px auto;
  background-color: #0f172a;
}

.game-avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.telegram-channel-btn {
  background-color: #0284c7;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 10px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: background 0.2s;
}

.telegram-channel-btn:hover {
  background-color: #0369a1;
}

.game-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.spec-box {
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spec-box.spec-dev { background-color: #fff7ed; border: 1px solid #fde68a; }
.spec-box.spec-version { background-color: #faf5ff; border: 1px solid #e9d5ff; }
.spec-box.spec-format { background-color: #fff1f2; border: 1px solid #fecdd3; }
.spec-box.spec-update { background-color: #ecfdf5; border: 1px solid #a7f3d0; }

.spec-label { font-size: 0.78rem; font-weight: 700; color: #64748b; }
.spec-value { font-weight: 900; font-size: 0.95rem; color: #0f172a; }

/* Suggestions Grid (2 Columns) */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

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

.suggestion-pill {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}

.suggestion-pill:hover {
  background: #e0f2fe;
  color: #0284c7;
}

/* Download Box with Timer */
.download-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.timer-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 20px;
  max-width: 360px;
  margin: 0 auto 20px auto;
}

.timer-count {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin: 4px 0;
}

.download-link-btn {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  background-color: var(--accent-orange);
  color: #ffffff !important;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-link-btn:hover {
  background-color: var(--accent-orange-hover);
}

/* Related Items Cards Grid (4 Columns) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 992px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.related-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  text-decoration: none;
  transition: all 0.25s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.related-thumb {
  position: relative;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #0f172a;
}

.related-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.card-download-btn {
  width: 100%;
  padding: 8px 12px;
  background: var(--accent-orange);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 9999px;
  text-align: center;
  display: block;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.card-download-btn:hover {
  background: var(--accent-orange-hover);
}

/* Footer Styles Matching Footer.tsx */
.site-footer {
  background-color: var(--dark-footer);
  color: #94a3b8;
  padding: 32px 24px 24px 24px;
  margin-top: 32px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .header-container { flex-direction: column; align-items: stretch; }
  .main-navigation ul { overflow-x: auto; white-space: nowrap; }
  .game-specs-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid #1e293b;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

/* ============================================
   تظبيط تناسق صفوف الهيدر على الموبايل
   انسخ الكود ده وحطه في آخر ملف style.css
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    gap: 10px;
  }

  /* صف المنيو (التطبيقات / الألعاب / الرئيسية) ياخد العرض بالكامل */
  .main-navigation {
    width: 100%;
  }

  .main-navigation ul {
    width: 100%;
    justify-content: space-between;
  }

  .main-navigation a {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
  }

  /* صف زرار الانضمام + البحث ياخد نفس العرض ويتوزع بنفس الطريقة */
  .header-right-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .join-header-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
/* Boxed News Section */
.news-boxed-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 40px 24px;
  margin-top: 48px;
}

.news-boxed-header {
  text-align: center;
  margin-bottom: 24px;
}

.news-boxed-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
}

.header-underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 9999px;
  margin: 0 auto 16px;
}

.news-boxed-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Filter Tabs */
.news-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-tab {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.filter-tab.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

/* Cards Grid */
.news-grid-boxed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card-boxed {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card-boxed:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.news-thumb-boxed {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.news-thumb-boxed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cat-badge-boxed {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
}

.news-body-boxed {
  padding: 16px;
}

.news-body-boxed h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 8px;
  height: 2.9rem;
  overflow: hidden;
}

.news-body-boxed p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  height: 2.7rem;
  overflow: hidden;
}

.news-footer-boxed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.read-more-btn-boxed {
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
}

.news-date-boxed {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.view-all-wrap {
  text-align: center;
  margin-top: 28px;
}

.view-all-btn-boxed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
}

.view-all-btn-boxed:hover {
  background: var(--primary-hover);
}

@media (max-width: 900px) {
  .news-grid-boxed { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .news-grid-boxed { grid-template-columns: 1fr; }
}
/* Article Content - Clean Style */
.entry-content {
  font-size: 1rem;
  line-height: 2;
  color: #334155;
}

.entry-content p {
  margin-bottom: 22px;
}

.entry-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.entry-content strong,
.entry-content b {
  color: var(--text-main);
  font-weight: 800;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 22px;
  padding-right: 22px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

.entry-content a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .entry-content { font-size: 0.95rem; }
  .entry-content h2 { font-size: 1.2rem; }
  .entry-content h3 { font-size: 1.05rem; }
}

/* Footer Columns as Cards */
.footer-col-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
}

.footer-social-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-social-icons a:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* New 3-Column Footer Design */
.footer-grid-new {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid #1e293b;
}

.footer-col-new h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-new h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 9999px;
}

.footer-col-new ul {
  list-style: none;
}

.footer-col-new li {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-col-new li a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-col-new li a:hover {
  color: #ffffff;
}

.footer-col-brand {
  border-right: 1px solid #1e293b;
  padding-right: 32px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand-header span:first-child {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.footer-brand-desc {
  color: #94a3b8;
  font-size: 0.83rem;
  line-height: 1.9;
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.join-footer-text {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.join-footer-text:hover {
  color: #ffffff;
}

.footer-top-solo {
  justify-content: flex-end;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .footer-grid-new {
    grid-template-columns: 1fr;
    text-align: right;
    gap: 28px;
  }

  .footer-col-brand {
    order: 1;
    border-right: none;
    padding-right: 0;
  }

  .footer-col-sections {
    order: 2;
  }

  .footer-col-important {
    order: 3;
  }

  .footer-brand-header {
    justify-content: flex-start;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   Hamburger Mobile Menu (New Header Design)
   ============================================ */

.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-search-toggle,
.mobile-hamburger-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
}

.mobile-hamburger-btn {
  flex-direction: column;
  gap: 4px;
}

.mobile-hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-hamburger-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-search-box {
  display: none;
  width: auto;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.mobile-search-box.open {
  max-height: 70px;
  padding: 0 20px 14px 20px;
}

.mobile-search-box input {
  width: 100%;
}

.mobile-nav-dropdown {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  transition: max-height 0.3s ease;
}

.mobile-nav-dropdown.open {
  max-height: 500px;
}

.mobile-nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 4px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
}

.mobile-nav-links li.active a {
  background: var(--primary-blue);
  color: #ffffff;
}

.mobile-join-btn {
  display: flex;
  justify-content: center;
  margin: 4px 20px 20px 20px;
}

@media (max-width: 900px) {
  .main-navigation,
  .header-right-actions {
    display: none;
  }

  .header-mobile-actions {
    display: flex;
  }

  .header-container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .mobile-search-box {
    display: block;
  }

  .mobile-nav-dropdown {
    display: block;
  }
}

/* ============================================
   Compact News Grid (New Homepage Design)
   ============================================ */

.news-compact-section {
  margin-top: 48px;
}

.news-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-compact-header h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
}

.news-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-card-compact {
  display: block;
  text-decoration: none;
}

.news-thumb-compact {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 150px;
  margin-bottom: 10px;
  background: #0f172a;
}

.news-thumb-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-cat-badge-compact {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.news-title-compact {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-compact:hover .news-title-compact {
  color: var(--primary-blue);
}

.news-meta-compact {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

@media (max-width: 900px) {
  .news-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .news-grid-compact { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-thumb-compact { height: 110px; }
}
