/* Base */
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.7;
}

/* Navbar */
.navbar-brand {
  font-size: 1.5rem;
  color: #4caf50;
}

.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
}

.btn-success {
  background-color: #4caf50;
  border-color: #4caf50;
}

/* Hero Section */
.hero {
  background-color: #f5f7fa;
  padding: 80px 0;
}

.hero h1 span {
  color: #4caf50;
}

.hero img {
  max-width: 100%;
  height: auto;
}

.carousel-indicators [data-bs-target] {
  background-color: #4caf50;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.6;
}

.carousel-indicators .active {
  opacity: 1;
}

/* Clients Section */
.clients-section {
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.logo-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll-left 10s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.logo-set {
  display: flex;
}

.logo-item {
  /* height: 20px; */
  /* width: auto; */
  margin: 0 2rem;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-item:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* Elevate Section */
.elevate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.elevate img {
  max-width: 400px;
  width: 100%;
}

.text-content {
  max-width: 500px;
  margin-left: 40px;
}

.text-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.text-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.text-content .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2ecc71;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* Stats Section */
.stats-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
}

.highlight-text {
  color: #4caf50;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.stat-icon {
  font-size: 32px;
  color: #4caf50;
}

.stat-number {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 0;
}

.stat-label {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* Community Section */
.community-section .shadow {
  transition: 0.3s;
}

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

.frame-4 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.box {
  flex: 1 1 300px;
  max-width: 320px;
  text-align: center;
}

/* Blog Section */
.blog-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
}

.blog-section h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 0.5rem;
}

.blog-section p {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  max-width: 700px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
  justify-items: center;
  max-width: 960px;
  width: 100%;
  margin-top: 2rem;
}

.card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

.card:hover img {
  filter: brightness(1);
}

.card-content {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: #f9fbfd;
  border-radius: 12px;
  width: 85%;
  padding: 1.3rem 1.4rem 1.8rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: bottom 0.3s ease;
}

.card:hover .card-content {
  bottom: 8%;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #4b5563;
  margin: 0 0 0.6rem;
  line-height: 1.3;
  user-select: none;
}

.readmore {
  font-size: 0.9rem;
  font-weight: 500;
  color: #22c55e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  user-select: none;
  transition: color 0.3s ease;
}

.readmore:hover,
.readmore:focus {
  color: #15803d;
  outline: none;
}

.readmore svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 80px 20px;
}

.cta-section h1 {
  font-size: 50px;
  margin-bottom: 30px;
  color: #2d2d2d;
}

.cta-section .btn {
  background-color: #28c76f;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  transition: background 0.3s;
}

.cta-section .btn:hover {
  background-color: #20b862;
}

/* Footer */
.footer {
  background-color: #263238;
  color: #ddd;
  padding: 60px 0;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer input[type="email"] {
  background-color: #2a2a2a;
  border: none;
  color: #fff;
}

.footer .btn-outline-light {
  border-color: #4caf50;
  color: #4caf50;
}

.footer .btn-outline-light:hover {
  background-color: #4caf50;
  color: #fff;
}

/* Utility Button */
.btn-green {
  background-color: #4caf50;
  color: white;
  border: none;
}

.btn-green:hover {
  background-color: #43a047;
}

/* ======================================= */
/*               MEDIA QUERY               */
/* ======================================= */

/* 768px */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero .col-lg-6 {
    width: 100%;
  }

  .clients-section h2 {
    font-size: 2rem;
  }

  .logo-item {
    height: 32px;
  }

  .logo-track {
    gap: 1.2rem;
    animation: scroll 10s linear infinite;
  }

  .box {
    flex: 1 1 100% !important;
    max-width: 100%;
  }
}

/* 600px */
@media (max-width: 600px) {
  .card-content {
    position: static;
    transform: none;
    width: 100%;
    margin-top: -1rem;
    padding: 1rem;
    box-shadow: none;
  }

  .card:hover .card-content {
    bottom: auto;
  }
}

/* 576px */
@media (max-width: 576px) {
  .elevate {
    flex-direction: column;
    padding: 40px 15px;
    text-align: center;
  }

  .text-content {
    margin-left: 0;
    margin-top: 20px;
  }

  .cta-section h1 {
    font-size: 32px;
  }

  .cta-section .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* 480px */
@media (max-width: 480px) {
  .card-content h3 {
    font-size: 0.95rem;
  }

  .readmore {
    font-size: 0.85rem;
  }
}
