/*
  Markiety IT Institute (MIT) Stylesheet
  - Brand palette: Blue #4F7CFF, Aqua #00C9A7, Dark #0B0D12, Light #F7F8FC
  - Typography: Poppins for headings, Inter for body copy
  - Supports light & dark theme via data-theme attribute on <body>
  - Designed to be responsive, accessible, and W3C-compliant
*/

:root {
  --blue: #4f7cff;
  --aqua: #00c9a7;
  --dark: #0b0d12;
  --light: #f7f8fc;
  --text: #1f2937;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --shadow: 0 20px 45px rgba(79, 124, 255, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-size: 520px;
  color-scheme: light;
}

body[data-theme="dark"] {
  --bg: #0f172a;
  --text: #e2e8f0;
  --text-soft: #cbd5f5;
  --muted: #94a3b8;
  --border: #1e293b;
  --light: #141f36;
  --shadow: 0 24px 56px rgba(0, 30, 80, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(79, 124, 255, 0.35);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 2.4vw + 1.5rem, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 1.4vw + 1.2rem, 2.5rem);
}

h3 {
  font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem);
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 4vw + 2rem, 6rem) 0;
}

.section.muted {
  background: var(--light);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 2vw + 1rem, 3rem);
}

.section-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-actions.center {
  justify-content: center;
}

.grid.two {
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
}

@media (min-width: 768px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2vw + 1rem, 2rem);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card.highlight {
  border: 1px solid rgba(79, 124, 255, 0.18);
}

.meta-list,
.checklist,
.footer-links,
.social-links,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li::before {
  content: '✔';
  color: var(--aqua);
  font-weight: 600;
  margin-right: 0.5rem;
}

.icon-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.icon-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.icon-card .icon {
  font-size: 1.8rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(79, 124, 255, 0.65);
}

.btn-light {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
}

.btn.white {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(79, 124, 255, 0.25);
  border-radius: 50%;
  background: rgba(79, 124, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.icon-btn:hover {
  background: rgba(79, 124, 255, 0.18);
  transform: rotate(-5deg);
}

.icon-btn .icon-sun,
.icon-btn .icon-moon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-btn .icon-sun::before,
.icon-btn .icon-moon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  mask-size: contain;
  mask-repeat: no-repeat;
  background: currentColor;
}

.icon-btn .icon-sun::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath stroke-linecap='round' d='m3 12 1.5 0M12 3l0 1.5m8.5 7.5-1.5 0M12 19.5l0 1.5M5.636 5.636 6.75 6.75M17.25 17.25l1.114 1.114M5.636 18.364 6.75 17.25M17.25 6.75l1.114-1.114'/%3E%3C/svg%3E");
}

.icon-btn .icon-moon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79Z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .icon-btn .icon-sun {
  opacity: 1;
}

body[data-theme="light"] .icon-btn .icon-moon {
  opacity: 0;
  transform: translateY(8px);
}

body[data-theme="dark"] .icon-btn .icon-sun {
  opacity: 0;
  transform: translateY(-8px);
}

body[data-theme="dark"] .icon-btn .icon-moon {
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(79, 124, 255, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(79, 124, 255, 0.24);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.brand .logo {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.brand-copy {
  display: grid;
  gap: 0.2rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-links a,
.nav-links button {
  font-weight: 500;
  color: var(--muted);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--blue);
  background: rgba(79, 124, 255, 0.12);
}

.nav-links .is-active {
  color: var(--blue);
  background: rgba(79, 124, 255, 0.18);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(79, 124, 255, 0.25);
  background: rgba(79, 124, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--blue);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links.open {
  display: grid;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    margin-left: auto;
  }

  .primary-nav .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 2rem));
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 124, 255, 0.12);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 1.25rem 1.5rem 1.5rem;
    display: grid;
    gap: 0.5rem;
    transform-origin: top right;
    transform: scaleY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
  }

  .primary-nav.open .nav-links {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    margin: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: relative;
  }
}

.hero {
  position: relative;
  padding: clamp(4rem, 6vw + 2rem, 7.5rem) 0 clamp(3rem, 4vw + 1.5rem, 5.5rem);
  background: radial-gradient(circle at 20% 20%, rgba(79, 124, 255, 0.22), transparent 55%), linear-gradient(135deg, rgba(79, 124, 255, 0.08), rgba(0, 201, 167, 0.12));
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(79, 124, 255, 0.22), transparent 58%);
  pointer-events: none;
  transition: background 0.15s ease;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.eyebrow {
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.hero-stats dt {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.media-card {
  position: relative;
  padding: clamp(1.8rem, 2vw + 1.2rem, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.hero-visual {
  width: min(420px, 100%);
  height: auto;
}

.media-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
}

.media-note span {
  display: block;
}

.media-note .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: 0 0 18px rgba(79, 124, 255, 0.6);
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

.testimonial .name {
  font-weight: 600;
  color: var(--blue);
}

.cta {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: #ffffff;
}

.cta .lead,
.cta p,
.cta h2 {
  color: #ffffff;
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  background: var(--dark);
  color: #e2e8f0;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-text {
  color: #cbd5f5;
}

.footer-links a,
.social-links a {
  color: #e2e8f0;
}

.social-links a {
  position: relative;
}

.footer-base {
  border-top: 1px solid rgba(226, 232, 240, 0.18);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  text-align: center;
  color: #94a3b8;
}

.footer-brand {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-brand a {
  color: var(--aqua);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-brand a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.page-hero {
  padding: clamp(3.5rem, 5vw + 1.8rem, 5rem) 0;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.12), rgba(0, 201, 167, 0.12));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-field {
  flex: 1;
  min-width: 180px;
}

.filters input,
.filters select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.filters input:focus,
.filters select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(79, 124, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: grid;
  gap: 0.6rem;
}

.form-field.checkbox {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-field span,
.form-field label {
  font-weight: 600;
  color: var(--text);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.span-2 {
  grid-column: span 2;
}

.form-section {
  grid-column: span 2;
  background: var(--light);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.form-subhead {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.bkash-panel {
  grid-column: span 2;
  border: 1.5px solid rgba(79, 124, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.05);
  display: grid;
  gap: 0.9rem;
}

.bkash-panel h3 {
  margin: 0.2rem 0;
}

.bkash-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.bkash-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
}

.bkash-account {
  font-size: 1.2rem;
  font-weight: 600;
}

.bkash-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.5;
}

.bkash-warning {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #b91c1c;
  font-weight: 600;
}

.bkash-tutorial {
  display: grid;
  gap: 0.75rem;
}

.video-wrap {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b0d12;
}

.video-wrap video,
.video-wrap iframe {
  width: 100%;
  display: block;
}

.video-placeholder {
  padding: 1.25rem 1.5rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.video-placeholder code {
  background: rgba(79, 124, 255, 0.15);
  color: var(--aqua);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

body[data-theme="dark"] .video-placeholder {
  color: #e2e8f0;
}

body[data-theme="dark"] .bkash-panel {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

body[data-theme="dark"] .bkash-panel .muted,
body[data-theme="dark"] .bkash-panel label {
  color: #cbd5f5;
}

body[data-theme="dark"] .bkash-amount {
  color: #93c5fd;
}

body[data-theme="dark"] .bkash-warning {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

body[data-theme="dark"] .bkash-row {
  border-color: rgba(148, 163, 184, 0.2);
}

/* Admission Success Card */
.admission-success-card {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(79, 124, 255, 0.1));
  border: 2px solid #00C9A7;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.success-header {
  font-size: 1.25rem;
  color: #047857;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.success-icon {
  font-size: 1.5rem;
}

.success-credentials {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}

.credential-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.credential-item:last-child {
  border-bottom: none;
}

.credential-label {
  font-weight: 500;
  color: #475569;
}

.credential-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  font-family: monospace;
}

.credential-value.pin-highlight {
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.success-login-link {
  margin: 1rem 0;
}

.success-note {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.75rem;
}

body[data-theme="dark"] .success-credentials {
  background: #1e293b;
}

body[data-theme="dark"] .credential-label {
  color: #94a3b8;
}

body[data-theme="dark"] .credential-value {
  color: #f1f5f9;
}

body[data-theme="dark"] .credential-item {
  border-color: rgba(148, 163, 184, 0.2);
}

.admission-doc {
  background: #ffffff;
  color: #0b0d12;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.admission-doc__head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.admission-doc__head h2 {
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.doc-meta {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

.photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.photo-frame {
  width: 120px;
  height: 140px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
  padding: 0.5rem;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.photo-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #475569;
  text-align: center;
}

.admission-doc.classic {
  padding: 0;
}

.doc-classic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
  gap: 1rem;
}

.doc-head-col {
  flex: 1;
}

.doc-head-logo {
  text-align: left;
}

.doc-head-center {
  text-align: center;
}

.doc-head-center .tagline {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.doc-head-photo {
  text-align: right;
}

.doc-head-photo {
  text-align: right;
}

.doc-head-photo .photo-frame {
  margin-left: auto;
  width: 120px;
  height: 150px;
}

.doc-meta-grid.classic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}

.doc-meta-grid.classic div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.doc-list.official {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-list.official li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.doc-list.official .line-field {
  flex: 1;
  border-bottom: 1px solid #0b0d12;
  display: inline-block;
}

.doc-classic-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.doc-table td {
  border: 1px solid #cbd5f5;
  padding: 0.65rem 0.75rem;
}

.doc-section {
  margin-top: 1.5rem;
}

.doc-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.doc-list li span {
  font-weight: 600;
  color: #0f172a;
}

.doc-declaration {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  line-height: 1.5;
}

.signature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.8rem;
}

.signature-row span {
  flex: 1;
  min-width: 180px;
  border-top: 1px solid #475569;
  padding-top: 0.35rem;
  text-align: center;
  font-size: 0.9rem;
  color: #475569;
}

.official-grid {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  column-gap: 1rem;
  row-gap: 0.4rem;
  margin-top: 0.75rem;
  align-items: center;
}

.official-grid label {
  font-weight: 600;
  color: #0f172a;
}

.official-grid span {
  display: block;
  border-bottom: 1px solid #cbd5f5;
  min-height: 1.2rem;
  letter-spacing: 0.05em;
}

.doc-footer {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #475569;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--light);
  color: var(--muted);
}

.receipt {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.receipt-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.receipt-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.signatures {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
}

.signatures span {
  display: block;
  width: 180px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.map-wrap iframe {
  border: none;
  display: block;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: var(--shadow);
  display: none;
  cursor: pointer;
}

.back-to-top::before {
  content: '↑';
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.back-to-top.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(680px, 100%);
  max-width: 90vw;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(11, 13, 18, 0.65);
  backdrop-filter: blur(8px);
}

.modal-inner {
  display: flex;
  flex-direction: column;
}

.modal-head,
.modal-foot {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-head {
  border-bottom: 1px solid var(--border);
}

/* Modal Close Button */
.modal-head .icon-btn {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}

.modal-head .icon-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: rotate(0);
}

.modal-foot {
  border-top: 1px solid var(--border);
}

.modal-body {
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tab {
  border: none;
  background: var(--light);
  color: var(--muted);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.tab.is-active {
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.tab-panel[hidden] {
  display: none;
}

.dashboard-head {
  margin-bottom: 2.5rem;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: rgba(79, 124, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.table tbody tr:hover {
  background: rgba(79, 124, 255, 0.05);
}

.student-card {
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.92));
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.12);
}

.student-table {
  width: 100%;
  border-collapse: collapse;
}

.student-table thead {
  background: #eef2ff;
}

.student-table th,
.student-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.student-meta {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(79, 124, 255, 0.45);
  border-radius: 999px;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(79, 124, 255, 0.08);
}

.btn-danger {
  background: transparent;
  color: #dc2626;
  border: 1.5px solid rgba(220, 38, 38, 0.4);
  border-radius: 999px;
  box-shadow: none;
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

body[data-theme="dark"] .student-card {
  background: #111a2e;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .student-table thead {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .student-table th {
  color: #f1f5f9;
}

body[data-theme="dark"] .student-table td {
  border-color: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

body[data-theme="dark"] .student-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .student-meta {
  color: #a0aec0;
}

body[data-theme="dark"] .btn-ghost {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

body[data-theme="dark"] .btn-ghost:hover {
  background: rgba(147, 197, 253, 0.12);
}

body[data-theme="dark"] .btn-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

body[data-theme="dark"] .btn-danger:hover {
  background: rgba(248, 113, 113, 0.12);
}

.student-editor .modal-body {
  max-height: 65vh;
  overflow-y: auto;
}

.student-editor .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.student-editor textarea {
  min-height: 84px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
}

.tag.seat-available {
  background: rgba(0, 201, 167, 0.15);
  color: #00c9a7;
}

.tag.seat-soldout {
  background: rgba(248, 113, 113, 0.15);
  color: #dc2626;
}

.seat-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

body[data-theme="dark"] .tag.seat-soldout {
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
}

.mt-lg {
  margin-top: 2rem;
}

.print-area {
  background: #ffffff;
  color: #000000;
  padding: 2rem;
}

/* Small-screen enhancements */
@media (max-width: 720px) {
  .hero-grid {
    text-align: center;
  }

  .hero-media {
    justify-content: center;
  }

  .hero-actions,
  .cta-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .section-actions .btn {
    width: 100%;
    text-align: center;
  }

  .filters {
    flex-direction: column;
  }

  .filters>* {
    width: 100%;
  }

  .form-grid .span-2 {
    grid-column: span 1;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs .tab {
    flex: 0 0 auto;
  }

  .resource-card ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .bkash-panel {
    grid-column: span 1;
  }

  .bkash-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .portal-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .brand {
    align-items: flex-start;
    gap: 0.6rem;
  }

  .hero-stats dt {
    font-size: 1.35rem;
  }

  .course-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .course-meta .tag {
    width: 100%;
    justify-content: center;
  }

  .cta-inner {
    text-align: center;
  }

  .filters input,
  .filters select {
    min-width: 100%;
  }

  .table-wrap {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
  }
}

@media (max-width: 360px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .nav-links a,
  .nav-links button {
    padding: 0.35rem 0.5rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-actions .btn {
    font-size: 0.9rem;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .site-header,
  .site-footer,
  .back-to-top,
  .tabs,
  .panel-actions,
  .header-actions,
  .nav,
  .cta,
  dialog {
    display: none !important;
  }

  .print-area {
    display: block !important;
  }
}

.analytics-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.finance-detail-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 960px) {
  .finance-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.finance-card h3 {
  margin-bottom: 0.25rem;
}

.table.compact th,
.table.compact td {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.finance-card .table-wrap {
  max-height: 320px;
  overflow-y: auto;
}

.chart-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
}

.chart-card canvas {
  width: 100%;
  height: 240px;
  display: block;
}

body[data-theme="dark"] .chart-card {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}

body[data-theme="dark"] .chart-head p,
body[data-theme="dark"] .chart-head h3 {
  color: #e2e8f0;
}

body[data-theme="dark"] .chart-stat span {
  color: #a0aec0;
}

body[data-theme="dark"] .chart-stat strong {
  color: #93c5fd;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.chart-stat {
  text-align: right;
}

.chart-stat span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.chart-stat strong {
  font-size: 1.35rem;
  color: var(--blue);
}

.chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

.sales-dot {
  background: var(--blue);
}

.expense-dot {
  background: var(--aqua);
}

.student-portal {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(79, 124, 255, 0.12), transparent 55%);
}

.portal-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.portal-meta p {
  margin: 0.2rem 0;
}

.portal-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.resource-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.resource-card a {
  color: var(--blue);
}

.portal-info {
  margin-bottom: 1.5rem;
}

.portal-course-access {
  margin-top: 2rem;
}

.portal-course-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .portal-course-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.course-access-card {
  border: 1px solid rgba(79, 124, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
}

.course-access-card.locked {
  opacity: 0.65;
  background: var(--light);
}

.course-access-card.locked .btn {
  pointer-events: auto;
}

.course-status {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}

.course-access-card.locked .course-status {
  color: #ef4444;
}

.course-actions {
  margin-top: 0.5rem;
}

/* ============================================
   Stats Section - MIT by Numbers
   ============================================ */

.stats-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.15);
}

.stat-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  filter: grayscale(0.2);
}

.stat-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   Instructor Cards
   ============================================ */

.card.instructor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card.instructor img {
  transition: transform 0.3s ease;
}

.card.instructor:hover img {
  transform: scale(1.02);
}

.card.instructor h3 {
  margin-bottom: 0.25rem;
  color: var(--blue);
}

.card.instructor .meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card.instructor .meta-list span {
  background: rgba(79, 124, 255, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
}

.card.instructor .social-links a {
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(79, 124, 255, 0.15);
  border: 1px solid rgba(79, 124, 255, 0.3);
  color: var(--text);
  font-weight: 500;
}

.card.instructor .social-links a:hover {
  transform: translateY(-2px);
  background: rgba(79, 124, 255, 0.25);
  border-color: rgba(79, 124, 255, 0.5);
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.2);
}

/* Dark theme improvements */
body[data-theme="dark"] .card.instructor .social-links a {
  background: rgba(79, 124, 255, 0.2);
  border-color: rgba(79, 124, 255, 0.4);
  color: #e2e8f0;
}

body[data-theme="dark"] .card.instructor .social-links a:hover {
  background: rgba(79, 124, 255, 0.3);
  border-color: rgba(79, 124, 255, 0.6);
}


/* Premium World-Class Course Card Styles */
.course-card.premium-card {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.course-card.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(79, 124, 255, 0.15);
  border-color: rgba(79, 124, 255, 0.2);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  /* Aspect ratio */
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card.premium-card:hover .card-img {
  transform: scale(1.08);
}

.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.badge {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-featured {
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
}

.badge-seats {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
}

.badge-seats.available {
  background: rgba(0, 201, 167, 0.9);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card.premium-card:hover .card-overlay {
  opacity: 1;
}

.btn-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-play:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instructor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.instructor-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--muted);
}

.price-new {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}

.btn-enroll {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.3);
}

.btn-enroll:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 124, 255, 0.4);
}

/* Dark Mode Adjustments */
body[data-theme="dark"] .course-card.premium-card {
  border-color: rgba(255, 255, 255, 0.05);
  background: #1e293b;
}

body[data-theme="dark"] .badge-featured {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: rotate(90deg);
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Card Image Clickable */
.card-image-wrap {
  cursor: pointer;
}

.card-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-image-wrap:hover .card-zoom-hint {
  opacity: 1;
  transform: scale(1.1);
}

/* Button Group */
.card-btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-details {
  padding: 8px 14px;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-details:hover {
  background: var(--blue);
  color: white;
}

body[data-theme="dark"] .btn-details {
  border-color: #81a1ff;
  color: #81a1ff;
}

body[data-theme="dark"] .btn-details:hover {
  background: #81a1ff;
  color: #0f172a;
}

/* ============================================
   PREMIUM ADMIN DASHBOARD STYLES
   ============================================ */

/* Admin Dashboard Background */
body[data-page="admin-dashboard"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
}

body[data-page="admin-dashboard"][data-theme="light"] {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

/* Dashboard Header Enhancement */
.dashboard-head {
  margin-bottom: 2rem;
  position: relative;
}

.dashboard-head h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Premium Tab Navigation */
.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

body[data-theme="light"] .tabs {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab {
  padding: 0.85rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tab:hover {
  color: var(--blue);
  background: rgba(79, 124, 255, 0.1);
}

.tab.is-active {
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 124, 255, 0.4);
}

/* Premium Analytics Cards */
.analytics-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chart-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="light"] .chart-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(79, 124, 255, 0.2);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .chart-head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-stat strong {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #00C9A7, #4F7CFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Table Styling */
.table-wrap {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body[data-theme="light"] .table-wrap {
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.table {
  min-width: 900px;
}

.table th {
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.15), rgba(0, 201, 167, 0.1));
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  padding: 1.2rem 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.08), rgba(0, 201, 167, 0.05));
}

/* Premium Action Buttons */
.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.student-actions .btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.student-actions .btn-ghost {
  background: rgba(79, 124, 255, 0.1);
  border: 1px solid rgba(79, 124, 255, 0.3);
}

.student-actions .btn-ghost:hover {
  background: rgba(79, 124, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.25);
}

.student-actions .btn-danger {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.student-actions .btn-danger:hover {
  background: rgba(220, 38, 38, 0.2);
  transform: translateY(-2px);
}

/* Panel Head Actions */
.panel-actions .btn {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.panel-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 124, 255, 0.3);
}

/* ============================================
   PREMIUM STUDENT PORTAL STYLES
   ============================================ */

/* Student Portal Background */
.student-portal {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.student-portal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 201, 167, 0.08) 0%, transparent 40%);
  animation: portalGlow 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes portalGlow {
  0% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(10deg) scale(1.1);
  }
}

body[data-theme="light"] .student-portal {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

body[data-theme="light"] .student-portal::before {
  background: radial-gradient(circle, rgba(79, 124, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 201, 167, 0.05) 0%, transparent 40%);
}

/* Premium Portal Hero */
.portal-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

body[data-theme="light"] .portal-hero {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.portal-hero h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
}

.portal-meta {
  text-align: right;
  padding: 1.5rem;
  background: rgba(79, 124, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(79, 124, 255, 0.2);
}

.portal-meta h3 {
  color: var(--aqua);
  margin: 0.25rem 0;
}

/* Premium Info Card */
.portal-info {
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(0, 201, 167, 0.08));
  border: 1px solid rgba(79, 124, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.portal-info::before {
  content: 'ℹ️';
  font-size: 1.5rem;
}

.portal-info p {
  margin: 0;
}

/* Premium Resource Cards */
.portal-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.resource-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F7CFF, #00C9A7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(79, 124, 255, 0.2);
  border-color: rgba(79, 124, 255, 0.3);
}

.resource-card:hover::before {
  opacity: 1;
}

body[data-theme="light"] .resource-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.resource-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-card h2::before {
  font-size: 1.25rem;
}

.resource-card:nth-child(1) h2::before {
  content: '📚';
}

.resource-card:nth-child(2) h2::before {
  content: '📝';
}

.resource-card:nth-child(3) h2::before {
  content: '🔗';
}

.resource-card:nth-child(4) h2::before {
  content: '📊';
}

.resource-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

body[data-theme="light"] .resource-card li {
  border-color: rgba(0, 0, 0, 0.05);
}

.resource-card li:last-child {
  border-bottom: none;
}

.resource-card li:hover {
  padding-left: 0.5rem;
}

.resource-card a {
  color: var(--aqua);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.resource-card a:hover {
  color: var(--blue);
}

/* Premium Course Access Section */
.portal-course-access {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

body[data-theme="light"] .portal-course-access {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.portal-course-access header {
  margin-bottom: 1.5rem;
}

.portal-course-access h2 {
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Course Access Cards */
.course-access-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.course-access-card:hover {
  border-color: rgba(79, 124, 255, 0.4);
  transform: translateY(-4px);
}

.course-access-card.unlocked {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(79, 124, 255, 0.08));
  border-color: rgba(0, 201, 167, 0.3);
}

.course-access-card.locked {
  opacity: 0.7;
  background: rgba(100, 116, 139, 0.1);
}

body[data-theme="light"] .course-access-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

.course-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.5rem;
}

.course-access-card.unlocked .course-status {
  background: linear-gradient(135deg, #00C9A7, #4F7CFF);
  color: white;
}

.course-access-card.locked .course-status {
  background: rgba(100, 116, 139, 0.2);
  color: var(--muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

.empty-state::before {
  content: '📭';
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Student Portal Login Enhancement */
body[data-page="student-login"] {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-page="student-login"][data-theme="light"] {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

body[data-page="student-login"] .card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
}

body[data-page="student-login"][data-theme="light"] .card {
  background: white;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-page="student-login"] h1 {
  text-align: center;
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Animation for content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-hero,
.portal-info,
.resource-card,
.portal-course-access,
.chart-card,
.tab-panel {
  animation: fadeInUp 0.6s ease forwards;
}

.resource-card:nth-child(1) {
  animation-delay: 0.1s;
}

.resource-card:nth-child(2) {
  animation-delay: 0.2s;
}

.resource-card:nth-child(3) {
  animation-delay: 0.3s;
}

.resource-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Portal Header */
.portal-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

body[data-theme="light"] .portal-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Portal Footer */
.portal-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

body[data-theme="light"] .portal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.portal-footer p {
  margin: 0.25rem 0;
}

.portal-footer a {
  color: var(--aqua);
}

/* Empty Messages */
.empty-message {
  color: var(--muted);
  font-style: italic;
  padding: 1rem 0;
  text-align: center;
}

/* Portal Welcome */
.portal-welcome {
  flex: 1;
}

/* Admin Dashboard Login Screen */
body[data-page="admin-login"] {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
}

body[data-page="admin-login"][data-theme="light"] {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Stat Cards (for dashboard) */
.stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(79, 124, 255, 0.15);
}

body[data-theme="light"] .stat-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Quick actions grid for admin */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.15), rgba(0, 201, 167, 0.1));
  border-color: rgba(79, 124, 255, 0.4);
  transform: translateY(-4px);
}

body[data-theme="light"] .quick-action-btn {
  background: white;
  border-color: rgba(0, 0, 0, 0.08);
}

.quick-action-btn .icon {
  font-size: 2rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .portal-hero {
    flex-direction: column;
    text-align: center;
  }

  .portal-meta {
    text-align: center;
    width: 100%;
  }

  .portal-hero h1 {
    font-size: 1.5rem;
  }

  .dashboard-head h1 {
    font-size: 1.75rem;
  }

  .student-actions {
    flex-direction: column;
  }

  .student-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Login Card Premium Styling */
.login-card {
  text-align: center;
}

.login-logo {
  margin-bottom: 1.5rem;
}

.login-logo img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(79, 124, 255, 0.3);
}

.login-card h1 {
  margin-bottom: 0.5rem;
}

.login-card .form-field {
  text-align: left;
}

.login-card .form-field small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

.login-help {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .login-help {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.login-footer {
  margin-top: 1.5rem;
}

.login-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: var(--blue);
}

/* Required field indicator */
.required {
  color: #dc2626;
  font-weight: 700;
}

/* File input styling */
input[type="file"] {
  padding: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(79, 124, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: var(--blue);
  background: rgba(79, 124, 255, 0.1);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.2);
}

/* Portal Student Photo */
.portal-photo-wrap {
  flex-shrink: 0;
}

.portal-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--aqua);
  box-shadow: 0 8px 25px rgba(0, 201, 167, 0.3);
}

/* Admin Photo Preview */
.current-photo-preview {
  margin-bottom: 1rem;
  text-align: center;
}

.current-photo-preview img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.current-photo-preview p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Admission Form Photo in Invoice */
.invoice-photo {
  width: 35mm;
  height: 45mm;
  object-fit: cover;
  border: 1px solid #0077cc;
  border-radius: 4px;
}

/* =========================================================================
   MAP WRAPPER
   ========================================================================= */
.map-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

/* =========================================================================
   COMPACT BUTTONS
   ========================================================================= */
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

/* =========================================================================
   FAQ SECTION
   ========================================================================= */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(79, 124, 255, 0.4);
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.12);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '×';
  color: var(--aqua);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--text-soft);
  line-height: 1.75;
}

body[data-theme="dark"] .faq-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--border);
}

/* =========================================================================
   WHATSAPP FLOAT BUTTON
   ========================================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waFloat 2.5s ease-in-out infinite;
}

@keyframes waFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
  animation: none;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 72px;
    right: 16px;
  }

  .back-to-top {
    bottom: 148px;
    right: 16px;
  }
}

/* =========================================================================
   FOUNDER SECTION (about.html)
   ========================================================================= */
.founder {
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.04) 0%, transparent 100%);
}

body[data-theme="dark"] .founder {
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.08) 0%, transparent 100%);
}

.founder-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 124, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
}

body[data-theme="light"] .founder-card {
  background: white;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 40px rgba(79, 124, 255, 0.1);
}

.founder-card h3 {
  background: linear-gradient(135deg, #4F7CFF, #00C9A7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================================
   RESPONSIVE MAP IFRAME (contact.html)
   ========================================================================= */
.map-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 400px;
  border: 0;
}

@media (max-width: 768px) {
  /* Removed fixed iframe heights - using aspect-ratio */
}

@media (max-width: 480px) {
  /* Removed fixed iframe heights - using aspect-ratio */
}