/**
 * @file    pages/homepage/homepage-sections.css
 * @page    index.html
 * @desc    Homepage content sections: services grid, about, FAQ accordion, CTA.
 */

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  min-height: 80vh;
  height: auto;
  background: var(--color-primary-dark);
}

#hero .container {
  padding-top: 72px;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

#hero h2 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 50px;
  font-size: 24px;
}

#hero .btn-get-started {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 11px 28px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px 0 0 0;
  color: #fff;
  background: var(--color-primary);
}

#hero .btn-get-started:hover {
  background: var(--color-primary-hover);
}

#hero .btn-watch-video {
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: 0.5s;
  margin: 10px 0 0 25px;
  color: #fff;
  line-height: 1;
}

#hero .btn-watch-video i {
  line-height: 0;
  color: #fff;
  font-size: 32px;
  transition: 0.3s;
  margin-right: 8px;
}

#hero .btn-watch-video:hover i {
  color: var(--color-primary);
}

#hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

#hero .hero-img img {
  /* Set the maximum width to a percentage of the container size */
  max-width: 70%;
  /* Maintain aspect ratio */
  height: auto;
  /* Optionally center the image if it's smaller than its container */
  display: block;
  margin-left: auto;
  margin-right: auto;
}


@media (max-width: 991px) {
  #hero {
    min-height: auto;
    height: auto;
    text-align: center;
  }

  #hero .animated {
    animation: none;
  }

  #hero .hero-img {
    text-align: center;
  }

  #hero .hero-img img {
    width: 50%;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  #hero .hero-img img {
    width: 70%;
  }
}

@media (max-width: 575px) {
  #hero .hero-img img {
    width: 80%;
  }

  #hero .btn-get-started {
    font-size: 16px;
    padding: 10px 24px 11px 24px;
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-on-load {
  opacity: 0; /* Start with the element being invisible */
  animation: fadeInEffect 3s ease forwards; /* Adjust the duration as needed */
}


/*--------------------------------------------------------------
# About Us
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 600;
  font-size: 26px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-left: 28px;
  position: relative;
}

.about .content ul li+li {
  margin-top: 10px;
}

.about .content ul i {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 20px;
  color: var(--color-primary);
  line-height: 1;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content .btn-learn-more {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  transition: 0.3s;
  line-height: 1;
  color: var(--color-primary);
  animation-delay: 0.8s;
  margin-top: 6px;
  border: 2px solid var(--color-primary);
}

.about .content .btn-learn-more:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.button-container {
  display: flex;
  justify-content: space-between; /* Aligns buttons to each edge */
}

.btn-learn-more {
  /* remove flex-grow if previously set */
  margin: 10px 0; /* Adds some vertical spacing around the buttons */
  white-space: nowrap; /* Prevents the text inside the button from wrapping */
}

/* Media query for smaller screens to stack the buttons */
@media (max-width: 576px) { /* Adjust this breakpoint to your needs */
  .button-container {
    flex-direction: column; /* Stacks the flex items vertically */
    align-items: center; /* Centers buttons on smaller screens */
  }

  .btn-learn-more {
    width: auto; /* Allows each button to grow according to its text content */
    display: block; /* Full width for better touch targets on mobile */
    margin-bottom: 10px; /* Adds bottom margin for spacing between stacked buttons */
  }

  .btn-learn-more:last-child {
    margin-bottom: 0; /* Removes bottom margin from the last button */
  }
}

/*--------------------------------------------------------------
# About Section - Single Column Layout
--------------------------------------------------------------*/
.about .about-intro {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.about .about-subintro {
  font-size: 1.1rem;
  color: #5a6a7a;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.about-feature-block {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-feature-block:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--color-primary-15);
  border-left-color: var(--color-primary-dark);
}

.about-feature-block h6 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-feature-block h6 i {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.about-feature-block p {
  font-size: 0.95rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Services link inside feature block */
.about-services-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.about-services-link:hover {
  color: var(--color-primary-dark);
  gap: 0.5rem;
}

.about-services-link i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.about-services-link:hover i {
  transform: translateX(3px);
}

/* CTA buttons container */
.about-cta-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta-container .btn-learn-more {
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about .about-subintro {
    font-size: 1rem;
  }
  
  .about .section-title h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
}

@media (max-width: 576px) {
  .about-feature-block {
    padding: 1rem;
  }
  
  .about-feature-block h6 {
    font-size: 1rem;
  }
  
  .about-feature-block p {
    font-size: 0.9rem;
  }
  
  .about-cta-container {
    flex-direction: column;
    align-items: center;
  }
  
  .about-cta-container .btn-learn-more {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}


/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
/* .services .icon-box {
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  background: #fff;
} */

.services .icon-box {
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 10px 30px;
  transition: all ease-in-out 0.4s;
  background: #fff; 
  margin-bottom: 10px;/* Consistent bottom margin for all service cards*/
  width: 100%; /* Ensure full width */
  text-align: center; /* Center align content */
}

#services {
  scroll-margin-top: 60px; /* Adjust this value as needed */
}

.services .icon-box .icon i {
  color: var(--color-primary);
  font-size: 36px;
  transition: 0.3s;
}

.services .icon-box h4 {
  font-weight: 500;
  /* margin-bottom: 15px; */
  font-size: 20px;
}

.services .icon-box h4 a {
  color: var(--color-primary-dark);
  /* transition: ease-in-out 0.3s; */
}

.services .icon-box p {
  line-height: 0px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  transform: translateY(-10px);
}

.services .icon-box:hover h4 a {
  color: var(--color-primary);
}

/* Base bottom margin for all cards */
/* .services .icon-box {
  margin-bottom: 30px;
} */

.icon-box img.card-image {
    width: 100%;  /* Makes the image take the full width of the card */
    max-width: 100%; /* Ensure it doesn't overflow */
    height: 200px; /*Fixed height for all images*/
    object-fit: contain; /* Maintains aspect ratio, fits within bounds */
    object-position: center; /* Center the image within the element */
    display: block; /* Remove inline spacing */
    margin: 0 auto; /* Center the image */
}

.services .icon-box h4 {
  text-align: center;
  margin-top: 10px; /* Adjust the space between the image and the title as needed */
}


/*--------------------------------------------------------------
# Frequently Asked Questions
--------------------------------------------------------------*/
.faq .faq-list {
  padding: 0 100px;
}

.faq .faq-list ul {
  padding: 0;
  list-style: none;
}

.faq .faq-list li+li {
  margin-top: 15px;
}

.faq .faq-list li {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  position: relative;
}

.faq .faq-list a {
  display: block;
  position: relative;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  padding: 0 30px;
  outline: none;
  cursor: pointer;
}

.faq .faq-list .icon-help {
  font-size: 24px;
  position: absolute;
  right: 0;
  left: 20px;
  color: var(--color-primary);
}

.faq .faq-list .icon-show,
.faq .faq-list .icon-close {
  font-size: 24px;
  position: absolute;
  right: 0;
  top: 0;
}

.faq .faq-list p {
  margin-bottom: 0;
  padding: 10px 0 0 0;
}

.faq .faq-list .icon-show {
  display: none;
}

.faq .faq-list a.collapsed {
  color: var(--color-primary-dark);
  transition: 0.3s;
}

.faq .faq-list a.collapsed:hover {
  color: var(--color-primary);
}

.faq .faq-list a.collapsed .icon-show {
  display: inline-block;
}

.faq .faq-list a.collapsed .icon-close {
  display: none;
}

@media (max-width: 1200px) {
  .faq .faq-list {
    padding: 0;
  }
}

