/* ========================================================
   GIZA CMS - NEWS & ARTICLE DETAILS STYLING
   ======================================================== */

.news-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  margin: 24px 0 40px;
  align-items: start;
}

/* Article Card Row (News Listing) */
.article-card-row {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border-radius: var(--radius-sm, 8px);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid #edf2f7;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  transition: all 0.25s ease;
}

.article-card-row:hover {
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
  transform: translateY(-2px);
}

.article-row-thumb {
  width: 220px;
  height: 145px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
}

.article-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card-row:hover .article-row-thumb img {
  transform: scale(1.05);
}

.article-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-row-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-row-title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-row-title a:hover {
  color: var(--primary-color, #e11d48);
}

.article-meta {
  font-size: 12px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.article-summary-text {
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Sidebar (Shared in News & Article Detail) */
.news-sidebar-box {
  background: #ffffff;
  border-radius: var(--radius-sm, 8px);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #edf2f7;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.news-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color, #e11d48);
  display: inline-block;
}

/* Article Detail Card */
.article-main-card {
  background: #ffffff;
  border-radius: var(--radius-sm, 8px);
  padding: 30px;
  border: 1px solid #edf2f7;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.article-title-heading {
  font-size: 26px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  color: #718096;
  flex-wrap: wrap;
}

.article-content-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: #2d3748;
}

.article-content-body p {
  margin-bottom: 18px;
}

.article-content-body h2,
.article-content-body h3,
.article-content-body h4 {
  color: #1a202c;
  font-weight: 800;
  margin-top: 26px;
  margin-bottom: 12px;
}

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

.article-content-body ul,
.article-content-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

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

.article-content-body blockquote {
  border-left: 4px solid var(--primary-color, #e11d48);
  background: #f8fafc;
  padding: 12px 18px;
  margin: 20px 0;
  font-style: italic;
  color: #4a5568;
  border-radius: 0 6px 6px 0;
}

.article-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.tag-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: var(--primary-color, #e11d48);
  color: #ffffff;
}

/* Sidebar styling */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .news-layout,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .article-card-row {
    flex-direction: column;
  }
  .article-row-thumb {
    width: 100%;
    height: 180px;
  }
  .article-title-heading {
    font-size: 21px;
  }
  .article-main-card {
    padding: 18px;
  }
}
