@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --mainColor: #f6f8fa;
    --orange: #df803e;
    --brown: #f7decb;
    --Hijau: #37864d;
    --red: #cc3f32;
  }
  
  body {
    background-image: url("/img/latar.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }
  


/* General Navbar Styling */
.custom-navbar {
  background-color: #df803e;
  height: 70px;
  margin: 20px;
  border-radius: 25px;
  padding: 0.5rem;
}

.navbar-logo {
  font-weight: 500;
  color: #ffffff;
  font-size: 24px;
  transition: 0.3s color;
}

.navbar-logo:hover {
  color: #f7decb;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500 !important;
  position: relative !important;
}

.nav-link:hover,
.nav-link.active {
  color: black;
}

/* Navigation Hover Effects */
@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: brown;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before,
  .nav-link:active::before {
    width: 100%;
    visibility: visible;
  }
}

/* Contact Section Styling */
.contact-toggle-button {
  background-color: #37864d;
  color: white ;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 50px;
  transition: 0.3s background-color;
}

.contact-toggle-button:hover {
  background-color: #f7decb;
  color: #37864d;
}

.contact-section {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #ffffff;
  color: #37864d;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  padding: 20px;
  z-index: 1000;
}

#toggle-contact:checked + .contact-toggle-button + .contact-section {
  display: block;
}

.contact-close-button {
  cursor: pointer;
  font-size: 18px;
  color: #aaa;
}

.contact-form-container {
  padding: 20px;
}

.submit-button {
  background-color: #37864d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}
.submit-button:hover {
  background-color: #f7decb;
  color: #37864d;
}

/* Popup Styling */
.popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.popup:target {
  display: block;
}

.close-popup-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close-popup-button:hover {
  color: black;
}

.navbar-toggler {
  background-color: #ffffff;
  border: none;
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

/* Responsive Positioning for Toggler */
@media (max-width: 992px) {
  .navbar-toggler {
    position: absolute;
    right: 10px;
    top: 15px;
  }

  .contact-toggle-button {
    margin-right: 50px; /* Adjust spacing to place toggler beside contact section */
  }
}

.navbar-toggler.collapsed .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler.collapsed .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler.collapsed .navbar-toggler-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Custom Offcanvas */
.offcanvas-header {
  border-bottom: 1px solid #ffffff !important;
}

.offcanvas-body {
  align-items: center;
  height: 100%;
  padding-top: 20px;
}

.offcanvas-body .navbar-nav {
  width: 100%;
  text-align: center;
}

.offcanvas-body .nav-item {
  margin: 10px 0;
}
.offcanvas {
  background-color: #37864d;
  color: white !important;
}
.offcanvas .nav-link:hover {
  background-color: #f39c12;
  transform: scale(1.05);
}

.offcanvas .nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f39c12;
}
    
  .home-section {
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 100px;
  }
  
  @media (max-width: 767px) {
    .home-section {
      padding-bottom: 70px;
    }
  }
  
  .home-section .container {
    position: relative;
    z-index: 1;
  }
  
  .home-section .home-intro h1 {
    font-weight: 600;
    color: #37864d;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-left: 0;
    font-family: 'Bogart', sans-serif;
  }
  
  .home-section .home-intro h2 {
    font-weight: 600;
    color: #df803e;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-left: 0;
  }
  
  .home-section .home-intro h1 {
    font-size: 16px;
  }
  
  .home-section .home-intro h2 {
    font-size: 70px;
    line-height: 1;
  }
  
  @media (max-width: 767px) {
    .home-section .home-intro h1,
    .home-section .home-intro h2 {
      margin-left: 0;
    }
  }
  
  .bottom-image1 {
    position: relative;
    bottom: 160px;
    left: 50%;
    transform: translate(-50%);
    max-width: 1750px;
    width: 100%;
  }

  @media (max-width: 766px) {
    .bottom-image1 {
      margin-top: 12%;
    }
  }
  
  .tittle {
    font-weight: 1000;
    color: #f7decb;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Bogart', sans-serif;
  }

  @media (max-width: 767px) {
    .tittle {
      font-weight: 1000;
      color: #37864d;
      letter-spacing: 5px;
      text-transform: uppercase;
      text-align: center;
      margin-bottom: 50px;
      font-family: 'Bogart', sans-serif;
    }
  }
  
  .card {
    background-color: #37864d; /* Background color */
    border: 1px solid #df803e; /* Border color */
    border-radius: 25px; /* Rounded corners */
    overflow: hidden; /* Ensures image doesn't overflow */
    width: 12rem; /* Card width */
    height: 30rem; /* Card height */
    margin: 20px auto; /* Centers card and adds extra top space */
    margin-bottom: 200px;
  }
  
  .card-img-top {
    height: 220px; /* Image height */
    object-fit: cover; /* Fits image */
    margin: 20px 0; /* Space above and below the image */
  }
  
  .card-img-top1 {
    height: auto; /* Image height */
    width: 80%;
    object-fit: cover; /* Fits image */
    margin: 20px 25px; /* Space above and below the image */
    padding-top: 20px;
  }
  
  .card-title {
    position: absolute; /* Allows positioning over the image */
    top: 10px; /* Distance from the top of the card */
    left: 50%; /* Horizontally centered */
    transform: translateX(-50%); /* Centers exactly */
    color: #f7decb; /* Title text color */
    padding: 1px; /* Padding for title text */
    border-radius: 5px; /* Rounded corners for title background */
    font-family: 'Bogart', sans-serif;
    align-items: center;
  }
  
  .card-body {
    text-align: center; /* Centers text */
    flex-grow: 1; /* Ensures the card body takes available space */
    color: #f6f8fa;
    margin-top: -20px;
    font-family: 'Noto Serif', sans-serif;
  }
  
  .card-body1 {
    text-align: center; /* Centers text */
    flex-grow: 1; 
    color: #f6f8fa;
    margin-top: -20px;
  }
  
  /* Footer styling */
  .footer {
    background-color: #37864d;
    color: #ffffff;
    padding-top: 10px;
    font-family: Arial, sans-serif;
    text-align: center;
    position: relative;
    width: 100%; /* Full width of the page */
    height: auto;
    top: 1; /* Adjust the top position as needed */
    z-index: 10; /* Ensures it appears above other content */
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
  }
  
  .footer-section h2 {
    font-family: 'Bogart', sans-serif;
    font-size: 23px;
    color: #ffffff;
    margin-bottom: 5px;
  }
  
  .footer-section.social {
    margin-left: 2px;
    flex: 0.3; /* Reduces the section width, adjusting to available space */
    text-align: center; /* Centers icons within this section */
  }
  
  .footer-section.social a {
    font-size: 30px; /* Smaller icon size */
    color: #ffffff;
    margin-right: 20px; /* Reduced margin to save space */
    transition: color 0.3s ease; /* Smooth color transition for hover effect */
  }
  
  .footer-section.social a:hover {
    color: #df803e;
  }

  .footer-section {
    flex: 1;
    padding: 10px;
    min-width: 250px;
  }
  
  .footer-section p {
    margin: 5px 0; /* Reduce margin to 2px above and below each paragraph */
  }
  
  .hour-columns {
    display: flex;
    justify-content: space-around; /* Space the columns evenly */
    gap: 20px; /* Space between columns */
  }
  
  .hour-column p {
    margin: 2px 0; /* Adjust spacing between paragraphs */
    text-align: left; /* Align text to the left within each column */
  }
