/* ========================
   News Pages — Hopita
======================== */

/* ---- Page Header ---- */
.news-page-header {
  padding: 7rem 0 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0a4fa6 100%);
  position: relative;
  overflow: hidden;
}

.news-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.news-page-header .container {
  position: relative;
  z-index: 1;
}

.news-page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.news-page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

.news-breadcrumb a { color: rgba(255,255,255,0.85); }
.news-breadcrumb a:hover { color: #fff; }
.news-breadcrumb i { font-size: 0.75rem; }

/* ---- News List ---- */
.news-list-section {
  padding: 4rem 0 5rem;
  background: #f7f9fc;
}

.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.news-card {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,35,66,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10,35,66,0.14);
}

.news-card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

@media (max-width: 768px) {
  .news-card-featured { flex-direction: column; }
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.news-card-featured .news-card-img {
  width: 48%;
  aspect-ratio: 16/10;
  height: auto;
  min-height: 100%;
}

@media (max-width: 768px) {
  .news-card-featured .news-card-img {
    width: 100%;
    height: 200px;
    min-height: unset;
    aspect-ratio: unset;
  }
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.news-card-featured .news-card-body {
  padding: 2rem;
  justify-content: center;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,123,255,0.1);
  color: var(--secondary, #007bff);
  width: fit-content;
}

.news-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary, #0a2342);
  line-height: 1.4;
  margin: 0;
}

.news-card-featured h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.news-card p.excerpt {
  font-size: 0.9rem;
  color: #6b7a99;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #9aa5b4;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f2f5;
}

.news-meta span { display: flex; align-items: center; gap: 0.35rem; }

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary, #007bff);
  margin-top: 0.5rem;
  transition: gap 0.2s ease;
}

.news-card:hover .news-read-more { gap: 0.65rem; }

/* Grid list below featured */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

/* ========================
   News Detail Page
======================== */
.news-detail-section {
  padding: 4rem 0 5rem;
  background: #f7f9fc;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

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

/* Main article */
.news-article {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,35,66,0.07);
}

.news-article-hero {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}

.news-article-body {
  padding: 2.5rem;
}

@media (max-width: 600px) {
  .news-article-body { padding: 1.5rem; }
}

.news-article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef0f4;
}

.news-article-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary, #0a2342);
  line-height: 1.35;
  margin: 1rem 0 0.75rem;
}

.news-article-header .lead {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  font-weight: 500;
  border-left: 3px solid var(--secondary, #007bff);
  padding-left: 1rem;
  margin-top: 1rem;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9aa5b4;
  margin-top: 1rem;
}

.news-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article content typography */
.news-article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.news-article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary, #0a2342);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0,123,255,0.15);
}

.news-article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #0a2342);
  margin: 1.5rem 0 0.5rem;
}

.news-article-content p { margin-bottom: 1rem; }

.news-article-content ul,
.news-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.news-article-content li { margin-bottom: 0.4rem; }

.news-article-content strong { color: var(--primary, #0a2342); }

.news-article-content blockquote {
  border-left: 4px solid var(--secondary, #007bff);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0,123,255,0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568;
}

.news-info-box {
  background: linear-gradient(135deg, rgba(0,123,255,0.06), rgba(0,191,174,0.06));
  border: 1px solid rgba(0,123,255,0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.news-info-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary, #007bff);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.news-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-info-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.4rem;
}

.news-info-box li i {
  color: var(--secondary, #007bff);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.news-quote-box {
  background: var(--primary, #0a2342);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 1.75rem 0;
  color: #fff;
}

.news-quote-box .quote-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.news-quote-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.news-quote-box .quote-author {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  font-weight: 600;
}

/* Share & tags row */
.news-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.news-tag-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f0f4ff;
  color: var(--secondary, #007bff);
  border: 1px solid rgba(0,123,255,0.15);
}

.news-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #9aa5b4;
}

.share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
}

.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.fb:hover { background: #0d6efd; }
.share-btn.li { background: #0a66c2; color: #fff; }
.share-btn.li:hover { background: #0958a8; }

/* Sidebar */
.news-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: #fff;
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(10,35,66,0.07);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #0a2342);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(0,123,255,0.15);
}

.sidebar-news-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item:hover { opacity: 0.75; }

.sidebar-news-item img {
  width: 64px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-news-info { flex: 1; }

.sidebar-news-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary, #0a2342);
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-news-info span {
  font-size: 0.75rem;
  color: #9aa5b4;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), #0a4fa6);
  color: #fff;
  text-align: center;
}

.sidebar-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.sidebar-cta .btn {
  width: 100%;
  background: #fff;
  color: var(--primary, #0a2342);
  font-weight: 700;
  border-radius: 50px;
  padding: 0.65rem 1rem;
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.sidebar-cta .btn:hover { background: rgba(255,255,255,0.9); }

/* Back to list button */
.back-to-news {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary, #007bff);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: gap 0.2s;
}

.back-to-news:hover { gap: 0.75rem; }
