/* ==========================================================================
   RainbowEnglish.lk - Modern Lovely Pink Stylesheet
   Designed for shared hosting PHP deployment
   ========================================================================== */

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

:root {
  /* Lovely Pink Theme Palette */
  --primary: #ff3377;
  --primary-hover: #e61d62;
  --primary-dark: #c20f4d;
  --accent-rose: #ff6584;
  --accent-soft: #ff8fa3;
  --accent-lavender: #f48fb1;
  
  /* Gradients */
  --pink-gradient: linear-gradient(135deg, #ff3377 0%, #ff6584 50%, #ff8fa3 100%);
  --hero-gradient: linear-gradient(145deg, #fff2f6 0%, #ffe8f0 40%, #ffffff 100%);
  --badge-gradient: linear-gradient(135deg, #ffe0eb 0%, #ffccd8 100%);
  --card-gradient: linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);

  /* Neutrals & Typography */
  --dark: #1d1a24;
  --dark-soft: #302b3c;
  --text-muted: #6b6478;
  --bg-page: #fdf8fa;
  --bg-white: #ffffff;
  --border-light: #f7d2df;
  --border-soft: #ffe4ee;
  
  /* Effects & Shadows */
  --shadow-sm: 0 4px 12px rgba(255, 51, 119, 0.06);
  --shadow-md: 0 10px 25px rgba(255, 51, 119, 0.10);
  --shadow-lg: 0 18px 40px rgba(255, 51, 119, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-block;
  background: var(--badge-gradient);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--pink-gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 51, 119, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 51, 119, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--pink-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--pink-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 16px rgba(255, 51, 119, 0.3);
}

.brand-logo span.lk {
  font-size: 0.9rem;
  background: var(--primary);
  color: white;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark-soft);
  position: relative;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  padding: 80px 0 100px 0;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 143, 163, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content h1 {
  font-size: 3.3rem;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Card Presentation */
.hero-visual {
  position: relative;
}

.floating-glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-top {
  top: -15px;
  right: -10px;
  animation: floatAnim 4s ease-in-out infinite;
}

.badge-bottom {
  bottom: -20px;
  left: -15px;
  animation: floatAnim 4s ease-in-out 2s infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Category Cards (Grade 6 to Univ & Pro) */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.level-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.level-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-rose);
  box-shadow: var(--shadow-md);
}

.level-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pink-gradient);
  opacity: 0;
  transition: var(--transition);
}

.level-card:hover::after {
  opacity: 1;
}

.level-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: #fff0f5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.level-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.level-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.level-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.level-link:hover {
  gap: 10px;
}

/* Teacher Banner / Recruitment */
.teacher-spotlight {
  background: linear-gradient(135deg, #1d1a24 0%, #352636 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 20px 45px rgba(29, 26, 36, 0.25);
}

.teacher-spotlight::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 51, 119, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.spotlight-text h2 {
  color: white;
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.spotlight-text p {
  color: #dfd8e6;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.teacher-perks {
  list-style: none;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.teacher-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #f7e8ee;
}

.teacher-perks li svg {
  color: var(--accent-soft);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-box {
  background: var(--bg-white);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.feature-box h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Forms */
.form-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #fffbfe;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 51, 119, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 500;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq-answer {
  padding: 0 26px 20px 26px;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active {
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.faq-icon {
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: #17151e;
  color: #c4bdce;
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #9c95a6;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: #9c95a6;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent-soft);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid #2a2536;
  font-size: 0.9rem;
  color: #7b7388;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .features-grid,
  .footer-grid,
  .form-row,
  .teacher-perks {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--border-soft);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-cta .btn {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ==========================================================================
   Flagship Highlighted Courses Styling
   ========================================================================== */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 50px;
}

.flagship-card {
  background: linear-gradient(160deg, #ffffff 0%, #fff2f6 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  box-shadow: 0 15px 40px rgba(255, 51, 119, 0.16);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.flagship-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(255, 51, 119, 0.24);
}

.flagship-ribbon {
  position: absolute;
  top: -15px;
  right: 25px;
  background: var(--pink-gradient);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 51, 119, 0.35);
}

.flagship-title {
  font-size: 1.85rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.flagship-tagline {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.flagship-features {
  list-style: none;
  margin: 22px 0 30px 0;
  flex-grow: 1;
}

.flagship-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--dark-soft);
}

.flagship-features li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.flagship-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .flagship-grid {
    grid-template-columns: 1fr;
  }
}

/* Visual Image Enhancements */
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img-wrap:hover img {
  transform: scale(1.04);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 51, 119, 0.15) 0%, rgba(29, 26, 36, 0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
}

.course-card-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card-item:hover .course-card-thumb img {
  transform: scale(1.06);
}

.teacher-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(255, 51, 119, 0.25);
}
