/*
Theme Name: Jaseem Khan Classes
Theme URI: http://example.com/jaseem-khan-classes
Author: Your Name
Author URI: http://example.com
Description: A premium education theme for Jaseem Khan Classes.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jaseem-khan-classes
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  gap: 8px;
}

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

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

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

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.5rem;
}

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

.text-primary {
  color: var(--primary);
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

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

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 60px 0;
  }
}

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent zoom on inputs on iOS */
@media screen and (max-width: 768px) {

  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Navbar Styles */
.navbar {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  white-space: nowrap;
}

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

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-main);
  padding: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 6px;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-light);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: white;
  padding: 1rem;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 998;
}

/* Remove dialog styling on mobile */
@media (max-width: 768px) {
  .mobile-menu {
    box-shadow: none;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    animation: none;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    padding: 1rem 16px;
  }
}

@media (max-width: 375px) {
  .mobile-menu {
    padding: 1rem 12px;
  }
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.mobile-menu a:hover {
  background-color: var(--bg-light);
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .desktop-menu {
    display: none;
  }

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

  .logo a {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 1.1rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

@media (max-width: 375px) {
  .logo a {
    font-size: 1rem;
  }

  .container {
    padding: 0 12px;
  }

  .mobile-menu-btn {
    padding: 6px;
  }

  .mobile-menu-btn i {
    width: 20px;
    height: 20px;
  }
}

/* Hero Styles */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  overflow: hidden;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.image-placeholder {
  position: relative;
  width: 100%;
  height: 400px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.circle {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.content-card {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 200px;
  animation: float 3s ease-in-out infinite;
}

.stars {
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

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

  .hero-image {
    display: none;
  }

  .image-placeholder {
    height: 300px;
  }

  .content-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: 90%;
    max-width: 280px;
  }
}

/* About Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

.description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.icon {
  color: var(--secondary);
}

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

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h2 {
    text-align: center !important;
  }
}

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

.course-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.icon-wrapper {
  color: var(--primary);
  margin-bottom: 1.5rem;
  background: #eff6ff;
  padding: 1rem;
  border-radius: 50%;
}

.course-card h3 {
  margin-bottom: 0.5rem;
}

.course-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.badge {
  background: #fef3c7;
  color: #d97706;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Benefits Styles */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: var(--shadow);
}

.check-icon {
  background: var(--secondary);
  color: white;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.benefit-item span {
  font-weight: 500;
  font-size: 1.1rem;
}

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

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stars {
  color: var(--secondary);
  margin-bottom: 1rem;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 80px;
}

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

.avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact Styles */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: var(--primary);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: white;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.9);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.info-item:last-child {
  margin-bottom: 0;
}

.icon-box {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item h4 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: white;
}

.info-item a,
.info-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.w-full {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    padding: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

.alert {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.input-error {
  border-color: #ef4444 !important;
}

.error-text {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Footer Styles */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #9ca3af;
}

.footer-links h4,
.footer-social h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

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

.social-icons a {
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    text-align: center;
    gap: 2rem;
  }

  .footer-links ul {
    align-items: center;
  }

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

/* Floating Actions Styles */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.float-btn:hover {
  transform: scale(1.1);
}

.whatsapp {
  background-color: #25D366;
}

.call {
  background-color: var(--primary);
  display: none;
  /* Hidden on desktop by default */
}

.scroll-top {
  background-color: var(--text-main);
  opacity: 0.8;
}

.scroll-top:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .floating-actions {
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 15px;
  }

  .float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex: none;
  }

  .call {
    display: flex;
  }
}