/* =====================================================
   HALAMAN SEMUA BERITA
   Putra Harapan Purwokerto
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */

.news-hero {
  padding: 82px 20px 78px;

  background:
    linear-gradient(
      135deg,
      #f4faf7 0%,
      #eaf5f0 100%
    );

  text-align: center;
}


.news-hero-content {
  max-width: 850px;
  margin: 0 auto;
}


.news-eyebrow,
.section-eyebrow {
  display: inline-block;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1.7px;

  color: #087052;
}


.news-eyebrow {
  margin-bottom: 18px;

  padding: 7px 15px;

  border-radius: 50px;

  background: #dcefe8;
}


.news-hero h1 {
  margin: 0 0 20px;

  font-family: "Manrope", sans-serif;

  font-size: clamp(
    48px,
    7vw,
    78px
  );

  line-height: 1.02;

  font-weight: 600;

  letter-spacing: -3px;

  color: #064d3d;
}


.news-hero p {
  max-width: 680px;

  margin: 0 auto;

  font-size: 18px;

  line-height: 1.7;

  color: #5c6d67;
}


/* =====================================================
   SECTION BERITA
   ===================================================== */

.all-news {
  padding: 90px 20px 100px;

  background: #ffffff;
}


.all-news .container {
  max-width: 1200px;
}


/* =====================================================
   HEADER
   ===================================================== */

.all-news-header {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 420px);

  gap: 50px;

  align-items: end;

  margin-bottom: 45px;
}


.all-news-header h2 {
  margin: 10px 0 0;

  font-family: "Manrope", sans-serif;

  font-size: clamp(
    34px,
    4vw,
    48px
  );

  line-height: 1.1;

  letter-spacing: -1.5px;

  color: #123e33;
}


.all-news-header p {
  margin: 0;

  font-size: 16px;

  line-height: 1.75;

  color: #66756f;
}


/* =====================================================
   FILTER
   ===================================================== */

.news-filter {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 35px;
}


.filter-button {
  padding: 10px 19px;

  border: 1px solid #dce8e3;

  border-radius: 50px;

  background: #ffffff;

  color: #53645e;

  font-family: inherit;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease;
}


.filter-button:hover {
  transform: translateY(-2px);

  border-color: #087052;

  color: #087052;
}


.filter-button.active {
  border-color: #087052;

  background: #087052;

  color: #ffffff;
}


/* =====================================================
   GRID
   ===================================================== */

.all-news-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}


/* =====================================================
   CARD
   ===================================================== */

.news-item {
  overflow: hidden;

  border: 1px solid #e4ebe8;

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 8px 30px rgba(
      20,
      55,
      45,
      .05
    );

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}


.news-item:hover {
  transform: translateY(-7px);

  box-shadow:
    0 18px 45px rgba(
      20,
      55,
      45,
      .11
    );
}


/* =====================================================
   FEATURE CARD
   ===================================================== */

.news-item-feature {
  grid-column: span 2;

  display: grid;

  grid-template-columns:
    1.15fr
    .85fr;
}


.news-item-feature .news-image {
  height: 100%;
  min-height: 360px;
}


/* =====================================================
   IMAGE
   ===================================================== */

.news-image {
  position: relative;

  display: block;

  height: 240px;

  overflow: hidden;

  background: #e8efec;
}


.news-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform .5s ease;
}


.news-item:hover .news-image img {
  transform: scale(1.05);
}


.news-image-label {
  position: absolute;

  top: 18px;
  left: 18px;

  padding: 7px 12px;

  border-radius: 50px;

  background: #087052;

  color: #ffffff;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.2px;
}


/* =====================================================
   CONTENT
   ===================================================== */

.news-item-content {
  padding: 27px;
}


.news-item-feature .news-item-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 38px;
}


.news-meta {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 14px;
}


.news-meta span {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.3px;

  color: #087052;
}


.news-meta time {
  padding-left: 12px;

  border-left: 1px solid #d9e2de;

  font-size: 12px;

  color: #89958f;
}


.news-item h3 {
  margin: 0 0 12px;

  font-family: "Manrope", sans-serif;

  font-size: 23px;

  line-height: 1.25;

  letter-spacing: -.6px;

  color: #143f34;
}


.news-item-feature h3 {
  font-size: 34px;

  letter-spacing: -1px;
}


.news-item p {
  margin: 0 0 22px;

  font-size: 15px;

  line-height: 1.7;

  color: #687771;
}


.news-read-more {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  width: fit-content;

  color: #087052;

  text-decoration: none;

  font-size: 14px;

  font-weight: 700;

  transition:
    gap .25s ease;
}


.news-read-more span {
  font-size: 18px;
}


.news-read-more:hover {
  gap: 13px;
}


/* =====================================================
   CTA
   ===================================================== */

.news-cta {
  padding: 0 20px 100px;

  background: #ffffff;
}


.news-cta-card {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;

  padding: 55px 60px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #064d3d,
      #087052
    );

  color: #ffffff;
}


.news-cta-card .section-eyebrow {
  color: #a9d8c9;
}


.news-cta-card h2 {
  max-width: 650px;

  margin: 12px 0 12px;

  font-family: "Manrope", sans-serif;

  font-size: clamp(
    30px,
    4vw,
    46px
  );

  line-height: 1.12;

  letter-spacing: -1.5px;

  color: #ffffff;
}


.news-cta-card p {
  max-width: 600px;

  margin: 0;

  font-size: 16px;

  line-height: 1.7;

  color: #d2e6df;
}


.news-cta-button {
  flex-shrink: 0;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 15px 22px;

  border-radius: 50px;

  background: #ffffff;

  color: #064d3d;

  text-decoration: none;

  font-size: 14px;

  font-weight: 700;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}


.news-cta-button:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 25px rgba(
      0,
      0,
      0,
      .15
    );
}


/* =====================================================
   NAVBAR ACTIVE
   ===================================================== */

.main-nav a.active:not(.nav-cta) {
  color: #087052;
}


/* =====================================================
   RESPONSIVE TABLET
   ===================================================== */

@media (max-width: 900px) {

  .all-news-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .news-item-feature {
    grid-column: span 2;
  }


  .all-news-header {
    grid-template-columns: 1fr;

    gap: 20px;
  }


  .news-cta-card {
    padding: 45px;
  }

}


/* =====================================================
   RESPONSIVE MOBILE
   ===================================================== */

@media (max-width: 650px) {

  .news-hero {
    padding: 60px 18px 58px;
  }


  .news-hero h1 {
    font-size: 46px;

    letter-spacing: -2px;
  }


  .news-hero p {
    font-size: 15px;
  }


  .all-news {
    padding: 65px 18px 70px;
  }


  .all-news-header {
    margin-bottom: 30px;
  }


  .all-news-header h2 {
    font-size: 36px;
  }


  .all-news-header p {
    font-size: 15px;
  }


  .news-filter {
    overflow-x: auto;

    flex-wrap: nowrap;

    padding-bottom: 5px;
  }


  .filter-button {
    flex-shrink: 0;
  }


  .all-news-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }


  .news-item-feature {
    grid-column: auto;

    display: block;
  }


  .news-item-feature .news-image {
    min-height: 230px;

    height: 230px;
  }


  .news-item-feature .news-item-content {
    padding: 27px;
  }


  .news-item-feature h3 {
    font-size: 27px;
  }


  .news-image {
    height: 220px;
  }


  .news-item-content {
    padding: 23px;
  }


  .news-item h3 {
    font-size: 21px;
  }


  .news-cta {
    padding: 0 18px 70px;
  }


  .news-cta-card {
    display: block;

    padding: 35px 27px;
  }


  .news-cta-card h2 {
    font-size: 30px;
  }


  .news-cta-button {
    margin-top: 25px;
  }

}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 400px) {

  .news-hero h1 {
    font-size: 40px;
  }


  .news-eyebrow {
    font-size: 10px;
  }


  .news-item-feature h3 {
    font-size: 25px;
  }

}
/* Grid box 3×3 seragam */
  .gallery-box {
    width: 100%;
    aspect-ratio: 1 / 1; /* Buat kotak selalu persegi */
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Gambar proporsional memenuhi kotak */
  .gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar isi kotak tanpa distorsi */
    transition: transform 0.3s ease;
  }

  .gallery-box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  }