*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Georgia',serif;background:#f8f8f8;color:#121212;line-height:1.6;}
.container{max-width:1200px;margin:auto;padding:20px;}

/* Slider */
.slider{position:relative;overflow:hidden;border-radius:6px;margin-bottom:40px;}
.slide{display:none;position:relative;cursor:pointer;}
.slide img{width:100%;height:420px;object-fit:cover;display:block;}
.slide.active{display:block;transition:opacity .5s ease-in-out;}
.slide-overlay{position:absolute;bottom:0;left:0;width:100%;height:50%;background:linear-gradient(to top,rgba(0,0,0,.6),transparent);}
.slide-text{
  position:absolute;bottom:20px;left:20px;max-width:65%;color:#fff;z-index:2;
  padding:5px 10px;
}
.slide-text::before{
  content:"";
  position:absolute;
  top:0; left:-20px; right:-20px;
  height:100%;
  background:rgba(0,0,0,0.25);
  backdrop-filter:blur(5px);
  border-radius:6px;
  z-index:-1;
}
.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.4);
  border:none;
  color:#fff;
  padding:10px 15px;
  cursor:pointer;
  font-size:1.2rem;
  border-radius:4px;
  z-index:5;
}
.prev{left:10px;}
.next{right:10px;}

/* Trending horizontal ala koran */
.trending{margin:40px 0;padding-bottom:20px;border-bottom:1px solid #ccc;}
.trending h3{
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:15px; 
  border-bottom:1px solid #ddd; 
  padding-bottom:8px;
}
.trending-list{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  border-left:1px solid #eee;
}
.trending-item{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:10px 15px;
  text-align:center;
  border-right:1px solid #eee;
  box-sizing:border-box;
}
.trending-item img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:4px;
  margin-bottom:8px;
}
.trending-item a{
  font-size:0.8rem;
  font-weight:600;
  text-decoration:none;
  color:#121212;
}
.trending-item a:hover{
  color:#0077cc;
  text-decoration:underline;
}
/* Desktop: 7 kotak */
@media(min-width:1200px){
  .trending-item{width:calc(100% / 7);}
}
/* Tablet: 4 kotak */
@media(max-width:1199px) and (min-width:768px){
  .trending-item{width:calc(100% / 4);}
}
/* HP: 3 kotak per baris */
@media(max-width:767px){
  .trending-item{
    width:calc(100% / 3);
    border-bottom:1px solid #eee;
  }
  .trending-item:nth-child(3n){ border-right:none; }
  .trending-item:last-child{ border-bottom:none; }
}

/* Category */
.category-section{margin-bottom:50px;padding-bottom:30px;border-bottom:1px solid #ccc;}
.category-title{font-size:1.8rem;font-weight:700;margin-bottom:10px;}
.category-short-desc{font-size:1rem;color:#555;background:#eee;padding:10px 15px;border-radius:4px;margin-bottom:20px;line-height:1.4;}
.category-articles{display:flex;flex-wrap:wrap;gap:20px;}
.category-article{flex:1;min-width:220px;position:relative;border-radius:6px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.1);display:flex;flex-direction:column;}
.category-article img{width:100%;height:200px;object-fit:cover;}
.category-article.highlight img{height:350px;}
.article-text-overlay{
  position:absolute;bottom:15px;left:15px;max-width:80%;z-index:2;
  padding:5px 10px;
}
.category-article.medium .article-text-overlay h3,
.category-article.small .article-text-overlay h3{
  font-size:1rem; 
  font-weight:600;
}
.article-text-overlay h3{margin:0;font-size:1.4rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,0.5);}
.article-text-overlay::before{
  content:"";
  position:absolute;
  top:0; left:-20px; right:-20px;
  height:100%;
  background:rgba(0,0,0,0.2);
  backdrop-filter:blur(4px);
  border-radius:6px;
  z-index:-1;
}

.category-quote{font-style:italic;font-size:.9rem;color:#333;margin:8px 0 10px;padding:0 15px;}
.category-quote .quote-mark{font-size:1.4rem;color:#0077cc;margin-right:4px;}
.category-quote .end{margin-left:3px;}
.category-readmore{font-size:.9rem;color:#0077cc;margin:5px 0 15px 15px;text-decoration:none;display:inline-block;}
.category-readmore:hover{text-decoration:underline;}

/* Responsif slider & kategori */
@media(max-width:768px){
  .category-articles{flex-direction:row;flex-wrap:wrap;gap:10px;}
  .category-article.highlight img{height:250px;}
  .slide-text{bottom:60px;left:55px;max-width:75%;}
  .slide-text h2{font-size:1.2rem;}
  .slide-text p{font-size:0.85rem;}
  .article-text-overlay h3{font-size:1rem;}
}

@media(max-width:480px){
  /* Compact kategori 3 per baris */
  .category-articles{gap:8px;}
  .category-article.medium,
  .category-article.small{
    flex:0 0 calc(33.333% - 8px);
    max-width:calc(33.333% - 8px);
    min-width:0;
  }

  /* Perkecil judul overlay */
  .category-article.medium .article-text-overlay h3,
  .category-article.small .article-text-overlay h3{
    font-size:0.75rem; 
    line-height:1.1rem;
  }

  /* Perkecil quote & hilangkan icon quote */
  .category-article.medium .category-quote,
  .category-article.small .category-quote{
    font-size:0.7rem;
    line-height:0.9rem;
    padding:0 5px;
  }
  .category-article.medium .category-quote .quote-mark,
  .category-article.small .category-quote .quote-mark{
    display:none;
  }

  /* Perkecil "Baca lebih lanjut" */
  .category-article.medium .category-readmore,
  .category-article.small .category-readmore{
    font-size:0.7rem;
    margin:3px 0 8px 5px;
  }

  /* Highlight tetap full width */
  .category-article.highlight{
    flex:0 0 100%;
    max-width:100%;
    margin-bottom:10px;
  }
}
