/*=============== BASE ===============*/

html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/*=============== REUSABLE CSS CLASSES ===============*/

:root {
    --card-border-color: #ff9500;  /* Example color for card border */
    --second-color: hsl(25, 77%, 54%); /* Example secondary color */
    --smaller-font-size: .75rem; /* Smaller font size */
    --small-font-size: .813rem; /* Small font size */
    --first-color-lighten: #ffe0b3; /* Lightened primary color */
    --first-color: hsl(30, 70%, 62%); /* Primary color */
    --font-semi-bold: 600; /* Font-weight for semi-bold text */
    --normal-font-size: .938rem; /* Normal font size */  
}
.container {
    margin: auto
}

.main {
  overflow: hidden;
}

.text-outline {
  -webkit-text-stroke: 0.5px #000000;
}

.stroke-text {
  text-shadow: 
      -2px -2px 0 black,  
       2px -2px 0 black,  
      -2px  2px 0 black,  
       2px  2px 0 black;
}

/*=============== THEME ===============*/

.scrollup {
  box-shadow: none;
  }
  :-webkit-scrollbar {
      background-color: hsl(228, 4%, 15%);
    }
    
  :-webkit-scrollbar-thumb {
      background-color: hsl(228, 4%, 25%);
    }
    
  :-webkit-scrollbar-thumb:hover {
      background-color: hsl(228, 4%, 35%);
    }

/* ==================== Header Section Styling ==================== */


/* ============= Navbar Submenu/Dropdowns ============= */
.submenu {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none; /* Prevent accidental gaps */
}

/* Keep submenu visible */
.submenu-trigger:hover + .submenu,
.submenu:hover {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto; /* Allow interaction */
}

/* Adjust gap and prevent hover flicker */
.submenu-trigger {
    position: relative;
}


/* ============= Sidebar ============= */

/* Sidebar Animation */
#sidebar {
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
}
/* Show sidebar when toggled */
#sidebar.show {
    transform: translateY(0);
}

/* Sidebar Item Hover Effect */
.sidebar-item {
    padding: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 1rem; /* Added left margin for spacing */
 
}
.sidebar-item:hover {
    background-color: #000000;
    color: white;
    border-radius: 0.5rem;
}

/* Sidebar Dropdown Styling */
.sidebar__group:hover .group-hover\:visible {
    visibility: visible;
}

.sidebar__group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.sidebar__group:hover .group-hover\:translate-y-2 {
    transform: translateY(0.5rem);
}

/* Ensure dropdown background fully covers */
.sidebar__group > div {
    background-color: #cbd5e1; /* Solid Slate 300 background */
    z-index: 50; /* Ensure it is above other elements */
}

/* Adjust dropdown items hover effect */
.sidebar__group > div > a:hover {
    background-color: #FF9500; /* Orange hover effect */
    color: white; /* Change text color to white */
    border-radius: 0.5rem; /* Rounded corners for hover */
}

/* ==================== END Header Section Styling ==================== */


/* ==================== Valuation Steps  ==================== */




.contact__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Ensure 4 cards per row */
  gap: 1.5rem;
  align-items: start;
  margin-left: auto; /* Center the rows horizontally */
  margin-right: auto; /* Center the rows horizontally */
  max-width: calc(100% - 2rem); /* Prevent overflow on smaller screens */
}
       
.contact__card {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next row */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
}
        
.contact__card-box {
  position: relative;
  width: 15rem;
  height: 17rem;
  background: linear-gradient(150deg, hsl(0, 0%, 22%) 0%, hsl(0, 0%, 22%) 30%);
  /* background-color: #ffffff; */
  border: 2px solid #ffffff ;
  padding: 1.25rem .75rem;
  border-radius: .5rem;
  overflow: hidden;
  perspective: 1000px; /* Enables 3D flip */
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d; /* Ensure 3D flip effect */
}
  
/* Hover effect for the card */
.contact__card-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: 4px solid #ff9500;
}
  
.img__div {
  width: 118%; /* Make the image width equal to the card */
  margin: -7.2%;
  height: auto; 
  object-fit: cover; 
  border-radius: 0.5rem; /* Add the same border-radius as the card for a clean look */
  margin-top: -10%; /* Moves the image upward */
}
  
.contact__card-box.flipped {
  transform: rotateY(180deg); /* Flip the card */
}
  
/* Front of the card */
.contact__card-info {
  backface-visibility: hidden; /* Hide front content when flipped */
  z-index: 2;
  transition: transform 0.8s ease-in-out;
}
  
.contact__card-description {
  font-size: var(--smaller-font-size);
  line-height: 1.5;
  max-height: 8rem; /* Limit visible text to fit the front card */
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.4s ease;
}
  
/* Show the full text when the card flips */
.contact__card-description.expanded {
  max-height: none; /* Show full content when card flips */
}
  
/* Show the long text when the card is flipped */
.contact__card-box.flipped::after {
  display: block; /* Display the long text */
}
  
.contact__card-back-content {
  display: none; /* Initially hidden */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  background: linear-gradient(150deg, hsl(0, 0%, 22%) 0%, hsl(0, 0%, 22%) 30%);
  color: #ffffff;
  border-radius: 0.5rem;
  box-sizing: border-box;
  overflow-y: auto; /* Enable scrolling for long content */
  transform: rotateY(180deg); /* Position the back side */
  z-index: 1;
  font-size: --var(--normal-font-size);
  font-family: 'Nunito', sans-serif;
  line-height: 1.2;
}
  
.contact__card-box.flipped .contact__card-back-content {
  display: block; /* Show the content when flipped */
}
  
/* Keyframes for animations */
  @keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
  
/* Bullet list styling */
.bullet-list {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.3rem;
  margin: 0;
  list-style: none;
}
  
.bullet-list li {
  padding: 0.4rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
  
.bullet-list li:hover {
  transform: translateX(10px);
}

/* ==================== END Valuation Steps Cards Styling ==================== */


/*=============== FAQs Section Styling ==================*/
.value__container {
    display: grid; /* Enable grid display */
    grid-template-columns: 2fr 1fr; /* Two columns: 1/3 for image, 2/3 for content */
    column-gap: 0.2rem; /* Space between columns */
    align-items: center; /* Center items vertically */
    row-gap: 3rem; /* Space between rows for responsive stacking */
  }


  .value__images {
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    position: relative;
    padding: 1rem;
}

.value__img {
  position: absolute;
  width: 400px; /* Increased width */
  height: 480px; /* Increased height */
  overflow: hidden;
  border-radius: 200px 200px 30px 30px; /* Adjusted proportional rounded corners */
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
  border: 4px solid hsl(33, 98%, 50%); /* Retaining the border */
}

  .value__description {
    font-size: .813rem;
    margin-bottom: 2rem;
  }

  .value__data{
    margin-top: 2rem;
  }
  
  .value__accordion {
    display: grid;
    row-gap: 1.5rem;
  }
  
  .value__accordion-item {
    background-color: hsl(30, 12%, 8%);
    border: 2px solid  hsl(33, 98%, 50%);
    border-radius: .5rem;
    padding: 1rem .75rem;
  }
  
  .value__accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .value__accordion-icon {
    /* background-color: hsl(30, 60%, 55%); */
    padding: 5px;
    border-radius: .25rem;
    font-size: 18px;
    color: hsl(30, 70%, 62%);
    margin-right: .75rem;
    transition: .3s;
  }
  
  .value__accordion-title {
    font-size: .875rem;
    color: hsl(30, 8%, 95%);
    font-weight: 600;
    
  }
  
  .value__accordion-arrow {
    display: inline-flex;
    /* background-color: hsl(30, 90%, 95%); */
    padding: .25rem;
    color: hsl(30, 70%, 62%);
    border-radius: 2px;
    font-size: 10px;
    margin-left: auto;
    transition: .3s;
  }
  .value__content{
    margin-bottom: 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .value__accordion-arrow i {
    transition: .4s;
  }
  
  .value__accordion-description {
    font-size: .75rem;
    padding: .5rem 2.5rem 0 2.75rem;
    color: hsl(30, 8%, 70%);
  }
  
  .value__accordion-content {
    overflow: hidden;
    height: 0;
    transition: all 0.3s ease;
  }
  
  .accordion-open {
    box-shadow: 0 12px 32px hsla(228, 66%, 45%, .1);
    transition: .4s;
  }
  
  .accordion-open .value__accordion-icon {
    box-shadow: 0 4px 4px hsla(228, 66%, 45%, .1);
  }
  
  .accordion-open .value__accordion-arrow {
    box-shadow: 0 2px 4px hsla(228, 66%, 45%, .1);
  }
  
  .accordion-open .value__accordion-arrow i {
    transition: 0.3s;
    transition: rotate(-180deg);
  }


/* ==================== END FAQs Styling ==================== */

/* ==================== Footer SCROLL BAR Section Styling ==================== */

::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: #000000;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 54%);
  border-radius: .5rem;
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: #ffffff;
  box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
  display: inline-flex;
  padding: .35rem;
  border-radius: .25rem;
  color: #000;
  font-size: 1.5rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
  color: var(--second-color);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 12rem;
}

/* ==================== END Footer SCROLL BAR Section Styling ==================== */

/* ==================== Swiper Slider Bullets Section Styling ==================== */
.swiper-pagination-bullet {
  background-color: #ffffff !important; 
}

.swiper-pagination-bullet-active {
  background-color: #ffffff !important; 
}
/* ==================== END Swiper Slider Bullets Section Styling ==================== */

/* Media Queries */

@media screen and (min-width: 768px) {
  .container {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

@media screen and (min-width:1023px) {
  .show-scroll {
    bottom: 3rem;
    right: 3rem;
  }
}
  

