* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  overflow-x: hidden;
  /* color: white; */
} 


/* <!--service card-- >  */
.service-section-title {
  display: flex;
  justify-content: center;
  padding: 25px;
}
.service-section-title h1 {
  color: #1C1C25;
}
.services-section-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0px;
  background: #fff;
}
.services-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  padding-bottom: 50px;
  background: #fff;
  max-width: 1200px; /* Optional: set a max-width for better control */
  margin: 0 auto; /* Center the container */
}

.services-section > * {
  flex: 1 1 calc(33.333% - 30px); /* Adjust for gap */
  min-width: 300px; /* Minimum width before wrapping */
  max-width: 100%; /* Ensure items don't overflow */
}

.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  width: 300px;
  text-align: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9); /* More spread */
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-icon {
  font-size: 40px;
  margin-bottom: 15px;
}
.service-icon img {
  width: 70px;
  mix-blend-mode: hard-light;
}

.service-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

.service-description {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.service-section-button {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid black;
  border-radius: 25px;
  color: black;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-section-button:hover {
  background: black;
  color: white;
}

@media (max-width: 768px) {
  .service-icon img {
    width: 70px;
  }
}

/*  */


.container {
  /* width: 90%; */
  /* max-width: 1200px; */
  margin: auto;
}

/* Header */
.main-header {
  background-color: #1C1C25;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.main-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  margin-top: 50px;
}

.main-header p {
  font-size: 1.2rem;
  color: #cbd5e1;
}
/* Courses Section */
.courses-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  gap: 30px;
  margin: 5rem;
}

/* Make the last card full width */
.courses-section .course-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1; /* Span all columns */
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .courses-section {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }

  /* Adjust last card for 2-column layout */
  .courses-section .course-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .courses-section {
    grid-template-columns: 1fr; /* 1 column on small screens */
    margin: 2rem;
  }

  /* All cards full width on mobile */
  .courses-section .course-card {
    grid-column: 1 / -1;
  }
}

/* Course card styling */
.course-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.course-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #1C1C25;
}

.course-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 35px;
  line-height: 1.6;
}

.course-card a {
  text-decoration: none;
  color: #1C1C25;
  font-weight: 600;
  transition: color 0.3s;
  border: 2px solid black;
  padding: 8px 30px;
  border-radius: 25px;
}

.course-card a:hover {
  color: white;
  background-color: #1C1C25;
}

.m-whatsapp {
  color: white;
  font-weight: 300;
}