html,
body {
  height: 100%; /* Full height of the page */
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: "Onest", serif;
  /* font-family: Arimo, sans-serif; */
  /* font-family: 'Ysabeau Office', sans-serif; */
  font-size: large;
  font-optical-sizing: auto;
}

h1,
h2,
h3,
h4 {
  color: #ac6f51;
  font-family: "Arima", system-ui;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 4em;
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: rgb(172, 111, 81);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  opacity: 0;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 300ms;
}

.scroll-to-top-btn:hover {
  background-color: rgb(155, 105, 60);
}

body {
  display: flex;
  flex-direction: column;
  background-color: rgb(252, 248, 244);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.main-and-footer {
  margin-top: 70px; /* Space for the fixed navbar */
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 10; /* Ensure it appears above the carousel */
}

.main-content {
  flex-grow: 1; /* Content takes the remaining space */
  min-height: calc(100dvh - 70px);
  max-width: 100%;
}

.nav,
.navbar {
  padding: 0px;
}

.navbar {
  position: fixed;
  top: 0; /* Position the navbar at the top of the page */
  left: 0; /* Ensure it spans the entire width */
  width: 100%; /* Ensure it takes up the full width */
  z-index: 9999; /* Ensure it stays on top of other elements */
}

/* Larger font size for menu items */
.nav-link {
  font-size: 1.4em; /* Adjust size as needed */
  display: flex;
  padding: 4px 0;
  justify-content: center;
  align-items: center;
  color: rgb(252, 248, 244);
}

/* Hover effect for all menu items */
.nav-link:hover {
  color: rgb(172, 111, 81); /* Same highlight color as active */
}

.nav-item {
  padding-left: 1em;
  padding-right: 1em;
}

.nav-item .nav-link.active {
  color: rgb(172, 111, 81); /* Ensure text remains visible */
}

.nav-link.dropdown-toggle.show {
  color: rgb(172, 111, 81);
}

/* Dropdown menu styling */
.dropdown-menu.show {
  background-color: rgb(33, 37, 41); /* Match the site's color theme */
  border: none; /* Remove the default border */
  border-top-left-radius: 0em; /* Add rounded corners */
  border-top-right-radius: 0em; /* Add rounded corners */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
  margin-block-start: 0px;
  margin-top: 0px;
}

/* Dropdown items styling */
.dropdown-item {
  font-size: 1.2em; /* Increase font size for readability */
  color: rgb(252, 248, 244); /* Set text color */
  padding: 0.7em 1.2em; /* Add padding for better spacing */
}

/* Dropdown items hover effect */
.dropdown-item:hover {
  color: rgb(172, 111, 81); /* Ensure text stays visible */
  background-color: inherit;
  border-radius: 0.4em; /* Add rounded hover effect */
}

.btn-primary {
  background-color: rgb(252, 248, 244); /* Soft beige */
  color: rgb(172, 111, 81); /* Warm brown */
  border: 2px solid rgb(172, 111, 81);
  border-radius: 30px;
  font-size: 1.5em;
  box-shadow: 4px 4px 8px 2px rgb(0 0 13 / 15%);
  transition: all 0.5s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(90deg, rgb(172, 111, 81) 0%, rgba(24, 8, 1, 0.336) 100%);
  color: rgb(252, 248, 244);
  border-color: rgb(143, 80, 49);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 6px 6px 12px 2px rgb(0 0 13 / 30%);
}

.btn-in-white-background {
  background-color: rgb(172, 111, 81);
  color: rgb(252, 248, 244);
  border: 2px solid rgb(143, 80, 49); /* Refined border */
}

.btn-in-white-background:hover {
  background-color: rgb(143, 80, 49);
  color: rgb(252, 248, 244);
  transform: translateY(-2px) scale(1.05);
}

.footer-container {
  background-color: rgb(33, 37, 41);
  color: rgb(252, 248, 244);
  font-size: 90%;
  width: 100%;
  padding: 2em;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  text-align: left;
  gap: 2em;
}

.footer-item i {
  margin-right: 8px;
}

.footer-item a {
  color: rgb(252, 248, 244);
  text-decoration: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-item a:hover {
  color: rgb(172, 111, 81);
}

#diliBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place it behind all content */
  overflow: hidden;
  opacity: 0.7;
}

#diliBackground img {
  width: 110dvw;
  height: 110dvh;
  object-fit: cover;
  position: absolute;
  left: -40px;
}

.carousel-images-container {
  position: relative;
  height: 55dvh;
}

/* Carousel css */
.carousel-button {
  position: absolute;
  top: 50%;
  width: 20%;
  z-index: 1000;
  height: 100%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
  overflow: hidden; /* Ensures the pseudo-element doesn't exceed boundaries */
}

.carousel-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.carousel-button:hover::before {
  opacity: 1; /* Smoothly fades in the gradient */
}

.carousel-button i {
  color: #ac6f51;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
  padding-top: 2em;
}

.carousel-images {
  transition: transform 0.5s ease-in-out;
  display: -webkit-inline-box;
}

.carousel-image {
  width: 100%;
  display: block;
  object-fit: contain;
}

.carousel-previews {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
  overflow-x: auto;
  padding-bottom: 10px;
  width: 100%;
}

.previews-container {
  overflow-x: scroll;
  padding-left: 3em;
  padding-right: 3em;
}

.preview {
  width: 6em;
  height: 4em;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  box-shadow: 2px 2px 2px 1px rgb(0 0 13 / 20%);
  scroll-snap-align: center; /* Ensures that the previews snap in the middle */
}

.preview:hover {
  opacity: 1;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* End Carousel css section */

/* Cards section */

.custom-content-card {
  background-color: rgb(252, 248, 244);
  border-radius: 5px;
  align-self: anchor-center;
  width: 100%;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* End of Cards section */

/* Fullscreen section */

.fullscreen-container {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.fullscreen-image-container {
  display: flex;
  flex: 1;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fullscreen-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #ac6f51;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.fullscreen-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.prev-btn {
  left: 2%;
}

.next-btn {
  right: 2%;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ac6f51;
  font-size: 2.5rem;
  cursor: pointer;
}

/* End of fullscreen section */

/* Flex section */

/* Flexbox Layout */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0px;
}

.container-start {
  padding: 4em;
  width: 100%;
}

.flex-column {
  padding: 2em;
  flex: 1;
  justify-content: center;
  text-align: justify;
  max-width: 100%;
}

.flex-column-text {
  flex: 1;
  justify-content: center;
  text-align: justify;
  max-width: 100%;
}

.flex-column b {
  color: #ac6f51;
}

/* End of Flex section */

.dili-background-img {
  filter: blur(10px);
  height: 100%;
  object-fit: cover;
}

hr {
  padding-bottom: 0.5rem;
}

.svg-icon {
  width: 2em;
  height: 2em;
  fill: #ac6f51;
  padding-right: 0.5em;
}

.language-picker-select {
  background: transparent;
  border: none;
  font-size: x-large;
  color: rgb(252, 248, 244);
}

.language-picker-select option {
  background: rgb(33, 37, 41);
}

.mobile-only {
  display: none;
}

.navbar-toggler {
  z-index: 1050; /* Higher than logo or other elements */
  position: relative; /* Ensures it's clickable */
}

.lang-picker-form {
  padding: 4px 0;
}

/* Media section */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .previews-container {
    padding-left: 1em;
    padding-right: 1em;
  }

  .mobile-only {
    display: block;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .nav-link {
    justify-content: right;
  }

  .lang-picker-form {
    display: flex;
    justify-content: right;
  }

  .dropdown-item {
    display: flex;
    justify-content: right;
  }
}

@media (min-width: 2000px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1800px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }

  form {
    width: 100%;
  }

  .container-start {
    padding: 2em;
  }

  .flex-column {
    padding: 1em;
  }
}

@media (max-width: 450px) {
  .container-start {
    padding: 1em 0;
  }
}

/* End of Media section */
