* {
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  font-family: 'Arial', sans-serif;
}

.hero-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Large size for desktop */
  object-fit: cover;
}

.hero-section h1 span {
  color: #73241d;
  font-size: 4rem;
}

@media (max-width: 992px) {
  .hero-image {
    max-width: 300px; /* Smaller size for mobile */
    aspect-ratio: 300/225; /* Scaled down proportionally */
    margin: 0 auto; /* Center the image */
    display: block;
  }
  
  .hero-section {
    flex-direction: column;
    padding: 100px 20px 50px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 100px 15px 30px;
  }

  .hero-text,
  .contact-form img {
    width: 100% !important;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section h3 span {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------- */
/* our courses  */
.courses-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.list-group-item {
  flex: 0 1 300px;
  border: 1px solid #e0e0e0;
  border-radius: 10px !important;
  padding: 15px !important;
  margin: 0 !important;
  transition: all 0.3s ease;
  background: white;
}

.list-group-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.list-group-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.list-group-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  color: black;
  width: 30px;
  text-align: center;
}

.content-area {
  background: #2c3e50;
  padding: 30px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-area ul {
  padding-left: 20px;
}

.content-area li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .container {
    height: auto;
    padding: 10px;
  }

  .list-group-item {
    flex: 0 1 250px;
  }

  .content-area {
    padding: 20px;
  }
  #courseDetails {
    overflow: hidden; /* Prevents scrollbar flickering */
  }

  .loading-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #73241d; /* Your brand color */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
}

/* ---------------------------------------------------------------------------------------- */
/* Image Section Responsive Styles */
.image-section {
  margin: 0;
  padding: 40px 20px;
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3rem;
}

.image-section .container {
  flex-direction: column;
  text-align: center;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-section .text {
  font-size: 2rem;
  margin-bottom: 30px;
  line-height: 1.3;
}

.stages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.stage {
  padding: 15px 30px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.beginners {
  background-color: #e74c3c;
  color: white;
}
.intermediate {
  background-color: #0052cc;
  color: white;
}
.advanced {
  background-color: black;
  color: #fff;
}

.arrow {
  font-size: 3rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .image-section {
    min-height: 40vh;
    padding: 30px 15px;
  }

  .image-section .text {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .stages {
    width: 100%;
    gap: 10px;
  }

  .stage {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .image-section {
    min-height: auto;
    padding: 40px 10px;
  }

  .stages {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .stage {
    width: 220px;
    padding: 12px 25px;
  }

  .arrow {
    transform: rotate(90deg);
    margin: 5px 0;
  }

  .stage i {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------------------------------------------- */

/* speciality section start */
.full-section {
  min-height: 70vh;
  width: 100%;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0px 20px;
  padding-bottom: 6rem;
}

.full-section .section-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.full-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: white;
}
.card {
  background-color: white;
  color: black;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
}
.icon {
  font-size: 50px;
  color: #2c3e50;
  margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .icon {
    font-size: 40px;
  }
  .card {
    padding: 20px;
  }
  .full-section .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 768px) {
  .full-section {
    padding: 30px 10px;
  }

  .full-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .row {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    max-width: 400px;
    margin-bottom: 20px;
  }
  .icon {
    font-size: 35px;
  }
}

/* --------------------------------------------------------------------------------------------------------------------------- */

:root {
  --primary-color: #4285F4;
  --secondary-color: #34A853;
  --accent-color: #FBBC05;
  --dark-color: #333;
  --light-color: #f8f9fa;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.google-rating {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.google-rating img {
  width: 120px;
  margin-bottom: 0.5rem;
}

.rating-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.total-reviews {
  font-size: 0.9rem;
  color: #777;
  margin-top: -5px;
  margin-bottom: 1rem;
}

.google-review-btn {
  display: inline-block;
  background: linear-gradient(45deg, #4285F4, #34A853);
  color: white;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.google-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
  background: linear-gradient(45deg, #34A853, #4285F4);
}

.google-review-btn i {
  margin-right: 8px;
}

.floating-action-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

.floating-action-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #4285F4;
  color: white;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.floating-action-btn a:hover {
  background: #34A853;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  margin-right: 1rem;
}

.reviewer-info {
  flex-grow: 1;
}

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--dark-color);
}

.star-rating {
  color: #FBBC05;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.review-content {
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.quote-icon {
  color: #e0e0e0;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .review-cards {
    grid-template-columns: 1fr;
  }
  
  .google-rating {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
