/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
  background-color: #fff;
  border-bottom: 2px solid #c20000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  margin-right: 20px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #c20000;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* sits right under the parent */
  left: 0;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #c20000;
}

/* Show dropdown on hover (fix gap issue too) */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Prevent dropdown from disappearing when hovering between items */
.dropdown {
  position: relative;
}

.dropdown-menu:hover {
  display: block;
}
/*----------------------*/

.container-content {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  font-family: 'Poppins', sans-serif;
}

.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #c20000;
  font-weight: 600;
}

.image-container,
.image-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.responsive-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Responsive tweak */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }

  .responsive-img {
    max-width: 100%;
  }
}

#cbm-calcu {
  padding: 50px 20px;
  background-color: #f9f9f9;
  font-family: 'Poppins', sans-serif;
}

.cbm-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #c20000;
}

.calculator-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.calculator-left {
  flex: 1;
  min-width: 300px;
}

.calculator-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.output {
  background: #fff0f0;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #333;
  width: 100%;
  border-left: 3px solid #c20000;
  border-right: 3px solid #c20000;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .calculator-horizontal {
    flex-direction: column;
    padding: 20px;
  }

  .calculator-right {
    justify-content: flex-start;
  }
}

.other-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 20px;
  background-color: #fff;
  max-width: 1200px;
  margin: auto;
}

.other-type .content {
  flex: 1 1 500px;
}

.other-type h3 {
  font-size: 2rem;
  color: #c20000;
  margin-bottom: 20px;
  font-weight: 600;
}

.other-type p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.other-type .image {
  flex: 1 1 400px;
  text-align: center;
}

.other-type .image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .other-type {
    flex-direction: column;
    text-align: center;
  }

  .other-type .content,
  .other-type .image {
    flex: 1 1 100%;
  }

  .other-type h3 {
    font-size: 1.8rem;
  }

  .other-type p {
    font-size: 1rem;
  }
}

.container-box {
  padding: 40px 20px;
  border-bottom: 1px solid #eee;
  max-width: 1200px;
  margin: auto;
}

.container-header h3 {
  font-size: 1.7rem;
  color: #c20000;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.container-cont {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.container-description {
  flex: 1 1 500px;
}

.container-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.container-image {
  flex: 1 1 400px;
  text-align: center;
}

.container-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container-cont {
    flex-direction: column;
    text-align: center;
  }

  .container-header h3 {
    font-size: 1.5rem;
  }

  .container-description p {
    font-size: 1rem;
  }
}

.buy-leas {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin: 40px 0 20px;
  color: #c20000;
}

.container-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.container-section {
  background: #fff0f0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-top: 3px solid #c20000;
  transition: all 0.3s ease;
}

.container-section h3 {
  font-size: 1.5rem;
  color: #c20000;
  margin-bottom: 10px;
}

.read-more-btn {
  background-color: #c20000;
  color: white;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background-color: #a00000;
}

.container-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.container-details.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

.container-details ul {
  padding-left: 20px;
  list-style-type: disc;
}

.container-details li {
  margin-bottom: 8px;
  color: #333;
}

.info-doc {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin: 40px 0 20px;
  color: #c20000;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 20px;
}

.box {
  width: 270px;
  background: white;
  
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.3s ease;
  border-top: 3px solid #c20000;
}

.box h3 {
  font-size: 1rem;
  color: #c20000;
  margin-bottom: 10px;
}

.description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  color: #444;
  margin-top: 10px;
}

.description.active {
  max-height: 200px;
  opacity: 1;
}

.toggle-description {
  margin-top: 10px;
  background-color: #c20000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-description:hover {
  background-color: #a00000;
}

.steps-container {
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
}

.steps-container h2 {
  font-size: 28px;
  color: #c20000;
  margin-bottom: 20px;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.steps-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.steps-item:hover {
  background: #900000;
  color: white;
}

.steps-item:hover .steps-details {
  display: block;
  opacity: 1;
}

.steps-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps-number {
  font-size: 18px;
  font-weight: bold;
  background: #c20000;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.steps-details {
  margin-top: 10px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.click {
  background: none;
  border: none;
  color: gold;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.click::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: gold;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease-in-out;
}

.click:hover::after {
  width: 100%;
}

.customs-section {
  padding: 80px 20px;
  background: url("images/freepik-customs.jpg") center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  text-align: center;
  color: #fff;
}

.customs-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* Dark overlay */
  backdrop-filter: blur(2px);
  z-index: 0;
}

.customs-section * {
  position: relative;
  z-index: 1;
}

.section-titlee {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
}

.customs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.customs-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  color: gold;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.customs-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-top: 3px solid #c20000;
}

.customs-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.6rem;
  }
}


/*----------chatbox-------*/

    /* Chatbot Bubble Button */
    #chatbot-toggle {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #c20000;
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* Chatbox */
    #chatbot-box {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 320px;
      max-height: 400px;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 10px;
      display: none;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
      z-index: 999;
    }

    #chatbot-messages {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .message {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .user-message {
      justify-content: flex-end;
    }

    .bot-message {
      justify-content: flex-start;
    }

    .avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
    }

    .message-text {
      max-width: 200px;
      padding: 8px 12px;
      border-radius: 15px;
      background-color: #f1f1f1;
      font-size: 14px;
    }

    .user-message .message-text {
      background-color: #c20000;
      color: white;
      border-bottom-right-radius: 0;
    }

    .bot-message .message-text {
      background-color: #f1f1f1;
      border-bottom-left-radius: 0;
    }

    #chatbot-input-container {
      display: flex;
      border-top: 1px solid #ddd;
    }

    #chatbot-input {
      flex: 1;
      border: none;
      padding: 10px;
      font-size: 14px;
      outline: none;
    }

    #chatbot-send {
      background: #c20000;
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
    }

/*----------------------*/
.footer {
  background-color: white;
  padding: 40px 20px 20px;
  border-top: 2px solid #c20000; /* line merah */
}

.footer-top {
  text-align: center;
  margin-bottom: 30px;
}
.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}
.footer-description {
  font-size: 14px;
  max-width: 500px;
  margin: 0 auto 20px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 18px;
}
.social-icons a {
  color: #c20000;
  transition: transform 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.footer-column h3 {
  color: #c20000;
  margin-bottom: 10px;
}
.footer-column a {
  display: inline-block;
  margin: 4px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a {
  display: block;
  margin: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #c20000;
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: #c20000;
  transform: translateX(4px);
}

.footer-column a:hover::after {
  width: 100%;
}


.footer-rights {
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
  color: #777;
}
