/* =========================================
   NEWS FPDM - MAIN STYLESHEET
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f7;
  color: #222;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand a {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #176b3a;
}

.brand span {
  font-size: 13px;
  color: #777;
}


/* =========================================
   NAVIGATION
   ========================================= */

.navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navigation a {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: 0.2s ease;
}

.navigation a:hover {
  color: #176b3a;
}


/* =========================================
   MAIN
   ========================================= */

main {
  min-height: 65vh;
  padding: 50px 0;
}

main h1 {
  margin-top: 0;
  font-size: 38px;
  line-height: 1.2;
}

main h2 {
  line-height: 1.3;
}

main p {
  color: #555;
}


/* =========================================
   POST
   ========================================= */

.post {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
}

.post-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.post-meta {
  color: #888;
  font-size: 14px;
  margin-bottom: 30px;
}

.post-content {
  font-size: 17px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


/* =========================================
   POST LIST
   ========================================= */

.post-list {
  display: grid;
  gap: 20px;
}

.post-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  transition: 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.post-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.post-card h2 a {
  color: #176b3a;
}

.post-date {
  font-size: 13px;
  color: #888;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: #17201b;
  color: #ffffff;
  padding: 45px 0;
  margin-top: 50px;
}

.site-footer p {
  color: #bfc5c1;
  margin: 5px 0;
}

.site-footer strong {
  font-size: 20px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

  .header-inner {
    min-height: auto;
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .brand a {
    font-size: 25px;
  }

  .navigation {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }

  .navigation a {
    font-size: 14px;
  }

  main {
    padding: 30px 0;
  }

  main h1 {
    font-size: 30px;
  }

  .post {
    padding: 25px 20px;
    border-radius: 8px;
  }

  .post-title {
    font-size: 30px;
  }

  .post-content {
    font-size: 16px;
  }

}

/* =========================================
   NEWS PORTAL
   ========================================= */

.news-section {
  margin-bottom: 70px;
}


/* =========================================
   SECTION TITLE
   ========================================= */

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 2px solid #176b3a;
  padding-bottom: 15px;
}

.section-title span {
  color: #176b3a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.section-title h2 {
  margin: 3px 0 0;
  font-size: 30px;
}

.section-title > a {
  color: #176b3a;
  font-weight: 700;
}


/* =========================================
   FEATURED NEWS
   ========================================= */

.featured-news {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}


/* berita utama */

.featured-card {
  background: #ffffff;
  border: 1px solid #e4e7e5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.featured-image {
  height: 360px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: #176b3a;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}

.featured-content {
  padding: 28px;
}

.category {
  color: #176b3a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.featured-content h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 10px 0;
}

.featured-content h2 a:hover {
  color: #176b3a;
}

.date {
  color: #888;
  font-size: 13px;
}

.featured-content p {
  color: #666;
  margin: 18px 0;
}

.read-button {
  display: inline-block;

  background: #176b3a;
  color: white;

  padding: 10px 18px;

  border-radius: 6px;

  font-size: 14px;
  font-weight: 700;
}

.read-button:hover {
  background: #0f4d2a;
}


/* =========================================
   SIDE NEWS
   ========================================= */

.side-news {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: white;

  border: 1px solid #e4e7e5;

  border-radius: 12px;

  overflow: hidden;

  display: grid;
  grid-template-columns: 125px 1fr;

  min-height: 150px;
}

.side-image {
  height: 100%;
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-placeholder {
  width: 100%;
  height: 100%;

  background: #176b3a;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
}

.side-content {
  padding: 16px;
}

.side-content h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 7px 0;
}

.side-content h3 a:hover {
  color: #176b3a;
}


/* =========================================
   NEWS GRID
   ========================================= */

.news-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}


.news-box {
  background: white;

  border: 1px solid #e4e7e5;

  border-radius: 12px;

  overflow: hidden;

  transition: .25s ease;
}

.news-box:hover {
  transform: translateY(-5px);

  box-shadow:
    0 12px 30px rgba(0,0,0,.08);
}


/* thumbnail */

.news-image {
  height: 190px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* isi */

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 20px;
  line-height: 1.35;

  margin: 8px 0;
}

.news-content h3 a:hover {
  color: #176b3a;
}

.news-content p {
  font-size: 14px;
  color: #666;
}

.read-more {
  display: inline-block;

  margin-top: 8px;

  color: #176b3a;

  font-size: 14px;
  font-weight: 700;
}


/* =========================================
   HERO
   ========================================= */

.hero {
  background: #176b3a;

  color: white;

  padding: 65px 55px;

  border-radius: 14px;

  margin-bottom: 60px;
}

.hero-label {
  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;

  color: #d8f0df;
}

.hero h1 {
  max-width: 800px;

  font-size: 48px;

  line-height: 1.15;

  margin: 10px 0 20px;
}

.hero p {
  max-width: 700px;

  color: #e5eee9;

  font-size: 17px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

  .hero {
    padding: 40px 25px;

    border-radius: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }


  .section-title {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;
  }


  .featured-news {
    grid-template-columns: 1fr;
  }


  .featured-image {
    height: 230px;
  }


  .featured-content h2 {
    font-size: 25px;
  }


  .news-grid {
    grid-template-columns: 1fr;
  }


  .news-image {
    height: 210px;
  }


  .side-card {
    grid-template-columns: 110px 1fr;
  }

}
