/* RESET & BODY */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #333;
}

/* HEADER */
.header {
  background: white;
  padding: 15px 0;
  border-bottom: 2px solid #f0f0f0;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-area img{
    width:50px;
    height:55px;
    object-fit:cover;
    border-radius:8px;
}

.logo-text h1{
    margin:0;
    font-size:28px;
    color:#fff;
}

.logo-text small{
    color:#ddd;
}
.logo {
  color: #222;
  font-size: 28px;
  font-weight: bold;
}

.logo span {
  color: #0096b0;
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-form button {
  padding: 8px 10px;
  background: #0096b0;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
/* SEARCH POPUP */
.search-popup{
  display:none;
  position:absolute;
  top:70px;
  right:20px;
  background:white;
  padding:15px;
  border-radius:10px;
  box-shadow:0 5px 20px rgba(0,0,0,0.15);
  z-index:999;
}

.search-popup form{
  display:flex;
  gap:10px;
}

.search-popup input{
  width:250px;
  padding:10px;
  border:1px solid #ddd;
  border-radius:8px;
}

.search-popup button{
  border:none;
  background:#0087b0;
  color:white;
  padding:10px 15px;
  border-radius:8px;
  cursor:pointer;
}

.search-popup.show{
  display:block;
}
/* =========================
   TOPBAR
========================= */

.topbar{
  background:#f5f5f5;
  border-bottom:1px solid #ddd;
  font-size:13px;
}

.topbar-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
}

.top-left{
  display:flex;
  align-items:center;
  gap:15px;
}

.breaking-news{
  background:red;
  color:white;
  padding:4px 10px;
  border-radius:30px;
  font-size:11px;
  font-weight:bold;
}

.top-right{
  display:flex;
  gap:12px;
}

.top-right a{
  color:#333;
  font-size:14px;
}

/* =========================
   NAVBAR
========================= */

.navbar{
  background:#0087b0;
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.navbar-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:65px;
}

.nav-left{
  display:flex;
  align-items:center;
  gap:25px;
}

/* MENU */

#navMenu{
  display:flex;
  list-style:none;
  gap:20px;
  margin:0;
  padding:0;
}

#navMenu li a{
  color:white;
  text-decoration:none;
  font-weight:600;
  position:relative;
  padding:20px 0;
  transition:0.3s;
}

#navMenu li a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:10px;
  width:0%;
  height:2px;
  background:white;
  transition:0.3s;
}

#navMenu li a:hover::after{
  width:100%;
}

/* RIGHT */

.nav-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  width:40px;
  height:40px;
  border:none;
  background:rgba(255,255,255,0.15);
  color:white;
  border-radius:50%;
  cursor:pointer;
  transition:0.3s;
}

.icon-btn:hover{
  background:white;
  color:#0087b0;
}

.login-btn{
  text-decoration:none;
  color:white;
  border:1px solid rgba(255,255,255,0.4);
  padding:10px 18px;
  border-radius:30px;
  font-weight:600;
}

.subscribe-btn{
  text-decoration:none;
  background:white;
  color:#0087b0;
  padding:10px 18px;
  border-radius:30px;
  font-weight:bold;
}

/* =========================
   TRENDING
========================= */

.trending{
  background:#fafafa;
  border-bottom:1px solid #eee;
}

.trending-content{
  display:flex;
  align-items:center;
  gap:15px;
  padding:10px 0;
}

.trending strong{
  color:red;
  white-space:nowrap;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .topbar{
    display:none;
  }

  .menu-toggle{
    display:block;
    color:white;
    font-size:24px;
  }

  .navbar-content{
    padding:0 10px;
  }

  #navMenu{
    position:fixed;
    top:0;
    left:-100%;
    width:260px;
    height:100%;
    background:#0087b0;
    flex-direction:column;
    padding:80px 25px;
    transition:0.3s;
    z-index:9999;
  }

  #navMenu.active{
    left:0;
  }

  #navMenu li{
    width:100%;
  }

  #navMenu li a{
    display:block;
    width:100%;
    padding:14px 0;
  }

  .nav-right{
    gap:5px;
  }

  .login-btn{
    display:none;
  }

  .subscribe-btn{
    padding:8px 14px;
    font-size:13px;
  }

  .icon-btn{
    width:36px;
    height:36px;
  }
}


/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
    margin-top: 10px;
    display: flex;
  }

  .search-form input {
    width: 100%;
  }

  /* NAVBAR FIX */
  .navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar ul li {
    margin: 5px 6px;
  }

  .navbar ul li a {
    font-size: 13px;
    padding: 8px 5px;
  }

  /* GRID */
  .news-grid {
    grid-template-columns: 1fr;
  }

}

}

/* NAVBAR */
.navbar {
  background: #0087b0;
}

.navbar .container {
  width: 90%;
  margin: auto;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  padding: 12px 0;
  display: block;
}



/* TRENDING */
.trending {
  background: #f9f9f9;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.trending strong {
  color: #0087b0;
}

/* BERITA */
.news-section {
  padding: 40px 0;
}

.news-section h2 {
  margin-bottom: 20px;
  border-left: 4px solid #0087b0;
  padding-left: 10px;
}

/* ===== GRID BERITA ===== */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

/* ===== CARD BERITA ===== */
.news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* GAMBAR */
.news-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* KONTEN */
.news-content {
  padding: 14px;
}

/* JUDUL */
.news-content h3 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 700;
  color: #222;
}

/* ISI SINGKAT */
.news-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* FOOTER */
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BUTTON */
.btn-read {
  background: #0087b0;
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.btn-read:hover {
  background: #006f90;
}

/* SHARE */
.btn-share {
  border: none;
  background: none;
  color: #0d6efd;
  cursor: pointer;
  font-size: 14px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .news-grid {
    padding: 8px;
    gap: 15px;
  }

  .news-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .news-card img {
    height: 200px;
  }

  .news-content {
    padding: 12px;
  }

  .news-content h3 {
    font-size: 20px;
    line-height: 1.5;
  }

  .news-content p {
    font-size: 14px;
  }

  .btn-read {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* FOOTER */
.footer {
  background: #0087b0;
  color: #ccc;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}
