/* ===================================================================
 * News & Renungan Page Styles
 * =================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.5rem;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  color: #9ca3af;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #9ca3af;
}

.breadcrumbs__item--active {
  color: #ffffff;
  font-weight: 600;
}

.breadcrumbs__link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: #ffffff;
}

/* Page Header */
.page-header--news {
  background-image: url("../images/header.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 80px 0 50px;
}

.page-header--news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-header--news .page-header__content {
  position: relative;
  z-index: 2;
}

/* Hero News Section */
.hero-news {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-news:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.hero-news__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-news__loading .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3b0d11;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-news__loading p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #646464;
  margin: 0;
}

.hero-news__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  min-height: 450px;
}

.hero-news__image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 450px;
}

.hero-news__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 100%
  );
}

.hero-news__category {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-news__text {
  background: #ffffff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-news__meta {
  margin-bottom: 1rem;
}

.hero-news__date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  color: #646464;
  display: inline-flex;
  align-items: center;
}

.hero-news__date::before {
  content: "📅";
  margin-right: 0.5rem;
}

.hero-news__title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.hero-news__excerpt {
  font-family: "Lora", serif;
  font-size: 1.15rem;
  color: #646464;
  line-height: 1.7;
  margin: 0 0 2rem 0;
}

.hero-news__link {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3b0d11;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.hero-news__link:hover {
  color: #037c82;
  transform: translateX(5px);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.section-header--renungan {
  margin-top: 3rem;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #3b0d11;
  margin: 1rem auto 0;
}

.section-subtitle {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  color: #646464;
  margin: 0;
}

/* News Grid - News Media Style */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* News Card - Media Style */
.news-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

/* News Card Image */
.news-card__image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  height: 200px;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

/* Category Badge */
.news-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* News Card Content */
.news-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* News Card Meta */
.news-card__meta {
  margin-bottom: 0.75rem;
}

.news-card__date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
}

.news-card__date::before {
  content: "📅";
  margin-right: 0.4rem;
  font-size: 0.75rem;
}

/* News Card Title */
.news-card__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
  color: #667eea;
}

/* News Card Excerpt */
.news-card__excerpt {
  font-family: "Lora", serif;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

/* News Card Link */
.news-card__link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.news-card__link:hover {
  color: #764ba2;
  transform: translateX(3px);
}

/* Article Modal */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.article-modal--active {
  display: flex;
}

.article-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.article-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-modal__close {
  position: sticky;
  top: 1rem;
  right: 1rem;
  float: right;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  margin-left: 1rem;
}

.article-modal__close:hover {
  background: #667eea;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Article Full View */
.article-full {
  padding: 1.5rem;
}

.article-full__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-full__category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-full__date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
}

.article-full__title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.article-full__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #f5f5f5;
}

.article-full__image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-full__content {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 2rem;
}

.article-full__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-full__content h2,
.article-full__content h3 {
  font-family: "Montserrat", sans-serif;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-full__content p {
  margin-bottom: 1rem;
}

.article-full__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.article-full__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-full__share:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Inline Article Detail */
.article-detail {
  display: block;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}

.article-detail.hidden {
  display: none;
}

.article-full {
  max-width: 800px;
  margin: 0 auto;
}

.article-full__top-nav {
  margin-bottom: 2rem;
}

.article-full__back--top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.article-full__back--top:hover {
  background: #e0e7ff;
  transform: translateX(-2px);
}

.article-full__back--top svg {
  transition: transform 0.3s ease;
}

.article-full__back--top:hover svg {
  transform: translateX(-2px);
}

.article-full__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-full__category {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-full__date {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
}

.article-full__title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
  margin-bottom: 2rem;
}

.article-full__image {
  width: 100%;
  height: 400px;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.article-full__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-full__content {
  font-family: "Open Sans", sans-serif;
  font-size: 1.35rem;
  line-height: 1.8;
  color: #374151;
}

.article-full__content p {
  margin-bottom: 1.5rem;
}

.article-full__content h2,
.article-full__content h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-full__content h2 {
  font-size: 1.75rem;
}

.article-full__content h3 {
  font-size: 1.5rem;
}

.article-full__footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.article-full__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.article-full__back:hover {
  background: #e0e7ff;
  transform: translateX(-2px);
}

.article-full__back svg {
  transition: transform 0.3s ease;
}

.article-full__back:hover svg {
  transform: translateX(-2px);
}

.article-error {
  text-align: center;
  padding: 3rem 2rem;
  color: #dc2626;
}

.article-error p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Article Recommendations */
.article-recommendations {
  margin-top: 4rem;
  padding: 2rem 0;
}

.article-recommendations.hidden {
  display: none;
}

.section-header--compact {
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid #e5e7eb;
}

.section-header--compact .section-title {
  font-size: 1.75rem;
}

.section-header--compact .section-subtitle {
  font-size: 0.875rem;
}

/* Floating Social Share Buttons */
.floating-social-share {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.social-share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-share-btn:active {
  transform: scale(0.95);
}

.social-share-btn svg {
  transition: transform 0.3s ease;
}

.social-share-btn:hover svg {
  transform: scale(1.1);
}

/* Loading States */
.article-loading,
.article-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.article-loading p,
.article-error p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3b0d11;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #646464;
  margin: 0;
}

/* Error Message */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
  text-align: center;
}

.error-message svg {
  color: #dd4043;
  margin-bottom: 1rem;
}

.error-message p {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  color: #646464;
  margin: 0;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
  text-align: center;
}

.empty-state svg {
  color: #646464;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  color: #646464;
  margin: 0;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-news__content {
    grid-template-columns: 1fr;
  }

  .hero-news__image {
    min-height: 350px;
  }

  .hero-news__text {
    padding: 2rem;
  }

  .hero-news__title {
    font-size: 1.8rem;
  }

  .hero-news__excerpt {
    font-size: 1rem;
  }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 600px) {
  .article-full__image {
    height: auto;
  }

  .article-full__image img {
    height: auto;
    object-fit: contain;
  }

  .page-header--news {
    padding: 40px 0 20px;
  }

  .page-header h1 {
    font-size: 2.5rem !important;
  }

  .breadcrumbs {
    margin-bottom: 1rem !important;
  }

  .breadcrumbs__item {
    font-size: 1rem !important;
  }

  .breadcrumbs__link {
    font-size: 1rem !important;
  }

  .page-content {
    padding-top: 0;
  }

  .hero-news {
    border-radius: 8px;
    margin-bottom: 2rem;
  }

  .hero-news__content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-news__image {
    min-height: 200px;
  }

  .hero-news__text {
    padding: 1.5rem;
  }

  .hero-news__category {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    top: 1rem;
    left: 1rem;
  }

  .hero-news__title {
    font-size: 1.6rem;
  }

  .hero-news__excerpt {
    font-size: 0.95rem;
  }

  .hero-news__link {
    font-size: 0.9rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card__image {
    height: 180px;
  }

  .news-card__content {
    padding: 1.25rem;
  }

  .news-card__title {
    font-size: 1.1rem;
  }

  .news-card__excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .news-card__category {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .section-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
  }

  .section-header--renungan {
    margin-top: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .article-modal {
    padding: 1rem;
  }

  .article-modal__content {
    max-height: 95vh;
  }

  .article-full {
    padding: 1.25rem;
  }

  .article-full__title {
    font-size: 1.6rem;
  }

  .article-full__content {
    font-size: 1.15rem;
  }

  /* Floating Social Share - Mobile */
  .floating-social-share {
    right: 0.5rem;
    top: auto;
    bottom: 5rem;
    transform: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
  }

  .social-share-btn {
    width: 40px;
    height: 40px;
  }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 400px) {
  .section-title {
    font-size: 1.8rem;
  }

  .news-card__title {
    font-size: 1.3rem;
  }

  .news-card--featured .news-card__title {
    font-size: 1.6rem;
  }

  .news-card__content {
    padding: 1.25rem;
  }

  .news-card--featured .news-card__content {
    padding: 1.5rem;
  }
}

/* Footer Mobile Responsive */
@media screen and (max-width: 600px) {
  .s-footer {
    height: auto !important;
    min-height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    margin-top: 0 !important;
  }

  .s-footer h2 {
    font-size: 2.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .s-footer h4 {
    font-size: 1.8rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .s-footer p {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
  }

  .s-footer .btn--footer {
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
  }

  .footer-top {
    margin-bottom: 2rem !important;
  }

  .footer-logo img {
    width: 100px !important;
    height: auto !important;
  }

  .footer-list li {
    font-size: 1.3rem !important;
    margin-bottom: 0.75rem !important;
  }

  .footer-list a {
    font-size: 1.3rem !important;
  }

  .page-content {
    padding-bottom: 0 !important;
  }

  .s-social {
    margin-bottom: 0 !important;
  }
}
