/* ===============================
   GLOBAL RESET
================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===============================
   BASE STYLES
================================= */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f8f9fc;
  color: #222;
  line-height: 1.6;
}

/* ===============================
   MAIN CONTENT
================================= */
.content {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* ===============================
   PAGE HEADER
================================= */
.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.8rem;
  color: #2b2d42;
}

.page-header p {
  font-size: 1.1rem;
  color: #555;
  margin-top: 10px;
}

/* ===============================
   HERO SECTIONS
================================= */
.hero-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 35px;
  margin-bottom: 50px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.hero-section h2 {
  font-size: 2rem;
  color: #1f2933;
  margin-bottom: 25px;
  border-left: 6px solid #4f46e5;
  padding-left: 15px;
}

/* ===============================
   CLASS CATEGORY
================================= */
.class-category {
  margin-bottom: 30px;
}

.class-category h3 {
  font-size: 1.4rem;
  color: #4338ca;
  margin-bottom: 15px;
}

.class-category ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.class-category li {
  background: #f1f5ff;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid #6366f1;
}

.class-category li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.class-category strong {
  font-size: 1.05rem;
  color: #111827;
}

/* ===============================
   UPCOMING CLASSES
================================= */
.upcoming-classes {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
}

.upcoming-classes .class-category li {
  border-left-color: #f59e0b;
  background: #fff7ed;
}

/* ===============================
   GURUS SECTION
================================= */
.gurus-section {
  margin-top: 70px;
}

.gurus-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #111827;
}

/* ===============================
   GURU CARD
================================= */
.guru-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guru-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Guru Image */
.guru-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

/* Guru Content */
.guru-content h3 {
  font-size: 1.4rem;
  color: #4338ca;
  margin-bottom: 8px;
}

.guru-mastery {
  color: #4f46e5;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.guru-bio {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

/* Guru Buttons */
.guru-actions {
  display: flex;
  gap: 12px;
}

/* ===============================
   BUTTONS
================================= */
.read-more-btn {
  padding: 10px 18px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #3730a3;
}

.gallery-btn {
  padding: 10px 18px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.gallery-btn:hover {
  background: #0369a1;
}

/* ===============================
   MODAL (BIO & GALLERY)
================================= */
.guru-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.guru-modal-content {
  background: #ffffff;
  max-width: 800px;
  width: 90%;
  padding: 35px;
  border-radius: 16px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

/* Close Button */
.close-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
}

/* Modal Content */
.guru-modal-content h2 {
  margin-bottom: 15px;
  color: #4338ca;
}

.guru-modal-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #444;
}

/* Download Button */
.download-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 22px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.download-btn:hover {
  background: #15803d;
}

/* ===============================
   GALLERY CAROUSEL
================================= */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.carousel img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}

.carousel-btn {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* ===============================
   BASIC CLASSES
================================= */
.basic-classes {
  margin-top: 70px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
}

.basic-classes h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.basic-classes ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.basic-classes li {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4f46e5;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .hero-section {
    padding: 25px;
  }

  .class-category ul {
    grid-template-columns: 1fr;
  }

  .guru-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guru-actions {
    justify-content: center;
  }

  .basic-classes ul {
    flex-direction: column;
    gap: 15px;
  }
}

/* EVENTS SECTION */
.events-section {
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.events-header {
  text-align: center;
  margin-bottom: 50px;
}

.events-header h1 {
  font-size: 2.6rem;
  color: #2b2d42;
}

.events-header p {
  margin-top: 10px;
  color: #555;
  font-size: 1rem;
}

/* BLOCK */
.events-block {
  margin-bottom: 60px;
}

.events-block h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #1f2933;
  border-left: 6px solid #4f46e5;
  padding-left: 15px;
}

/* GRID */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* EVENT CARD */
.event-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.event-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */
.event-content {
  padding: 22px;
}

.event-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #4338ca;
}

/* META */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

/* DESC */
.event-desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

/* BUTTONS */
.event-btn,
.gallery-btn {
  padding: 10px 18px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.gallery-btn {
  background: #0ea5e9;
}

.event-btn:hover {
  background: #3730a3;
}

.gallery-btn:hover {
  background: #0369a1;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .events-header h1 {
    font-size: 2.1rem;
  }

  .events-block h2 {
    font-size: 1.7rem;
  }
}


/* ======================================
   EVENT MODALS – FINAL & CLEAN
====================================== */

#eventModal,
#eventGalleryModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
}

/* Modal content */
#eventModal .guru-modal-content,
#eventGalleryModal .guru-modal-content {
  position: relative;
  margin: auto;

  max-width: 900px;
  width: 90%;
  max-height: 85vh;

  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
}



.franchise-page section{margin:60px auto;max-width:1000px;text-align:center;}
.franchise-hero{padding:80px 20px;background:#faf5ff;border-radius:10px;}
.franchise-cards .cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-top:30px;}
.franchise-cards .card{background:white;padding:20px;border-radius:10px;box-shadow:0 4px 10px rgba(0,0,0,.05);}
.franchise-packages .package{border:2px solid #eee;padding:30px;margin:20px;border-radius:10px;}
.package .price{font-size:24px;font-weight:bold;color:#7a2ff2;}
.package.featured{border-color:#7a2ff2;background:#f3e8ff;}
.franchise-terms ul{text-align:left;display:inline-block;margin-top:20px;}
.franchise-form{display:grid;gap:15px;max-width:600px;margin:0 auto;text-align:left;}
.franchise-form input,.franchise-form select,.franchise-form textarea{padding:12px;border:1px solid #ccc;border-radius:8px;}



/* ======================================
   📱 MOBILE OPTIMIZATION (Final Fixes)
====================================== */

@media (max-width: 600px) {

  /* HEADINGS SCALE DOWN */
  h1, .page-header h1, .events-header h1 {
    font-size: 1.8rem !important;
  }
  h2, .franchise-packages h2, .events-block h2 {
    font-size: 1.4rem !important;
  }
  h3 {
    font-size: 1.15rem;
  }

  /* HERO REDUCE PADDING */
  .franchise-hero {
    padding: 40px 15px !important;
  }

  /* PACKAGE BOXES */
  .franchise-packages .package {
    padding: 18px;
    margin: 10px 0;
  }

  /* GURU CARD STRICT STACK */
  .guru-card {
    grid-template-columns: 1fr !important;
    padding: 20px;
  }

  .guru-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  /* FORMS FULL WIDTH */
  .franchise-form input,
  .franchise-form select,
  .franchise-form textarea {
    width: 100%;
    font-size: 0.95rem;
  }

  /* EVENTS CARDS */
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* GENERAL SPACING */
  .content {
    padding: 20px;
  }

  /* BUTTONS */
  button, .btn, .event-btn, .gallery-btn {
    width: 100%;
    padding: 14px !important;
  }
}

/* VERY SMALL DEVICES (≤360px) */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }
  .page-header h1 {
    font-size: 1.5rem !important;
  }
  .franchise-hero {
    padding: 30px 10px !important;
  }
}
