/*
Theme Name:  IStepExcel EduPro
Theme URI:   https://trainings.istepexcel.com
Author:      IStepExcel
Author URI:  https://istepexcel.com
Description: A professional IT training management theme with virtual classrooms, batch management, faculty & student portals, and a Zoom-like meeting room. Built for trainings.istepexcel.com on Hostinger. Phases 1–9 complete.
Version:     1.9.0
Requires at least: 6.0
Tested up to:      6.6
Requires PHP:      8.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       istepexcel-edupro
Tags:              education, e-learning, lms, courses, training, meetings, recording, responsive
*/

/* ============================================================
   MODULE 1.3 — DESIGN TOKENS & BRANDING
   ============================================================ */
:root {
  /* Brand Colors */
  --primary:         #0a2d6e;   /* Deep Navy       */
  --primary-mid:     #1040a0;
  --primary-light:   #1a4db8;
  --accent:          #f7a800;   /* IStepExcel Gold */
  --accent-dark:     #d68f00;
  --accent-light:    #ffc83d;

  /* Semantic Colors */
  --success:  #16a34a;
  --warning:  #d97706;
  --danger:   #dc2626;
  --info:     #0891b2;

  /* Neutrals */
  --dark:     #0f172a;
  --body-text:#334155;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --light-bg: #f4f7fb;
  --white:    #ffffff;

  /* Typography */
  --font-heading: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,45,110,.08), 0 1px 2px rgba(10,45,110,.06);
  --shadow-md:  0 4px 16px rgba(10,45,110,.10);
  --shadow-lg:  0 8px 32px rgba(10,45,110,.14);
  --shadow-xl:  0 16px 56px rgba(10,45,110,.18);

  /* Transitions */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  --container-pad: 20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 var(--space-md);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .9rem; }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   MODULE 1.5 — LAYOUT SYSTEM
   ============================================================ */
.ise-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.ise-container--wide  { max-width: 1400px; }
.ise-container--narrow { max-width: 840px; }

.ise-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.ise-col { flex: 1 1 0; }
.ise-col-auto { flex: 0 0 auto; }

.ise-section {
  padding: var(--space-3xl) 0;
}
.ise-section--sm { padding: var(--space-xl) 0; }
.ise-section--lg { padding: 120px 0; }

/* Grid helpers */
.ise-grid { display: grid; gap: var(--space-lg); }
.ise-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ise-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ise-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .ise-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ise-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ise-grid-4, .ise-grid-3, .ise-grid-2 { grid-template-columns: 1fr; }
  :root { --space-3xl: 56px; }
}

/* ============================================================
   MODULE 1.4 — HEADER
   ============================================================ */
#ise-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10,45,110,.08);
  transition: box-shadow var(--transition);
}

#ise-header.scrolled {
  box-shadow: 0 4px 24px rgba(10,45,110,.13);
}

.ise-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

/* Logo */
.ise-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.ise-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -1px;
}

.ise-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.ise-logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.ise-logo-tagline {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Navigation */
.ise-nav { display: flex; align-items: center; gap: 4px; }
.ise-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  transition: all var(--transition);
  white-space: nowrap;
}
.ise-nav a:hover,
.ise-nav a.active {
  color: var(--primary);
  background: rgba(10, 45, 110, 0.06);
}

/* Nav CTA */
.ise-nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Hamburger */
.ise-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.ise-hamburger:hover { background: var(--light-bg); }
.ise-hamburger span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.ise-mobile-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 12px 32px rgba(10,45,110,.12);
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
  z-index: 998;
}
.ise-mobile-nav.open { display: flex; }
.ise-mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--body-text);
  font-size: 15px;
  border-bottom: 1px solid var(--light-bg);
}
.ise-mobile-nav a:last-child { border-bottom: none; }
.ise-mobile-nav a:hover { background: var(--light-bg); color: var(--primary); }

@media (max-width: 900px) {
  .ise-nav,
  .ise-nav-cta { display: none; }
  .ise-hamburger { display: flex; }
}

/* ============================================================
   MODULE 1.4 — FOOTER
   ============================================================ */
#ise-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
}

.ise-footer-main {
  padding: var(--space-3xl) 0 var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.ise-footer-brand .ise-logo-name { color: var(--white); }
.ise-footer-brand .ise-logo-tagline { color: rgba(255,255,255,.4); }
.ise-footer-brand p {
  margin-top: var(--space-md);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.ise-footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.ise-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: all var(--transition);
}
.ise-footer-social a:hover {
  background: var(--accent);
  color: var(--primary);
}

.ise-footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.ise-footer-col ul li { margin-bottom: 8px; }
.ise-footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ise-footer-col ul li a::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}
.ise-footer-col ul li a:hover { color: var(--accent); }

.ise-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--space-sm);
}
.ise-footer-contact-item span:first-child {
  color: var(--accent);
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.ise-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.ise-footer-bottom a { color: var(--accent); }

@media (max-width: 900px) {
  .ise-footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
@media (max-width: 560px) {
  .ise-footer-main { grid-template-columns: 1fr; }
  .ise-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.ise-btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.ise-btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10,45,110,.25);
}

.ise-btn--accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.ise-btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247,168,0,.35);
}

.ise-btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.ise-btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.ise-btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.ise-btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.ise-btn--sm { padding: 7px 16px; font-size: 12px; }
.ise-btn--lg { padding: 14px 32px; font-size: 16px; }

.ise-btn--icon { padding: 10px; border-radius: 50%; width: 42px; height: 42px; }

/* ============================================================
   CARDS & BADGES
   ============================================================ */
.ise-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ise-card__body { padding: var(--space-lg); }
.ise-card__header { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border); }
.ise-card__footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border); background: var(--light-bg); }

.ise-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.ise-badge--primary { background: rgba(10,45,110,.1); color: var(--primary); }
.ise-badge--accent  { background: rgba(247,168,0,.15); color: var(--accent-dark); }
.ise-badge--success { background: rgba(22,163,74,.1); color: var(--success); }
.ise-badge--danger  { background: rgba(220,38,38,.1); color: var(--danger); }
.ise-badge--info    { background: rgba(8,145,178,.1); color: var(--info); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.ise-section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}
.ise-section-heading .ise-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
  padding: 5px 14px;
  background: rgba(247,168,0,.12);
  border-radius: var(--radius-full);
}
.ise-section-heading h2 { margin-bottom: var(--space-sm); }
.ise-section-heading p { color: var(--muted); font-size: 16px; }

/* ============================================================
   ALERTS
   ============================================================ */
.ise-alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--space-md);
  font-size: 14px;
}
.ise-alert--success { background: #f0fdf4; border-color: var(--success); color: #166534; }
.ise-alert--danger  { background: #fef2f2; border-color: var(--danger); color: #991b1b; }
.ise-alert--info    { background: #ecfeff; border-color: var(--info); color: #155e75; }
.ise-alert--warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }

/* ============================================================
   FORMS
   ============================================================ */
.ise-form-group { margin-bottom: var(--space-md); }
.ise-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.ise-form-group label .required { color: var(--danger); margin-left: 2px; }

.ise-input,
.ise-select,
.ise-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.ise-input:focus,
.ise-select:focus,
.ise-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,77,184,.12);
}
.ise-textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   LOADER & TRANSITIONS
   ============================================================ */
.ise-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ise-spin 0.7s linear infinite;
}
@keyframes ise-spin { to { transform: rotate(360deg); } }

.ise-fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ise-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ADMIN BAR COMPENSATION
   ============================================================ */
body.admin-bar #ise-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar #ise-header { top: 46px; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent-dark); }
.text-muted   { color: var(--muted); }
.text-white   { color: var(--white); }
.text-sm      { font-size: 13px; }

.bg-primary   { background: var(--primary); }
.bg-light     { background: var(--light-bg); }
.bg-dark      { background: var(--dark); }
.bg-accent    { background: var(--accent); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

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

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #ise-header, #ise-footer, .ise-hamburger { display: none; }
  body { font-size: 12pt; color: #000; }
}
