/**
 * CSS file for homepage styling
 */

 /* Font imports */
 @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

 #homeHero {
    padding: 70px 0;
    background-color: #EDF5FA;
    font-family: 'Roboto', sans-serif;
 }

 .homeHeroDisclaimerWrapper {
   width: fit-content;
   margin: 0 auto;
   display: flex;
   justify-content: center;
   align-items: center;
   background-color: rgba(255, 255, 255, 0.8);
   padding: 10px 15px;
   border-radius: 15px;
   border: 1px solid #FCE7F3;
 }

 .homeHeroDisclaimerWrapper img {
   margin-right: 7px;
 }

.homeHeroDisclaimerWrapper span {
   font-size: 14px;
   color: #334155;
   line-height: 20px;
   font-weight: 600;
}

.homeHeroHeadingTextWrapper {
   display: flex;
   justify-content: center;
   align-items: center;
   margin: 30px 0 20px 0;
}

.homeHeroHeadingTextWrapper h1 {
   text-align: center;
   font-size: 60px;
   line-height: 60px;
   font-weight: 700;
   color: #030712;
}

.homeHeroHeadingTextWrapper h1 {
  font-size: 48px;
}

.blueText {
   color: #4B94C6 !important;
}

.homeHeroSubheadingWrapper {
   text-align: center;
   display: flex;
   justify-content: center;
   align-items: center;
   color: #64748B;
   font-size: 24px;
   line-height: 32px;
   font-weight: 400;
}

@media (max-width: 768px) {
  .homeHeroSubheadingWrapper {
   font-size: 18px;
   line-height: 24px;
   font-weight: 400;
  }
}

.homeHeroButtons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;

}

.homeHeroButtons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

@media (max-width: 430px) {
  .homeHeroButtons a {
  padding: 8px 10px;
  font-size: 14px;
  text-align: center;
  }
}

/* First button (green background) */
.methodeButton {
  background-color: #4B94C6;
  color: #fff;
  border: none;
}

.methodeButton:hover {
  background-color: #5AA1D1;
  color: white !important;
}

/* Second button (white with border) */
.guidesButton {
  background-color: #fff;
  color: #4B94C6;
  border: 1px solid #4B94C6;
}

.guidesButton:hover {
  background-color: #5AA1D1;
  color: #fff !important;
}

/* Arrow styling */
.arrow {
  margin-left: 8px;
  font-size: 14px;
}

.homeHeroMetrics {
  display: flex;
  flex-wrap: wrap;                  /* allow items to wrap on smaller widths */
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-top: 80px;
}

.homeHeroMetrics .metricWrapper {
  flex: 1 1 18%;                     /* five items sit comfortably on wide screens */
  min-width: 160px;                  /* stops them shrinking too far before wrapping */
}

@media (max-width: 1024px) {
  .homeHeroMetrics {
    justify-content: center;         /* wrapping centers cleaner on tablets */
    gap: 16px;
  }

  .homeHeroMetrics .metricWrapper {
    flex: 1 1 calc(50% - 16px);      /* two per row */
  }
}

@media (max-width: 600px) {
  .homeHeroMetrics {
    gap: 12px;
    margin-top: 48px;
  }

  .homeHeroMetrics .metricWrapper {
    flex: 1 1 calc(50% - 16px);      /* two per row */
  }
}

.metricImgWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.metricSpamWrapper {
  min-height: 55px;
}

.metricSpamWrapper span {
  color: #64748B;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

#homeProcesses {
  padding: 70px 0;
  background-color: #fff;
  font-family: 'Roboto', sans-serif;
}

.processHeadingWrapper,
.latestPostsHeadingWrapper,
.mostPopularHeadingWrapper {
  text-align: center;
}

.processHeadingWrapper h2,
.faqHeadingWrapper h2,
.latestPostsHeadingWrapper h2,
.mostPopularHeadingWrapper h2 {
  font-family: 'Roboto', sans-serif;
  color: #030712;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.processHeadingWrapper p,
.latestPostsHeadingWrapper p,
.mostPopularSubheading p {
  color: #64748b;
  font-size: 18px;
  line-height: 29px;
  font-weight: 400;
  width: 70%;
}

@media (max-width: 768px) {
  .processHeadingWrapper p,
  .latestPostsHeadingWrapper p,
  .mostPopularSubheading p {
    width: 1000%;
  }
}

.processSubheadingWrapper,
.latestPostsSubheading,
.mostPopularSubheading {
  width: 100%;
  display: flex;
  justify-content: center;
}

.processCardsWrapper {
  display: flex;
  flex-wrap: wrap;                   /* allow wrapping */
  justify-content: space-between;
  text-align: center;
  margin-top: 40px;
  gap: 20px;                         /* optional, keeps consistent spacing when wrapping */
}

.processCardsWrapper .processCard {
  flex: 1 1 22%;                     /* four across on large screens */
  min-width: 200px;                  /* prevents cards from shrinking too much before wrapping */
}

/* Medium screens: three columns */
@media (max-width: 1024px) {
  .processCardsWrapper {
    justify-content: center;
    gap: 16px;
  }

  .processCardsWrapper .processCard {
    flex: 1 1 calc(33.333% - 16px);
  }
}

/* Small screens: two columns */
@media (max-width: 640px) {
  .processCardsWrapper {
    gap: 12px;
  }

  .processCardsWrapper .processCard {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }
}

/* Extra-small (if you want a single column below ~360px) */
@media (max-width: 360px) {
  .processCardsWrapper .processCard {
    flex: 1 1 100%;
  }
}

.processCardImgWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.processCardImg {
  padding: 20px;
  background-color: #EDF5FA;
  border-radius: 20px;
  margin-bottom: 20px;
}

.processCard {
  max-width: 240px;
}

.processCard h4 {
  color: #030712;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.processCard span {
  color: #64748b;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

#homeFAQ {
  background-color: #FAFBFD;
  padding: 70px 0;
  font-family: 'Roboto', sans-serif;
}

.homefaq-accordion {
  width: 70%;
}

@media (max-width: 768px) {
  .homefaq-accordion {
     width: 100%;
  }
}

.homeFaqAccordionWrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px;
}

.homefaq-question-text {
    font-family: 'Roboto', sans-serif;
  flex: 1;
  color: #030712;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 0;
}

.homefaq-answer-content {
    font-family: 'Roboto', sans-serif;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
  padding: 10px;
}

#homeLatestPosts {
    padding: 70px 0;
    background-color: #F1F2F5;
    font-family: 'Roboto', sans-serif;
}

.compareview-latest {
    position: relative;
    padding-top: 3.5rem;
}

@media (max-width: 768px) {
  .compareview-latest {
      padding-top: 0.5rem;
  }
}

.compareview-carousel__nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.75rem;
}

.compareview-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background-color: #fff !important;
    border: 1px solid #E2E8F0 !important;
    color: #030712 !important;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.compareview-carousel__btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.compareview-carousel__viewport {
    overflow: hidden;
}

.compareview-carousel__track {
    --compareview-items: 3;
    --compareview-gap: 1.5rem;

    display: flex;
    gap: var(--compareview-gap);
    scroll-behavior: smooth;
}

.compareview-card {
    flex: 0 0 calc((100% - (var(--compareview-gap) * (var(--compareview-items) - 1))) / var(--compareview-items));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.compareview-card__media {
    position: relative;
    overflow: hidden;
}

.compareview-card__media img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compareview-card:hover .compareview-card__media img,
.compareview-card__media:hover img {
    transform: scale(1.06);
}

.compareview-card__body {
    flex: 1;                  /* card body fills remaining height */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.compareview-card__cta {
    margin-top: auto; 
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    background: #F1F5F94D;
    color: #030712;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compareview-card__cta-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.compareview-card__cta:hover {
    background: #4B94C6;
    color: #fff !important;
}

.compareview-card__cta:hover .compareview-card__cta-icon {
    transform: translateX(4px);
}

.compareview-card__title {
    font-size: 20px;
    line-height: 28px;
    color: #404040;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.compareview-card__title a {
  color: #404040;
  text-decoration: none;
}

.compareview-card__title:hover {
  color: #46770e;
}

.compareview-card__excerpt {
    flex: 1;
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .compareview-carousel__track {
        --compareview-items: 2;
    }
}

@media (max-width: 640px) {
    .compareview-carousel__track {
        --compareview-items: 1;
    }

    .compareview-carousel__nav {
        position: static;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
}

.homeFaqContactButton {
  text-align: center;
  margin-top: 50px;
}

.homeFaqContactButton h4 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 15px;
}

.contactButtonWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contactButtonWrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

/* First button (green background) */
.faqContactButton {
  background-color: #4B94C6;
  color: #fff;
  border: none;
  transition: transform 0.4s ease;
}

.faqContactButton:hover {
  transform: scale(1.05);
}

#homeMostPopular {
  padding: 70px 0;
  background-color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
}

#homeMostPopular .mostPopularPosts {
	display: grid;
		grid-template-columns: repeat(2, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 32px;
}

#homeMostPopular .mostPopularCard {
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#homeMostPopular .mostPopularCardLink {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(109.7deg, #FFFFFF 0%, #FFFFFF 0%);
    border: 1px solid #E2E8F0;
    min-height: 150px;
    border-radius: 12px;
    box-shadow: 0px 2px 6px 0px #0000001A;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

#homeMostPopular .mostPopularCardLink:hover {
    background: linear-gradient(111.61deg, #FFFFFF -2.1%, rgba(75, 148, 198, 0.05) 0.43%);
    box-shadow: 0px 2px 6px 0px #0000001A;
}

h3:hover {
  cursor: pointer;
}


.mostPopularCardLinkOverlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.mostPopularAnnonce {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #EA580C;
  padding: 3px;
  background-color: #FFEDD5;
}

#homeMostPopular .mostPopularCardImage,
#homeMostPopular .mostPopularCardImagePlaceholder {
	flex: 0 0 80px;
	height: 80px;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f5f8;
	display: flex;
	align-items: center;
	justify-content: center;
}

#homeMostPopular .mostPopularCardThumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
}

#homeMostPopular .mostPopularCardContent {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#homeMostPopular .mostPopularCardCategory {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
	color: #64748B;
  width: fit-content;
  padding: 3px 10px;
  background-color: #F1F5F9;
  margin-right: 5px;
}

#homeMostPopular .mostPopularCardTitle {
    font-family: 'Roboto', sans-serif;
	margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
	color: #030712;
}

#homeMostPopular .mostPopularCardButton {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: start;
	font-size: 14px;
	font-weight: 400;
	color: #64748B;
}

.mostPopularCardButton span {
  margin-left: 5px;
  color: #64748B;
}

#homeMostPopular .mostPopularCardLink {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px;
	text-decoration: none;
	color: inherit;
}

#homeMostPopular .mostPopularCardProducts {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    background: #4B94C61A;
    padding: 5px;
    border-radius: 12px;
}

#homeMostPopular .mostPopularCardProductsCount {
	font-size: 18px;
  line-height: 28px;
	font-weight: 700;
	color: #4B94C6;
}

#homeMostPopular .mostPopularCardProductsLabel {
	font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #4B94C6;
}

@media (max-width: 640px) {
	#homeMostPopular .mostPopularPosts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
  .mostPopularCardProducts {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .mostPopularCardLink {
    min-height: 235px !important;
  }

  .mostPopularCardProducts {
    display: none !important;
  }
}

.mostPopularCarousel {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
}

.mostPopularAnnonceCarousel {
    font-size: 14px;
    border-radius: 12px;
    font-weight: 400;
    color: #EA580C;
    padding: 5px 10px;
    background-color: #FFEDD5;
}

.mostPopularCardCategoryCarousel {
    font-size: 14px;
    border-radius: 12px;
    font-weight: 500;
    color: #64748B;
    width: fit-content;
    padding: 5px 10px;
    background-color: #F1F5F9;
}

.mostPopularNy {
    font-size: 14px;
    border-radius: 12px;
    font-weight: 500;
    color: #fff;
    width: fit-content;
    padding: 5px 10px;
    background-color: #46770E;
}

.faq-item {
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 10px; 
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .faq-icon,
    .faq-icon img {
        display: none;
    }
}

.faq-question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #030712;
    line-height: 24px;
    margin-bottom: 0;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #666;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    height: auto;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 20px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 23px;
}

/* If no icon, adjust the answer padding */
.faq-item:not(:has(.faq-icon)) .faq-answer-content {
    padding-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compaContent {
        padding: 0 16px;
    }
    
    .faq-question {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-question-text {
        font-size: 16px;
    }
    
    .faq-answer-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-item:not(:has(.faq-icon)) .faq-answer-content {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
    }
    
    .faq-question-text {
        font-size: 15px;
    }
    
    .faq-toggle-icon {
        width: 20px;
        height: 20px;
    }
    
    .faq-answer-content {
        padding: 15px;
    }
    
    .faq-item:not(:has(.faq-icon)) .faq-answer-content {
        padding-left: 16px;
    }
}

.compaContent {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
}

#main {
    max-width: unset !important;
}

.mostPopularCardTitle {
  margin: auto;
}