/* Custom styles for Home page */

/* Hero section with clean design */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  padding: 4rem 0;
  text-align: left;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 700px;
  padding: 2rem;
  background-color: var(--primary);
  border-left: 4px solid var(--secondary);
}

.hero-content .hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.hero-content .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons .btn {
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.hero-buttons .btn-outline {
  border: 2px solid var(--light);
  color: var(--light);
}

.hero-buttons .btn-primary:hover {
  background-color: var(--light);
  border-color: var(--light);
  transform: translateY(-3px);
}

.hero-buttons .btn-outline:hover {
  background-color: var(--light);
  color: var(--primary);
  transform: translateY(-3px);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Homepage Features with unique design */
.features {
  position: relative;
  padding: 4rem 0;
  background-color: #ffffff;
}

.feature-card {
  position: relative;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s ease;
  background: var(--light);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  bottom: 0;
  left: 0;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--light);
  margin-bottom: 1.5rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg);
}

/* Trust Section */
.trust {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  color: var(--light);
}

.trust-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 2.5rem 1.5rem;
}

.trust-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
}

.trust-text {
  position: relative;
  font-size: 1.2rem;
}

/* CTA Section */
.cta {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  color: var(--light);
}

/* Latest News Section */
.latest-news {
  padding: 5rem 0;
  background-color: var(--light);
  position: relative;
}

.latest-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--light);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.news-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image::after {
  transform: scaleX(1);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.news-date::before {
  content: "\f073";
  font-family: "Font Awesome 5 Free";
  margin-right: 0.5rem;
  color: var(--secondary);
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  transition: color 0.3s ease;
}

.news-card:hover .news-title {
  color: var(--secondary);
}

.news-excerpt {
  margin-bottom: 1.5rem;
  color: var(--black);
  line-height: 1.6;
  flex-grow: 1;
}

.news-link {
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  transition: all 0.3s ease;
}

.news-link::after {
  content: "\f061";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.news-card:hover .news-link {
  color: var(--primary);
}

.news-card:hover .news-link::after {
  transform: translateX(5px);
}

/* Testimonial Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--primary);
  color: var(--light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
  background-color: var(--light);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--black);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-info p {
  font-size: 0.9rem;
  color: var(--black);
  font-weight: 500;
}

/* Custom Button with Animation */
.btn-custom {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.5s ease;
  border: none;
  cursor: pointer;
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-custom:hover {
  color: var(--light);
}

.btn-custom:hover::before {
  width: 100%;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-content .hero-title {
    font-size: 2.5rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .hero-content {
    padding: 1.5rem;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-buttons .btn {
    margin-bottom: 1rem;
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .news-image {
    height: 200px;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-title {
    font-size: 1.2rem;
  }
}
