/*
Theme Name: AoiTech Academy
Theme URI: https://aoitech.ng
Author: Shuaib Toyeeb
Description: Modern custom theme for AT-TIBYAN Tech Academy
Version: 1.0
*/

:root {
  --green: #1a7a3c;
  --green-light: #25a354;
  --green-dark: #145c2d;
  --accent: #f0faf4;
  --dark: #0f1c14;
  --text: #2d2d2d;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

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

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* Force all top-level page sections to fill full viewport width */
.site-header,
.hero,
.stats-bar,
.section,
.courses-bg,
.cta-band,
.site-footer,
.auth-wrap,
.portal-wrap,
.about-hero-section {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── HEADER ── */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--dark); }

.header-left { display: flex; align-items: center; gap: 12px; }
.header-divider { width: 1px; height: 32px; background: #d1d5db; flex-shrink: 0; }
.header-brand { display: flex; flex-direction: column; line-height: 1.15; }
.header-brand-main { font-size: 13px; font-weight: 800; color: var(--green); letter-spacing: 0.07em; text-transform: uppercase; }
.header-brand-sub  { font-size: 9.5px; font-weight: 600; color: #9ca3af; letter-spacing: 0.13em; text-transform: uppercase; }

.main-nav { display: flex; gap: 32px; list-style: none; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--green); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-only { display: none; }
.cta-desktop { display: inline-block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f2d1a 0%, #1a5c30 60%, #25a354 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  color: #7dff9f;
}
.hero p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
}
.btn-white:hover { background: #f0faf4; }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #7dff9f;
  display: block;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SECTION HEADER ── */
.section { padding: 80px 0; }
.section-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 540px;
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.why-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.2s;
}
.why-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.why-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 15px; }

/* ── COURSES ── */
.courses-bg { background: #f9fafb; }
.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.course-card:hover { transform: translateY(-4px); }
a.course-card-link { display:block; text-decoration:none; color:inherit; cursor:pointer; }
a.course-card-link:hover { text-decoration:none; color:inherit; }
.course-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.course-body { padding: 24px; }

/* Branded monogram fallback for course thumbnails (no image, or image failed to load) */
.cp-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f2d1a 0%, #1a7a3c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  box-sizing: border-box;
  gap: 8px;
}
.cp-mono { font-size: 46px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cp-mono-rule { width: 40px; height: 3px; background: rgba(255,255,255,.55); border-radius: 2px; }
.cp-mono-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); max-width: 92%; line-height: 1.3; }
@media (max-width: 580px) {
  .cp-mono { font-size: 38px; }
  .cp-mono-name { font-size: 12px; }
}
.course-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.course-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.course-price { font-weight: 700; color: var(--green); font-size: 16px; }
.course-duration { color: var(--muted); font-size: 13px; }

/* ── ABOUT ── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-features { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-dot {
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.feature-text p { color: var(--muted); font-size: 14px; }

/* ── TUTORS ── */
.tutors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.tutor-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}
.tutor-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.tutor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  font-weight: 700;
  overflow: hidden;
}
.tutor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tutor-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}
.tutor-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tutor-card p { color: var(--muted); font-size: 13px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-band p { opacity: 0.85; font-size: 17px; margin-bottom: 36px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { font-size: 20px; color: #7dff9f; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: #7dff9f; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ── RESPONSIVE ── */

/* Nav collapses at 768px — keeps desktop nav on laptops/desktops */
@media (max-width: 768px) {
  .cta-desktop { display: none !important; }
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-top: 1px solid #e5e7eb;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav li { border-bottom: 1px solid #f3f4f6; }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 24px; font-size: 16px; }
  .nav-mobile-only { display: block; }
  .nav-mob-login {
    color: var(--green) !important;
    font-weight: 600 !important;
  }
  .nav-mob-register {
    color: var(--white) !important;
    background: var(--green);
    margin: 12px 24px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600 !important;
    display: block;
    padding: 12px 24px !important;
  }
}

/* Layout reflow at 900px */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-inner { grid-template-columns: 1fr; }
  .hero-image {
    aspect-ratio: 16/9;
    max-height: 260px;
    border-radius: 14px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .tutors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .partners-divider { display: none; }
  .partners-bar { gap: 28px; }
}

@media (max-width: 540px) {
  .header-inner { padding: 8px 16px; }
  .site-logo img { height: 36px !important; }
  .header-left { gap: 8px; }
  .header-divider { height: 26px; }
  .header-brand-main { font-size: 11px; }
  .header-brand-sub  { font-size: 8.5px; }
  .hero { padding: 60px 0 50px; }
  .hero-inner { padding: 0 16px; gap: 24px; }
  .hero h1 { font-size: 32px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .hero-image { max-height: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid, .courses-grid, .tutors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .courses-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
}

/* ── AUTH PAGE ── */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
/* ── AUTH LEFT PANEL ── */
.auth-left {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: white;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
}
.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 46, 22, 0.88) 0%,
    rgba(20, 92, 45, 0.80) 50%,
    rgba(10, 30, 18, 0.92) 100%
  );
  z-index: 1;
}
.auth-left-inner {
  position: relative;
  z-index: 2;
  max-width: 420px;
  width: 100%;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* Brand block */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}
.auth-logo { display: block; flex-shrink: 0; }
.auth-academy-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.auth-academy-main {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}
.auth-academy-sub {
  font-size: 13px;
  font-weight: 600;
  color: #7dffb0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Main content */
.auth-left-content { flex: 1; }
.auth-left-badge {
  display: inline-block;
  background: rgba(125, 255, 176, 0.15);
  border: 1px solid rgba(125, 255, 176, 0.4);
  color: #7dffb0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.auth-left-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #ffffff;
}
.auth-left-content > p {
  opacity: 0.8;
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.auth-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 15px; opacity: 0.92; }
.af-check {
  width: 24px; height: 24px;
  background: rgba(125, 255, 176, 0.2);
  border: 1px solid rgba(125, 255, 176, 0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  color: #7dffb0;
}
.auth-testimonial {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 24px;
  border-left: 3px solid #7dffb0;
  backdrop-filter: blur(4px);
  margin-bottom: 32px;
}
.auth-testimonial p { font-style: italic; margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.auth-testimonial span { font-size: 13px; opacity: 0.6; }

/* Photo credit */
.auth-left-photo-credit {
  font-size: 12px;
  opacity: 0.45;
  letter-spacing: 0.5px;
}

.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #f9fafb;
}
.auth-form-wrap { width: 100%; max-width: 420px; }

/* Mobile hero banner — hidden on desktop */
.auth-mob-hero {
  display: none;
}
@media (max-width: 768px) {
  .auth-right {
    padding: 0 0 40px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .auth-form-wrap {
    padding: 0 20px;
    margin-top: 28px;
  }
  .auth-mob-hero {
    display: block;
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  .auth-mob-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,46,22,0.90) 0%, rgba(20,92,45,0.82) 60%, rgba(10,30,18,0.94) 100%);
  }
  .auth-mob-hero-inner {
    position: relative;
    z-index: 2;
    padding: 32px 24px 28px;
  }
  .auth-mob-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .auth-mob-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }
  .auth-mob-main {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
  }
  .auth-mob-sub {
    font-size: 11px;
    font-weight: 600;
    color: #7dffb0;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .auth-mob-tagline {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px;
  }
  .auth-mob-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .auth-mob-features span {
    font-size: 12px;
    color: #7dffb0;
    font-weight: 600;
  }
}

.auth-tabs {
  display: flex;
  background: #e5e7eb;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  font-family: inherit;
}
.auth-tab.active { background: white; color: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

.auth-notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
.auth-notice.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-notice.success { background: #f0fdf4; color: var(--green-dark); border: 1px solid #bbf7d0; }
.auth-notice.reg-success { background: #f0fdf4; color: #065f46; border: 1px solid #6ee7b7; border-left: 4px solid #059669; line-height: 1.6; }
.auth-notice.pending { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-hidden { display: none !important; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input {
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
  width: 100%;
}
.form-field input:focus { outline: none; border-color: var(--green); }
.input-eye { position: relative; }
.input-eye input { padding-right: 44px; }
.input-eye > span {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
.remember-me { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--muted); }
.remember-me input { width: auto; }
.btn-full { width: 100%; text-align: center; padding: 14px; font-size: 15px; border-radius: 8px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--green); font-weight: 600; }
.auth-back { text-align: center; margin-top: 24px; font-size: 13px; }
.auth-back a { color: var(--muted); }
.auth-back a:hover { color: var(--green); }

@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── STUDENT PORTAL ── */
.portal-wrap {
  display: flex;
  min-height: 100vh;
  background: #f3f4f6;
}
.portal-sidebar {
  width: 240px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}
.portal-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.p-logo-text { font-size: 22px; font-weight: 800; color: #7dff9f; }
.portal-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.portal-nav-link:hover { background: rgba(255,255,255,0.07); color: white; }
.portal-nav-link.active { background: var(--green); color: white; }
.portal-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.portal-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}
.portal-logout:hover { background: rgba(220,38,38,0.15); color: #f87171; }

.portal-main { margin-left: 240px; flex: 1; padding: 32px; }
.portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.portal-topbar-top { display: contents; } /* transparent on desktop — children flow normally */
.portal-mob-logout { display: none; } /* shown only on mobile via media query */
.portal-id-icon { display: none; }
.portal-greeting { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.portal-date { color: var(--muted); font-size: 13px; }
.portal-student-id {
  background: white;
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
}
.student-id-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.student-id-value { font-size: 18px; font-weight: 800; color: var(--green); font-family: monospace; letter-spacing: 1px; }
.portal-welcome-banner {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.portal-section { display: none; }
.portal-section.active { display: block; }

.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.p-stat {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.p-stat-icon { font-size: 28px; }
.p-stat-num { font-size: 20px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.p-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.section-heading { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 20px; margin-top: 8px; }

.p-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.p-video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.p-video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.p-video-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-play-btn {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  padding-left: 4px;
}
.p-video-info { padding: 16px; }
.p-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.p-video-info h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.p-video-info p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.p-duration { font-size: 12px; color: var(--muted); }

.p-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.p-resource-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.p-resource-icon { font-size: 32px; flex-shrink: 0; margin-top: 4px; }
.p-resource-info { flex: 1; min-width: 0; }
.p-resource-info h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 6px 0 4px; }
.p-resource-info p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.p-file-size { font-size: 12px; color: var(--muted); }
.p-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
  align-self: center;
}
.p-download-btn:hover { background: var(--green-dark); }

.p-profile-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.p-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.p-profile-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.p-profile-info > p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.p-profile-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: monospace;
}
.p-profile-details {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.p-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}
.p-detail-row:last-child { border-bottom: none; }
.p-detail-row span { color: var(--muted); }
.p-detail-row strong { color: var(--dark); }

/* VIDEO MODAL */
.v-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.v-modal.open { display: flex; }
.v-modal-inner {
  background: #111;
  border-radius: 14px;
  width: 100%;
  max-width: 840px;
  overflow: hidden;
  position: relative;
}
.v-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  z-index: 1;
  transition: background 0.2s;
}
.v-close:hover { background: rgba(255,255,255,0.25); }
#v-modal-title { color: white; padding: 16px 52px 16px 20px; font-size: 15px; font-weight: 600; }
.v-embed-wrap { position: relative; padding-bottom: 56.25%; }
.v-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ═══════════════════════════════════════
   MOBILE OVERHAUL — AoiTech Academy
   ═══════════════════════════════════════ */

/* ── HEADER MOBILE ── */
@media (max-width: 768px) {
  .main-nav {
    padding: 0;
    border-top: none;
    box-shadow: none;
  }
  .main-nav.open {
    animation: slideDown 0.22s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  }
  .main-nav li { border-bottom: 1px solid #f0f0f0; }
  .main-nav a {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .main-nav a:hover { color: #1a7a3c; background: #f0faf4; }
  .nav-mob-register {
    margin: 8px 16px 16px !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    background: linear-gradient(135deg, #1a7a3c, #25a354) !important;
    box-shadow: 0 4px 14px rgba(26,122,60,0.3) !important;
  }
  .hamburger span {
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: #1a1a1a;
    transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HOMEPAGE MOBILE ── */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { padding: 0 20px; gap: 28px; }
  .hero h1 { font-size: 34px; line-height: 1.15; }
  .hero > .container > .hero-inner > p,
  .hero-inner > p { font-size: 16px; line-height: 1.7; }
  .hero-image { max-height: 240px; border-radius: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 32px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 20px; }
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { padding: 20px; }
  .tutors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .container { padding: 0 20px; }
}

@media (max-width: 500px) {
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn { width: 100%; text-align: center; padding: 16px 24px; font-size: 16px; border-radius: 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tutors-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}

/* ── AUTH PAGE MOBILE ── */
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-left { display: none; }
  .auth-right {
    padding: 0 0 40px;
    background: #ffffff;
    align-items: stretch;
    justify-content: flex-start;
  }
  .auth-form-wrap {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    margin-top: 28px;
  }
  .auth-tabs {
    margin-bottom: 24px;
    border-radius: 12px;
  }
  .auth-tab { padding: 12px 10px; font-size: 15px; border-radius: 10px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .form-field input,
  .auth-form select {
    padding: 14px 16px;
    font-size: 16px; /* prevents iOS zoom */
    border-radius: 10px;
    border-width: 1.5px;
  }
  .form-field input:focus,
  .auth-form select:focus { box-shadow: 0 0 0 3px rgba(26,122,60,0.12); }
  .btn-full {
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }
  .photo-upload-box {
    padding: 28px 20px;
    border-radius: 14px;
  }
  .course-fee-box {
    border-radius: 12px;
    padding: 14px 16px;
  }
  .fee-amount { font-size: 22px; }

  /* Mobile auth header branding */
  .auth-form-wrap::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #1a7a3c, #25a354, #7dff9f);
    margin: -28px -20px 28px;
    border-radius: 0;
  }
}

/* ── PORTAL — MOBILE BOTTOM NAV ── */
@media (max-width: 768px) {
  /* Hide desktop sidebar */
  .portal-sidebar { display: none !important; }

  /* Main content fills full width, leaves room for bottom nav */
  .portal-main {
    margin-left: 0;
    padding: 0 0 90px;
    background: #f3f4f6;
  }

  .portal-mob-logout { display: block; }
  .portal-id-icon { display: block; }

  /* Mobile top bar */
  .portal-topbar {
    background: linear-gradient(135deg, #145c2d, #1a7a3c);
    margin: 0;
    padding: 20px 20px 22px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 6px 24px rgba(26,122,60,0.3);
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .portal-topbar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .portal-mob-logout {
    font-size: 22px;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 10px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .portal-mob-logout:hover { background: rgba(220,38,38,0.25); }
  .portal-greeting {
    font-size: 19px;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
  }
  .portal-date { color: rgba(255,255,255,0.6); font-size: 12px; }
  .portal-student-id {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
  }
  .student-id-label { color: rgba(255,255,255,0.55); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; display: block; margin-bottom: 3px; }
  .student-id-value { font-size: 17px; color: #7dffb0; font-family: monospace; font-weight: 800; letter-spacing: 0.5px; display: block; }
  .portal-id-icon { font-size: 28px; opacity: 0.7; }

  /* Sections get mobile padding */
  .portal-section { padding: 20px 16px; }

  /* Stats: 2x2 grid */
  .portal-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }
  .p-stat {
    padding: 16px 14px;
    gap: 10px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .p-stat-icon { font-size: 24px; }
  .p-stat-num { font-size: 22px; }
  .p-stat-label { font-size: 11px; }

  /* Video cards: full width */
  .p-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
  .p-video-card { border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
  .p-video-thumb { height: 180px; }
  .p-play-btn { width: 56px; height: 56px; font-size: 20px; }

  /* Resource cards: full width, stacked */
  .p-resources-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .p-resource-card {
    padding: 16px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  }
  .p-resource-icon { display: none; } /* hide emoji icon on mobile — more room for info */
  .p-download-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* Profile card */
  .p-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .p-avatar {
    width: 84px; height: 84px;
    font-size: 32px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(26,122,60,0.3);
    border: 3px solid #ffffff;
    outline: 3px solid #1a7a3c;
  }
  .p-profile-info h3 { font-size: 20px; }
  .p-profile-details {
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
  .p-detail-row { padding: 14px 18px; }

  /* Certificate cards */
  .cert-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 14px;
    padding: 18px;
  }
  .cert-dl-btn {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* Course cards */
  .course-card { border-radius: 14px; padding: 18px; margin-bottom: 10px; }

  /* Section headings */
  .section-heading { font-size: 16px; margin-bottom: 14px; padding: 0 2px; }

  /* Welcome banner */
  .portal-welcome-banner { border-radius: 14px; margin: 16px 16px 0; padding: 16px 18px; font-size: 14px; }

  /* Empty states */
  .portal-empty { padding: 32px 20px; text-align: center; }

  /* ID card wrap */
  .idc-wrap { flex-direction: column; gap: 14px; }
  .idc { font-size: 12px; }
  .idc-dl-btn { width: 100%; text-align: center; }

  /* Photo change */
  .change-photo-form { margin-top: 14px; }
  .change-photo-label {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    border-radius: 10px;
  }

  /* Video modal */
  .v-modal { padding: 0; align-items: flex-end; }
  .v-modal-inner { border-radius: 20px 20px 0 0; max-width: 100%; }

  /* Bottom nav */
  .portal-mobile-nav {
    display: flex !important;
  }
}

/* ── PORTAL MOBILE BOTTOM NAV (structure) ── */
.portal-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0f1c14;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.portal-mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 8px;
}
.pmn-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: color 0.18s;
  min-width: 52px;
  text-align: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
}
.pmn-link .pmn-icon {
  font-size: 22px;
  line-height: 1;
  display: block;
  transition: transform 0.18s;
}
.pmn-link.active { color: #7dffb0; }
.pmn-link.active .pmn-icon { transform: scale(1.15); }

/* ── PORTAL INTERMEDIATE (sidebar visible, tight viewport) ── */
@media (min-width: 769px) and (max-width: 900px) {
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── MISC MOBILE POLISH ── */
@media (max-width: 480px) {
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .p-video-thumb { height: 200px; }
}

/* ── FOOTER BOTTOM STACK ON MOBILE ── */
@media (max-width: 540px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── STUDENT ID CARD ── */
/* ── ID CARD PAIR LAYOUT ── */
.idc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.idc-side { display: flex; flex-direction: column; gap: 14px; }
.idc-side-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* ── ID CARD FRONT ── */
.idc {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.14);
  border: 1px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
}
.idc-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.idc-school { color: #fff; font-size: 16px; font-weight: 800; }
.idc-school-sub { color: rgba(255,255,255,0.65); font-size: 11px; margin-top: 2px; }
.idc-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.idc-body {
  background: #fff;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.idc-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  border: 3px solid var(--green);
  box-shadow: 0 2px 10px rgba(26,122,60,0.25);
}
.idc-info { flex: 1; }
.idc-name { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 6px; line-height: 1.2; }
.idc-id-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--green);
  font-weight: 700; font-size: 12px;
  padding: 3px 12px; border-radius: 20px;
  font-family: monospace; margin-bottom: 6px; letter-spacing: 1px;
}
.idc-course-pill {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600; font-size: 10px;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px; letter-spacing: 0.3px;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.idc-detail {
  font-size: 11px; color: var(--muted);
  margin-bottom: 3px; display: flex; gap: 8px;
}
.idc-detail span {
  font-weight: 700; text-transform: uppercase;
  font-size: 9px; letter-spacing: 0.5px;
  width: 44px; flex-shrink: 0; padding-top: 1px; color: #9ca3af;
}
.idc-detail em { color: var(--green); font-style: normal; font-weight: 600; }
.idc-footer {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: rgba(255,255,255,0.65); text-align: center;
  font-size: 10px; padding: 9px;
}

/* ── ID CARD BACK ── */
.idc-back {
  background: linear-gradient(160deg, #145c2d 0%, #0d3d1c 100%);
  border: none !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.2) !important;
}
.idc-back-header {
  background: rgba(0,0,0,0.22);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.idc-back-logo-ring {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.idc-back-school { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; }
.idc-back-sub { color: rgba(255,255,255,0.5); font-size: 10px; margin-top: 2px; }
.idc-back-body { padding: 14px 18px; }
.idc-back-title {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  color: #7dffb0; text-transform: uppercase; margin-bottom: 10px;
}
.idc-back-rules p {
  font-size: 10px; color: rgba(255,255,255,0.75);
  margin-bottom: 4px; line-height: 1.5;
}
.idc-back-contact {
  background: rgba(0,0,0,0.2);
  padding: 10px 18px;
}
.idc-back-lost {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  color: #7dffb0; margin-bottom: 4px; text-transform: uppercase;
}
.idc-back-contact-info { font-size: 10px; color: rgba(255,255,255,0.7); }
.idc-back-footer {
  padding: 12px 18px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.idc-barcode {
  display: flex; align-items: flex-end; gap: 2px; height: 32px;
}
.idc-bar {
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
}
.idc-back-id {
  font-family: monospace; font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 1px;
}

.idc-dl-btn { padding: 12px 24px; font-size: 14px; border-radius: 10px; width: 100%; text-align: center; }

@media (max-width: 640px) {
  .idc-pair { grid-template-columns: 1fr; }
}

/* ── PHOTO UPLOAD (registration) ── */
.photo-upload-box {
  width: 100%;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.photo-upload-box:hover { border-color: var(--green); background: var(--accent); }
#photo-placeholder .photo-icon { font-size: 28px; display: block; margin-bottom: 6px; }
#photo-placeholder p { font-size: 14px; color: var(--text); margin: 0 0 4px; }
#photo-placeholder small { color: var(--muted); font-size: 12px; }
#photo-preview-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
}

/* Course fee display */
.course-fee-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0faf4, #e6f7ed);
  border: 1.5px solid var(--green-light);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: -4px;
}
.fee-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.fee-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.5px;
}
.fee-note {
  font-size: 12px;
  color: var(--muted);
  flex-basis: 100%;
  margin-top: 2px;
}

/* Delivery option picker (Online / Physical / Residential) on the register form */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt-card:hover { border-color: var(--green-light); background: #f8fdfa; }
.opt-card.selected {
  border-color: var(--green-dark);
  background: linear-gradient(135deg, #f0faf4, #e6f7ed);
  box-shadow: 0 0 0 3px rgba(26, 122, 60, .12);
}
/* The global .form-field input rule (full-width, padded, bordered box) must not
   reach the radios and checkbox inside these cards — it stretches them across
   the card and pushes the label and price out. */
.opt-card input[type="radio"],
.opt-addon input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  margin: 3px 0 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: auto;
  flex: 0 0 auto;
  accent-color: var(--green-dark);
}
.opt-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.opt-title { font-size: 14px; font-weight: 700; color: var(--text); }
.opt-note { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.opt-time { font-size: 12px; font-weight: 600; color: var(--green-dark); }
.opt-card, .opt-addon { font-weight: 400; }
.opt-reg-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

/* Optional Madrasah add-on */
.opt-addon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
}
.opt-addon:hover { border-color: var(--green-light); background: #f8fdfa; }
.opt-addon:has(input:checked) {
  border-style: solid;
  border-color: var(--green-dark);
  background: linear-gradient(135deg, #f0faf4, #e6f7ed);
}
.opt-fee {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
  margin-left: auto;
}
@media (max-width: 480px) {
  .opt-card { flex-wrap: wrap; }
  .opt-fee { margin-left: 26px; }
}

/* Auth select input */
.auth-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .2s;
}
.auth-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,60,.1);
}

/* Avatar with photo */
.p-avatar img,
.idc-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Change photo button */
.change-photo-form { margin-top: 16px; }
.change-photo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.change-photo-label:hover { background: var(--green); color: white; }

/* ── CERTIFICATE CARDS ── */
.cert-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 4px solid #1a7a3c;
  margin-bottom: 16px;
}
.cert-icon { font-size: 40px; flex-shrink: 0; }
.cert-info { flex: 1; }
.cert-info h4 { font-size: 17px; font-weight: 700; color: #0f1c14; margin-bottom: 6px; }
.cert-info p { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.cert-no { font-family: monospace; font-size: 12px; color: #1a7a3c; font-weight: 700; }
.cert-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1a7a3c; color: white;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; flex-shrink: 0;
  transition: background 0.2s;
}
.cert-dl-btn:hover { background: #145c2d; }

/* ── COURSE CARDS ── */
.course-card {
  background: white; border-radius: 12px; padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 12px;
}
.course-card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #1a7a3c, #25a354);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.course-card h4 { font-size: 16px; font-weight: 700; color: #0f1c14; }
.portal-empty { text-align: center; padding: 48px 24px; color: #6b7280; background: white; border-radius: 12px; }
.portal-empty p { font-size: 15px; }

/* ── TEAM SECTION — MOBILE REDESIGN ── */
.team-swipe-hint { display: none; }

@media (max-width: 768px) {
  .team-section,
  .about-team-section {
    background: linear-gradient(160deg, #0f2d1a 0%, #1a5c30 60%, #145c2d 100%);
  }
  .team-section .section-tag,
  .about-team-section .section-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .team-section .section-title,
  .about-team-section .section-title { color: #fff; }
  .team-section .section-sub,
  .about-team-section .section-sub   { color: rgba(255,255,255,0.78); }

  /* Horizontal scroll carousel — home page */
  .team-section .container,
  .about-team-section .container { padding-right: 0; }

  .team-section .tutors-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    margin-top: 0;
    padding-bottom: 4px;
    padding-right: 20px;
  }
  .team-section .tutors-grid::-webkit-scrollbar { display: none; }

  .team-section .tutor-card {
    flex: 0 0 170px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 16px;
    scroll-snap-align: start;
    transition: none;
  }
  .team-section .tutor-card:hover {
    transform: none;
    border-color: rgba(255,255,255,0.3);
    box-shadow: none;
  }
  .team-section .tutor-photo {
    border-color: rgba(255,255,255,0.35);
  }
  .team-section .tutor-avatar {
    background: rgba(255,255,255,0.15);
  }
  .team-section .tutor-card h3 { color: #fff; font-size: 14px; }
  .team-section .tutor-card p  { color: rgba(255,255,255,0.75); font-size: 12px; }

  /* Horizontal scroll carousel — about page */
  .about-team-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 4px;
    padding-right: 20px;
  }
  .about-team-grid::-webkit-scrollbar { display: none; }

  .about-team-grid > div {
    flex: 0 0 180px !important;
    background: rgba(255,255,255,0.09) !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-snap-align: start;
    padding: 24px 16px !important;
  }
  .about-team-grid > div h3 { color: #fff !important; font-size: 14px !important; }
  .about-team-grid > div p  { color: rgba(255,255,255,0.75) !important; }

  /* Shared swipe hint */
  .team-swipe-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
  }
  .team-swipe-hint::before {
    content: '';
    display: inline-block;
    width: 28px; height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
  }
}

/* ── WHY CHOOSE US — MOBILE REDESIGN ── */
.why-swipe-hint { display: none; }

@media (max-width: 768px) {
  .why-section {
    background: linear-gradient(160deg, #0f2d1a 0%, #1a5c30 60%, #145c2d 100%);
  }
  .why-section .section-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .why-section .section-title { color: #fff; }
  .why-section .section-sub   { color: rgba(255,255,255,0.78); }

  /* Horizontal scroll carousel */
  .why-section .container { padding-right: 0; }
  .why-section .why-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    margin-top: 28px;
    padding-bottom: 4px;
    padding-right: 20px;
  }
  .why-section .why-grid::-webkit-scrollbar { display: none; }

  .why-section .why-card {
    flex: 0 0 220px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 20px;
    scroll-snap-align: start;
    transition: none;
  }
  .why-section .why-card:hover {
    transform: none;
    border-color: rgba(255,255,255,0.3);
    box-shadow: none;
  }
  .why-section .why-icon {
    background: rgba(255,255,255,0.14);
    width: 46px; height: 46px;
    margin-bottom: 14px;
  }
  .why-section .why-card h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 8px;
  }
  .why-section .why-card p {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.6;
  }

  /* Swipe hint label */
  .why-section .why-grid::after {
    content: '';
    flex: 0 0 6px;
  }
  .why-swipe-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
  }
  .why-swipe-hint::before {
    content: '';
    display: inline-block;
    width: 28px; height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
  }
}
