* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Figtree", "Inter", sans-serif;
  color: #fff;
  /* background-color: #a11838; */
  /* background-color: rgba(117,87,87,0.71); */
}

.hero {
  background: linear-gradient(rgba(117, 87, 87, 0.71) 0%, rgb(161, 24, 56) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 125px 30px;
  overflow: hidden;
}

/* container: matches 1480 px width center alignment */
.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

/* -------- TEXT COLUMN -------- */
.hero-text {
  flex: 1 1 550px;
  color: #fff;
}

.hero-text h1 {
  font-family: "Figtree", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 0 0 25px;
}

.hero-text .subtext {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 45px;
  max-width: 560px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

/* -------- CTA ROW -------- */
.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn {
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 34px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: scale(1.05);
  background: #f5f5f5;
  color: #000;
}
.btn:active {
  transform: scale(0.95);
  background: #f5f5f5;
  color: #000;
}
.btn:focus {
  transform: scale(1.05);
  background: #f5f5f5;
  color: #000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* avatars and rating text */
.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
}
.avatars {
  display: flex;
  align-items: center;
}
.avatars img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -10px;
}
.avatars img:first-child {
  margin-left: 0;
}

/* -------- HERO IMAGE -------- */
.hero-image img {
  width: 500px;
  max-width: 100%;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: block;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 991px) {
  .nav-center {
    gap: 24px;
    padding: 10px 24px;
  }
  .logo {
    height: 42px;
  }

  .hero {
    padding: 150px 20px 90px;
    text-align: center;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .hero-text {
    flex: 1 1 100%;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-image {
    flex: 1 1 100%;
  }
  .hero-image img {
    width: 80%;
    margin: 0 auto;
  }
  .cta-row {
    justify-content: center;
  }
}

/* ---------- WHY CHOOSE LEXFUNIS ---------- */
.why {
  background-color: rgb(250, 230, 230);
  padding: 125px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.why h2 {
  font-family: "Figtree", "Inter", sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04px;
  margin: 0 0 25px;
  color: #111;
  opacity: 0;
  transform: translateY(40px);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  width: 100%;
}

/* card */
.why-card {
  background: #fff;
  border-radius: 18px;
  padding: 50px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

/* icon circle */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #8d0f2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

/* text */
.why-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}
.why-card p {
  font-size: 1rem;
  color: #555;
  max-width: 260px;
  line-height: 1.5;
  margin: 0;
}

/* responsive */
@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .why-card {
    width: 100%;
  }
  .why h2 {
    font-weight: 600;
    font-size: 1.5rem;
    overflow-wrap: break-word;
    text-align: center;
  }
}

/* --- ABOUT LEXFUNIS SECTION --- */
.about-lexfunis {
  background-color: rgb(247, 247, 247);
  padding: 100px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image img {
  width: 520px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.about-content {
  flex: 1;
  max-width: 550px;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 991px) {
  .about-container {
    flex-direction: column;
  }
  .about-image img {
    width: 100%;
  }
}

/* --- MISSION SECTION --- */
.mission {
  background-color: rgb(161, 24, 56);
  color: white;
  padding: 100px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mission-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
}

.mission-content {
  flex: 1;
  max-width: 550px;
}

.mission-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.mission-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  color: #f2f2f2;
}

.mission-image img {
  width: 520px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

@media (max-width: 991px) {
  .mission-container {
    flex-direction: column;
  }
  .mission-image img {
    width: 100%;
  }
}

/* --- VISION SECTION --- */
.vision {
  background-color: rgb(247, 247, 247);
  color: #000;
  padding: 100px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
}

.vision-image img {
  width: 520px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.vision-content {
  flex: 1;
  max-width: 550px;
}

.vision-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.vision-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  color: #333;
}

@media (max-width: 991px) {
  .vision-container {
    flex-direction: column;
  }
  .vision-image img {
    width: 100%;
  }
}

/* --- COURSES SECTION --- */
.courses {
  background: radial-gradient(50% 50%, rgb(209, 29, 29) 0%, rgb(161, 24, 56) 100%);
  color: white;
  padding: 100px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.courses h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- GRID --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* --- CARD --- */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  margin: auto;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- IMAGE --- */
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* --- INFO --- */
.course-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.course-info p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
}

/* Details row */
.course-detail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #555;
  font-size: 0.95rem;
}

/* .course-detail i {
  font-size: 1.1rem;
  color: #000;
} */

.course-detail img {
  width: auto;
  height: 33px;
  object-fit: cover;
  margin-right: 5px;
}

/* --- BUTTON --- */
.course-info button {
  align-self: center;
  margin-top: 10px;
  background: #ffffff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 0;
}

/* 3D hover with subtle glow */
.course-info button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.6);
  background: #fefefe;
}

/* Add a soft inner glow focus effect */
.course-info button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Closed state (disabled button) */
.course-info button.closed {
  background: #f3f3f3;
  color: #777;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.course-info button.closed:hover {
  transform: none;
  box-shadow: none;
  background: #f3f3f3;
}

/* BLOG SECTION */
.blog-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 40px;
  padding: 100px 30px;
  background-color: #f7f7f7;
  box-sizing: border-box;
  width: 100%;
}

/* Section title */
.blog-section h2 {
  font-family: "Figtree", "Figtree Placeholder", sans-serif;
  font-size: 55px;
  font-weight: 600;
  color: #111;
  opacity: 0;
  transform: translateY(20px);
}

/* Description under title */
.blog-section p {
  font-size: 18px;
  color: #444;
  max-width: 700px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

/* Blog cards container */
.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

/* Each card */
.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 350px;
}

/* Image inside card */
.blog-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}

/* Card content */
.blog-card .content {
  padding: 20px;
}

.blog-card h3 {
  font-size: 1rem;
  margin-top: 10px;
  color: #000;
}

.blog-card small {
  color: rgb(140, 140, 140);
  font-size: 0.8rem;
}

.blog-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Hover lift */
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Read more link */
.blog-card a {
  display: inline-block;
  color: #1d65d1;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.blog-card a:hover {
  color: #0f4cbf;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .blog-card {
    width: 100%;
  }
  .blog-section h2 {
    font-size: 29px;
    font-weight: 600;
  }
  .blog-section p {
    font-size: 16px;
  }
}

/* Testimonials Section */
.testimonials {
  align-content: center;
  align-items: center;
  background-color: #fae6e6;
  box-sizing: border-box;
  column-gap: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 40px;
  padding: 100px 30px;
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: "Figtree", sans-serif;
}

.testimonials h2 {
  font-size: 55px;
  font-weight: 600;
  color: #111;
}

.testimonials p {
  font-size: 18px;
  color: #444;
  max-width: 700px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Testimonials container */
.testimonial-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Continuous linear scroll */
.testimonial-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollLinear 40s linear infinite;
}

/* Define the scroll animation */
@keyframes scrollLinear {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
  color: #f3b600;
  font-size: 18px;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.testimonial-author p {
  font-size: 14px;
  color: #777;
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 300px;
  }
}

/* Responsive behavior */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 260px;
    padding: 20px;
  }

  .testimonials h2 {
    font-size: 29px;
    font-weight: 600;
    text-align: center;
  }

  .testimonials p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 220px;
  }
}

/* FAQ Section */
.faq-section {
  padding: 100px 30px;
  background-color: #fff;
  font-family: "Figtree", sans-serif;
}

/* ✅ Two-column layout */
.faq-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* Left Column */
.faq-left {
  flex: 1 1 40%;
  min-width: 350px;
}

.faq-left h2 {
  font-size: 48px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.faq-left p {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 35px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #f3f3f3;
  transform: translateY(-3px);
}

/* Right Column */
.faq-right {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Accordion Styling */
.faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f9f9f9;
}

.icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 30px;
  opacity: 0;
  transform: translateY(30px);
}

.faq-answer p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 20px 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item.active .icon {
  transform: rotate(90deg);
}

/* ✅ Responsive Fix */
@media (max-width: 992px) {
  .faq-container {
    flex-direction: column;
    gap: 50px;
  }

  .faq-left,
  .faq-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .faq-left h2 {
    font-size: 36px;
  }

  .faq-left p {
    font-size: 16px;
  }

  .faq-question {
    font-size: 16px;
    padding: 20px;
  }
}
