/* =========================================================
   NEWS PAGE
   ========================================================= */

.news-page {
  width: 100%;
  background: #ffffff;
}

.news-container {
  width: min(1190px, calc(100% - 40px));
  margin-inline: auto;
}


/* =========================================================
   NEWS HERO
   ========================================================= */

.news-hero {
  padding: 62px 0 55px;
  background: #eef6f6;
}

.news-hero-eyebrow {
  margin-bottom: 13px;
  color: #087488;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 3px;
}

.news-hero h1 {
  max-width: 760px;
  margin: 0 0 15px;
  color: #082f5f;
  font-size: clamp(35px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -1px;
}

.news-hero p {
  max-width: 720px;
  margin: 0;
  color: #60758b;
  font-size: 18px;
  line-height: 1.6;
}


/* =========================================================
   NEWS LIST
   ========================================================= */

.news-section {
  padding: 65px 0 85px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;

  padding: 0 0 42px;
  margin: 0 0 42px;

  border-bottom: 1px solid #dfe6eb;
}

.news-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}


/* =========================================================
   DATE
   ========================================================= */

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 84px;
  padding: 13px 10px;

  color: #ffffff;
  text-align: center;
  text-decoration: none;

  background: #082f5f;
  border-radius: 8px;
}

.news-date-month {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.news-date-year {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}


/* =========================================================
   NEWS CONTENT
   ========================================================= */

.news-content {
  min-width: 0;
}

.news-category {
  margin-bottom: 8px;
  color: #087488;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.news-content h2 {
  margin: 0 0 9px;
  color: #173f6b;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
}

.news-location {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 14px;

  color: #718397;
  font-size: 14px;
  line-height: 1.4;
}

.news-location i {
  color: #ef7d68;
  font-size: 13px;
}

.news-summary {
  margin: 0;
  color: #4f6b89;
  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   EXPANDABLE DETAILS
   ========================================================= */

.news-details {
  margin-top: 16px;
}

.news-details summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #087488;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;

  cursor: pointer;
  list-style: none;
}

.news-details summary::-webkit-details-marker {
  display: none;
}

.news-details summary:hover {
  color: #173f6b;
}

.news-details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  border: 1px solid currentColor;
  border-radius: 50%;

  font-size: 16px;
  line-height: 1;

  transition: transform 0.2s ease;
}

.news-details[open] .news-details-icon {
  transform: rotate(45deg);
}

.news-details-content {
  padding-top: 15px;
}

.news-details-content p {
  margin: 0 0 12px;
  color: #4f6b89;
  font-size: 15px;
  line-height: 1.7;
}

.news-details-content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   NEWS GALLERY
   ========================================================= */

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.news-photo {
  position: relative;
  display: block;
  height: 110px;

  overflow: hidden;

  background: #edf1f4;
  border-radius: 7px;
}

.news-photo::after {
  content: "\f00e";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-size: 20px;
  font-weight: 900;

  background: rgba(8, 47, 95, 0.38);

  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-photo:hover::after,
.news-photo:focus-visible::after {
  opacity: 1;
}

.news-photo img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.news-photo:hover img {
  transform: scale(1.05);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}

.news-details summary:focus-visible,
.news-photo:focus-visible {
  outline: 3px solid rgba(8, 116, 136, 0.3);
  outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .news-item {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .news-gallery {
    grid-column: 2;
  }

  .news-photo {
    height: 150px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
  .news-container {
    width: min(100% - 32px, 1190px);
  }

  .news-hero {
    padding: 43px 0 40px;
  }

  .news-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2.3px;
  }

  .news-hero h1 {
    font-size: 33px;
  }

  .news-hero p {
    font-size: 16px;
  }

  .news-section {
    padding: 45px 0 65px;
  }

  .news-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;

    padding-bottom: 34px;
    margin-bottom: 34px;
  }

  .news-date {
    min-height: 70px;
    padding: 9px 5px;
  }

  .news-date-month {
    font-size: 12px;
  }

  .news-date-year {
    font-size: 17px;
  }

  .news-content h2 {
    font-size: 19px;
  }

  .news-summary,
  .news-details-content p {
    font-size: 14px;
    line-height: 1.65;
  }

  .news-gallery {
    grid-column: 1 / -1;
  }

  .news-photo {
    height: 105px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {
  .news-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
  }

  .news-date {
    min-height: 65px;
  }

  .news-content h2 {
    font-size: 18px;
  }

  .news-gallery {
    gap: 6px;
  }

  .news-photo {
    height: 85px;
    border-radius: 5px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .news-photo img,
  .news-photo::after,
  .news-details-icon {
    transition: none;
  }
}