/* eMaestro Learning - Corporate professional theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #8B1538;
  --primary-dark: #6B0F2A;
  --primary-light: #A91D47;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #FAFBFC;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #868E96;
  --gray-600: #495057;
  --gray-800: #212529;
  --gray-900: #161A1D;
  --max-width: 1140px;
  --header-height: 70px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

/* Header - clean corporate nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo span { color: var(--gray-800); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-main a {
  padding: 10px 14px;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-main a:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--gray-300);
  margin: 0 4px;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius);
  margin-left: 6px;
  font-size: 0.875rem;
  padding: 8px 16px !important;
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-divider { display: none; }
  .nav-main .nav-cta { margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-main.open { display: flex; }
  .nav-main a { padding: 12px 16px; }
  .nav-cta { margin: 8px 0 0 !important; text-align: center; }
}

/* Hero with background image */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  background-color: var(--gray-900);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,26,29,0.88) 0%, rgba(22,26,29,0.5) 50%, rgba(22,26,29,0.3) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.0625rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary);
}
.hero .btn-primary:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
}
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

/* Hero image variants - stock imagery */
.hero-home {
  background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600');
}
.hero-about {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600');
  min-height: 340px;
  padding: 70px 0 80px;
}
.hero-students {
  background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1600');
  min-height: 340px;
  padding: 70px 0 80px;
}
.hero-corporates {
  background-image: url('https://images.unsplash.com/photo-1560472354-b33ff0c44a43?w=1600');
  min-height: 340px;
  padding: 70px 0 80px;
}
.hero-courses {
  background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600');
  min-height: 340px;
  padding: 70px 0 80px;
}

/* Main content */
.main-content {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-hero {
  padding: 0;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--gray-900); }
h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--gray-900);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  font-weight: 600;
}
h3 {
  font-size: 1.125rem;
  color: var(--gray-800);
  margin-bottom: 10px;
  font-weight: 600;
}

.lead {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: inherit;
}
.btn:hover { opacity: 0.95; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Cards - no icons, clean corporate */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.card h3 {
  margin-top: 0;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
  margin-bottom: 12px;
}
.card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* CTA blocks */
.cta-block {
  background: var(--primary);
  color: var(--white);
  padding: 52px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 48px 0;
}
.cta-block h2 { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.cta-block p { color: rgba(255,255,255,0.92); margin-bottom: 24px; font-size: 1rem; }
.cta-block .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.cta-block .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Lists */
.syllabus-list, .course-list {
  list-style: none;
}
.syllabus-list li, .course-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
  color: var(--gray-600);
}
.syllabus-list li:last-child, .course-list li:last-child { border-bottom: none; }
.syllabus-list li::before, .course-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Forms */
.form-section {
  max-width: 540px;
  margin: 0 auto 48px;
  padding: 40px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--gray-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-actions { margin-top: 28px; }
.form-actions .btn { width: 100%; }
.form-message {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
  font-size: 0.9375rem;
}
.form-message.success { background: #E8F5E9; color: #2E7D32; display: block; }
.form-message.error { background: #FFEBEE; color: #C62828; display: block; }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 48px 0 28px;
  margin-top: auto;
  font-size: 0.9375rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-grid p { color: var(--gray-500); line-height: 1.5; }
.footer-grid a {
  color: var(--gray-500);
  display: block;
  padding: 4px 0;
  font-size: 0.9375rem;
}
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  text-align: center;
  color: var(--gray-500);
}

/* Page title - interior pages */
.page-title {
  padding: 56px 0 40px;
  background: var(--gray-50);
  margin-bottom: 0;
  border-bottom: 1px solid var(--gray-200);
}
.page-title h1 { margin-bottom: 10px; }
.page-title .lead { margin-bottom: 0; color: var(--gray-600); }

/* Hero-style page title (with image) */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 64px 0 56px;
  background-color: var(--gray-900);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,26,29,0.85) 0%, rgba(22,26,29,0.4) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero .lead { color: rgba(255,255,255,0.88); margin-bottom: 0; }

/* Course syllabus sections */
.course-syllabus {
  margin-bottom: 36px;
}
.course-syllabus h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
  border: none;
  padding: 0;
}
.course-syllabus ul {
  margin-left: 20px;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}
.course-syllabus ul li { margin-bottom: 6px; }

/* Stats - minimal */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  padding: 32px 0;
}
.stats-row .stat {
  text-align: center;
}
.stats-row .stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.stats-row .stat span { font-size: 0.875rem; color: var(--gray-600); }
