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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(to bottom, #f0f9f0, #ffffff);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 2rem;
  color: #16a34a;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #166534;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #15803d;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav a:hover {
  color: #166534;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #16a34a;
  cursor: pointer;
  padding: 0.75rem;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
  min-height: 48px;
  min-width: 48px;
  border-radius: 0.5rem;
}

.mobile-menu-toggle:hover {
  background: rgba(22, 163, 74, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  padding-top: 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-menu-items a {
  text-decoration: none;
  color: #15803d;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f9f0;
  transition: color 0.3s;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-menu-items a:hover {
  color: #16a34a;
}

.mobile-menu-items a:last-child {
  border-bottom: none;
}

/* Hamburger Animation */
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #16a34a;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

.hamburger.open span:nth-child(1) {
  top: 7px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 7px;
  transform: rotate(-135deg);
}

/* Buttons */
.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  min-height: 48px;
  line-height: 1.2;
}

.btn-primary {
  background: #16a34a;
  color: white;
}

.btn-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-large {
  padding: 1.125rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-secondary {
  background: #f3f4f6;
  color: #374151;
}

.text-accent {
  color: #16a34a;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
}

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

.hero-text {
  space-y: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 1rem 0;
}

.hero-description {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 1.5rem 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat i {
  color: #16a34a;
}

.stat span {
  font-size: 0.875rem;
  color: #6b7280;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.section-header h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Courses Section */
.courses {
  background: white;
  padding: 4rem 0;
}

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

.course-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.course-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.course-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-content {
  padding: 1.5rem;
}

.course-content h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #166534;
  margin-bottom: 0.5rem;
}

.course-content p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.course-meta {
  margin-bottom: 1.5rem;
}

/* Reviews Section */
.reviews {
  background: #f0f9f0;
  padding: 4rem 0;
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-container {
  overflow: hidden;
  border-radius: 1rem;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 33.333%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease;
}

.testimonial.center {
  transform: scale(1.1);
}

.testimonial.side {
  transform: scale(0.9);
  opacity: 0.7;
}

.testimonial-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: #fbbf24;
  margin-top: 0.5rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #dcfce7;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  min-height: 50px;
  min-width: 50px;
}

.slider-btn:hover {
  background: #dcfce7;
  border-color: #16a34a;
}

.slider-btn-prev {
  left: -25px;
}

.slider-btn-next {
  right: -25px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.3s;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  color: #d1d5db;
  transition: color 0.3s;
}

.dot.active::after {
  color: #16a34a;
}

/* Newsletter Section */
.newsletter {
  background: white;
  padding: 4rem 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.newsletter-form-card {
  background: #f0f9f0;
  border: 2px solid #dcfce7;
  border-radius: 1rem;
  padding: 2rem;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group input {
  flex: 1;
  padding: 0.875rem;
  border: 2px solid #dcfce7;
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 48px;
}

.form-group input:focus {
  outline: none;
  border-color: #16a34a;
}

.disclaimer {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Footer */
.footer {
  background: #166534;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-main {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo i {
  font-size: 1.5rem;
}

.footer-logo h4 {
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-section p {
  color: #dcfce7;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #dcfce7;
  font-size: 1.25rem;
  transition: color 0.3s;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.social-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.footer-section h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #dcfce7;
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.25rem 0;
  display: block;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #15803d;
  padding-top: 2rem;
  text-align: center;
  color: #dcfce7;
}

/* Footer links row - always in a row */
.footer-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 2rem 2rem 1rem;
  position: relative;
}

.modal-header h2 {
  text-align: center;
  color: #166534;
  margin: 0;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #6b7280;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.close:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: 0 2rem 2rem;
}

.modal-body p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-form input {
  padding: 0.875rem;
  border: 2px solid #dcfce7;
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 48px;
}

.email-form input:focus {
  outline: none;
  border-color: #16a34a;
}

.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-message h3 {
  color: #166534;
  margin-bottom: 1rem;
}

.success-message p {
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-image img {
    height: 300px;
  }

  .hero-stats {
    justify-content: center;
    gap: 1rem;
  }

  .courses {
    padding: 3rem 0;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reviews {
    padding: 3rem 0;
  }

  .testimonial {
    min-width: 100%;
    padding: 1rem;
  }

  .testimonial-image {
    width: 120px;
    height: 120px;
  }

  .slider-btn {
    display: none;
  }

  /* Footer stays the same - company info on top, links in row below */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-main {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Links row stays as 1fr 1fr grid */
  .footer-links-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter {
    padding: 3rem 0;
  }

  .newsletter-form-card {
    padding: 1.5rem;
  }

  .section-header h3 {
    font-size: 1.75rem;
  }

  .modal-content {
    margin: 15% auto;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 1.5rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-image img {
    height: 250px;
  }

  .section-header h3 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .newsletter-content h3 {
    font-size: 1.5rem;
  }

  .newsletter-content p {
    font-size: 1rem;
  }

  .modal-content {
    margin: 20% auto;
    width: 95%;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-body {
    padding: 0 1.5rem 1.5rem;
  }

  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .courses,
  .reviews,
  .newsletter {
    padding: 2rem 0;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  /* Mobile menu stays at 320px width, not full screen */
  .mobile-menu {
    width: 320px;
    right: -320px;
  }

  .mobile-menu.open {
    right: 0;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .mobile-menu {
    width: 280px;
    right: -280px;
  }

  .mobile-menu.open {
    right: 0;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .mobile-menu-items a,
  .nav a,
  .close,
  .slider-btn,
  .dot,
  .social-links a {
    min-height: 48px;
    min-width: 48px;
  }

  .mobile-menu-toggle {
    min-height: 48px;
    min-width: 48px;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
.dot:focus {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
