/* AKI News Widget Styles - Optimized & Semantic */

/* ===========================
   MAIN CONTAINER
   =========================== */
.news-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1280px;
  padding: 0 100px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* ===========================
   SECTION TITLE
   =========================== */
.news-section-title {
  color: #0a1e3f;
  text-align: left;
  font-family: "Inter-Bold", sans-serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  align-self: stretch;
}

/* ===========================
   CONTENT WRAPPER
   =========================== */
.news-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* ===========================
   CARDS CONTAINER
   =========================== */
.news-cards-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: stretch;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

/* ===========================
   INDIVIDUAL NEWS CARD
   =========================== */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1 1 calc(33.333% - 27px);
  min-width: 280px;
  max-width: 100%;
  position: relative;
  height: 100%;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-2px);
}

/* ===========================
   IMAGE CONTAINER & IMAGE
   =========================== */
.news-image-wrapper {
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.news-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
}

/* ===========================
   CARD CONTENT
   =========================== */
.news-card-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  flex: 1;
}

.news-text-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex: 1;
}

/* ===========================
   CARD TITLE & DESCRIPTION
   =========================== */
.news-card-title {
  color: #0a1e3f;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  align-self: stretch;
  line-height: 1.3;
}

.news-card-description {
  color: #0a1e3f;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  font-weight: 500;
  opacity: 0.8;
  position: relative;
  align-self: stretch;
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  max-height: 96px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* ===========================
   READ MORE LINK
   =========================== */
.news-read-more {
  color: #fe6c33;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  align-self: stretch;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  margin-top: auto;
}

.news-read-more:hover {
  color: #fc804f;
}

/* ===========================
   NAVIGATION SECTION
   =========================== */
.news-navigation {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  width: 100%;
}

.news-nav-line {
  margin-top: -2px;
  border-style: solid;
  border-color: rgba(10, 30, 63, 0.2);
  border-width: 2px 0 0 0;
  flex: 1;
  height: 0px;
  position: relative;
  min-width: 60px;
}

.news-nav-controls {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* ===========================
   NAVIGATION ARROWS
   =========================== */
.news-nav-arrow {
  width: 30px;
  height: 30px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.news-nav-arrow:hover {
  opacity: 0.8;
}

.news-nav-arrow.prev {
  opacity: 0.5;
}

.news-nav-arrow.next {
  opacity: 1;
}

/* ===========================
   CAROUSEL SPECIFIC STYLES
   =========================== */
.news-carousel-container {
  overflow: hidden;
}

.news-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

.news-carousel-track {
  display: flex;
  flex-direction: row;
  gap: 40px;
  transition: transform 0.5s ease;
  width: max-content;
  margin: 0;
  padding: 0;
}

.news-carousel-item {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 334px;
  max-width: calc((100vw - 280px) / 3);
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ===========================
   PROGRESS INDICATOR
   =========================== */
.news-carousel-progress {
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  background: rgba(10, 30, 63, 0.8);
  transition: width 0.3s ease;
  border-radius: 1px;
  min-width: 2px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .news-section {
    padding: 0 30px;
  }

  .news-cards-container,
  .news-carousel-track {
    gap: 30px;
  }


}

/* Mobile Landscape / Small Tablet (768px and below) */
@media (max-width: 768px) {
  .news-section {
    padding: 0 30px;
  }

  .news-cards-container {
    flex-direction: row;
    gap: 30px;
  }

  .news-card {
    flex: 1;
    width: 100%;
  }

  .news-section-title {
    font-size: 28px;
  }

  .news-card-title {
    font-size: 18px;
  }

  .news-card-description {
    font-size: 14px;
    max-height: 80px;
    -webkit-line-clamp: 3;
  }

  .news-read-more {
    font-size: 14px;
  }

  .news-navigation {
    gap: 30px;
    max-width: 95%;
  }

  .news-nav-controls {
    gap: 30px;
  }

  .news-carousel-progress {
    height: 3px;
    background: rgba(10, 30, 63, 0.9);
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .news-section {
    padding: 0 20px;
    gap: 30px;
  }

  .news-content-wrapper {
    gap: 30px;
  }

  .news-cards-container {
    gap: 25px;
  }

  .news-card {
    gap: 15px;
  }

  .news-card-content {
    gap: 12px;
  }

  .news-section-title {
    font-size: 24px;
  }

  .news-card-title {
    font-size: 16px;
  }

  .news-card-description {
    font-size: 14px;
    line-height: 1.4;
    max-height: 70px;
    -webkit-line-clamp: 3;
  }

  .news-read-more {
    font-size: 14px;
  }

  .news-navigation {
    gap: 20px;
  }

  .news-nav-controls {
    gap: 20px;
  }

  .news-nav-arrow {
    width: 25px;
    height: 25px;
  }

  .news-carousel-progress {
    height: 3px;
    background: rgba(10, 30, 63, 0.9);
  }
}