/* News Page Styles */
.news-page-container {
  padding: 40px 0;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.news-page-main {
  padding: 20px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Header */
.news-page-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.page-breadcrumb a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
  color: #004499;
}

.separator {
  color: #ccc;
}

/* Featured News Section */
.featured-news-section {
  margin-bottom: 60px;
}

.featured-news-header {
  margin: 20px;
}

.section-title.news {
border:none !important;
  color: #1a202c;
  margin: 0;
  padding-bottom: 10px;
  display: inline-block;
  font-family: Montserrat;
  font-weight: 700;
  font-size: 1.5rem;        /* 32px ÷ 16 = 2rem */
  line-height: 0.625rem;  /* 10px ÷ 16 = 0.625rem */
  letter-spacing: 0;      /* 0% = 0 */

}
.container.news{
  max-width: calc(100% - 100px) !important;
}
.highlight-text {
  color: #ff6b35;
}

.featured-news-slider {
  position: relative;

  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  height: 500px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.slide-image {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.slide-info {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  background: transparent !important;
}

.slide-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.slide-date {
  background: #e5e7eb;
  color: #374151;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 1.25rem;       /* 20px / 16 = 1.25rem */
  line-height: 120%;        /* giữ nguyên vì là phần trăm */
  letter-spacing: 0%;       /* giữ nguyên */

}

.slide-category {
  background: #1e3a8a;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 1.25rem;       /* 20px / 16 = 1.25rem */
  line-height: 120%;        /* giữ nguyên vì là phần trăm */
  letter-spacing: 0%;       /* giữ nguyên */

}

.slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.slide-title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.slide-title a:hover {
  color: #1e3a8a;
}

.slide-excerpt {
  color: #6b7280;
  margin-bottom: 25px;
  flex-grow: 1;
  font-family: Montserrat;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.slide-actions {
  margin-top: auto;
}

.read-more-btn {
  background: #1e3a8a;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background: #1e40af;
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
}

/* Slider Navigation */
.slider-dots {

  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slide-title.news{
  font-family: Montserrat;
  font-weight: 700;
  font-size: 1.5rem;         /* 24px / 16 = 1.5rem */
  line-height: 120%;
  letter-spacing: 0;
opacity: 1}

.slide-image.news{
  width: 630px;
  height: 450px;
  border-radius: 35px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #1e3a8a;
}

/* No Featured News Message */
.no-featured-news {
  background: white;
  padding: 60px 40px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-featured-news p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* News Tabs Section */
.news-tabs-section-wrapper {
  margin-bottom: 40px;
}

.news-tabs-section {
  overflow: hidden;
  margin-bottom: 60px;
}

.news-tabs-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.news-tab {
  background: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  border:1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  border-radius: 5px;
}

.news-tab:hover {
  color: #1e3a8a;
  background: #f8fafc;
}

.news-tab.active {
  background: #001D67;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0rem;
  text-align: center;
  border-radius: 5px;
}

.news-tabs-content {
  padding: 40px;
  position: relative;
  min-height: 400px;
}

/* Loading Indicator */
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-indicator p {
  margin: 0;
  color: #666;
  font-weight: 500;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background: #fff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  overflow: hidden;
  height: 250px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 25px;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.news-card-title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Montserrat;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: justify;
  text-transform: uppercase;
}

.news-card-title a:hover {
  color: #1e3a8a;
}

.news-card-excerpt {
  color: #6b7280;
  margin-bottom: 15px;
  font-family: Montserrat;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: justify;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination-wrapper {
  display: inline-flex;
  gap: 10px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.page-btn.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: white;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-posts p {
  font-size: 1.125rem;
  margin: 0;
}

/* Error Messages */
.error-message,
.no-categories-message {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-message p,
.no-categories-message p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .news-page-main {
    padding: 20px 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .slider-container {
    height: auto;
    min-height: 300px;
  }

  .slider-wrapper {
    height: auto;
    min-height: 300px;
  }

  .slide-content {
    flex-direction: column;
    height: auto;
  }

  .slide-image {
    flex: none;
    height: 200px;
  }

  .slide-info {
    padding: 20px;
  }

  .slide-title {
    font-size: 1.25rem;
  }

  .news-tabs-nav {
    flex-wrap: wrap;
    gap: 5px;
  }

  .news-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card-content {
    padding: 20px;
  }

  .news-card-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .news-page-container {
    padding: 20px 0;
  }

  .news-page-header {
    margin-bottom: 40px;
    padding: 30px 0;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .slider-container {
    height: 300px;
  }

  .slider-wrapper {
    height: 300px;
  }

  .slide-info {
    padding: 15px;
  }

  .slide-title {
    font-size: 1.125rem;
  }

  .slide-excerpt {
    font-size: 14px;
  }

  .slide-link {
    padding: 10px 20px;
    font-size: 13px;
  }

  .news-tabs-nav {
    justify-content: center;
  }

  .news-tab {
    padding: 10px 15px;
    font-size: 0.875rem;
  }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    height: auto;
  }

  .slide-image {
    flex: none;
    height: 200px;
    order: 1;
  }

  .slide-info {
    padding: 20px;
    order: 2;
  }

  .slider-wrapper {
    height: auto;
    min-height: 350px;
  }

  .slide-title {
    font-size: 1.25rem;
  }

  .slider-dots {
    bottom: 10px;
  }

  .news-tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .news-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-width: auto;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .slider-wrapper {
    height: auto;
    min-height: 300px;
  }

  .slide-image {
    height: 180px;
  }

  .slide-info {
    padding: 15px;
  }

  .slide-title {
    font-size: 1.125rem;
  }

  .slide-excerpt {
    font-size: 14px;
  }

  .read-more-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .news-tab {
    padding: 10px 15px;
    font-size: 0.875rem;
  }
}
