/* Responsive Design for The English Studio Website */

/* Medium screens (1024px - 1280px) - Typical 13" laptop range */
@media (max-width: 1280px) {
  /* Navigation adjustments */
  .nav-link {
    font-size: 1.125rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .nav-tagline {
    font-size: 0.6875rem !important;
  }
  
  /* Hero section adjustments */
  .hero-title {
    font-size: 4.5rem !important;
  }
  
  .hero-description {
    font-size: 1.125rem !important;
    max-width: 90% !important;
  }
  
  .hero-btn-explore,
  .hero-btn-assessment {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  /* About section */
  .about-title {
    font-size: 3.5rem !important;
  }
  
  .about-subtitle {
    font-size: 1.125rem !important;
  }
}

/* Tablet and smaller laptop screens (768px - 1024px) */
@media (max-width: 1024px) {
  /* Navigation */
  .nav-link {
    font-size: 1rem !important;
    padding: 0.375rem 0.625rem !important;
  }
  
  .nav-tagline {
    display: none !important;
  }
  
  /* Hero section */
  .hero-title {
    font-size: 3.5rem !important;
  }
  
  .hero-description {
    font-size: 1rem !important;
    max-width: 95% !important;
  }
  
  .hero-btn-explore,
  .hero-btn-assessment {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
  
  /* About section */
  .about-title {
    font-size: 2.75rem !important;
  }
  
  .about-subtitle {
    font-size: 1rem !important;
  }
  
  /* Navigation buttons positioning */
  #prevBtn {
    left: -3rem !important;
  }
  
  #nextBtn {
    right: -3rem !important;
  }
}

/* Mobile screens (640px and below) - Enhanced existing breakpoint */
@media (max-width: 768px) {
  /* Navigation - hide centered nav, show mobile menu */
  .absolute.left-1\/2 {
    display: none !important;
  }
  
  /* Mobile menu button */
  .mobile-menu-btn {
    display: block !important;
  }
  
  /* Hero section */
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-description {
    font-size: 0.875rem !important;
    max-width: 100% !important;
  }
  
  .flex.flex-col.sm\\:flex-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .hero-btn-explore,
  .hero-btn-assessment {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
  
  /* About section */
  .about-title {
    font-size: 2rem !important;
  }
  
  .about-subtitle {
    font-size: 0.875rem !important;
  }
  
  /* Navigation buttons for carousel */
  #prevBtn,
  #nextBtn {
    display: none !important;
  }
}

/* Extra small screens (480px and below) */
@media (max-width: 480px) {
  /* Hero section */
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-description {
    font-size: 0.75rem !important;
  }
  
  /* About section */
  .about-title {
    font-size: 1.75rem !important;
  }
  
  .about-subtitle {
    font-size: 0.75rem !important;
  }
  
  /* Logo adjustments */
  .w-16.h-16 {
    width: 3rem !important;
    height: 3rem !important;
  }
  
  .text-4xl {
    font-size: 1.5rem !important;
  }
}

/* Prevent text wrapping in navigation */
.nav-link {
  white-space: nowrap !important;
}

/* Ensure proper text wrapping for long content */
.hero-title,
.about-title {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Responsive container padding */
@media (max-width: 1280px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .max-w-7xl {
    max-width: 90% !important;
  }
  
  .max-w-8xl {
    max-width: 95% !important;
  }
}

/* Smooth transitions for responsive changes */
.nav-link,
.hero-title,
.hero-description,
.about-title,
.about-subtitle {
  transition: all 0.3s ease !important;
}

/* Mobile menu styles */
.mobile-menu-btn {
  display: none;
  background: linear-gradient(135deg, #1D4B3B 0%, #2D5A47 100%);
  color: #D4A933;
  border: 2px solid #D4A933;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

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

.mobile-menu a {
  display: block;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a:hover {
  background: #f1f5f9;
  color: #1D4B3B;
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
  button,
  a[role="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}

/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Responsive image handling */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* Ensure proper text contrast on all devices */
@media (prefers-color-scheme: dark) {
  .text-white {
    color: #ffffff !important;
  }
  
  .text-black {
    color: #000000 !important;
  }
}
