/* ============================================================
   TARQUE EDUCATION - Main Stylesheet
   Theme: Professional Green, White & Black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --green: #1a7a4a;
  --green-dark: #125c37;
  --green-light: #22a261;
  --green-pale: #e8f5ee;
  --green-mid: #d4eddb;
  --black: #0d0d0d;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); outline: none; border: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.bg-green { background: var(--green); }
.bg-dark { background: var(--dark); }
.bg-pale { background: var(--green-pale); }

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-white { background: rgba(255,255,255,0.15); color: var(--white); }

/* ---- SECTION TITLE ---- */
.section-title { margin-bottom: 50px; }
.section-title .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--dark);
  margin-bottom: 14px;
}
.section-title h2 span { color: var(--green); }
.section-title p {
  color: var(--gray-500);
  font-size: 17px;
  max-width: 560px;
}
.section-title.text-center p { margin: 0 auto; }
.divider {
  width: 60px; height: 4px;
  background: var(--green);
  border-radius: 4px;
  margin: 16px 0;
}
.section-title.text-center .divider { margin: 16px auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26,122,74,0.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,122,74,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow);
}
.btn-white:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--gray-900); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-icon { padding: 11px; border-radius: var(--radius-sm); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}
.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--dark);
}
.nav-logo .logo-text span { color: var(--green); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--green-pale);
  color: var(--green);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  background: var(--green);
  color: white;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1f15 0%, #1a3a24 40%, #1a7a4a 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-blob-1 { width: 500px; height: 500px; background: #22a261; top: -100px; right: -100px; }
.hero-blob-2 { width: 300px; height: 300px; background: #1a7a4a; bottom: 50px; left: 100px; }
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text .badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: #86efac;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-title span {
  color: #86efac;
  display: block;
}
.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #86efac;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-weight: 500;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInRight 0.8s 0.3s ease both;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  transition: var(--transition);
}
.hero-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(-8px);
}
.hero-card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.hero-card .card-info h4 { font-size: 17px; font-weight: 700; }
.hero-card .card-info p { font-size: 13px; opacity: 0.7; margin-top: 3px; }
.hero-card .card-info .count {
  font-size: 13px;
  color: #86efac;
  font-weight: 600;
  margin-top: 4px;
}

/* ---- FEATURES STRIP ---- */
.features-strip {
  background: var(--dark);
  padding: 24px 0;
}
.features-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
}
.strip-item .dot { color: #86efac; font-size: 20px; }

/* ---- COURSES SECTION ---- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--green);
}
.course-header {
  padding: 32px 28px 24px;
  background: linear-gradient(135deg, var(--green-pale), var(--green-mid));
  position: relative;
}
.course-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.course-header h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 6px;
}
.course-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green);
  color: white;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.course-body { padding: 24px 28px 28px; }
.course-body p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.course-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.course-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
}
.course-feature .check { color: var(--green); font-size: 16px; }
.course-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.course-price .price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
}
.course-price .old-price {
  font-size: 16px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.course-price .duration {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- ABOUT SECTION ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale), var(--green-mid));
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}
.about-badge {
  position: absolute;
  bottom: 28px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-badge .ab-icon {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}
.about-badge .ab-text h4 { font-size: 22px; color: var(--dark); }
.about-badge .ab-text p { font-size: 12px; color: var(--gray-500); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.about-stat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.about-stat-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.about-stat-card .num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
}
.about-stat-card .lbl {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---- WHY CHOOSE US ---- */
.why-section { background: var(--dark); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(26,122,74,0.12);
  border-color: var(--green);
  transform: translateY(-6px);
}
.why-card .icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 18px; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ---- TEACHERS SECTION ---- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teacher-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.teacher-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--green);
}
.teacher-photo {
  background: linear-gradient(135deg, var(--green-pale), var(--green-mid));
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.teacher-info { padding: 20px 16px 24px; }
.teacher-info h3 { font-size: 17px; color: var(--dark); margin-bottom: 4px; }
.teacher-info .subject {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}
.teacher-info .qualification {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.teacher-info .exp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ---- TOPPERS / RESULTS ---- */
.toppers-section { background: var(--green-pale); }
.toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topper-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  transition: var(--transition);
}
.topper-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--green);
  transform: translateY(-3px);
}
.topper-rank {
  min-width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  padding: 8px;
}
.topper-info h4 { font-size: 15px; color: var(--dark); margin-bottom: 3px; }
.topper-info .exam { font-size: 12px; color: var(--green); font-weight: 600; }
.topper-info .college { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.topper-info .marks {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 80px;
  color: var(--green-pale);
  font-family: serif;
  line-height: 1;
}
.testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; }
.testimonial-card p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.testimonial-author img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author .info h5 { font-size: 15px; color: var(--dark); }
.testimonial-author .info p { font-size: 12px; color: var(--green); font-weight: 600; }

/* ---- CONTACT SECTION ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--green); box-shadow: var(--shadow); }
.contact-item .icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item .text h4 { font-size: 14px; color: var(--gray-500); margin-bottom: 4px; }
.contact-item .text p { font-size: 16px; color: var(--dark); font-weight: 500; }
.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--green); color: white; }
.footer-col h4 {
  font-size: 15px;
  color: white;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--green-light); padding-left: 4px; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ---- FLOATING BUTTONS ---- */
.floating-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.float-btn.whatsapp { background: #25d366; color: white; }
.float-btn.call { background: var(--green); color: white; }
.float-btn:hover { transform: scale(1.12); box-shadow: var(--shadow-xl); }

/* ---- ALERT / TOAST ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ---- BREADCRUMB ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 100%);
  padding: 100px 0 50px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); color: white; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 17px; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: #86efac; }

/* ---- MAP WRAP ---- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  border: 1.5px solid var(--gray-100);
  margin-top: 24px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---- COUNTERS ---- */
.counter-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--green);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* ---- LOADING ---- */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   STUDENT & ADMIN PANEL SHARED STYLES
   ============================================================ */
.panel-layout {
  display: flex;
  min-height: 100vh;
  background: var(--gray-100);
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  transition: var(--transition);
}
.sidebar.collapsed { width: 72px; }
.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo .s-icon {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sidebar-logo .s-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-logo .s-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.5;
  margin-top: -2px;
}
.sidebar-nav {
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}
.nav-group-title {
  padding: 12px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}
.sidebar-item.active {
  background: var(--green);
  color: white;
}
.sidebar-item .s-icon-sm {
  font-size: 18px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.sidebar-item .badge-count {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}
.sidebar-footer .avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-footer .user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sidebar-footer .user-role { font-size: 11px; opacity: 0.5; }

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  transition: var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Bar */
.topbar {
  background: var(--white);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-left h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.sidebar-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: var(--gray-700);
  font-size: 16px;
  transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--green-pale); color: var(--green); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-right .notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}
.topbar-right .notif-btn:hover { background: var(--green-pale); }
.notif-btn .dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--gray-100);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.topbar-user:hover { background: var(--green-pale); color: var(--green); }
.topbar-user .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Page Content */
.page-content { padding: 28px; flex: 1; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; color: var(--dark); }
.page-header p { font-size: 14px; color: var(--gray-500); margin-top: 3px; }

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card .stat-icon.green { background: var(--green-pale); }
.stat-card .stat-icon.blue { background: #dbeafe; }
.stat-card .stat-icon.yellow { background: #fffbeb; }
.stat-card .stat-icon.red { background: #fee2e2; }
.stat-card .stat-val {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.stat-card .stat-change.up { color: var(--green); }
.stat-card .stat-change.down { color: #ef4444; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 16px; color: var(--dark); }
.card-body { padding: 22px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  padding: 12px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 700;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--dark);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--gray-100); }
.data-table .avatar-td {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

/* Status Badges */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-active, .status-paid { background: #d1fae5; color: #065f46; }
.status-inactive, .status-pending { background: #fee2e2; color: #991b1b; }
.status-partial { background: #fffbeb; color: #92400e; }
.status-overdue { background: #fee2e2; color: #991b1b; }

/* Action Buttons */
.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.action-btn.view { background: #dbeafe; color: #1d4ed8; }
.action-btn.edit { background: var(--green-pale); color: var(--green); }
.action-btn.delete { background: #fee2e2; color: #dc2626; }
.action-btn:hover { transform: scale(1.1); }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  padding: 22px 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 { font-size: 18px; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }
.modal-body { padding: 22px 26px 26px; }

/* Search & Filter */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
  font-family: var(--font-body);
}
.search-box input:focus { border-color: var(--green); }
.search-box .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 16px;
}
.filter-select {
  padding: 10px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--green); outline: none; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-300);
  background: white;
  color: var(--dark);
  font-family: var(--font-body);
}
.page-btn:hover, .page-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* Login Pages */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1f15 0%, #1a3a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .l-icon {
  width: 64px; height: 64px;
  background: var(--green);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 12px;
}
.login-logo h2 { font-size: 22px; color: var(--dark); }
.login-logo p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-group label { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 7px; display: block; }
.login-form .form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--dark);
  font-family: var(--font-body);
  transition: var(--transition);
}
.login-form .form-group input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,74,0.08); }
.login-form .forgot-link {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  float: right;
  margin-top: -10px;
  margin-bottom: 14px;
}
.login-form .forgot-link:hover { text-decoration: underline; }
.login-form .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.login-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-500);
}
.login-bottom a { color: var(--green); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .courses-grid, .why-grid, .toppers-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar .nav-menu, .navbar .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: white;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-menu.open a { padding: 13px 16px; }
  .nav-actions.open {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0; left: 0; right: 0;
    background: white;
    padding: 16px;
    border-top: 1px solid var(--gray-100);
    z-index: 999;
  }
  .hero-content { grid-template-columns: 1fr; padding: 100px 24px 48px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { height: 300px; }
  .courses-grid, .why-grid, .toppers-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .teachers-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .login-card { padding: 28px 20px; }
}
