/* =====================================
   ROOT VARIABLES
===================================== */
:root {
  --primary: #5e33a9;
  --primary-dark: #5c2696;
  --secondary: #4e0864;
  --bg: #e0d9fc;
  --bg-alt: #f6f4fe;
  --text-dark: #1a1a1a;
  --text-light: #555;
  --radius: 12px;
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --section-padding: 90px 8%;
}

/* =====================================
   GLOBAL STYLES
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  /* background: var(--bg); */
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #e0d9fc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--secondary);
}

p {
  color: var(--text-light);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--primary);
}

.btn.secondary:hover {
  background: #eef4ff;
}

/* =====================================
   HERO SECTION
===================================== */
.hero2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--section-padding);
  background: var(--secondary);
  background: rgba(71, 31, 156, 0.82);

  /* background-image: url(/img/bg-img/bg-2.jpg);
  background-color: #005bcc; */
  color: #fff;
  gap: 40px;
}

.hero-content2 {
  flex: 1 1 480px;
}

.hero2 h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.2;
  color: #eef4ff;
}

.hero2 p {
  max-width: 600px;
  font-size: 1.5em;
  opacity: 0.9;
  margin-bottom: 30px;
  color: black;
}

.hero-buttons2 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero_image {
  flex: 1 1 400px;
  text-align: center;
  margin-top: 30px;
}

.hero_image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* =====================================
   STATS SECTION
===================================== */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--section-padding);
  background: var(--bg-alt);
  gap: 40px;
}

.stat-container {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat {
  text-align: center;
  padding: 20px;
}

.stat h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 5px;
}

.stat p {
  font-weight: 500;
  color: var(--text-dark);
}

.stat-content {
  flex: 1 1 45%;
}

.stat-content h6 {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 15px;
}

.stat-content p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* =====================================
   ABOUT SECTION
===================================== */
.about {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: var(--section-padding);
}

.about-text {
  flex: 1 1 450px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.about-text ul {
  list-style: none;
  margin-top: 15px;
}

.about-text li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
}

.about-text li::before {
  content: "✔";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.about-image {
  flex: 1 1 450px;
  position: relative;
}

.about-image img {
  box-shadow: var(--shadow-md);
}

.about-buttons {
  position: absolute;
  bottom: 10%;
  left: 10%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-buttons .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}
/* ================================
   Testimonial Section
================================= */
.testimonials {
  padding: 80px 5%;
  background: var(--bg-alt);
  color: var(--text-dark);
  text-align: center;
}

.testimonials .section-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials .section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 15px;
  color: var(--secondary);
}

.testimonials .section-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* Testimonial Wrapper */
.testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Testimonial Card */
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px 25px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0;
}

.testimonial-position {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 15px 0;
}

.stars {
  color: #ffc107;
  font-size: 1rem;
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
  .testimonial-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 25px 20px;
  }

  .testimonial-name {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .stars {
    font-size: 0.95rem;
  }
}

/* =====================================
   OFFICES SECTION
===================================== */
.offices {
  background: var(--bg-alt);
  text-align: center;
  padding: var(--section-padding);
}

.offices h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.offices h3 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 50px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-content: center;
}

.office-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  cursor: pointer;
}

.office-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.4);
}

.office-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  text-align: left;
  transition: opacity 0.4s ease;
}

.office-card:hover .office-info {
  opacity: 1;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */
@media (max-width: 992px) {
  .hero2 {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content2,
  .hero_image {
    flex: 1 1 100%;
  }

  .stats {
    flex-direction: column;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-buttons {
    position: static;
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero2 {
    padding: 60px 5%;
  }

  .hero2 h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .stat-container {
    grid-template-columns: 1fr;
  }

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

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

  .section-description {
    font-size: 0.95rem;
  }
}
/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 90px 8%;
  background: var(--bg-alt);
}

.about-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--secondary);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-text li::before {
  content: "✔";
  color: var(--primary);
  margin-right: 8px;
}

.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.about-buttons .btn {
  padding: 12px 22px;
  font-size: 0.95rem;
  flex: 1 1 200px; /* Makes buttons flexible and stack on small screens */
  text-align: center;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  position: relative;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 992px) {
  .about {
    flex-direction: column-reverse;
    text-align: center;
    padding: 60px 5%;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

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

  .about-text ul {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-buttons .btn {
    flex: 1 1 100%; /* Buttons stack vertically on mobile */
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-text ul li {
    font-size: 0.95rem;
  }
}
