/* Global */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;
  padding: 10px 0;
  height: 75px;              /* tinggi ideal untuk desktop */
  background: transparent;
  color: white;
}

header.scrolled {
  background: white;
}

header.scrolled nav a {
  color: #003b6f;
}

/* Container & Header Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  display: block;
  margin-right: 12px;
}

/* Navbar */
nav a {
  color: white;
  margin-left: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 59, 111, 0.6), rgba(0, 59, 111, 0.6)),
    url('https://images.pexels.com/photos/257700/pexels-photo-257700.jpeg?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  padding: 160px 40px 100px;
  text-align: center;
  color: white;
}

.hero h1 {
  color: #8bc500;
  font-size: 42px;
}

.hero p {
  font-size: 18px;
  margin-top: 10px;
}

.hero .cta {
  background: #8bc500;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  margin-top: 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Section */
.section {
  padding: 80px 40px 60px;
}

.section h2 {
  color: #003b6f;
  text-align: center;
  margin-bottom: 20px;
}

.swiper-slide {
    width: 100% !important;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .swiper-slide img {
    width: 100%;
    height: 400px; /* Portrait size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .swiper-slide h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #1d4ed8;
    text-align: center;
  }

  .swiper-slide p {
    font-size: 14px;
    color: #444;
    text-align: center;
    margin: 0 0 8px;
  }

  .swiper-slide a {
    font-size: 14px;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: #1d4ed8;
  }

  .swiper-pagination-bullet-active {
    background-color: #1d4ed8;
  }


/* Why Us */
.why-us ul {
  max-width: 800px;
  margin: auto;
  list-style: none;
  padding-left: 0;
}

.why-us li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
}

.why-us li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #8bc500;
}

/* Masonry Gallery (Pinterest style) */
.gallery {
  column-count: 4;
  column-gap: 16px;
}

.gallery img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  border-radius: 8px;
  break-inside: avoid;
}

/* Responsive */
@media (max-width: 992px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}

/* Container & Section Styling */
#contact {
  padding: 60px 20px;
  background: #f9f9f9;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-header .subtitle {
  color: #888;
  font-size: 14px;
}

/* Layout: Info & Form Side by Side */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

/* Info Box */
.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.contact-info div {
  margin-bottom: 24px;
}

.contact-info h3 {
  margin: 0;
  font-size: 16px;
  color: #1d4ed8;
}

.contact-info p {
  margin: 4px 0;
  color: #444;
}

.contact-info a {
  font-size: 14px;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

/* Form Box */
.contact-form-box {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95); /* sedikit transparan */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-form-box label {
  font-size: 14px;
  font-weight: 500;
  color: #003b6f;
  margin-bottom: 4px;
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 6px 10px;        /* Lebih pendek dari biasanya */
  font-size: 13px;          /* Ukuran teks sedikit lebih kecil */
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fefefe;
  color: #333;
  box-sizing: border-box;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
  outline: none;
  border-color: #8bc500;
  box-shadow: 0 0 0 2px rgba(139, 197, 0, 0.2);
}

.contact-form-box button {
  background-color: #8bc500;
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.contact-form-box button:hover {
  background-color: #7aad00;
}

/* Footer */
footer {
  background: #003b6f;
  color: white;
  text-align: center;
  padding: 20px;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.why-us-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: justify;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.why-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 16px;
}

.why-list li {
  margin-bottom: 12px;
}

/* 📱 Responsive Header */
@media (max-width: 768px) {
  header {
    height: 65px;
    padding: 8px 0;
  }

  .logo img {
    height: 48px;            /* logo lebih kecil di tablet */
    margin-right: 10px;
  }

  nav a {
    font-size: 14px;
    margin-left: 16px;
  }
}

@media (max-width: 480px) {
  header {
    height: auto;
    padding: 6px 0;
  }

  .logo img {
    height: 40px;            /* logo kecil di HP */
    margin-right: 10px;
  }

  nav a {
    font-size: 13px;
    margin-left: 12px;
  }

  .header-flex {
    flex-direction: column;
    gap: 8px;
  }
}