@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  body {
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /*Bar atas*/
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 1000;
    border-bottom: 2px solid #ff0000;
  }

  .logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-transform: uppercase;
  }

  .logo span {
    color: #ff1e00;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
  }

  nav ul li {
  position: relative; /* Wajib ada biar posisi dropdown nempel di induknya */
  }
  
  nav a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
  }

  .btn-kontak {
  background: #ff1e00;
  color: #fff;
  padding: 10px 24px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-kontak:hover {
  background: #cc1700;
  transform: translateY(-2px);
}

/* ========================================= */
/* DROPDOWN OUR SERVICE                      */
/* ========================================= */

/* Panah kecil di samping Our Service */
.arrow {
  font-size: 0.8rem;
  margin-left: 3px;
  color: #ff1e00;
}

/* KOTAK SUBMENU DROPDOWN */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Ditaruh tepat di bawah menu utama */
  left: 0;
  background-color: #141414;
  border: 1px solid #222222;
  border-top: 3px solid #ff1e00;
  min-width: 230px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border-radius: 0 0 6px 6px;
  z-index: 1001;
  padding: 8px 0;
  flex-direction: column; /* Bikin susunan anak menu ke bawah */
  gap: 0;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: #cccccc;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

/* Efek saat mouse mengarah ke item pilihan (Jual/Tukar Tambah) */
.dropdown-menu a:hover {
  background-color: #ff1e00;
  color: #ffffff;
  padding-left: 25px; /* Geser sedikit ke kanan pas di-hover */
}

/* MUNCULKAN DROPDOWN KETIKA MENU OUR SERVICE DI-HOVER */
.dropdown:hover .dropdown-menu {
  display: flex;
}


  /* SECTION BLOG */
.blog-section {
  background-color: #0d0d0d;
  padding-bottom: 100px;
}

/* BANNER JUDUL BLOG (MENYESUAIKAN GAYA SEBELUMNYA) */
.blog-banner {
  height: 350px;
  background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.9) 100%),
              url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #ff1e00;
  margin-bottom: 60px;
}

.blog-banner h2 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.blog-banner h2 span {
  color: #ff1e00;
}

/* CONTAINER GRID BLOG */
.blog-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

/* KARTU ARTIKEL BLOG */
.blog-card {
  background: #141414;
  border: 1px solid #222222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: #ff1e00;
}

.blog-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.08);
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s;
}

.blog-title:hover {
  color: #ff1e00;
}

.blog-meta {
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 15px;
}

.blog-meta span {
  color: #ff1e00;
  font-weight: 600;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #222222;
  padding-top: 15px;
  font-size: 0.8rem;
}

.read-more {
  color: #ff1e00;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.read-more:hover {
  color: #ffffff;
}

.blog-comments {
  color: #666666;
}

/* FOOTERS */
    footer {
      background-color: #050505;
      color: #888888;
      padding: 60px 20px 8%;
      border-top: 2px solid #222222;
      
    }

    .footer-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      margin-bottom: 40px ;
    }

    .footer-col h3 {
      color: #ffffff;
      font-size: 1.1rem;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 20px;
      letter-spacing: 1px;
      border-left: 3px solid #ff1e00;
      padding-left: 10px;
    }

    .footer-col p {
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 15px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 10px;

    }

    .footer-links a {
      color: #aaaaaa;
      text-decoration: none;
      font-size: 0.9rem;

    }

    .footer-socials {
      display: flex;
      gap: 15px;
      
    }

    .footer-socials a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background-color: #141414;
      color: #fff;
      border-radius: 4px;
      text-decoration: none;
      border: 1px solid #222;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 14px;
    }

/* =========================================================
   RESPONSIVE UPDATE — TABLET & HANDPHONE
   Navigasi tetap tampil dan bisa digunakan pada layar sentuh.
   ========================================================= */
img, video, iframe {
  max-width: 100%;
}
html {
  scroll-padding-top: 110px;
}
body {
  max-width: 100%;
}

@media (max-width: 1024px) {
  header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 13px 4%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }

  header .logo {
    font-size: clamp(1.12rem, 2.5vw, 1.55rem);
    line-height: 1.2;
    min-width: 0;
  }

  header > nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
  }

  header > nav > ul {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 9px 18px;
  }

  header > nav > ul > li {
    min-width: 0;
  }

  header nav a {
    font-size: .82rem;
    letter-spacing: .35px;
  }

  header > a {
    margin-left: auto;
    flex-shrink: 0;
  }

  .btn-kontak {
    padding: 9px 15px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: flex;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-col,
  .footer-container > * {
    min-width: 0;
  }

  .footer-socials {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 125px;
  }

  header {
    padding: 10px 12px;
    gap: 10px 8px;
  }

  header .logo {
    font-size: clamp(.92rem, 3.9vw, 1.18rem);
    letter-spacing: -.3px;
    overflow-wrap: anywhere;
  }

  header .logo img {
    width: 24px;
    height: auto;
  }

  header > nav > ul {
    justify-content: center;
    gap: 8px 12px;
  }

  header nav a {
    font-size: .68rem;
    letter-spacing: 0;
  }

  .btn-kontak {
    padding: 8px 10px;
    font-size: .67rem;
  }

  .dropdown-menu {
    min-width: 205px;
    max-width: calc(100vw - 24px);
  }

  .dropdown-menu a {
    display: block;
    padding: 11px 14px;
    font-size: .72rem;
    white-space: normal;
  }

  footer {
    padding: 40px 16px 28px;
  }

  .footer-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-bottom: 28px;
  }

  .footer-col h3 {
    font-size: 1rem;
    margin-bottom: 13px;
  }

  .footer-col p,
  .footer-links a {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    font-size: .76rem;
    line-height: 1.6;
  }
}


/* RESPONSIVE BLOG */
@media (max-width: 1024px) {
  .blog-banner { height: 300px; margin-bottom: 40px; }
  .blog-banner h2 { font-size: clamp(2rem, 5vw, 2.7rem); padding: 0 18px; }
  .blog-container { padding: 0 24px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .blog-content { padding: 20px; }
}
@media (max-width: 640px) {
  .blog-banner { height: 235px; margin-bottom: 30px; }
  .blog-banner h2 { font-size: clamp(1.45rem, 6.5vw, 2rem); letter-spacing: .5px; line-height: 1.25; }
  .blog-container { padding: 0 14px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .blog-img-box { height: 190px; }
  .blog-content { padding: 17px; }
  .blog-title { font-size: 1.08rem; }
  .blog-excerpt { font-size: .9rem; margin-bottom: 18px; }
  .blog-footer { flex-wrap: wrap; gap: 10px; }
  .blog-section { padding-bottom: 55px; }
}
