/*
===============================================
NEWS DETAIL PAGE STYLES
Medical Theme Integration - Consistent with News Cards
===============================================
*/

/* Main Section */
#news-detail-modern.news-article-page {
  background: linear-gradient(135deg, #1d4577 0%, #2a5a8a 50%, #e6f5fa 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

#news-detail-modern.news-article-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
}

/* Container */
#news-detail-modern .container {
  position: relative;
  z-index: 2;
}

/* Blog Title (below hero, above card) */
.blog-title-content {
  padding: 48px 0 32px 0;
}

.blog-title-content .page-title-accent {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(230, 245, 250, 0.7) 100%
  );
}

.blog-title-content .page-title-heading {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-title-content .page-title-heading h1,
.blog-title-content .page-title-heading h2,
.blog-title-content .page-title-heading .field--name-title {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

@media only screen and (max-width: 680px) {
  .blog-title-content {
    padding: 32px 0 32px 0;
  }

  .blog-title-content .page-title-heading,
  .blog-title-content .page-title-heading h1,
  .blog-title-content .page-title-heading h2 {
    font-size: 26px;
    letter-spacing: 1px;
  }
}

/* News Article Card */
.news-article-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(29, 69, 119, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 40px;
  position: relative;
}

/* Image Section */
.article-hero-image {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}

.article-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image-wrapper img,
.article-image-wrapper picture img,
.article-featured-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.news-article-card:hover .article-image-wrapper img,
.news-article-card:hover .article-image-wrapper picture img,
.news-article-card:hover .article-featured-img {
  transform: scale(1.02);
}

/* Content Section */
.article-main-content {
  padding: 50px;
}

.article-main-content .article-body h3 {
  color: #1d4577;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.3;
  font-family: "poppins", sans-serif;
  letter-spacing: -0.02em;
}

/* News Meta Information */
.article-meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(29, 69, 119, 0.1);
  flex-wrap: wrap;
}

.article-meta-info i {
  color: #1d4577;
  font-size: 1.1rem;
  margin-right: 8px;
}

.article-meta-info p {
  color: #3e473d;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-meta-info > * {
  display: inline-flex;
  align-items: center;
}

/* Article Full Content */
.article-full-content {
  color: #464648;
  font-size: 1.1rem;
  line-height: 1.8;
  font-family: "poppins", sans-serif;
  margin-bottom: 40px;
}

.article-full-content p {
  margin-bottom: 20px;
}

.article-full-content h1,
.article-full-content h2,
.article-full-content h3,
.article-full-content h4 {
  color: #1d4577;
  font-weight: 700;
  margin-top: 35px;
  margin-bottom: 20px;
  font-family: "poppins", sans-serif;
}

.article-full-content h1 {
  font-size: 2.2rem;
}

.article-full-content h2 {
  font-size: 1.9rem;
}

.article-full-content h3 {
  font-size: 1.6rem;
}

.article-full-content h4 {
  font-size: 1.3rem;
}

.article-full-content ul,
.article-full-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-full-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-full-content a {
  color: #2a5a8a;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-full-content a:hover {
  color: #1d4577;
}

.article-full-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 8px 25px rgba(29, 69, 119, 0.15);
}

.article-full-content blockquote {
  background: rgba(29, 69, 119, 0.05);
  border-left: 4px solid #1d4577;
  padding: 20px 30px;
  margin: 25px 0;
  border-radius: 8px;
  font-style: italic;
  color: #3e473d;
}

/* Back to News Button */
.news-navigation-footer {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  padding: 30px 0;
}

.btn-view-all-news {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1d4577, #2a5a8a);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 32px rgba(29, 69, 119, 0.3);
  position: relative;
  overflow: hidden;
  font-family: "poppins", sans-serif;
}

.btn-view-all-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-view-all-news:hover::before {
  left: 100%;
}

.btn-view-all-news:hover {
  background: linear-gradient(135deg, #2a5a8a, #1d4577);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 45px rgba(29, 69, 119, 0.4);
  text-decoration: none;
  color: white;
  border-color: rgba(230, 245, 250, 0.3);
}

.btn-view-all-news i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-view-all-news:hover i.fa-arrow-left {
  transform: translateX(-5px);
}

.btn-view-all-news:hover i.fa-newspaper {
  transform: scale(1.1);
}

.btn-view-all-news:active {
  transform: translateY(-1px) scale(1.02);
}

/* Animation */
.article-wrapper.fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  #news-detail-modern.news-article-page {
    padding: 60px 0;
  }

  .article-main-content {
    padding: 40px 30px;
  }

  .article-main-content .article-body h3 {
    font-size: 2rem;
  }

  .article-full-content {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  #news-detail-modern.news-article-page {
    padding: 0px 0;
  }

  #news-detail-modern .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-main-content {
    padding: 30px 25px;
  }

  .article-main-content .article-body h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .article-meta-info {
    gap: 15px;
    margin-bottom: 25px;
  }

  .article-meta-info i {
    font-size: 1rem;
  }

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

  .article-full-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-full-content h1 {
    font-size: 1.8rem;
  }

  .article-full-content h2 {
    font-size: 1.5rem;
  }

  .article-full-content h3 {
    font-size: 1.3rem;
  }

  .article-image-wrapper img,
  .article-featured-img {
    max-height: 350px;
  }

  .btn-view-all-news {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .news-navigation-footer {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  #news-detail-modern .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .article-main-content {
    padding: 25px 20px;
  }

  .article-main-content .article-body h3 {
    font-size: 1.5rem;
  }

  .article-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .article-full-content {
    font-size: 0.95rem;
  }

  .article-image-wrapper img,
  .article-featured-img {
    max-height: 250px;
  }

  .btn-view-all-news {
    padding: 12px 28px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  #news-detail-modern.news-article-page {
    background: white !important;
    padding: 20px 0;
  }

  #news-detail-modern.news-article-page::before {
    display: none;
  }

  .news-article-card {
    background: white;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .news-navigation-footer {
    display: none;
  }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  .article-image-wrapper img,
  .article-featured-img,
  .btn-view-all-news,
  .article-wrapper.fadeInUp,
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .news-article-card {
    border: 2px solid #1d4577;
  }

  .btn-view-all-news {
    border: 2px solid white;
  }
}
