/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f4f5f7;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
.header {
  position: relative;
  height: 260px;
  background: url("img/workshop-banner.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 100, 0.55);
}

.header-title {
  position: relative;
  font-size: 2.8rem;
  color: white;
  font-weight: 700;
  z-index: 2;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* CARD STYLE */
.card {
  background: white;
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

/* SECTION TITLE */
h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #003d7a;
  font-weight: 600;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* BACK BUTTON */
.back-container {
  text-align: center;
  margin-top: 35px;
}

.back-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #003d7a;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s ease;
  font-weight: 500;
}

.back-btn:hover {
  background: #002955;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-title {
    font-size: 2rem;
  }

  .gallery-item img {
    height: 180px;
  }
}

/* ================================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f6f7fb;
  color: #333;
}

/* ================================
   CONTAINER
================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================================
   NAVBAR
================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 1, 1, 0.8);
  background: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e6004c;
  letter-spacing: 1px;
}

.logo-text {
  font-size: 1.8rem;
  color: #003d7a;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #e6004c;
}

/* ================================
   DROPDOWN MENU
================================ */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  width: 180px;
  padding: 10px 0;
  border-radius: 12px;
  list-style: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: fadeSlide 0.25s ease;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.dropdown-menu li:hover {
  background: #ffe6ef;
}

/* Dropdown animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   HERO SECTION
================================ */
/* HERO WRAPPER */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Slider container */
.slider {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
  font-size: 45px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* ================================
   SECTION BASIC
================================ */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #e6004c;
  text-align: center;
  margin-bottom: 2rem;
}

/* ================================
   ABOUT – TABS
================================ */
.about-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 10px 25px;
  border: none;
  background: #ffc2d6;
  color: #333;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn:hover {
  background: #ff8fb8;
  color: white;
}

.tab-btn.active {
  background: #e6004c;
  color: white;
}

.tab-content {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: fade 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* READ MORE BUTTON */
.read-more-btn {
  margin-top: 1rem;
  padding: 10px 20px;
  background: #e6004c;
  border: none;
  color: white;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
}

.read-more-btn:hover {
  background: #c40040;
}

/* ================================
   SERVICE GRID
================================ */
.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
  cursor: pointer;
  color: #333;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-8px);
  background: #ffe6ef;
}

/* ================================
   CONTACT FORM
================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: white;
}

.contact-form textarea {
  height: 150px;
}

.btn-primary {
  padding: 1rem;
  background: #e6004c;
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #c40040;
}

.success-msg {
  margin-top: 1rem;
  font-weight: 600;
  color: green;
  display: none;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .tab-btn {
    padding: 8px 18px;
  }
}

/* Grid Tentang */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: 0.3s;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
  color: #ff3366;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  min-height: 80px;
}

.more-btn {
  margin-top: 15px;
  padding: 10px 18px;
  background: #ff3366;
  border: none;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.more-btn:hover {
  background: #cc004f;
}

/* POPUP MODAL */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 750px;
  padding: 25px;
  border-radius: 12px;
  margin: 80px auto;
  animation: fadeIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.modal-content #modalText {
  text-align: justify;
  line-height: 1.6;
}

/* ================================
   NEWS CARD WITH IMAGE
/* ================================
   NEWS CARD – SMALL SPACED VERSION
================================ */
.news-grid {
  display: grid;
  gap: 2rem; /* jarak antar card lebih longgar */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.news-card {
  display: block;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  transition: 0.3s;
  overflow: hidden;
  padding-bottom: 15px; /* ruang bawah longgar */
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.news-image-box {
  width: 100%;
  height: 170px; /* tidak terlalu kecil */
  overflow: hidden;
}

.news-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-title {
  font-size: 1rem; /* sedikit diperbesar agar enak dibaca */
  font-weight: 700;
  padding: 1rem; /* tidak mepet */
  color: #e6004c;
  line-height: 1.5;
}

.news-desc {
  padding: 0 1rem 1rem 1rem; /* spacing rapi */
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GRID BERITA */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  padding-bottom: 15px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-title {
  padding: 10px 15px 0;
  font-size: 18px;
  font-weight: 600;
}

.news-desc {
  padding: 0 15px 10px;
  color: #555;
}

.read-more {
  display: block;
  padding: 10px 15px;
  font-weight: bold;
  color: #0066ff;
}

/* DETAIL BERITA */
.detail-container {
  max-width: 800px;
  margin: 40px auto;
}

.back-btn {
  display: inline-block;
  padding: 10px 15px;
  color: #fff;
  background-color: #0066ff;
  font-weight: bold;
}

.detail-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
}

.detail-content {
  font-size: 18px;
  line-height: 1.7;
}

/* Tombol Baca Selengkapnya */
.btn-read {
  display: inline-block;
  margin: 10px 15px 0;
  padding: 10px 18px;
  background: #0077ff;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-read:hover {
  background: #005fcc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
}

/* Tombol Kembali */
.btn-back {
  display: inline-block;
  padding: 10px 18px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #111827;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-back:hover {
  background: #e5e7eb;
  border-color: #c5c9d1;
  transform: translateX(-3px);
}

/* Judul detail berita */
.detail-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Area konten detail */
.detail-content {
  text-align: justify; /* rata kanan-kiri */
  line-height: 1.7;
}

/* Setiap paragraf menjorok */
.detail-content p {
  text-indent: 1cm; /* menjorok 1 cm */
  margin-bottom: 15px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* jarak antara logo dan tulisan */
}

.logo-img {
  width: 40px; /* bisa kamu atur sesuai kebutuhan */
  height: auto;
}

/* Bagian Kontak */
.contact-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 25px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
  cursor: pointer;
  transition: 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
  filter: brightness(0.7) invert(1);
}

/* =============================
   KONTAK - LAYOUT UTAMA
============================= */
.contact-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 320px;
}

/* =============================
   MAP RESPONSIF
============================= */
.contact-info iframe {
  width: 100% !important;
  height: 250px;
  border: 0;
  border-radius: 10px;
}

/* =============================
   CONTACT INFO
============================= */
.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info p {
  line-height: 1.6;
}

/* =============================
   KONTAK LAYOUT
============================= */

.contact-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

/* INFO & FORM MENDAMPINGI DI DESKTOP */
.contact-info,
.contact-form {
  flex: 1;
  min-width: 350px;
}

/* =============================
   MAP AGAR RESPONSIF
============================= */
.map-container {
  width: 100%;
  margin-top: 10px;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 10px;
}

/* =============================
   FORM KONTAK
============================= */
.contact-form {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 120px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
}

.success-msg {
  display: none;
  color: green;
  margin-top: 10px;
}

/* =============================
   RESPONSIVE MOBILE
============================= */
@media (max-width: 768px) {
  .contact-section .container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .map-container iframe {
    height: 200px;
  }
}

/* ===== NAVBAR BASE ===== */
.navbar {
  width: 100%;
  background: white;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
}

/* Navbar Menu */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 18px;
  color: black;
}

.nav-links a:hover {
  color: red;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  list-style: none;
  margin-top: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===== HAMBURGER (HIDDEN BY DEFAULT) ===== */
.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
}

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 992px) {
  .logo-img {
    width: 45px;
    height: 45px;
  }

  .logo-text {
    font-size: 20px;
  }

  .nav-links a {
    font-size: 16px;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 220px;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .nav-links.show {
    display: flex;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 18px;
  }
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #ff4d6d;
  color: #fff;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
  background: #ff3359;
}
