/* =========================================================
   KATEGORI NEWS — FULL CLEAN FIXED VERSION
   Consistent width, consistent cards, same as Home
========================================================= */

/* ===== RESET ===== */
*,
*::before,
*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{ font-size: 16px; }

body{
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }

/* GLOBAL WRAPPER */
.wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
========================================================= */
.header {
  background: #fff;
  border-bottom: 2px solid #ddd;
}

.header-top{
  background: #fff;
  color: #605e5e;
  text-align: center;
  font-size: 14px;
  padding: 6px;
}

.header-main{
  max-width: 1150px;
  margin: auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-main .left,
.header-main .right{
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-main .center{
  text-align: center;
}

.logo-img{
  height: 60px;
  object-fit: contain;
}

.tagline{
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.weather{
  font-size: 14px;
  color: #555;
}

.menu-btn{
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================
   NAVIGATION
========================================================= */
.nav{ background: #fff; }

.nav-links{
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
}

.nav-links a{
  color: #040404;
  font-weight: bold;
  transition: .3s;
}

.nav-links a:hover{ color: #ff0000; }

/* =========================================================
   FEATURED CATEGORY — EXACT SAME AS HOME
========================================================= */

.featured-article-wrapper{
    max-width: 1200px;
    margin: 20px auto 30px;
    padding: 0 20px;               /* biar kiri-kanan rapih */
}

.featured-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-article .featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* CATEGORY TAG */
.featured-article .category-tag{
    display: inline-block;
    background: #d71920;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 15px 15px 8px 15px;
}

/* TITLE */
.featured-article h2 {
    font-size: 22px;
    margin: 15px 18px 8px;
    color: #111;
    line-height: 1.3;
}

/* EXCERPT */
.featured-article p {
    font-size: 14px;
    color: #555;
    margin: 0 18px 12px;
}

/* DATE */
.featured-article .news-date {
    display: block;
    margin: 0 18px 18px;
    font-size: 13px;
    color: #d21f2a;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 900px){
  .featured-article .featured-image img{
    height: 240px;
  }
  .featured-article h2{ font-size: 20px; }
}

/* =========================================================
   LATEST NEWS LIST
========================================================= */

.latest-news{
  max-width: 1200px;
  margin: 10px auto 40px;
  padding: 0 10px;
}

.latest-news h3{
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d71920;
  color: #111;
}

.news-item{
  background: #fff;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  margin-bottom: 18px;
}

.news-image{
  flex: 0 0 260px;
}

.news-image img{
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-content{
  flex: 1;
  padding: 14px 18px 14px 0;
}

.news-item h4{
  font-size: 16px;
  margin-bottom: 6px;
  color: #111;
}

.news-item p{
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.news-date{
  font-size: 12px;
  font-weight: 600;
  color: #d32f2f;
}

/* RESPONSIVE LIST */
@media (max-width: 900px){
  .news-item{
    flex-direction: column;
  }
  .news-image img{
    height: 200px;
  }
  .news-content{
    padding: 12px;
  }
}

/* =========================================================
   FOOTER (SAMA PERSIS HOME)
========================================================= */
.footer{
  background: #f1f1f1;
  padding: 30px 20px 15px;
  margin-top: 40px;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo-img{
  width: 260px;
  height: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: 0.3s ease;
}

.footer-logo-img:hover{
  transform: scale(1.05);
  filter: brightness(1);
}

.footer-links h4{
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-links ul{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 20px;
}

.footer-links ul li a{
  color: #555;
  font-size: 13px;
  transition: .3s;
}

.footer-links ul li a:hover{ color: #e74c3c; }

.social-links{
  display: flex;
  gap: 12px;
}

.social-links img{
  width: 26px;
  filter: grayscale(40%);
  transition: .2s;
}

.social-links img:hover{
  filter: grayscale(0%);
  transform: scale(1.15);
}

.copyright{
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 15px;
}

/* =====================================
   FIX FINAL — MOBILE IMAGE FULL WIDTH
===================================== */
@media (max-width: 768px) {

  .latest-news {
    max-width: 92%;
    margin: 0 auto 32px;
  }

  .news-item {
    display: block;          /* ⬅️ MATIKAN FLEX */
    margin-bottom: 18px;
  }

  /* RESET container image */
  .news-image {
    width: 100%;
    flex: none;              /* ⬅️ INI KUNCI UTAMA */
  }

  /* IMAGE FULL, LANDSCAPE */
  .news-image img {
    width: 100%;
    height: 180px;           /* persegi panjang */
    object-fit: cover;
    display: block;
  }

  .news-content {
    padding: 12px 14px;
  }

  .news-item h4 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .news-item p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  .news-date {
    font-size: 11px;
  }
}

