/* General Styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --gray-light: #e2e8f0;
  --beginner-color: #10b981;
  --intermediate-color: #6366f1;
  --advanced-color: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

section {
  padding: 5rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--gray-color);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.btn-white:hover {
  background-color: var(--light-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header Styles */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  font-family: 'Montserrat', sans-serif;
}

.code-tag {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(238, 242, 255, 0.7), rgba(238, 242, 255, 0.7)),
              url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - 82px);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--gray-color);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  text-align: right;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  border-radius: 50%;
  background-color: #eef2ff;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-color);
}

/* Classes Section */
.classes-section {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.class-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.class-card-header {
  padding: 1rem;
  color: white;
  text-align: center;
}

.beginner {
  background-color: var(--beginner-color);
}

.intermediate {
  background-color: var(--intermediate-color);
}

.advanced {
  background-color: var(--advanced-color);
}

.class-level {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.class-card-body {
  padding: 1.5rem;
}

.class-card h3 {
  margin-bottom: 1rem;
}

.class-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.class-info p {
  margin-bottom: 0.5rem;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.class-info i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.class-description {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

.class-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

/* Booking Section */
.booking-section {
  background-color: white;
  padding: 5rem 0;
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.booking-info h3 {
  margin-bottom: 1.5rem;
}

.booking-benefits li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.booking-benefits i {
  color: var(--secondary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.booking-form-container {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* About Section */
.about-section {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

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

.about-text h3 {
  margin-bottom: 0.5rem;
}

.about-title {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-credentials {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.credential {
  display: flex;
  align-items: center;
}

.credential i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: white;
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-quote {
  color: #ddd;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.author-info p {
  margin-bottom: 0;
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background-color: white;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.faq-toggle {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.2rem;
  max-height: 200px;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.footer-logo p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  align-items: center; /* Vertically align the link items themselves */
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Added to help with icon alignment and sizing */
.social-link i {
  font-size: 1.4rem; /* Adjust for appropriate icon size within the circle */
  line-height: 1;    /* Normalize line height to aid vertical centering */
  color: white; /* Ensure icons are white */
}

/* Specific adjustments for visual centering */
.social-link .fa-twitter {
  transform: translate(7px, 1px); /* Nudge Twitter icon slightly right and down */
}

.social-link .fa-linkedin { /* Updated class from fa-linkedin-in */
  transform: translate(7px, 0px); /* Adjust as needed */
}

.social-link .fa-github {
  transform: translate(7px, 0px); /* Adjust as needed */
}

.social-link .fa-youtube {
  transform: translate(7px, 0px); /* Adjust as needed */
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: 'Roboto', sans-serif;
}

.newsletter-form .btn {
  border-radius: 0 4px 4px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-section .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
  }

  .nav-links.active li {
    margin: 1rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .classes-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .class-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }

  .newsletter-form .btn {
    border-radius: 4px;
    width: 100%;
  }

  .about-credentials {
    grid-template-columns: 1fr;
  }
}
