/* ============================================
   Krishna Education Center - Main Stylesheet
   Colors: Blue #1a3a6b, Gold #d4a017
   ============================================ */

:root {
  --blue: #1a3a6b;
  --blue-dark: #0f2847;
  --blue-light: #2a5298;
  --gold: #d4a017;
  --gold-dark: #b8890f;
  --gold-light: #f0c040;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e4e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.section {
  padding: 80px 0;
}

.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-white { color: var(--white); }

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.8rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left { display: flex; gap: 20px; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right { opacity: 0.8; }

/* ========== HEADER ========== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.logo-text { display: flex; flex-direction: column; }

.logo-name-hindi {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.logo-name-en {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 0.6rem;
  color: var(--gray-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--gray-100);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--blue-dark);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 58, 107, 0.4);
}

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

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

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 160, 23, 0.2);
  color: var(--gold-light);
  padding: 8px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title .text-gold {
  display: block;
  font-size: 4rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  display: block;
}

/* ========== MARQUEE ========== */
.marquee-banner {
  background: var(--gold);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1rem;
  letter-spacing: 1px;
}

.marquee-content .dot {
  margin: 0 20px;
  color: var(--blue);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SECTION BADGES ========== */
.section-badge {
  display: inline-block;
  background: rgba(26, 58, 107, 0.1);
  color: var(--blue);
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-badge.center { display: block; text-align: center; }

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
}

.section-subtitle.center {
  text-align: center;
  margin: 0 auto 50px;
}

/* ========== ABOUT ========== */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.exp-number {
  font-size: 2.5rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}

.exp-text {
  font-size: 0.8rem;
  font-weight: 600;
}

.about-text {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.feature-item i::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-style: normal;
}

/* ========== COURSES ========== */
.courses { background: var(--white); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.course-card:hover::before {
  transform: scaleX(1);
}

.course-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.course-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.course-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.6;
}

.course-subtitle {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.course-none {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-500);
  padding: 30px 0;
}

.course-highlights {
  margin-bottom: 20px;
}

.course-highlights li {
  font-size: 0.85rem;
  color: var(--gray-700);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.course-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.course-duration {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.courses-more {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.courses-more p {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* ========== WHY US ========== */
.why-us {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
}

.why-us .section-badge {
  background: rgba(212, 160, 23, 0.2);
  color: var(--gold-light);
}

.why-us .section-title { color: var(--white); }
.why-us .section-subtitle { color: rgba(255,255,255,0.8); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.why-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* ========== RESULTS / TESTIMONIALS ========== */
.results {
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.contact-card small {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--gold-dark);
}

.contact-map {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-form-wrapper {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--blue-dark);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.footer-contact li {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-contact li a { font-weight: 500; }
.footer-contact li a:hover { color: var(--gold-light); }

.footer-msme {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  opacity: 0.8;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

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

@media (max-width: 768px) {
  .top-bar-right { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .nav.active { display: flex; }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
  }

  .hamburger { display: flex; }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-title { font-size: 2.2rem; }
  .hero-title .text-gold { font-size: 2.5rem; }
  .hero-stats { gap: 30px; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .courses-grid,
  .why-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.8rem; }

  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { min-height: 80vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-title .text-gold { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
  .stat-number { font-size: 2rem; }
}

/* ========== घोषणा पॉपअप (public) ========== */
.site-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-popup-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: sitePopupIn 0.3s ease;
}

@keyframes sitePopupIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.site-popup-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}

.site-popup-body {
  padding: 24px;
}

.site-popup-body h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.25rem;
}

.site-popup-body p {
  margin: 0 0 18px;
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
}

.site-popup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-popup-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.site-popup-btn-primary {
  background: var(--gold);
  color: #1a1a2e;
}

.site-popup-btn-primary:hover {
  background: var(--gold-dark);
  color: #fff;
}

.site-popup-close {
  background: #eee;
  color: #333;
}

.site-popup-close:hover {
  background: #ddd;
}
