/* Post card styles and general card/content area */
.layout { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; gap: 24px; box-sizing: border-box; }
/* min-width:0 + explicit width so flex child (main) cannot overflow; images use 100% of this column */
.main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card {
  background: #F9F9F9;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  color: #1e293b;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.card h1 { font-family: var(--font-header); font-size: 2rem; color: var(--header-text); margin-bottom: 12px; font-weight: 700; }
.card h2 { font-family: var(--font-header); font-size: 1.35rem; color: var(--header-text); margin-bottom: 10px; }
.card .lead { font-family: var(--font-body); font-size: 1.1rem; color: #475569; margin-bottom: 16px; font-style: italic; }
.card p { font-family: var(--font-body); font-weight: 400; margin-bottom: 16px; }
.card ul, .card ol { margin-left: 24px; margin-bottom: 16px; }
.card li { margin-bottom: 8px; font-family: var(--font-body); }

@media (min-width: 769px) and (max-width: 1024px) {
  .layout { padding: 20px; gap: 20px; }
}

@media (max-width: 768px) {
  .layout { flex-direction: column; padding: 16px; }
}
.square-classic {
  list-style-type: square;
  padding-left: 1em;
  font-size: 1em;
}

.circle-classic {
  list-style-type: circle;
  padding-left: 1em;
  font-size: 1em;
}
.post-meta {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 1em;
}

/*news.css*/
/* Featured Section */
.featured-news {
  margin-top: 30px;
}

.featured-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.featured-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.featured-content {
  padding: 24px;
}

.category {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.category.small {
  font-size: 11px;
  padding: 3px 10px;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* News List */
.daily-news {
  margin-top: 30px;
}

.news-header {
  background: linear-gradient(90deg, #1e40af, #1e40af);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
}

.news-header p {
  color: white;
}

.daily-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 18px;
  transition: 0.3s ease;
}

.daily-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.daily-card h3 {
  margin-bottom: 10px;
  color:  #0f172a ;
}

.daily-card p {
  line-height: 1.6;
  color: #444;
}


.news-link:hover {
  text-decoration: underline;
}



/* Download Button */
.download-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;

  color:  #0f172a ;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.buttonDownload {
  display: inline-block;
  position: relative;
  padding: 12px 28px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-indent: 20px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid #64748b;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.buttonDownload:hover {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* Arrow Base */
.buttonDownload:before,
.buttonDownload:after {
  content: '';
  display: block;
  position: absolute;
  left: 18px;
  top: 50%;
}

/* Line */
.buttonDownload:before {
  width: 10px;
  height: 2px;
  border-style: solid;
  border-width: 0 2px 2px;
  border-color: #334155;
  transform: translateY(-50%);
}

/* Arrow */
.buttonDownload:after {
  width: 0;
  height: 0;
  margin-left: 3px;
  margin-top: -7px;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: transparent;
  border-top-color: inherit;
  animation: downloadArrow 1s linear infinite;
  animation-play-state: paused;
}

.buttonDownload:hover:before {
  border-color: #1d4ed8;
}

.buttonDownload:hover:after {
  border-top-color: #1d4ed8;
  animation-play-state: running;
}

@keyframes downloadArrow {
  0% {
    margin-top: -7px;
    opacity: 1;
  }

  0.001% {
    margin-top: -15px;
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    margin-top: 0;
    opacity: 0.4;
  }
}

/* Read Button — blue + gray, high contrast */
.buttonRead {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  border: 2px solid #3b82f6;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.buttonRead:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #f8fafc;
  border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}


/*irf form*/

.irf-container {
  font-size: 16px;
  margin: 15px 0;
}

.irf-container strong {
  color: #18233a;
}

.irf-url {
  color: #0f172a;
  text-decoration: underline;
  word-break: break-all;
  /* important for long URLs */
}

.irf-url:hover {
  color:  blue ;
}

/* Dynamic post content: link stacks, uploads, video */
.post-link-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 20px;
}

.post-link-stack .buttonRead,
.post-link-stack .buttonDownload {
  margin: 0;
}

.tc-btn.tc-btn--link {
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

/* Image blocks: stay within article width; no horizontal scroll; aspect-friendly scaling */
.post-image-block {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0;
}

.post-image-block__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--header-text, #0f172a);
}

.post-image-block__description {
  margin: 0 0 12px !important;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.post-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 12px 0 0;
  max-width: 100%;
  min-width: 0;
}

/* Grid cell: full column width; image inside scales down only if wider than cell */
.post-image-grid__item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Single legacy image: natural width if smaller than <main>; shrink if wider (height scales with width) */
.post-image-legacy {
  margin: 8px auto 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/*
 * Smaller than main: keep intrinsic size (width/height auto, max-width caps overflow).
 * Wider than main: browser scales width to 100% of figure; height auto = same aspect ratio.
 */
.post-content-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  box-sizing: border-box;
  vertical-align: middle;
  margin-inline: auto;
}

.post-image-grid__item .post-content-img {
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Inline / fragment images inside post body: never wider than main column; preserve aspect ratio */
main.main .card > img,
main.main article.card img:not(.post-content-img) {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

/* Ensure any posted image never overflows the content area, even with inline width styles */
main.main article.card img {
  max-width: 100% !important;
  height: auto !important;
}

/* Desktop/web view only: keep post images centered with balanced sizing */
@media (min-width: 769px) {
  main.main article.card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    height: auto !important;
  }

  /*
   * For very small source images on desktop, keep a mobile-friendly minimum width
   * while still respecting container width for oversized assets.
   */
  main.main article.card .post-content-img,
  main.main article.card > img,
  main.main article.card img:not(.post-content-img) {
    min-width: min(360px, 100%);
    width: auto !important;
  }
}

.post-image-grid__item figcaption,
.post-image-legacy figcaption {
  padding: 8px 10px;
  font-size: 13px;
  color: #64748b;
}

.post-table-block {
  margin: 16px 0 20px;
}

.post-table-block__title {
  margin: 0 0 8px;
}

.post-table-wrap {
  overflow-x: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

.post-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  border: 1px solid #d1d5db;
}

.post-data-table th,
.post-data-table td {
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.post-data-table th {
  background: #e5e7eb;
  font-weight: 600;
}

@media (max-width: 768px) {
  .post-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .post-data-table {
    min-width: 420px;
  }
  .post-data-table th,
  .post-data-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
}

.post-file-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 20px;
}

.post-audio-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}

.post-audio-item {
  width: 100%;
  max-width: 960px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
  box-sizing: border-box;
}

.post-audio-item__title {
  margin: 0 0 8px !important;
  font-weight: 600;
  color: #1e293b;
}

.post-audio-item__player {
  width: 100%;
  margin-bottom: 10px;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.tc-btn--outlined {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e40af;
  border: 1px solid #94a3b8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.tc-btn--outlined:hover {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

.tc-btn--file::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tc-btn--zip::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 6h-2.18c.11-.31.18-.65.18-1a2 2 0 0 0-2-2c-.34 0-.68.07-1 .18V4c0-1.1-.9-2-2-2s-2 .9-2 2v.18C12.68 4.07 12.34 4 12 4a2 2 0 0 0-2 2c0 .35.07.69.18 1H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 6h-2.18c.11-.31.18-.65.18-1a2 2 0 0 0-2-2c-.34 0-.68.07-1 .18V4c0-1.1-.9-2-2-2s-2 .9-2 2v.18C12.68 4.07 12.34 4 12 4a2 2 0 0 0-2 2c0 .35.07.69.18 1H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.post-video-block {
  margin: 16px 0 24px;
}

.post-video-block__iframe-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.post-video-block__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-video-block__video {
  display: block;
  width: 100%;
  max-width: 960px;
  max-height: 70vh;
  border-radius: 12px;
  background: #000;
}

.post-video-block__caption {
  margin-top: 10px !important;
  font-size: 14px;
  color: #64748b;
}

.tc-post-share {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #dbe2ea;
}

.tc-share__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #0f172a;
}

.tc-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tc-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tc-share__btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.tc-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0 4px;
  box-sizing: border-box;
}

.tc-share__btn--facebook .tc-share__icon { background: #1877f2; }
.tc-share__btn--whatsapp .tc-share__icon { background: #25d366; }
.tc-share__btn--x .tc-share__icon { background: #111827; }
.tc-share__btn--channel .tc-share__icon { background: #128c7e; }
.tc-share__btn--more .tc-share__icon { background: #7c3aed; }
.tc-share__btn--copy .tc-share__icon { background: #475569; }

.tc-share__status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #0f766e;
  font-size: 0.9rem;
}

.site-map-top-link {
  margin: 0 0 10px !important;
  text-align: right;
}

.site-map-top-link a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.site-map-top-link a:hover {
  text-decoration: underline;
}

.tc-sitemap-group {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.tc-sitemap-title {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.tc-sitemap-title a {
  color: #1d4ed8;
  text-decoration: none;
}

.tc-sitemap-title a:hover {
  text-decoration: underline;
}

.tc-sitemap-desc {
  margin: 0 0 10px !important;
  color: #475569;
}

.tc-sitemap-list {
  margin: 0;
  padding-left: 20px;
}

.tc-sitemap-item {
  margin-bottom: 6px;
  color: #334155;
}

.tc-sitemap-item a {
  color: #0f172a;
}

.tc-sitemap-item-desc {
  color: #64748b;
}
