/* =============================================
   Yuitor Smart Institute - Main Stylesheet
   Blue/White Professional Theme
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1a2236;
  background: #f7f9fc;
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1976d2;
  --accent: #f57c00;
  --white: #ffffff;
  --light: #e3f2fd;
  --gray-light: #f5f7fa;
  --gray: #90a4ae;
  --text: #1a2236;
  --text-muted: #546e7a;
  --border: #e0e7ef;
  --shadow: 0 4px 24px rgba(21,101,192,0.10);
  --radius: 10px;
  --transition: 0.25s ease;
}

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

/* =====================
   NAVBAR
   ===================== */
.navbar {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 66px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}
.nav-logo span { color: #ffcc02; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 0.75em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 999;
  padding: 6px 0;
}
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--light); color: var(--primary); }
.dropdown:hover .dropdown-menu { display: block; }
/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* =====================
   HERO
   ===================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e88e5 100%);
  color: #fff;
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.04)"/><circle cx="10" cy="80" r="40" fill="rgba(255,255,255,0.04)"/></svg>') no-repeat center/cover;
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: #ffcc02; }
.hero p { font-size: 1.12rem; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: #ffcc02; color: #0d47a1; }
.btn-primary:hover { background: #ffd740; box-shadow: 0 4px 16px rgba(255,204,2,0.4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: #ffcc02; }
.stat-item .lbl { font-size: 0.85rem; opacity: 0.8; }

/* =====================
   SECTIONS
   ===================== */
section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.02rem; }
.divider { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin: 14px auto 0; }

/* =====================
   CARDS
   ===================== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(21,101,192,0.15); }
.card-icon {
  width: 56px; height: 56px;
  background: var(--light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* Course Card */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.course-card:hover { transform: translateY(-4px); }
.course-card-header {
  background: var(--primary);
  color: #fff;
  padding: 20px 24px;
}
.course-card-header h3 { font-size: 1.15rem; font-weight: 700; }
.course-card-header .fee { font-size: 0.88rem; opacity: 0.85; margin-top: 4px; }
.course-card-body { padding: 20px 24px; }
.course-card-body ul { display: flex; flex-direction: column; gap: 6px; }
.course-card-body ul li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.course-card-body ul li { color: var(--text-muted); font-size: 0.93rem; }
.course-card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* Exam Card */
.exam-card { border-left: 4px solid var(--primary); }
.exam-card .course-card-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); }

/* =====================
   FEATURE LIST
   ===================== */
.feature-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-light);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.feature-item .icon { font-size: 1.1rem; flex-shrink: 0; }

/* =====================
   PAGE HERO (inner pages)
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 56px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: 0.85; max-width: 580px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 0.87rem; opacity: 0.75; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { text-decoration: underline; }

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stars { color: #f57c00; font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 18px; line-height: 1.7; }
.author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 46px; height: 46px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.author-info .name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.author-info .role { font-size: 0.82rem; color: var(--text-muted); }

/* =====================
   GALLERY
   ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  border: 2px dashed var(--primary);
  transition: var(--transition);
}
.gallery-item:hover { background: #c5e0fb; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* =====================
   CONTACT FORM
   ===================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.97rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Alert messages */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert-info { background: var(--light); color: var(--primary); border: 1px solid #90caf9; }

/* =====================
   CONTACT INFO
   ===================== */
.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
}
.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .ci-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item .ci-text .label { font-size: 0.8rem; opacity: 0.75; margin-bottom: 2px; }
.contact-item .ci-text .value { font-weight: 600; font-size: 0.97rem; }

/* Map */
.map-container { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.map-container iframe { width: 100%; height: 320px; border: none; display: block; }

/* =====================
   FOOTER
   ===================== */
footer {
  background: #0d1b2e;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; }
.footer-col p, .footer-col li { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.6; }
.footer-col a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-col a:hover { color: #ffcc02; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* =====================
   WHATSAPP FLOAT BUTTON
   ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all var(--transition);
  text-decoration: none;
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  transform: translateY(-2px);
  color: #fff;
}
.whatsapp-float svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* =====================
   SYLLABUS / STUDY PLAN
   ===================== */
.syllabus-section, .study-plan-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.syllabus-section h3, .study-plan-section h3 {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subject-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-tag {
  background: var(--light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #c5e0fb;
}
.plan-timeline { display: flex; flex-direction: column; gap: 14px; }
.plan-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.plan-item .phase {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.plan-item .desc { font-size: 0.93rem; color: var(--text-muted); padding-top: 4px; }

/* =====================
   ADMIN PANEL
   ===================== */
.admin-body { background: #f0f4f8; }
.admin-sidebar {
  width: 240px;
  background: #0d1b2e;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .logo {
  padding: 24px 20px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar .logo span { color: #ffcc02; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-right: 3px solid var(--primary-light);
}
.sidebar-nav a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-main {
  margin-left: 240px;
  padding: 0;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.admin-topbar h1 { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.admin-topbar .user-info { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.admin-content { padding: 28px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card.danger { border-color: #e53935; }
.stat-card.warning { border-color: #f57c00; }
.stat-card.success { border-color: #2e7d32; }
.stat-card .stat-icon { font-size: 2rem; }
.stat-card .stat-info .value { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-info .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* Admin Table */
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}
.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-header h2 { font-size: 1.05rem; font-weight: 700; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--gray-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-light); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-warning { background: #fff3e0; color: #e65100; }

/* Search & Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  font-family: inherit;
}
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--primary); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal h2 { font-size: 1.2rem; margin-bottom: 22px; color: var(--text); }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Admin Login */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  background: #fff;
  border-radius: 14px;
  padding: 42px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.login-box .logo { text-align: center; margin-bottom: 28px; }
.login-box .logo h2 { color: var(--primary); font-size: 1.3rem; margin-top: 8px; }
.login-box .logo p { color: var(--text-muted); font-size: 0.88rem; }
.login-box h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; color: var(--text); }

/* Policy Pages */
.policy-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
  max-width: 860px;
  margin: 0 auto;
}
.policy-content h2 { color: var(--primary); font-size: 1.3rem; margin: 28px 0 12px; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.policy-content ul { padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { color: var(--text-muted); margin-bottom: 6px; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.08); }
  .dropdown-menu a { color: rgba(255,255,255,0.85); }
  .hero-stats { gap: 24px; }
  .whatsapp-float { padding: 12px; border-radius: 50%; bottom: 20px; right: 20px; }
  .whatsapp-float .wa-text { display: none; }
  .policy-content { padding: 24px 20px; }
}
@media (max-width: 540px) {
  .hero { padding: 60px 16px 50px; }
  section { padding: 52px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
