.fullstory-pdf {
  background-color: #111827;
  padding-bottom: 1.5rem;
}

.fullstory-header {
  /* margin: 2rem 0; */
  border-bottom: 0.2rem solid var(--color-border);
  position: relative;
  padding: 1rem 0;
}

.fullstory-pdf .fullstory-header {
  display: flex;
  flex-direction: row-reverse;
  gap: 1rem;
}


.fullstory-pdf .fullstory-header-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.fullstory-pdf .fullstory-header-image {
  width: 150px;
  aspect-ratio: 1 / 1;
  position: relative;
}

.fullstory-pdf .fullstory-header-image::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 0.2rem;
  bottom: -1.2rem;
  right: 0;
  background-color: var(--color-primary);
}


.fullstory-pdf .fullstory-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullstory-catgory {
  display: inline-block;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  /* padding-bottom: 1.2rem; */
  color: var(--color-primary);
}

.fullstory-catgory::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 0.2rem;
  bottom: -1.46rem;
  right: 0;
  background-color: var(--color-primary);
}

.fullstory-pdf .fullstory-header-content .fullstory-catgory {
  width: fit-content;
  display: inline;
}

.fullstory-pdf .fullstory-header-content .fullstory-catgory::before {
  content: "";
  bottom: -1.2rem;
}


.fullstory-header::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  bottom: -9px;
  right: -5px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.fullstory-title {
  font-family: 'Tajawal', sans-serif;
  color: var(--color-black);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.fullstory-pdf .fullstory-title {
  font-family: 'Tajawal', sans-serif;
  color: var(--color-text-light);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.fullstory-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 0;
  margin: 2rem 0;
}

.fullstory-content {
  position: relative;
  order: 1;
  grid-column: span 1;
}

.fullstory-sidebar {
  order: 2;
  grid-column: span 1;
}

.fullstory-sidebar-sticky {
  height: auto;
  position: sticky;
  top: 100px;
}

.fullstory-banner {
  width: min(400px, 100%);
  margin: 4rem auto 0;
}



/* ===== FONT SIZE CONTROLS ===== */

.share-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-pdf-btn {
  font-family: var(--font-body-secondary);
  appearance: none;
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  background-color: var(--color-text-light);
  padding: 8px 15px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.download-pdf-btn::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 3px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  border-radius: 25px;
}

.download-pdf-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.download-pdf-btn i {
  font-size: 16px;
}

.font-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 10px;
}

.font-size-controls::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 2px;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  border-radius: 25px;
  opacity: .8;
}

.fs-current {
  font-size: 0.95rem;
  font-family: var(--font-body-secondary);
  color: var(--color-text);
  margin: 0 4px 0 0;
}

.fs-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

.fs-btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 3px 8px rgba(253, 79, 90, 0.1);
}

.fs-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(253, 79, 90, 0.1);
}

.fs-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(253, 79, 90, 0.1);
}

.fs-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fs-increase::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.fs-decrease::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.fs-reset::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'%3E%3C/polyline%3E%3Cpolyline points='1 20 1 14 7 14'%3E%3C/polyline%3E%3Cpath d='M3.51 9a10 10 0 0 1 14.36-3.36L23 10'%3E%3C/path%3E%3Cpath d='M20.49 15a10 10 0 0 1-14.36 3.36L1 14'%3E%3C/path%3E%3C/svg%3E");
}


.floating-share {
  position: sticky;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

@media (max-width: 1540px) {
  .floating-share {
    display: none;
  }
}


.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.share-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.share-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.share-whatsapp {
  background: #25D366;
}

.share-telegram {
  background: #0088cc;
}

.share-facebook {
  background: #1877F2;
}

.share-x {
  background: #0f1419;
}

.share-email {
  background: #EA4335;
}

.share-copy {
  background: #6b7280;
}

.share-copy.copied {
  background: #10b981;
}

.share-whatsapp::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
}

.share-telegram::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'%3E%3C/path%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z'%3E%3C/path%3E%3C/svg%3E");
}

.share-facebook::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

.share-x::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 1200 1227' fill='%23ffffff'%3E%3Cpath d='M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z'/%3E%3C/svg%3E");
}

.share-email::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.share-copy::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
  .floating-share {
    top: 100px;
  }
}

@media (max-width: 768px) {
  .floating-share {
    display: none;
  }
}

.article-full-story-container {
  width: 100%;
  margin-bottom: 2rem;
}

.fullstory-article-content .floating-share {
  top: 120px;
  right: auto;
  align-self: flex-start;
  margin-right: -4rem;
}

.share-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.share-toggle {
appearance: none;
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  background-color: var(--color-text-light);
  padding: 8px 15px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.share-toggle::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 2px;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  border-radius: 25px;
}

.share-toggle__text {
  font-family: var(--font-body-secondary);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 500;
}

@media (max-width: 768px) {
  .share-toggle__text {
    display: none;
  }
}

.share-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.share-toggle__icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'%3E%3C/circle%3E%3Ccircle cx='6' cy='12' r='3'%3E%3C/circle%3E%3Ccircle cx='18' cy='19' r='3'%3E%3C/circle%3E%3Cpath d='M8.59 13.51l6.83 3.98'%3E%3C/path%3E%3Cpath d='M15.42 6.51L8.59 10.49'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.share-buttons {
  position: absolute;
  top: -100%;
  left: 0;
  transform: translateY(-50%);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;

}

.share-buttons.is-collapsed {
  display: none;
}

/* Responsive sizing inside inline share list */
.share-controls .share-btn {
  width: 40px;
  height: 40px;
}

/* Views meta pill, aligned with share toggle */
.views-meta {
  appearance: none;
  border: 2px solid var(--color-border);
  color: var(--color-text-primary);
  background-color: var(--color-text-light);
  padding: 8px 15px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.views-meta::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 3px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  border-radius: 25px;
}

.views-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.views-count {
  font-family: var(--font-body-secondary);
  font-size: clamp(0.85rem, 0.9vw, 0.9rem);
  color: var(--color-text);
  font-weight: 500;
}

@media (max-width: 576px) {

  .share-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 8px;
  }

  .share-controls .share-btn {
    width: 36px;
    height: 36px;
  }

  .views-meta {
    padding: 8px 10px;
    gap: 6px;
  }

  .views-count {
    font-size: 0.85rem;
    font-weight: 600;
  }
}

@media (min-width: 1536px) {
  .share-controls .share-toggle {
    display: none;
  }

  .share-buttons {
    display: none;
  }
}

.font-size-container {
  margin: 0.5rem auto;
  padding: 0.3rem 0;
  align-items: center;
  gap: 8px;
  position: relative;
}



/* ===== READ MORE SECTION ===== */
.fullstory-read-more {
  padding: 0;
}

.read-more-header {
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  border-bottom: 2px solid #e9ecef;
}

.read-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.read-more-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.read-more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.read-more-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f9fa;
}

.read-more-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.read-more-card:hover .read-more-image img {
  transform: scale(1.05);
}

.read-more-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  padding: 1.5rem;
  color: white;
  text-align: right;
  direction: rtl;
}

.read-more-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.read-more-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin: 0;
}

.read-more-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  text-decoration: none;
}

/* ===== ARTICLE CONTENT ===== */

.fullstory-article-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.fullstory-article-content .article-figure {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding-top: 0.5rem;
}

.fullstory-article-content .article-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-full-story {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  white-space: pre-line;
  font-weight: 500;
  margin-bottom: 0.5em;
}

.article-full-story p {
  white-space: pre-line;
  margin-bottom: 0.5em;
  line-height: 1.7;
  font-weight: 500;
}

.article-full-story strong {
  font-family: var(--font-body);
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ===== TOP NEWS SIDEBAR ===== */
.rightside-block {
  margin-bottom: 2rem;
}

.header_container {
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--color-border);
  position: relative;
}

.header_container .header-title {
  font-size: clamp(1.25rem, 1vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
  display: inline-block;
  padding: 0 0 10px 0;
  text-align: right;
  direction: rtl;
  position: relative;
}

.fullstory-pdf .header_container .header-title {
  font-size: clamp(1.25rem, 1vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-light);
  display: inline-block;
  padding: 0 0 10px 0;
  text-align: right;
  direction: rtl;
  position: relative;
}


.header_container .header-title::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 2px;
  bottom: -2px;
  right: 0;
  background-color: var(--color-black);
}

.fullstory-pdf .header_container .header-title::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 2px;
  bottom: -2px;
  right: 0;
  background-color: var(--color-primary);
}

.header_container .header-title::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  bottom: -7px;
  right: -5px;
  background-color: var(--color-black);
  border-radius: 50%;
}

.fullstory-pdf .header_container .header-title::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  bottom: -7px;
  right: -5px;
  background-color: var(--color-primary);
  border-radius: 50%;
}


.topnews-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  position: relative;
}

.topnews-item:last-child {
  border-bottom: none;
}

.topnews-item:hover {
  background-color: rgba(253, 79, 90, 0.1);
}

.topnews-item:hover .topnews-title {
  color: var(--color-primary);
}

.topnews-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  margin-left: 1rem;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnews-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topnews-content {
  flex: 1;
  min-width: 0;
  text-align: right;
  direction: rtl;
}


.topnews-title {
  margin-bottom: 0.5rem;
  font-size: clamp(0.5rem, 1.5vw, 1rem);
  line-height: 1.4;
  color: var(--color-black);
  font-weight: 700;
  transition: color 0.2s ease;
}

/* ===== RELATED NEWS CARDS ===== */

.relnews {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.relnews .related-card a {
  display: block;
  position: relative;
  height: 250px;
  overflow: hidden;
  direction: rtl;
}

.related-card__img,
.related-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.related-card__img img {
  object-fit: cover;
  transform: scale(1.02);
}

.relnews .related-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

.related-card__overlay {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 16px;
  color: #fff;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  z-index: 2;
}

.related-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: clamp(0.5rem, 1vw, 1rem);
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.related-card__category {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(0.25rem, 0.4vw, 0.5rem) clamp(0.5rem, 0.8vw, 0.75rem);
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===== ARTICLE META (date / edited) ===== */

.container-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  margin-bottom: 0.3rem;
}

.date-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .date-meta {
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .meta-separator {
    display: none;
  }
}

.date-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.date-meta .meta-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.date-meta .meta-label {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-family: var(--font-body-secondary);
  font-weight: 500;
}

.date-meta .meta-separator {
  width: 2px;
  height: 18px;
  background: var(--color-border);
  margin: 0 0.1rem;
}

.date-meta .meta-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  filter: grayscale(0.1);
}

.date-meta .meta-edited .meta-icon {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'%3E%3C/path%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

@media (max-width: 768px) {
  .article-meta {
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
  }

  .article-meta .meta-value {
    font-size: 0.9rem;
  }

  .article-meta .meta-label {
    font-size: 0.8rem;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
  .fullstory-section {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 1.25rem;
  }

  .fullstory-content {
    grid-column: span 4;
  }

  .fullstory-sidebar {
    grid-column: span 2;
  }
}

/* Extra large screens (1280px and up) */
@media (min-width: 1280px) {
  .fullstory-section {
    column-gap: 2.5rem;
  }
}

/* Medium screens (max-width: 1023px) */
@media (max-width: 1023px) {
  .fullstory-banner {
    width: 100%;
    max-width: 400px;
  }


  .share-actions {
    align-self: center;
  }


  .read-more-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .read-more-image {
    height: 200px;
  }

  .read-more-card-title {
    font-size: 1rem;
  }

  .topnews-item {
    padding: 0.75rem 1rem;
  }

  .topnews-image {
    width: 60px;
    height: 45px;
    margin-left: 0.75rem;
  }

  .topnews-title {
    font-size: 0.9rem;
  }

  .relnews .related-card a {
    height: 240px;
  }

  .related-card__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .fullstory-section {
    gap: 1.5rem 0;
  }

  .fullstory-sidebar-sticky {
    position: static;
  }

  .fullstory-banner {
    margin-top: 2rem;
  }

  /* Use taller ratio on small screens for readability */
  .fullstory-article-content .article-figure {
    aspect-ratio: 4 / 3;
  }


  .read-more-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .read-more-image {
    height: 180px;
  }

  .read-more-card-title {
    font-size: 0.95rem;
  }

  .read-more-header {
    margin-bottom: 1.5rem;
  }

  .topnews_block .title {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .topnews-item {
    padding: 0.5rem 1rem;
  }

  .topnews-image {
    width: 50px;
    height: 40px;
    margin-left: 0.5rem;
  }

  .topnews-title {
    font-size: 0.85rem;
  }

  .topnews-meta {
    font-size: 0.75rem;
  }

  .relnews {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .relnews .related-card a {
    height: 200px;
  }

  .related-card__title {
    font-size: 1.2rem;
  }
}

/* ===== CARTOON/CARICATURE STYLE ===== */

/* Cartoon Card Container */
.cartoon-card {
  position: relative;
  transition: all 0.3s ease;
}

.cartoon-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.cartoon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: contrast(1.1) saturate(1.2);
}

.cartoon-card:hover .cartoon-image,
.category-grid>article.cartoon-card:first-child:hover .cartoon-image {
  transform: scale(1.1);
}

.cartoon-content {
  padding: 9px 0;
  position: relative;
}

.cartoon-title {
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.4;
  font-weight: bold;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.fullstory-pdf .cartoon-title {
  font-size: clamp(1rem, 1vw, 1.2rem);
  line-height: 1.4;
  font-weight: bold;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}



/* ===== CATEGORY GRID (first item full-width) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}


.category-grid>article.cartoon-card .cartoon-short-story {
  display: none;
}

@media (max-width: 768px) {
  .category-grid>article.cartoon-card:first-child .cartoon-short-story {
    display: -webkit-box;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.category-grid>article.cartoon-card:first-child {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: stretch;
  background: transparent;
  border-radius: 0;
  border-bottom: var(--color-border) solid 1px;
  padding: 1rem 0;
}


.category-grid>article.cartoon-card:first-child .cartoon-short-story {
  font-family: var(--font-body-secondary);
  font-size: 1.1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.category-grid>article.cartoon-card:first-child .cartoon-image-container {
  flex: min-content;
  overflow: hidden;
  height: auto;
}

.category-grid>article.cartoon-card:first-child .cartoon-image {
  transform: none;
}

.category-grid>article.cartoon-card:first-child .cartoon-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
  text-align: right;
}

.category-grid>article.cartoon-card:first-child .cartoon-category {
  width: fit-content;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.category-grid>article.cartoon-card:first-child .cartoon-title {
  margin: 0 0 1rem 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.35;
  font-weight: 800;
}

.category-grid>article.cartoon-card:first-child .cartoon-link {
  color: #111827;
}


.category-grid>article.cartoon-card:first-child .show-date {
  color: #6b7280;
  font-size: 0.95rem;
  background: transparent;
  padding: 0;
  border: 0;
}


.category-grid>article.cartoon-card:first-child .cartoon-title {
  font-size: 1.6rem;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .category-grid>article.cartoon-card:first-child {
    flex-direction: column;
    gap: 1rem;
  }

  .category-grid>article.cartoon-card:first-child .cartoon-image-container {
    flex: auto;
    height: 350px;
  }

  .category-grid>article.cartoon-card:first-child .cartoon-content {
    padding: 0.25rem 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Responsive Cartoon Styles */
@media (max-width: 768px) {
  .category-grid>article.cartoon-card:first-child .cartoon-image-container {
    flex: auto;
    height: 300px;
  }

}


.pdf-container {
  height: 100vh;
  width: 100%;
  overflow: auto;
}

/* --- Themes Variables & Base --- */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: rgba(26, 26, 26, 0.95);
  --bg-tertiary: rgba(45, 55, 72, 0.5);
  --bg-accent: rgba(59, 130, 246, 0.1);
  --bg-accent-hover: rgba(59, 130, 246, 0.2);
  --border-primary: rgba(107, 114, 128, 0.3);
  --border-secondary: rgba(107, 114, 128, 0.2);
  --border-accent: rgba(59, 130, 246, 0.3);
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-accent: #3b82f6;
  --text-error: #ef4444;
}

/* Theme Classes */
.theme-default { color-scheme: dark; }
.theme-dark { --bg-primary: #0f0f0f; --bg-secondary: rgba(15, 15, 15, 0.95); }
.theme-light { 
  --bg-primary: #ffffff; --bg-secondary: rgba(255, 255, 255, 0.95); 
  --bg-tertiary: rgba(240, 240, 240, 0.8); --text-primary: #1a1a1a; 
  color-scheme: light; 
}


#flipbookContainer { 
    height: 100vh; /* h-screen */
    width: 100%; /* w-full */
    overflow: hidden; 
    position: relative; 
    z-index: 1; 
}

/* --- Info Box (Tailwind Replacements) --- */
.info-box-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 50;
}

.info-box {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #4B3C3C;
    color: #EAEAEA;
    border: 1px solid #8B6F6F;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.info-box:hover {
    background-color: #3E3232;
    color: #ffffff;
}

.info-icon {
    color: #60a5fa; /* text-blue-400 */
}

.info-text-hidden {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #d1d5db; /* text-gray-300 */
}
