/* 
===============================
NEWS PAGE CSS
=============================== */

.news-list-section-wrapper {
  margin-top: 132px;
  padding-bottom: var(--section-padding);
}

.news-list-heading p {
  font-weight: 600;
  color: var(--accent-color);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.news-list-heading h3 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-family: var(--poppins);
  margin: 0;
  color: var(--text-color);
}

.news-list-main-wrapper {
  padding: clamp(32px, 3vw, 44px) 0;
  background-color: var(--white-color);
  box-shadow: 0px 0px 30px rgba(161, 161, 161, 0.1);
  border-radius: 20px;
  margin-top: clamp(44px, 4vw, 84px);
}

.news-data {
  padding: 1.4rem clamp(1rem, 2vw, 2rem);
  border-bottom: 1px dotted var(--soft-border);
  font-weight: 600;
  transition: all 0.5s ease-in-out;
}

.news-data .date {
  color: var(--accent-color);
}

.news-data:hover {
  background-color: var(--main-bg);
}

.news-data .arrow-icon {
  height: 36px;
  width: 36px;
  font-weight: 500;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white-color);
  transition: all 0.5s ease-in-out;
}

.news-data:hover .arrow-icon {
  transform: translateX(10px);
}

.individual-news-wrapper .date {
  font-weight: 600;
  color: var(--accent-color);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  padding-bottom: 16px;
}

.individual-news-wrapper h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  padding-bottom: 24px;
  border-bottom: 1px dotted var(--soft-border);
}

.individual-news-wrapper img {
  margin: clamp(24px, 3vw, 64px) 0 32px 0;
}

.individual-news-wrapper p {
  color: var(--text-light-grey);
  font-weight: 600;
}

.individual-news-wrapper h3 {
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--accent-color);
}

.individual-news-wrapper ul {
  list-style: disc;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: var(--text-light-grey);
}

.back-news-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  background-color: var(--accent-color);
  color: var(--white-color);
  border: 1px solid var(--accent-color);
  border-radius: 40px;
  transition: all 0.5s ease-in-out;
}

.back-news-btn:hover {
  background-color: var(--main-bg);
  color: var(--accent-color);
}

/* 
===============================
NEWS LIST & NEWS DETAIL CSS
=============================== */

.news-category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 20px;
  background-color: var(--secondary-bg);
  color: var(--accent-color);
  border: 1px solid var(--soft-border);
  white-space: nowrap;
  flex-shrink: 0;
}

/* News Detail Dynamic Styles */
.nwd__article {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.nwd__date {
  font-weight: 600;
  color: var(--accent-color);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nwd__date-text {
  display: block;
}

.nwd__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  padding-bottom: 24px;
  border-bottom: 1px dotted var(--soft-border);
  display: block;
  word-wrap: break-word;
}

.article__main-img {
  margin: clamp(24px, 3vw, 64px) 0 32px 0;
}

.article__main-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.nwd__body {
  color: var(--text-light-grey);
  font-weight: 600;
  line-height: 1.8;
}

.nwd__body p {
  margin-bottom: 1.5rem;
}

.nwd__body h2,
.nwd__body h3 {
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--accent-color);
}

.nwd__body ul,
.nwd__body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.nwd__body ul li,
.nwd__body ol li {
  margin-bottom: 0.5rem;
  color: var(--text-light-grey);
}

.nwd__body ul {
  list-style: disc;
}

.nwd__body ol {
  list-style: decimal;
}

.nwd__tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dotted var(--soft-border);
}

.news__category {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: var(--secondary-bg);
  color: var(--accent-color);
  border: 1px solid var(--soft-border);
  display: inline-block;
}

.nwd__actions {
  margin-top: 2rem;
}

.nwd__meta {
  display: none;
}

.nwd__fallback {
  text-align: center;
  padding: 2rem;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  color: var(--text-color);
}

.nwd__fallback p {
  margin: 0;
  font-weight: 600;
  color: var(--text-light-grey);
}

/* Loading State */
.nwl__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.spinner.visible {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid var(--soft-border);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nwd__article {
    padding: 1rem 0;
  }

  .nwd__title {
    padding-bottom: 16px;
  }

  .article__main-img {
    margin: 16px 0 24px 0;
  }

  .nwd__body h2,
  .nwd__body h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
  }
}

.nwd__article-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dotted var(--soft-border);
}

.nwd__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nwd__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nwd__language-dropdown {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nwd__language-dropdown select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--soft-border);
  border-radius: 4px;
  background-color: var(--white-color);
  color: var(--text-color);
  font-family: var(--zen-kaku);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  padding-right: 1.5rem;
}

.nwd__language-dropdown select:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.nwd__language-dropdown select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.nwd__language-dropdown select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.nwd__language-dropdown select option {
  padding: 0.3rem;
  color: var(--text-color);
  background-color: var(--white-color);
}

.nwd__language-dropdown .nwd__lang-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
}

/* Responsive styles for language dropdown */
@media (max-width: 768px) {
  .nwd__header-row {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .nwd__header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nwd__language-dropdown {
    gap: 0.3rem;
  }

  .nwd__language-dropdown select {
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
    padding-right: 1.3rem;
  }

  .nwd__language-dropdown .nwd__lang-label {
    font-size: 0.65rem;
  }
}

.nwd__loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(3px);
  z-index: 100;
  border-radius: 8px;
}

.nwd__loader--full {
  position: relative;
  min-height: 400px;
}

.nwd__loader-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nwd__loader-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--soft-border);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Category filter tabs */
.category-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-filter-btn {
  padding: 6px 20px;
  border-radius: 30px;
  border: 1px solid var(--soft-border);
  background-color: var(--white-color);
  color: var(--text-light-grey);
  font-family: var(--zen-kaku);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.category-filter-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.category-filter-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white-color);
}
