/* Tema Horor */

/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
}

/* BODY */
body {
  background: #1a1a1a;
  color: #eee;
  line-height: 1.6;
  
}

/* NAVBAR - Mobile first approach */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #f44336;
  text-transform: uppercase;
}

/* Base navbar styles (mobile first) */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #f44336;
  text-transform: uppercase;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: block;
  cursor: pointer;
  font-size: 24px;
  color: #eee;
}

/* Navigation menu container */
.nav-menu {
  display: none; /* Hidden by default on mobile */
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
}

/* Show menu when active class is added */
.nav-menu.active {
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.navbar ul li:last-child {
  border-bottom: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #eee;
  font-size: 14px;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.navbar ul li a:hover {
  color: #f44336;
}

/* Desktop styles - IMPORTANT: This needs to override the mobile styles */
@media screen and (min-width: 768px) {
  body {
    margin-top: 60px;
  }
  
  .navbar {
    flex-wrap: nowrap;
    padding: 15px 30px;
  }
  
  .logo {
    font-size: 26px;
  }
  
  /* Hide menu toggle on desktop */
  .menu-toggle {
    display: none !important;
  }
  
  /* Always show nav menu on desktop */
  .nav-menu {
    display: block !important;
    position: static;
    width: auto;
    background: transparent;
  }
  
  .navbar ul {
    flex-direction: row;
    gap: 20px;
    margin: 0;
  }
  
  .navbar ul li {
    width: auto;
    border-bottom: none;
    padding: 0;
  }
  
  .navbar ul li a {
    font-size: 16px;
    padding: 0;
  }
}

/* HERO SECTION */
.hero {
  width: 100%;
  height: 30vh;
  background: url("") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 42px;
  color: #f44336;
  text-shadow: 2px 2px 4px #000;
}

.hero p {
  font-size: 20px;
  color: #ddd;
  text-shadow: 1px 1px 2px #000;
}
  
/* BERITA CONTAINER */
.berita-container {
  padding: 50px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
  
.berita-container h2 {
  font-size: 28px;
  color: #f44336;
  margin-bottom: 20px;
  text-align: center;
}
  
/* BERITA ITEM */
.berita-item {
  background: #222;
  margin-bottom: 20px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #444;
}
  
.berita-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
}
  
.berita-content {
  padding: 15px;
  color: #eee;
}
  
.berita-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #f44336;
}
  
.berita-content p {
  font-size: 14px;
  margin-bottom: 10px;
}
  
.btn-read {
  display: inline-block;
  padding: 8px 15px;
  background: #f44336;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}
  

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  .berita-item img {
    width: 250px;
    height: 180px;
  }
}
  
/* Tablet View */
@media (max-width: 768px) {
  body {
    margin-top: 60px;
  }
  
  .hero {
    height: auto;
    padding: 50px 15px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .berita-container {
    padding: 40px 15px 20px;
  }
  
  .berita-item {
    flex-direction: column;
  }
  
  .berita-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
  
}

/* Mobile View */
@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }
  
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .berita-container h2 {
    font-size: 24px;
  }
  
  .berita-content h3 {
    font-size: 18px;
  }
  
}