/* =========================================
   Variables & General Styles
========================================= */
:root {
  --primary-color: #0f172a;       /* Slate 900 - Navy/Black */
  --secondary-color: #1e3a8a;     /* Blue 900 */
  --accent-color: #2563eb;        /* Professional Academic Blue (Blue 600) */
  --accent-hover: #1d4ed8;        /* Blue 700 */
  --text-color: #334155;          /* Slate 700 */
  --text-muted: #64748b;          /* Slate 500 */
  --bg-light: #f8fafc;            /* Slate 50 */
  --bg-soft-blue: #eff6ff;        /* Blue 50 */
  --bg-soft-accent: #eff6ff;      /* Replaced orange 50 with Blue 50 */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.text-primary-custom { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-soft-accent { background-color: var(--bg-soft-accent) !important; }

/* =========================================
   Utilities
========================================= */
.tracking-wide { letter-spacing: 0.05em; }
.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }
.section-padding { padding: 4rem 0; }  /* Reduced from 6rem */
.shadow-premium { box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05); }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }

/* =========================================
   Buttons & Links
========================================= */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

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

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

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* =========================================
   Navbar
========================================= */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color) !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
  padding-top: 140px;
  padding-bottom: 60px; /* Reduced gap */
  background: linear-gradient(180deg, var(--bg-soft-blue) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-img-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hero-img-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* =========================================
   Feature & Info Cards
========================================= */
.info-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--bg-soft-blue);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.subject-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.subject-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

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

.subject-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--bg-soft-blue);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* =========================================
   Teaching Approach (Timeline / Grid)
========================================= */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Enforce 5 in a row */
  gap: 1.25rem;
}

.approach-card {
  background: var(--bg-light);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.approach-card:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.05);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.05);
}

.approach-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 auto 1rem;
}

/* =========================================
   Online Lessons
========================================= */
.zoom-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(0,0,0,0.05);
}

/* =========================================
   Testimonials & FAQ
========================================= */
.testimonial-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.04);
  height: 100%;
}

.custom-accordion .accordion-item {
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 1rem !important;
  margin-bottom: 1rem;
  background: #fff;
  overflow: hidden;
}

.custom-accordion .accordion-button {
  padding: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--primary-color);
  background: #fff;
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-soft-blue);
  color: var(--secondary-color);
}

.custom-accordion .accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* =========================================
   Floating WhatsApp Button
========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  top: -5px; bottom: -5px; left: -5px; right: -5px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* =========================================
   Responsive Fixes
========================================= */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  .hero-img-wrapper img {
    height: 400px;
  }
  .approach-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .trust-badge-container {
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
  }
}
