/* home.css - Updated styles for the home page with properly proportioned icons */

/* About section */
.about .content h3 {
  font-weight: 600;
  font-size: 26px;
  color: var(--color-secondary);
}

.about .content h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 30px;
  color: var(--color-secondary);
}

.about .content p {
  margin-bottom: 30px;
}

/* Values section with better spacing */
.values .box {
  padding: 30px;
  box-shadow: 0px 0 5px rgba(1, 41, 112, 0.08);
  text-align: center;
  transition: 0.3s;
  height: 100%;
  margin-bottom: 30px;
}

.values .box img {
  padding: 30px 50px;
  transition: 0.5s;
  transform: scale(1.1);
}

.values .box h3 {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 18px;
}

.values .box:hover {
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
}

.values .box:hover img {
  transform: scale(1);
}

/* Counts section */
.counts {
  padding: 70px 0 60px;
}

.counts .count-box {
  display: flex;
  align-items: center;
  padding: 30px;
  width: 100%;
  background: #fff;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
}

.counts .count-box i {
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
  color: var(--color-primary);
}

.counts .count-box span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: var(--color-secondary);
}

.counts .count-box p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 14px;
}

/* Dark Service Boxes - Updated with properly targeted icon selectors */
.services .service-box-dark {
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: white;
  box-shadow: 0 0 29px 0 rgba(18, 66, 101, 0.08);
  transition: all 0.3s ease-in-out;
  height: 100%;
  border: 2px solid var(--color-primary);
}

.services .service-box-dark i.icon {
  font-size: 72px; /* Much larger icons */
  color: white;
  margin-bottom: 20px;
  display: block;
  transition: 0.5s;
}

.services .service-box-dark h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
  color: white;
}

.services .service-box-dark p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.services .service-box-dark .read-more {
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  padding-top: 10px;
  text-decoration: none;
}

.services .service-box-dark .read-more i {
  line-height: 0;
  margin-left: 5px;
  font-size: 18px;
}

/* Hover effect - changes to white background with gold title and black text */
.services .service-box-dark:hover {
  transform: translateY(-10px);
  background: white;
  color: var(--color-secondary);
}

.services .service-box-dark:hover h3 {
  color: var(--color-primary);
}

.services .service-box-dark:hover p {
  color: var(--color-secondary);
}

.services .service-box-dark:hover i.icon {
  color: var(--color-primary);
}

.services .service-box-dark:hover .read-more {
  color: var(--color-primary);
}

/* What to Expect Section */
.what-to-expect {
  background: color-mix(in srgb, var(--color-primary), transparent 98%);
}

.what-to-expect .step-box {
  padding: 40px 30px;
  background: #fff;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
}

.what-to-expect .step-box:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 40px rgba(1, 41, 112, 0.15);
}

.what-to-expect .step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.what-to-expect .step-box h3 {
  font-weight: 700;
  margin: 30px 0 15px 0;
  font-size: 20px;
  color: var(--color-secondary);
}

.what-to-expect .step-box p {
  color: color-mix(in srgb, var(--color-default), transparent 30%);
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/* Testimonials styling improvements */
.testimonials {
  padding: 80px 0;
  background: var(--color-secondary);
  position: relative;
}

.testimonials .section-header {
  color: #fff;
}

.testimonials .section-header h2,
.testimonials .section-header p {
  color: #fff;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px;
  margin: 40px 30px;
  background: var(--background-color);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.testimonials .testimonial-item .stars {
  margin-bottom: 15px;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0;
  padding: 0;
  color: color-mix(in srgb, var(--color-default), transparent 20%);
  line-height: 26px;
  font-size: 16px;
}

.testimonials .testimonial-item .profile {
  margin-top: auto;
  text-align: center;
}

.testimonials .testimonial-item .profile .testimonial-img {
  width: 90px;
  border-radius: 50%;
  border: 6px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item .profile h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-secondary);
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item .profile h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--color-default), transparent 50%);
  margin: 0;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

/* Blog section styling */
.recent-blog-posts .post-box {
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
  transition: 0.3s;
  height: 100%;
  overflow: hidden;
  padding: 0 0 30px 0;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.recent-blog-posts .post-box .post-img {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.recent-blog-posts .post-box .post-img img {
  transition: 0.5s;
}

.recent-blog-posts .post-box .post-date {
  font-size: 16px;
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
  margin: 20px 0 10px 20px;
}

.recent-blog-posts .post-box .post-title {
  font-size: 24px;
  color: var(--color-secondary);
  font-weight: 700;
  margin: 0 20px 20px 20px;
  position: relative;
}

.recent-blog-posts .post-box .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--color-default), transparent 50%);
  margin: 0 20px 0 20px;
  text-decoration: none;
}

.recent-blog-posts .post-box .readmore i {
  line-height: 0;
  margin-left: 4px;
  font-size: 18px;
}

.recent-blog-posts .post-box:hover .post-img img {
  transform: rotate(6deg) scale(1.2);
}

.recent-blog-posts .post-box:hover .readmore {
  color: var(--color-primary);
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .what-to-expect .step-box {
    margin-bottom: 40px;
  }

  .testimonials .testimonial-item {
    margin: 40px 20px;
  }

  /* Adjust icon size for mobile */
  .services .service-box-dark i.icon {
    font-size: 58px; /* Proportional for mobile */
  }
}