/* ============================================================
   Smart & Safe Online — PostgreSQL Edition
   Colors: Deep Blue #0B3D91 | Green #2E9E45 | Light Blue #1FA2FF
   Fonts: Montserrat (headings) / Poppins (body)
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --deep-blue:  #0B3D91;
  --blue-mid:   #1352C9;
  --blue-light: #1FA2FF;
  --green:      #2E9E45;
  --green-dark: #237A36;
  --green-light:#E6F7EA;
  --white:      #FFFFFF;
  --soft-grey:  #F4F6FA;
  --grey-mid:   #E8ECF4;
  --grey-text:  #64748B;
  --text:       #0F1C3F;
  --border:     #D4DBE8;
  --shadow:     0 4px 20px rgba(11,61,145,0.08);
  --shadow-md:  0 8px 32px rgba(11,61,145,0.14);
  --shadow-lg:  0 16px 48px rgba(11,61,145,0.18);
  --radius:     12px;
  --radius-lg:  18px;
  --grad-hero:  linear-gradient(135deg, #EEF4FF 0%, #E8F5FF 50%, #E6F7EA 100%);
  --grad-blue:  linear-gradient(135deg, #0B3D91, #1FA2FF);
  --grad-green: linear-gradient(135deg, #237A36, #2E9E45);
  --grad-card:  linear-gradient(135deg, #0B3D91 0%, #1352C9 100%);
  --grad-footer:linear-gradient(135deg, #0B3D91 0%, #1352C9 60%, #1FA2FF 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; max-width: 100%; width: 100%; }
h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; color: var(--blue-light); }
img { max-width: 100%; display: block; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(11,61,145,0.09);
  border-bottom: 2px solid var(--grey-mid);
  width: 100%;
  max-width: 100%;
}
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.navbar-brand img.brand-logo { height: 44px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .b1 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--deep-blue); }
.brand-text .b1 span { color: var(--green); }
.brand-text .b2 { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; color: var(--grey-text); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-link { color: var(--text); font-weight: 500; font-size: 0.88rem; padding: 0.4rem 0.8rem; border-radius: 8px; transition: all 0.2s; font-family: 'Poppins', sans-serif; white-space: nowrap; }
.nav-link:hover { background: var(--soft-grey); color: var(--deep-blue); }
.nav-link.active { color: var(--deep-blue); font-weight: 600; }
.nav-admin  { color: var(--green) !important; font-weight: 600 !important; }
.nav-teacher{ color: var(--blue-light) !important; font-weight: 600 !important; }
.nav-user { display: flex; align-items: center; gap: 0.65rem; border-left: 1.5px solid var(--border); padding-left: 0.9rem; margin-left: 0.5rem; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-blue); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.85rem; font-family: 'Montserrat', sans-serif; flex-shrink: 0; overflow: hidden; }
.user-name { font-weight: 600; font-size: 0.85rem; color: var(--deep-blue); }
.btn-logout { background: #FEE2E2; color: #B91C1C; padding: 0.3rem 0.8rem; border-radius: 7px; font-size: 0.8rem; font-weight: 600; transition: all 0.2s; white-space: nowrap; }
.btn-logout:hover { background: #DC2626; color: white; }
.btn-bookdemo { background: var(--grad-green); color: white !important; padding: 0.45rem 1.1rem !important; border-radius: 8px; font-weight: 700 !important; font-size: 0.86rem !important; }
.btn-bookdemo:hover { opacity: 0.9; color: white; }
.main-content { flex: 1; width: 100%; max-width: 100%; overflow-x: hidden; }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--deep-blue); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--grad-blue); color: white; padding: 0.65rem 1.5rem; border-radius: 9px; font-weight: 600; font-size: 0.92rem; font-family: 'Poppins', sans-serif; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(11,61,145,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,61,145,0.35); color: white; }
.btn-green { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--grad-green); color: white; padding: 0.65rem 1.5rem; border-radius: 9px; font-weight: 600; font-size: 0.92rem; font-family: 'Poppins', sans-serif; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(46,158,69,0.25); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,158,69,0.35); color: white; }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.4rem; background: white; color: var(--deep-blue); padding: 0.6rem 1.3rem; border-radius: 9px; font-weight: 600; font-size: 0.88rem; font-family: 'Poppins', sans-serif; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { background: var(--soft-grey); border-color: var(--deep-blue); }
.btn-danger { background: #DC2626; color: white; padding: 0.45rem 0.9rem; border-radius: 7px; font-weight: 600; font-size: 0.82rem; font-family: 'Poppins', sans-serif; border: none; cursor: pointer; transition: background 0.2s; }
.btn-danger:hover { background: #B91C1C; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.3rem 0.75rem !important; font-size: 0.8rem !important; border-radius: 6px !important; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 0.6rem; background: #25D366; color: white; padding: 0.75rem 1.75rem; border-radius: 9px; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s; }
.btn-whatsapp:hover { background: #128C7E; color: white; transform: translateY(-2px); }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 0.85rem 1.2rem; border-radius: 9px; margin-bottom: 1rem; font-size: 0.88rem; font-weight: 500; font-family: 'Poppins', sans-serif; }
.alert-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }
.alert-success { background: var(--green-light); color: #166534; border-left: 4px solid var(--green); }

/* ── BADGES ──────────────────────────────────────────────── */
.badge { display: inline-block; padding: 0.18rem 0.65rem; border-radius: 99px; font-size: 0.72rem; font-weight: 600; font-family: 'Poppins', sans-serif; }
.badge-success  { background: var(--green-light); color: #166534; }
.badge-warning  { background: #FEF9C3; color: #854D0E; }
.badge-level    { background: rgba(255,255,255,0.22); color: white; border: 1px solid rgba(255,255,255,0.4); }
.badge-admin    { background: #EDE9FE; color: #5B21B6; }
.badge-user     { background: #E0F2FE; color: #075985; }
.badge-teacher  { background: #E6F7EA; color: #237A36; }
.badge-employee { background: #FFF7ED; color: #C2410C; }

/* ── PAGE CONTAINER ──────────────────────────────────────── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; width: 100%; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.9rem; color: var(--deep-blue); }
.page-header p  { color: var(--grey-text); margin-top: 0.35rem; font-size: 0.93rem; }

/* ── PAGE HERO LIGHT ─────────────────────────────────────── */
.page-hero-light { background: var(--grad-hero); padding: 2rem 1.5rem; margin-bottom: 0; border-bottom: 1px solid var(--grey-mid); width: 100%; }
.page-hero-light .page-container { padding-top: 0; padding-bottom: 0; }
.page-hero-light h1 { color: var(--deep-blue); font-size: 1.75rem; }
.page-hero-light p  { color: var(--grey-text); margin-top: 0.3rem; }

/* ── HERO SECTION ────────────────────────────────────────── */
.hero { background: var(--grad-hero); min-height: 540px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; overflow: hidden; width: 100%; }
.hero::before { content:''; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B3D91' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-left { padding: 3.5rem 3rem 3.5rem 5%; z-index: 1; }
.hero-left h1 { font-size: 2.7rem; line-height: 1.2; color: var(--deep-blue); margin-bottom: 1rem; }
.hero-left h1 .highlight { color: var(--blue-light); }
.hero-left h1 .highlight-green { color: var(--green); }
.hero-left p { font-size: 1rem; color: var(--grey-text); line-height: 1.7; max-width: 460px; margin-bottom: 0.5rem; }
.hero-bullets { list-style: none; margin: 1rem 0 1.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.hero-bullets li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; color: var(--text); font-weight: 500; }
.hero-bullets li::before { content: '✅'; font-size: 0.88rem; }
.hero-tagline { font-size: 1rem; font-weight: 700; color: var(--deep-blue); margin-bottom: 0.3rem; font-family: 'Montserrat', sans-serif; }
.hero-tagline span { color: var(--green); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* HERO RIGHT — fixed, never clips or disappears on resize */
.hero-right {
  position: relative;
  height: 540px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* ── WAVE DIVIDER ────────────────────────────────────────── */
.wave { display: block; width: 100%; line-height: 0; }

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar { background: var(--grad-blue); padding: 1.4rem 2rem; display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat-item { text-align: center; color: white; }
.stat-item .num { font-family: 'Montserrat', sans-serif; font-size: 2.1rem; font-weight: 800; }
.stat-item .lbl { font-size: 0.78rem; opacity: 0.85; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; }

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 1.9rem; color: var(--deep-blue); }
.section-title h2 span { color: var(--blue-light); }
.section-title h2 .green { color: var(--green); }
.section-title p { color: var(--grey-text); margin-top: 0.5rem; }
.section-title .underline { width: 56px; height: 4px; background: var(--grad-blue); border-radius: 2px; margin: 0.6rem auto 0; }

/* ── PROGRAMS SECTION ────────────────────────────────────── */
.programs-section { padding: 4rem 0; background: var(--white); }
.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.program-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--grey-mid); }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.program-card-img { height: 155px; overflow: hidden; }
.program-card-img img { width: 100%; height: 100%; object-fit: cover; }
.program-card-body { padding: 1.4rem; }
.program-icon { width: 52px; height: 52px; margin: -36px auto 0.8rem; display: block; position: relative; z-index: 1; background: white; border-radius: 12px; padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.1); object-fit: contain; }
.program-card-body h3 { font-size: 1.05rem; color: var(--deep-blue); text-align: center; margin-bottom: 0.45rem; }
.program-card-body p { font-size: 0.85rem; color: var(--grey-text); text-align: center; line-height: 1.6; }
.program-card-body ul { list-style: none; margin-top: 0.7rem; }
.program-card-body ul li { font-size: 0.83rem; color: var(--text); padding: 0.18rem 0; display: flex; align-items: flex-start; gap: 0.4rem; }
.program-card-body ul li::before { content: '●'; color: var(--blue-light); font-size: 0.48rem; margin-top: 0.38rem; flex-shrink: 0; }

/* ── SPLIT SECTION ───────────────────────────────────────── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-img img { width: 100%; height: 360px; object-fit: cover; }
.split-text h2 { font-size: 1.9rem; color: var(--deep-blue); line-height: 1.3; margin-bottom: 1rem; }
.split-text p { color: var(--grey-text); line-height: 1.75; margin-bottom: 1rem; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.value-item { text-align: center; padding: 1rem; background: var(--soft-grey); border-radius: 10px; }
.value-item img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto 0.5rem; }
.value-item h4 { font-size: 0.9rem; color: var(--deep-blue); margin-bottom: 0.25rem; }
.value-item p { font-size: 0.76rem; color: var(--grey-text); }

/* ── PACKAGES SECTION ────────────────────────────────────── */
.packages-section { padding: 4rem 0; background: var(--soft-grey); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.package-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s; }
.package-card:hover { transform: translateY(-4px); }
.package-card-header { padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.package-card-header.blue  { background: var(--grad-card); }
.package-card-header.green { background: var(--grad-green); }
.package-card-header.teal  { background: linear-gradient(135deg, #1FA2FF, #0B3D91); }
.package-card-header img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; border: 2px solid rgba(255,255,255,0.4); }
.package-card-header h3 { color: white; font-size: 1rem; }
.package-card-header .ages { color: rgba(255,255,255,0.82); font-size: 0.78rem; font-weight: 500; }
.package-card-body { padding: 1.2rem 1.5rem; }
.package-card-body .duration { font-size: 0.8rem; color: var(--blue-light); font-weight: 600; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.3rem; }
.package-card-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.38rem; }
.package-card-body ul li { font-size: 0.85rem; color: var(--text); display: flex; align-items: flex-start; gap: 0.5rem; }
.package-card-body ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-hero { background: var(--grad-hero); position: relative; overflow: hidden; }
.contact-hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 200px; max-width: 1200px; margin: 0 auto; }
.contact-hero-left { display: flex; align-items: center; padding: 2rem 1.5rem; gap: 1.5rem; }
.contact-hero-left img { height: 130px; object-fit: contain; }
.contact-hero-title h1 { font-size: 1.9rem; color: var(--deep-blue); }
.contact-hero-title p { color: var(--grey-text); }
.contact-hero-right { position: relative; overflow: hidden; }
.contact-hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.contact-body { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: 1.5rem; color: var(--deep-blue); margin-bottom: 0.75rem; }
.contact-info p { color: var(--grey-text); line-height: 1.7; }
.contact-address { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.5rem; padding: 1rem; background: var(--soft-grey); border-radius: 9px; font-size: 0.88rem; color: var(--text); }
.contact-form { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(31,162,255,0.12); }
.contact-form textarea { min-height: 100px; resize: vertical; }

/* ── RESOURCES ───────────────────────────────────────────── */
.resources-hero { background: var(--grad-hero); overflow: hidden; }
.resources-hero-inner { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto; min-height: 190px; }
.resources-hero-left { display: flex; align-items: center; gap: 1.5rem; padding: 2rem 1.5rem; }
.resources-hero-left img { height: 120px; object-fit: contain; }
.resources-hero-title h1 { font-size: 1.9rem; color: var(--deep-blue); }
.resources-hero-right { position: relative; overflow: hidden; }
.resources-hero-right img { width: 100%; height: 100%; object-fit: cover; }
.resources-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.resource-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; min-height: 175px; transition: transform 0.2s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resource-card.blue  { background: var(--grad-card); }
.resource-card.green { background: var(--grad-green); }
.resource-card.teal  { background: linear-gradient(135deg, #1FA2FF, #0B3D91); }
.resource-card-text { padding: 1.4rem; color: white; display: flex; flex-direction: column; justify-content: space-between; }
.resource-card-text h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.resource-card-text p { font-size: 0.8rem; opacity: 0.9; line-height: 1.5; flex: 1; }
.resource-card-img { overflow: hidden; }
.resource-card-img img { width: 100%; height: 100%; object-fit: cover; }
.resource-btn { display: inline-block; background: white; color: var(--deep-blue); padding: 0.38rem 0.95rem; border-radius: 7px; font-weight: 700; font-size: 0.8rem; margin-top: 0.7rem; font-family: 'Montserrat', sans-serif; transition: all 0.2s; }
.resource-btn:hover { background: var(--deep-blue); color: white; }

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner { background: var(--grad-footer); padding: 2.5rem 1.5rem; position: relative; overflow: hidden; }
.cta-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.cta-inner img.cta-logo { height: 72px; object-fit: contain; border-radius: 8px; }
.cta-text h2 { color: white; font-size: 1.3rem; margin-bottom: 0.65rem; }
.cta-checks { list-style: none; display: flex; flex-direction: column; gap: 0.28rem; }
.cta-checks li { color: rgba(255,255,255,0.9); font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; }
.cta-checks li::before { content:'✓'; background:rgba(255,255,255,0.18); width:17px; height:17px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:0.68rem; font-weight:900; flex-shrink:0; }

/* ── FOOTER (compact) ────────────────────────────────────── */
.site-footer { background: linear-gradient(90deg, #0B3D91 0%, #1352C9 50%, #1FA2FF 100%); color: rgba(255,255,255,0.92); }
.footer-compact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; max-width: 1200px; margin: 0 auto; padding: 0.65rem 1.5rem; }
.footer-left { display: flex; align-items: center; gap: 0.5rem; }
.footer-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.88rem; color: white; }
.footer-center { font-size: 0.76rem; opacity: 0.82; text-align: center; flex: 1; }
.footer-right { font-size: 0.73rem; opacity: 0.65; white-space: nowrap; }

/* ── AUTH ────────────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: var(--grad-hero); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.auth-left-img { width: 100%; max-width: 400px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-left h2 { font-size: 1.4rem; color: var(--deep-blue); margin: 1.4rem 0 0.5rem; }
.auth-left p { color: var(--grey-text); font-size: 0.9rem; max-width: 300px; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 2.5rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-logo-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.8rem; }
.auth-logo-wrap img { height: 48px; }
.auth-card h1 { font-size: 1.65rem; color: var(--deep-blue); margin-bottom: 0.3rem; }
.auth-card p.subtitle { color: var(--grey-text); margin-bottom: 1.4rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.38rem; font-size: 0.86rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: border-color 0.2s; background: #FAFBFF; color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(31,162,255,0.12); }
.auth-footer-link { margin-top: 1.2rem; text-align: center; font-size: 0.86rem; color: var(--grey-text); }
.auth-footer-link a { color: var(--deep-blue); font-weight: 600; }

/* ── DASHBOARD ───────────────────────────────────────────── */
.dashboard-hero { background: var(--grad-hero); padding: 2.5rem 1.5rem; border-bottom: 1px solid var(--grey-mid); }
.dashboard-hero-inner { max-width: 1200px; margin: 0 auto; }
.dashboard-hero h1 { font-size: 1.8rem; color: var(--deep-blue); }
.dashboard-hero p { color: var(--grey-text); margin-top: 0.3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1.25rem; max-width: 1200px; margin: 2rem auto 0; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); text-align: center; transition: transform 0.2s; border: 1px solid var(--grey-mid); border-top: 4px solid var(--deep-blue); }
.stat-card:nth-child(2) { border-top-color: var(--green); }
.stat-card:nth-child(3) { border-top-color: var(--blue-light); }
.stat-card:nth-child(4) { border-top-color: #8B5CF6; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 2rem; margin-bottom: 0.35rem; }
.stat-value { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--deep-blue); }
.stat-label { font-size: 0.78rem; color: var(--grey-text); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }
.section { max-width: 1200px; margin: 2.5rem auto; padding: 0 1.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { font-size: 1.3rem; color: var(--deep-blue); }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px,1fr)); gap: 1.5rem; }
.course-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-mid); transition: transform 0.2s, box-shadow 0.2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card-header { height: 128px; display: flex; align-items: flex-end; justify-content: space-between; padding: 1rem; position: relative; overflow: hidden; }
.course-card-header img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-card-header-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.52), transparent); }
.course-card-header .course-level { position: relative; z-index: 1; }
.course-card-header .course-duration { position: relative; z-index: 1; color: rgba(255,255,255,0.9); font-size: 0.76rem; font-weight: 500; }
.course-card-body { padding: 1.2rem; }
.course-card-body .course-meta { font-size: 0.73rem; color: var(--blue-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.3rem; }
.course-card-body h3 { font-size: 0.97rem; color: var(--deep-blue); margin-bottom: 0.38rem; line-height: 1.4; }
.course-card-body p { font-size: 0.81rem; color: var(--grey-text); line-height: 1.5; margin-bottom: 0.9rem; }
.course-footer { display: flex; justify-content: space-between; color: var(--grey-text); font-size: 0.78rem; margin-bottom: 0.9rem; }
.progress-bar-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.progress-bar { flex: 1; height: 6px; background: var(--grey-mid); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad-green); border-radius: 99px; transition: width 0.4s; }
.progress-text { font-size: 0.76rem; font-weight: 600; color: var(--grey-text); min-width: 32px; }
.empty-state { text-align: center; padding: 3rem 1.5rem; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--grey-mid); }
.empty-icon { font-size: 2.8rem; margin-bottom: 0.7rem; }
.empty-state h3 { color: var(--deep-blue); margin-bottom: 0.38rem; }
.empty-state p { color: var(--grey-text); font-size: 0.88rem; margin-bottom: 1.2rem; }

/* ── COURSE DETAIL ───────────────────────────────────────── */
.course-detail-banner { background: var(--grad-blue); min-height: 230px; position: relative; overflow: hidden; display: flex; align-items: center; }
.course-detail-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.course-detail-banner-inner { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; position: relative; z-index: 1; color: white; }
.course-detail-banner h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.course-detail-banner p { opacity: 0.9; max-width: 580px; line-height: 1.6; }
.course-meta-row { display: flex; gap: 1.5rem; flex-wrap: wrap; opacity: 0.82; font-size: 0.88rem; margin-top: 0.7rem; }
.course-detail-body { display: grid; grid-template-columns: 1fr 310px; gap: 2rem; max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; align-items: start; }
.modules-list h2 { font-size: 1.25rem; color: var(--deep-blue); margin-bottom: 1rem; }
.module-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: white; border-radius: 10px; margin-bottom: 0.7rem; box-shadow: var(--shadow); border-left: 4px solid var(--blue-light); }
.module-number { width: 34px; height: 34px; background: var(--grad-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; font-family: 'Montserrat', sans-serif; }
.module-info h4 { font-size: 0.92rem; color: var(--deep-blue); margin-bottom: 0.22rem; }
.enroll-card { background: white; border-radius: var(--radius-lg); padding: 1.65rem; box-shadow: var(--shadow-md); position: sticky; top: 80px; border: 1px solid var(--grey-mid); }
.enroll-card h3 { font-size: 1.15rem; color: var(--deep-blue); margin-bottom: 0.5rem; }
.enroll-card p { color: var(--grey-text); font-size: 0.86rem; margin-bottom: 1.2rem; }
.enrolled-badge { background: var(--green-light); color: #166534; padding: 0.7rem 1rem; border-radius: 9px; text-align: center; font-weight: 600; margin-bottom: 1rem; font-family: 'Poppins', sans-serif; }

/* ── MODULE LAYOUT ───────────────────────────────────────── */
.module-layout { display: grid; grid-template-columns: 265px 1fr; min-height: calc(100vh - 68px); }
.module-sidebar { background: var(--deep-blue); color: white; padding: 1.5rem; overflow-y: auto; }
.module-sidebar h3 { font-size: 0.88rem; opacity: 0.55; font-weight: 700; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 0.07em; }
.module-nav { list-style: none; }
.module-nav-item a { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.85rem; color: rgba(255,255,255,0.65); border-radius: 8px; font-size: 0.85rem; transition: all 0.2s; margin-bottom: 0.18rem; text-decoration: none; }
.module-nav-item a:hover, .module-nav-item.active a { background: rgba(255,255,255,0.12); color: white; }
.module-nav-num { width: 22px; height: 22px; background: rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; font-weight: 700; }
.module-content { padding: 2.5rem; overflow-y: auto; background: var(--soft-grey); }
.module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.8rem; }
.module-header h1 { font-size: 1.5rem; color: var(--deep-blue); }
.module-body { background: white; border-radius: var(--radius); padding: 2rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.video-wrap { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-wrap iframe { width: 100%; height: 400px; border: none; display: block; }
.video-file-wrap { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-file-wrap video { width: 100%; max-height: 420px; display: block; }
.quiz-section { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.quiz-section h2 { color: var(--deep-blue); margin-bottom: 0.4rem; }
.quiz-section > p { color: var(--grey-text); font-size: 0.88rem; margin-bottom: 1.5rem; }
.quiz-question { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.question-text { margin-bottom: 0.7rem; font-size: 0.93rem; color: var(--text); font-weight: 500; }
.quiz-options { display: flex; flex-direction: column; gap: 0.45rem; }
.quiz-option { display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 0.88rem; }
.quiz-option:hover { border-color: var(--blue-light); background: #EEF8FF; }
.quiz-result { padding: 1.5rem; border-radius: var(--radius); background: white; box-shadow: var(--shadow); text-align: center; }
.score-pass { color: var(--green); margin-top: 0.5rem; font-weight: 700; }
.score-fail { color: #DC2626; margin-top: 0.5rem; font-weight: 700; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2rem; background: white; padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--grey-mid); }
.filter-bar input, .filter-bar select { padding: 0.55rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 0.88rem; background: var(--soft-grey); flex: 1; min-width: 150px; }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px,1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.admin-action-card { background: white; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; display: block; color: var(--text); border: 1px solid var(--grey-mid); border-top: 4px solid var(--blue-light); text-decoration: none; }
.admin-action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-action-card span { font-size: 1.9rem; display: block; margin-bottom: 0.38rem; }
.admin-action-card h3 { color: var(--deep-blue); font-size: 0.97rem; margin-bottom: 0.2rem; }
.admin-action-card p { color: var(--grey-text); font-size: 0.8rem; }
.admin-action-card.highlight { background: var(--grad-green); border-top: none; }
.admin-action-card.highlight h3, .admin-action-card.highlight p, .admin-action-card.highlight span { color: white; }
.admin-action-card.sky { background: var(--grad-blue); border-top: none; }
.admin-action-card.sky h3, .admin-action-card.sky p, .admin-action-card.sky span { color: white; }
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-mid); }
.data-table th { background: var(--deep-blue); color: white; padding: 0.8rem 1.2rem; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Montserrat', sans-serif; }
.data-table td { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFF; }
.table-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.form-card { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); max-width: 720px; border: 1px solid var(--grey-mid); }
.form-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; font-size: 0.88rem; }
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.thumb-preview { width: 88px; height: 62px; object-fit: cover; border-radius: 7px; margin-top: 0.5rem; }

/* ── 404 ─────────────────────────────────────────────────── */
.center-content { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 136px); }
.error-page { text-align: center; }
.error-code { font-family: 'Montserrat', sans-serif; font-size: 7rem; font-weight: 900; color: var(--border); line-height: 1; }
.error-page h1 { font-size: 1.9rem; color: var(--deep-blue); margin-bottom: 0.5rem; }
.error-page p { color: var(--grey-text); margin-bottom: 1.5rem; }

/* ── ATTENDANCE ──────────────────────────────────────────── */
.att-table-wrap { overflow-x: auto; }
.att-radio-group { display: flex; gap: 0.38rem; flex-wrap: wrap; }
.att-radio-group label { display: inline-flex; align-items: center; gap: 0.28rem; padding: 0.28rem 0.65rem; border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: all 0.15s; white-space: nowrap; }
.att-radio-group label:has(input:checked) { background: #EEF8FF; border-color: var(--blue-light); color: var(--deep-blue); }
.att-radio-group label.absent:has(input:checked) { background: #FEE2E2; border-color: #DC2626; color: #DC2626; }
.att-radio-group label.late:has(input:checked) { background: #FEF9C3; border-color: #D97706; color: #D97706; }
.att-badge-present { background: var(--green-light); color: #166534; padding: 0.14rem 0.55rem; border-radius: 99px; font-size: 0.76rem; font-weight: 600; }
.att-badge-absent  { background: #FEE2E2; color: #991B1B; padding: 0.14rem 0.55rem; border-radius: 99px; font-size: 0.76rem; font-weight: 600; }
.att-badge-late    { background: #FEF9C3; color: #854D0E; padding: 0.14rem 0.55rem; border-radius: 99px; font-size: 0.76rem; font-weight: 600; }

/* ── CERTIFICATES ────────────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.5rem; }
.cert-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--grey-mid); border-top: 4px solid var(--blue-light); transition: transform 0.2s; }
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-card-header { background: var(--grad-blue); padding: 1.2rem 1.5rem; color: white; display: flex; align-items: center; gap: 1rem; }
.cert-card-header .cert-icon { font-size: 1.9rem; }
.cert-card-header h3 { font-size: 0.97rem; }
.cert-type-badge { font-size: 0.68rem; background: rgba(255,255,255,0.18); padding: 0.12rem 0.48rem; border-radius: 99px; margin-top: 0.18rem; display: inline-block; }
.cert-card-body { padding: 1.2rem 1.5rem; }
.cert-card-body .cert-code { font-size: 0.76rem; color: var(--grey-text); font-family: monospace; margin-bottom: 0.45rem; }
.cert-card-body .cert-date { font-size: 0.8rem; color: var(--grey-text); margin-bottom: 1rem; }
.cert-card-body .cert-course { font-size: 0.86rem; color: var(--deep-blue); font-weight: 600; margin-bottom: 0.45rem; }

/* ── EXAMS ───────────────────────────────────────────────── */
.exam-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--grey-mid); border-left: 5px solid var(--blue-light); transition: transform 0.2s; }
.exam-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.exam-card h3 { font-size: 1rem; color: var(--deep-blue); margin-bottom: 0.28rem; }
.exam-card .exam-meta { font-size: 0.8rem; color: var(--grey-text); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.38rem; }
.exam-question-block { background: var(--soft-grey); border-radius: 9px; padding: 1.2rem; margin-bottom: 0.9rem; border: 1px solid var(--grey-mid); }
.exam-question-block .q-num { font-size: 0.76rem; font-weight: 700; color: var(--blue-light); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.38rem; font-family: 'Montserrat', sans-serif; }
.exam-question-block .q-text { font-weight: 500; font-size: 0.93rem; color: var(--text); margin-bottom: 0.8rem; }
.exam-options { display: flex; flex-direction: column; gap: 0.38rem; }
.exam-option { display: flex; align-items: center; gap: 0.7rem; padding: 0.58rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.88rem; transition: all 0.15s; background: white; }
.exam-option:has(input:checked) { border-color: var(--blue-light); background: #EEF8FF; color: var(--deep-blue); }
.exam-timer { position: fixed; top: 76px; right: 22px; background: var(--deep-blue); color: white; padding: 0.55rem 1.15rem; border-radius: 9px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; z-index: 100; box-shadow: var(--shadow-md); }
.exam-timer.warn { background: #DC2626; }
.exam-text-answer { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: 'Poppins', sans-serif; resize: vertical; min-height: 80px; }
.exam-text-answer:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(31,162,255,0.12); }
.toggle-visible { display: inline-flex; align-items: center; gap: 0.38rem; padding: 0.3rem 0.8rem; border-radius: 7px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; font-family: 'Poppins', sans-serif; transition: all 0.2s; }
.toggle-visible.is-visible { background: var(--green-light); color: #166534; }
.toggle-visible.is-hidden  { background: #FEE2E2; color: #991B1B; }

/* ── BANNERS GRID ────────────────────────────────────────── */
.banners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px,1fr)); gap: 1.2rem; }
.banner-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--grey-mid); }
.banner-card-preview { height: 125px; overflow: hidden; background: var(--soft-grey); display: flex; align-items: center; justify-content: center; }
.banner-card-preview img, .banner-card-preview video { width: 100%; height: 100%; object-fit: cover; }
.banner-card-body { padding: 0.8rem; }
.banner-card-body .banner-name { font-size: 0.83rem; font-weight: 600; color: var(--deep-blue); margin-bottom: 0.28rem; }
.banner-card-body .banner-meta { font-size: 0.73rem; color: var(--grey-text); margin-bottom: 0.55rem; }
.banner-card-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.badge-placement { background: #EEF4FF; color: var(--deep-blue); padding: 0.1rem 0.48rem; border-radius: 99px; font-size: 0.68rem; font-weight: 600; }
.badge-active    { background: var(--green-light); color: #166534; padding: 0.1rem 0.48rem; border-radius: 99px; font-size: 0.68rem; font-weight: 600; }
.badge-inactive  { background: var(--grey-mid); color: #6B7280; padding: 0.1rem 0.48rem; border-radius: 99px; font-size: 0.68rem; font-weight: 600; }

/* ── LOGS ────────────────────────────────────────────────── */
.log-action { font-family: monospace; font-size: 0.8rem; background: #EEF4FF; color: var(--deep-blue); padding: 0.08rem 0.45rem; border-radius: 4px; }

/* ── DASHBOARD BANNER AREA ───────────────────────────────── */
.dashboard-banner-area { position: relative; overflow: hidden; max-height: 250px; border-radius: var(--radius-lg); margin-bottom: 1rem; box-shadow: var(--shadow-md); }
.dashboard-banner-area img, .dashboard-banner-area video { width: 100%; height: 250px; object-fit: cover; display: block; }
.dashboard-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,61,145,0.72) 0%, transparent 65%); display: flex; align-items: center; padding: 2rem 2.5rem; }
.dashboard-banner-overlay h2 { font-size: 1.75rem; color: white; }

/* ── VIDEO BADGE ─────────────────────────────────────────── */
.has-video-badge { display: inline-flex; align-items: center; gap: 0.28rem; font-size: 0.73rem; background: #EEF8FF; color: #0369A1; padding: 0.1rem 0.48rem; border-radius: 99px; font-weight: 600; }

/* ── UPLOAD AREA ─────────────────────────────────────────── */
.upload-area { border: 2px dashed var(--border); border-radius: 9px; padding: 1.4rem; text-align: center; cursor: pointer; transition: border-color 0.2s; background: var(--soft-grey); }
.upload-area:hover { border-color: var(--blue-light); }
.upload-area input[type="file"] { display: block; margin: 0.5rem auto 0; }

/* ── ADMIN TABS ──────────────────────────────────────────── */
.admin-tabs { display: flex; gap: 0.45rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.admin-tab { padding: 0.55rem 1.15rem; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.86rem; color: var(--grey-text); border-radius: 8px 8px 0 0; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; }
.admin-tab:hover, .admin-tab.active { color: var(--deep-blue); background: white; border-color: var(--border); border-bottom-color: white; }

/* ── SECTION IMAGES GRID ─────────────────────────────────── */
.color-preview-swatch { display: inline-block; width: 32px; height: 32px; border-radius: 6px; border: 2px solid var(--border); vertical-align: middle; margin-left: 0.5rem; }
.section-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-top: 1rem; }
.section-img-card { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.section-img-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.section-img-card-body { padding: 0.65rem; }
.section-img-card-body .img-label { font-size: 0.78rem; font-weight: 600; color: var(--deep-blue); margin-bottom: 0.4rem; }
.section-img-card-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: flex; min-height: 300px; height: auto; }
  .hero-left { padding: 3rem 1.5rem; }
  .hero-left h1 { font-size: 2.1rem; }
  .programs-grid { grid-template-columns: repeat(2,1fr); }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-section.reverse { direction: ltr; }
  .course-detail-body { grid-template-columns: 1fr; }
  .module-layout { grid-template-columns: 1fr; }
  .module-sidebar { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .contact-hero-inner, .resources-hero-inner { grid-template-columns: 1fr; }
  .contact-hero-right, .resources-hero-right { display: none; }
  .contact-body { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; flex-direction: column; align-items: flex-start; padding: 1rem; gap: 0.25rem; box-shadow: 0 8px 24px rgba(11,61,145,0.12); border-bottom: 2px solid var(--grey-mid); z-index: 199; }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { width: 100%; padding: 0.65rem 1rem; border-radius: 8px; }
  .nav-links .nav-user { border-left: none; padding-left: 0; margin-left: 0; border-top: 1.5px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem; width: 100%; flex-wrap: wrap; }
  .nav-hamburger { display: flex; }
  .navbar { position: relative; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .hero-left { padding: 2.5rem 1rem; }
  .hero-left h1 { font-size: 1.65rem; }
  .hero-right { min-height: 220px; }
  .stats-bar { gap: 1.8rem; padding: 1.2rem 1rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-compact { flex-direction: column; text-align: center; gap: 0.4rem; padding: 0.75rem 1rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .home-courses-grid { grid-template-columns: 1fr !important; }
  .section { padding: 0 1rem; }
  .page-container { padding: 2rem 1rem; }
}

/* ── FLOATING SOCIAL SIDEBAR ─────────────────────────────── */
.social-float { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 500; display: flex; flex-direction: column; gap: 0; }
.social-float-btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: white; font-size: 1.15rem; text-decoration: none; transition: width 0.25s ease, padding 0.25s ease, border-radius 0.25s ease; position: relative; overflow: hidden; border-radius: 0 10px 10px 0; }
.social-float-btn:first-child { border-radius: 0 10px 0 0; }
.social-float-btn:last-child  { border-radius: 0 0 10px 0; }
.social-float-btn:only-child  { border-radius: 0 10px 10px 0; }
.social-float-btn:hover { width: 62px; color: white; }
.social-float-btn.whatsapp  { background: #25D366; }
.social-float-btn.facebook  { background: #1877F2; }
.social-float-btn.instagram { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.social-float-btn.youtube   { background: #FF0000; }
.social-float-btn.whatsapp:hover  { background: #1DA851; }
.social-float-btn.facebook:hover  { background: #1565C9; }
.social-float-btn.instagram:hover { background: linear-gradient(135deg, #6A2D9F, #C51F5A, #D96520); }
.social-float-btn.youtube:hover   { background: #CC0000; }

@media (min-width: 961px) {
  .page-container, .hero-left, .split-section, .programs-grid, .packages-grid, .resources-grid, .contact-body { padding-left: max(1.5rem, 58px); }
}
@media (max-width: 960px) {
  .social-float { display: none; }
}

/* ── HOME COURSES SECTION ────────────────────────────────── */
.home-courses-section { padding: 3.5rem 0; background: var(--soft-grey); }
.home-courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.home-view-all { text-align: center; margin-top: 2rem; padding: 0 1.5rem; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ── PROGRAMS PAGE ───────────────────────────────────────── */
.programs-hero { background: var(--grad-hero); padding: 3.5rem 1.5rem 3rem; border-bottom: 1px solid var(--grey-mid); }
.programs-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: center; }
.programs-hero-text h1 { font-size: 2.2rem; color: var(--deep-blue); margin-bottom: 0.75rem; }
.programs-hero-text p { color: var(--grey-text); font-size: 1rem; line-height: 1.7; max-width: 520px; }
.programs-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.programs-hero-img img { width: 100%; height: 260px; object-fit: cover; }
.programs-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 1100px; margin: 2.5rem auto 0; padding: 0 1.5rem; }
.prog-tab { padding: 0.55rem 1.3rem; border-radius: 99px; font-size: 0.88rem; font-weight: 600; font-family: 'Poppins', sans-serif; cursor: pointer; border: 2px solid var(--border); background: white; color: var(--grey-text); transition: all 0.2s; text-decoration: none; }
.prog-tab:hover, .prog-tab.active { background: var(--deep-blue); color: white; border-color: var(--deep-blue); }
.programs-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; max-width: 1100px; margin: 2rem auto 3.5rem; padding: 0 1.5rem; }
.program-full-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-mid); transition: transform 0.22s, box-shadow 0.22s; display: flex; flex-direction: column; }
.program-full-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.program-full-card-img { height: 190px; overflow: hidden; position: relative; }
.program-full-card-img img { width: 100%; height: 100%; object-fit: cover; }
.program-full-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,61,145,0.55), transparent); display: flex; align-items: flex-end; padding: 1rem; }
.program-full-card-img-overlay .prog-cat { background: rgba(255,255,255,0.18); backdrop-filter: blur(4px); color: white; padding: 0.22rem 0.75rem; border-radius: 99px; font-size: 0.74rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); }
.program-full-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.program-full-card-body h3 { font-size: 1.05rem; color: var(--deep-blue); margin-bottom: 0.45rem; }
.program-full-card-body p { font-size: 0.84rem; color: var(--grey-text); line-height: 1.6; flex: 1; }
.program-full-card-body .prog-includes { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.program-full-card-body .prog-includes li { font-size: 0.82rem; color: var(--text); display: flex; align-items: center; gap: 0.45rem; }
.program-full-card-body .prog-includes li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.program-full-card-footer { padding: 1rem 1.4rem 1.4rem; display: flex; gap: 0.6rem; align-items: center; border-top: 1px solid var(--grey-mid); }
.prog-level { font-size: 0.76rem; font-weight: 600; padding: 0.18rem 0.6rem; border-radius: 99px; }
.prog-level.beginner { background: #E6F7EA; color: #166534; }
.prog-level.intermediate { background: #FEF9C3; color: #854D0E; }
.prog-level.advanced { background: #EDE9FE; color: #5B21B6; }
.prog-duration { font-size: 0.78rem; color: var(--grey-text); margin-left: auto; }

@media (max-width: 960px) {
  .programs-hero-inner { grid-template-columns: 1fr; }
  .programs-hero-img { display: none; }
  .home-courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-courses-grid { grid-template-columns: 1fr; }
  .programs-full-grid { grid-template-columns: 1fr; }
}
