/* ===== Kerala Tutors – Custom Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&display=swap');

:root {
  --primary: #1E3A8A;
  --primary-dark: #172554;
  --primary-light: #2563EB;
  --navy: #0A192F;
  --gold: #FFB300;
  --bg: #FAF9F6;
  --wa-green: #25D366;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
  background-color: var(--bg);
  color: #333;
}

a { text-decoration: none !important; }
a:hover { text-decoration: none !important; }

/* ===== NAVBAR ===== */
.kt-navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.kt-navbar .navbar-brand img { height: 52px; object-fit: contain; }
.kt-navbar .nav-link {
  color: #374151 !important;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 9px !important;
  white-space: nowrap;
  transition: color 0.2s;
}
.kt-navbar .nav-link:hover { color: var(--primary) !important; }
.kt-navbar .nav-link.active {
  color: var(--primary) !important;
  background: #EFF6FF;
  border-radius: 8px;
  font-weight: 700;
}
.kt-navbar .btn-portal {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.kt-navbar .btn-portal:hover { background: var(--primary-dark); color: #fff; }

/* Keep nav items tightly packed on xl screens */
@media (min-width: 1200px) {
  .kt-navbar .navbar-nav { flex-wrap: nowrap; }
  .kt-navbar .container-xxl { flex-wrap: nowrap; }
}

/* ===== HERO ===== */
.kt-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: #0a1b2a;
  overflow: hidden;
}
.kt-hero .hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; object-position: center;
  width: 100%; height: 100%;
}
.kt-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,27,42,0.95) 0%, rgba(10,27,42,0.75) 50%, transparent 100%);
}
.kt-hero .hero-content { position: relative; z-index: 2; padding: 80px 0; }
.kt-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.2; }
.kt-hero h1 span { color: #93C5FD; }
.kt-hero p { color: #d1d5db; font-size: 1.1rem; }
.kt-hero .btn-enroll {
  background: var(--primary-light);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.kt-hero .btn-enroll:hover { background: #1D4ED8; color: #fff; transform: translateY(-2px); }

/* ===== PAGE HEADER (sub-pages) ===== */
.kt-page-header {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}
.kt-page-header .ph-bg {
  position: absolute; inset: 0;
  object-fit: cover; object-position: center;
  width: 100%; height: 100%;
  opacity: 0.25;
}
.kt-page-header .ph-content { position: relative; z-index: 2; padding: 60px 0; }
.kt-page-header h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.kt-page-header p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ===== CARDS ===== */
.kt-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.kt-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-2px); }
.kt-card .card-icon {
  width: 64px; height: 64px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.kt-card .btn-card {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: var(--bg);
  color: var(--primary);
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #DBEAFE;
  transition: background 0.2s, color 0.2s;
}
.kt-card .btn-card:hover { background: var(--primary); color: #fff !important; }

/* ===== NOTICES CARDS ===== */
.notice-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
  height: 100%;
}
.notice-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
.notice-card .notice-icon {
  width: 64px; height: 64px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin: 0 auto 20px;
  font-size: 1.5rem;
}
.notice-card .notice-date { color: #6b7280; font-size: 0.85rem; }

/* ===== COURSE CARDS ===== */
.course-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  height: 100%;
}
.course-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.course-card img { width: 100%; height: 220px; object-fit: cover; }
.course-card .badge-tag {
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  position: absolute;
  top: 16px; right: 16px;
}
.course-card .price { color: var(--primary); font-size: 1.5rem; font-weight: 800; }
.course-card .btn-enroll-course {
  background: var(--primary-light);
  color: #fff;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s;
  border: none;
  display: inline-block;
}
.course-card .btn-enroll-course:hover { background: var(--primary-dark); color: #fff; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 28px;
  height: 100%;
}
.testimonial-card .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.stars { color: #FBBF24; letter-spacing: 2px; }

/* ===== FAQ ===== */
.faq-item { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.faq-item .faq-q {
  width: 100%; text-align: left;
  padding: 20px 24px;
  background: #fff;
  border: none;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: inherit;
}
.faq-item .faq-q:hover { background: #f9fafb; }
.faq-item .faq-a { padding: 0 24px 20px; color: #6b7280; line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { border-bottom: 1px solid #e5e7eb; }

/* ===== CTA SECTION ===== */
.kt-cta {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.kt-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.kt-cta p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 32px; }
.kt-cta .btn-cta {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.kt-cta .btn-cta:hover { background: #f3f4f6; color: var(--primary); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.kt-footer {
  background: var(--bg);
  border-top: 1px solid #e5e7eb;
  padding: 64px 0 24px;
  color: #374151;
}
.kt-footer h5 { color: var(--navy); font-weight: 800; margin-bottom: 20px; }
.kt-footer ul { list-style: none; padding: 0; margin: 0; }
.kt-footer ul li { margin-bottom: 10px; }
.kt-footer ul li a { color: #6b7280; font-weight: 500; font-size: 14px; transition: color 0.2s; }
.kt-footer ul li a:hover { color: var(--primary) !important; }
.kt-footer .social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-right: 8px;
  transition: opacity 0.2s;
}
.kt-footer .social-btn:hover { opacity: 0.8; color: #fff; }
.kt-footer .contact-link { color: #6b7280; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; transition: color 0.2s; }
.kt-footer .contact-link:hover { color: var(--primary) !important; }
.kt-footer .footer-bottom { border-top: 1px solid #d1d5db; padding-top: 20px; margin-top: 40px; color: #9ca3af; font-size: 13px; font-weight: 600; }

/* ===== FLOATING WHATSAPP ===== */
.kt-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  background: var(--wa-green);
  color: #fff;
  border-radius: 100px;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none !important;
}
.kt-whatsapp:hover { background: #20bd5a; color: #fff; transform: scale(1.05); }

/* ===== WHY CHOOSE US ===== */
.why-card {
  background: #EFF6FF;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  height: 100%;
  border: 1px solid #BFDBFE;
}
.why-card .why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h5 { color: var(--navy); font-weight: 800; }
.why-card p { color: #6b7280; font-size: 0.9rem; margin: 0; }

/* ===== STUDY MATERIAL CARDS ===== */
.material-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f3f4f6;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  height: 100%;
}
.material-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.material-card .mat-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: #FEE2E2;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #EF4444; font-size: 1.3rem;
}
.material-card h6 { margin: 0 0 4px; font-weight: 700; color: var(--navy); font-size: 14px; }
.material-card .mat-meta { color: #6b7280; font-size: 12px; font-weight: 600; }

/* ===== VIDEO CARDS ===== */
.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.video-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.video-card .video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.video-card .video-thumb video {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  position: absolute; top: 0; left: 0;
  opacity: 0.85;
}
.video-card .video-thumb .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.video-card:hover .play-overlay { background: rgba(0,0,0,0.35); }
.video-card .play-overlay svg { width: 52px; height: 52px; color: #fff; opacity: 0.9; }
.video-card .vid-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.video-card .vid-title { padding: 14px 16px; font-weight: 700; color: var(--navy); font-size: 15px; }

/* ===== CONTACT CARDS ===== */
.contact-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow 0.2s;
  height: 100%;
}
.contact-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.contact-card .c-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.contact-card h4 { color: var(--navy); font-weight: 800; }
.contact-card a { color: #6b7280; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.contact-card a:hover { color: var(--primary) !important; }

/* ===== TEACHERS CARDS ===== */
.teacher-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s;
}
.teacher-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.teacher-card img { width: 100%; height: 200px; object-fit: cover; }
.teacher-card .tc-body { padding: 20px; }
.teacher-card .tc-body h5 { color: var(--navy); font-weight: 800; margin-bottom: 4px; }
.teacher-card .tc-body .subject { color: var(--primary); font-weight: 600; font-size: 14px; }
.teacher-card .tc-body .exp { color: #6b7280; font-size: 13px; font-weight: 500; margin-top: 8px; }

/* ===== CLASS CARDS ===== */
.class-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.2s;
}
.class-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.class-card .class-icon {
  width: 64px; height: 64px;
  background: #EFF6FF; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin: 0 auto 20px; font-size: 1.6rem;
}
.class-card h5 { color: var(--navy); font-weight: 800; margin-bottom: 16px; }
.class-card .class-meta { color: #6b7280; font-size: 13px; font-weight: 600; }

/* ===== UTILITY ===== */
.section-title { color: var(--navy); font-weight: 800; }
.text-primary-kt { color: var(--primary) !important; }
.bg-primary-kt { background: var(--primary) !important; }
.bullet-gold { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; display: inline-block; margin-right: 8px; margin-top: 6px; }
