/* --- 1. GLOBALS & RESET --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- 2. TOP NAV & STRIP --- */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav-brand { 
  display: flex; 
  align-items: center; 
}

/* Made the logo significantly larger and ensured it won't distort */
.brand-logo {
  height: 70px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* New specific styling for the elegant Shaheen Institute text */
.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-left: 12px;
  line-height: 1.2;
}

.topnav-links { display: flex; gap: 1rem; align-items: center; }
.btn-login { padding: 0.5rem 1rem; background: var(--primary); color: white; border-radius: 6px; font-weight: 600; transition: background 0.3s;}
.btn-login:hover { background: var(--primary-dark); }
.topnav-form-link { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.topnav-form-link:hover { background: rgba(37, 99, 235, 0.1); color: var(--primary); }

.top-strip {
  background: var(--primary-dark);
  color: white;
  padding: 1.2rem 5%; 
  text-align: center;
  font-size: 1.1rem; 
}
.top-strip-inner { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.top-strip-wa { color: #25D366; font-weight: bold; display: flex; align-items: center; gap: 5px; }
.top-strip-price { font-weight: bold; color: #fbbf24; }

/* --- 3. HERO SECTION --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60vh;
  gap: 2rem;
}

.hero__body { flex: 1; }
.hero-heading { font-size: 3rem; margin: 0.5rem 0 1rem; line-height: 1.1; color: var(--primary-dark); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; }
.hero-price { font-weight: bold; color: var(--primary); }

/* Updated Button - Added Glow Effect */
.hero-contact {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4), 0 0 20px rgba(37, 99, 235, 0.2); 
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hero-contact:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6), 0 0 30px rgba(37, 99, 235, 0.4); 
  transform: translateY(-2px);
}

.hero-subtitle {
  font-size: 1.6rem; 
  font-weight: 800; 
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary-dark); 
  display: flex; 
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; 
  margin-bottom: 1rem; 
}

.hero__visual-container { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero__visual-wrap { display: flex; flex-direction: column; align-items: center; }

/* Updated Visual Title - Floating Badge Effect */
.hero-visual-title { 
  text-align: center; 
  font-size: 1.1rem; 
  font-weight: bold;
  color: #b45309; 
  background: #fef3c7; 
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 1rem; 
  border: 1px solid #fde68a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

#dotlottie-canvas { max-width: 100%; height: auto; }

/* --- 4. PLAN/GRID SECTION --- */
.plan-basic { padding: 4rem 5%; background: white; }
.plan-basic-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--primary-dark); }

.plan-basic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Updated Plan Items - Colorful Top Borders */
.plan-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-top: 5px solid var(--primary); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plan-item:nth-child(3n+1) { border-top-color: #2563eb; } /* Blue */
.plan-item:nth-child(3n+2) { border-top-color: #10b981; } /* Green */
.plan-item:nth-child(3n) { border-top-color: #f59e0b; }   /* Gold */

.plan-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.plan-item-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.plan-item h3 { margin-top: 0; margin-bottom: 0.5rem; color: var(--text-dark); font-size: 1.25rem; }
.plan-item p { color: var(--text-muted); font-size: 0.95rem; }

/* --- 5. FOOTER --- */
.site-footer {
  background: var(--text-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 5%;
  gap: 1rem;
}
.contact { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.contact span { display: flex; align-items: center; gap: 8px; }
.site-footer a { color: #94a3b8; transition: color 0.3s; }
.site-footer a:hover { color: white; }

/* --- 6. JS ANIMATION CLASSES --- */
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-effect {
  to { transform: scale(20); opacity: 0; }
}
.animate-in { opacity: 1 !important; transform: none !important; }

/* --- 7. RESPONSIVE MOBILE FIXES --- */
@media (max-width: 768px) {
  .topnav { flex-direction: column; gap: 1rem; padding: 1rem; }
  .topnav-links { width: 100%; justify-content: center; }
  
  .hero { flex-direction: column; text-align: center; padding: 2rem 5%; }
  .hero__body { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
  .hero-heading { font-size: 2.2rem; }
  .hero-desc { text-align: center; }
  
  .hero-subtitle { 
    font-size: 1.2rem; 
    justify-content: center; 
  }
  
  .site-footer { flex-direction: column; text-align: center; }
  .contact { justify-content: center; }
}