@charset "UTF-8";
/**
 * News Section
 */

/* ========================================
   NEWS SECTION BASE
======================================== */

.kv-news-section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: var(--color-bg-off-white);
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  .kv-news-section {
    padding-top: var(--section-padding-y-tablet);
    padding-bottom: var(--section-padding-y-tablet);
  }
}

@media (max-width: 767px) {
  .kv-news-section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }
}

/* ========================================
   NEWS CONTENT WRAPPER
======================================== */

.kv-news-content {
  max-width: 100%;
}

/* ========================================
   NEWS BOX (LIST CONTAINER)
======================================== */

.kv-news-box {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  margin-bottom: clamp(2rem, 1.5rem + 1vw, 2.5rem);
}

/* ========================================
   NEWS LIST
======================================== */

.kv-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========================================
   YEAR DISPLAY
======================================== */

.year-display {
  margin-bottom: clamp(1rem, 0.75rem + 0.5vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 0.5rem + 0.5vw, 1rem);
  border-bottom: 2px solid var(--color-border-light);
}

.year-label {
  font-family: var(--font-family-en-accent);
  font-size: clamp(1.5rem, 1.25rem + 0.75vw, 2rem);  /* 24px → 32px */
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* ========================================
   NEWS ITEM
======================================== */

.news-item {
  border-bottom: 1px solid var(--color-border-light);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item a {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.75rem + 0.5vw, 1.5rem);
  padding: clamp(1.25rem, 1rem + 0.5vw, 1.75rem) 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.3, 0.26, 0.38, 1);
  position: relative;
}

.news-item a::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--color-primary);
  transition: height 0.3s cubic-bezier(0.3, 0.26, 0.38, 1);
}

.news-item a:hover {
  padding-left: 1rem;
  background: rgba(0, 140, 193, 0.02);
}

.news-item a:hover::before {
  height: 80%;
}

/* ========================================
   DATE BOX
======================================== */

.date-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 3.5rem + 0.5vw, 70px);
  height: clamp(60px, 3.5rem + 0.5vw, 70px);
  background: var(--color-bg-off-white);
  border-radius: var(--radius-md);
  font-family: var(--font-family-en-accent);
  transition: all 0.3s cubic-bezier(0.3, 0.26, 0.38, 1);
}

.news-item a:hover .date-box {
  background: var(--color-primary);
  transform: scale(1.05);
}

.date-box .date {
  font-size: clamp(1.5rem, 1.25rem + 0.5vw, 1.75rem);  /* 24px → 28px */
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.news-item a:hover .date-box .date {
  color: var(--color-text-white);
}

.date-box .month {
  font-size: clamp(0.6875rem, 0.625rem + 0.25vw, 0.8125rem);  /* 11px → 13px */
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-top: 0.125rem;
  transition: color 0.3s ease;
}

.news-item a:hover .date-box .month {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   NEWS CONTENT
======================================== */

.news-item .content {
  flex: 1;
  min-width: 0;  /* Allows text truncation */
}

/* ========================================
   CATEGORY BADGE
======================================== */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: clamp(0.6875rem, 0.625rem + 0.125vw, 0.75rem);  /* 11px → 12px */
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family-en-accent);
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

/* Default badge style */
.badge {
  background: var(--color-primary);
  color: var(--color-text-white);
}

/* Category variations */
.badge-info {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.badge-campaign {
  background: #009cff;
  color: var(--color-text-primary);
}

.badge-event {
  background: var(--color-secondary);
  color: var(--color-text-white);
}

.badge-important {
  background: var(--color-accent-red);
  color: var(--color-text-white);
}

/* ========================================
   NEWS TITLE
======================================== */

.news-item .title {
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);  /* 15px → 17px */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0;
  transition: color 0.3s ease;

  /* Text truncation for long titles */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item a:hover .title {
  color: var(--color-primary);
}

/* ========================================
   ARROW ICON
======================================== */

.news-item .arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: all 0.3s cubic-bezier(0.3, 0.26, 0.38, 1);
}

.news-item .arrow i {
  font-size: 0.875rem;
}

.news-item a:hover .arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ========================================
   MORE BUTTON
======================================== */

.kv-news-more {
  text-align: center;
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .kv-news-box {
    padding: clamp(1.5rem, 1rem + 1vw, 2rem);
  }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 767px) {
  .kv-news-box {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .news-item a {
    gap: 0.875rem;
    padding: 1rem 0;
  }

  .news-item a::before {
    left: -1rem;
  }

  .news-item a:hover {
    padding-left: 0.75rem;
  }

  .date-box {
    width: 56px;
    height: 56px;
  }

  .news-item .arrow {
    width: 20px;
    height: 20px;
  }

  .news-item .arrow i {
    font-size: 0.75rem;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .news-item a,
  .news-item a::before,
  .date-box,
  .date-box .date,
  .date-box .month,
  .badge,
  .news-item .title,
  .news-item .arrow {
    transition: none !important;
    animation: none !important;
  }

  .news-item a:hover,
  .news-item a:hover .date-box,
  .news-item a:hover .arrow {
    transform: none !important;
  }
}

/* Focus styles for accessibility */
.news-item a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
