/* ============================= */
/* 🌟 GLOBAL STYLE - RESPONSIVE CLICK2BOOK PSIS 🌟 */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

/* Hamburger menu (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #8B0000;
}

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-menu li {
  position: relative;
}

/* Link utama */
.navbar-menu li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  display: inline-block;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
  color: #8B0000;
}

/* Dropdown */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 180px;
  background: #fff;
  list-style: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  z-index: 999;
}

.dropdown-content li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s;
}

.dropdown-content li a:hover {
  background: #f2f2f2;
  color: #8B0000;
}

/* Bila hover, baru tunjukkan */
.navbar-menu li:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s; /* muncul terus */
}

/* Bila keluar hover, dropdown hilang lepas 0.3s */
.navbar-menu li:not(:hover) .dropdown-content {
  transition-delay: 0.3s; /* lambat sikit hilang */
}
/* Dropdown hover animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Daftar button */
.daftar-button {
  background: #8B0000;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}
.daftar-button:hover {
  background: #156721;
  transform: scale(1.05);
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 80px;
  background: #fbf7f7;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 450px;
}

.hero-text h1 {
  font-size: 46px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-text h1 span { color: #8B0000; }

.hero-text p {
  color: #555;
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: #8B0000;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}
.cta-button:hover {
  background: #cd4040;
  transform: scale(1.05);
}

.hero-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ============================= */
/* FASILITI SECTION */
/* ============================= */
.section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #8B0000;
  margin-bottom: 30px;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card p {
  margin: 10px 0;
  font-weight: bold;
  color: #333;
}

/* ============================= */
/* CALENDAR SECTION */
/* ============================= */
.calendar-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 50px 20px;
  margin-top: 50px;
}

.calendar-section h3 {
  font-size: 1.6rem;
  color: #8B0000;
  margin-bottom: 10px;
}

.calendar-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.calendar-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  max-width: 300px;
}
.calendar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.calendar-icon {
  font-size: 55px;
  margin-bottom: 10px;
}
.calendar-card h4 {
  color: #8B0000;
  margin-bottom: 5px;
}
.calendar-card p {
  color: #555;
  font-size: 14px;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
  background-color: #8B0000;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ============================= */
/* 📱 MEDIA QUERIES */
/* ============================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 30px;
  }
  .hero-text h1 { font-size: 36px; }
  .hero-image img { max-width: 80%; }

  .navbar {
    flex-wrap: wrap;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
  }

  .navbar-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .navbar-menu li {
    text-align: center;
    padding: 8px 0;
    width: 100%;
  }

  /* Dropdown dalam mobile */
  .navbar-menu li:hover .dropdown-content {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
  }

  .dropdown-content li a {
    padding: 8px 0;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .container, .calendar-icons {
    grid-template-columns: 1fr;
  }
}
