/* ==========================================================================
   MAXWELL LEADERSHIP EXECUTIVE THEME STYLESHEET
   ========================================================================== */

:root {
  --color-dark: #0f172a;
  --color-dark-card: #1e293b;
  --color-gold: #d97706;
  --color-gold-light: #fbbf24;
  --color-gold-bg: rgba(217, 119, 6, 0.1);
  --color-gray-bg: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-dark: #1e293b;
  --color-text-muted: #64748b;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-gray-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.text-gold { color: var(--color-gold) !important; }
.bg-dark { background-color: var(--color-dark) !important; color: var(--color-white) !important; }
.bg-dark h2, .bg-dark h3 { color: var(--color-white) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-white);
}
.btn-gold:hover {
  background-color: #b45309;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
}
.btn-outline:hover {
  background-color: var(--color-gold-bg);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand Avatar Image */
.brand-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.brand-avatar-img:hover {
  transform: scale(1.05);
  border-color: var(--color-gold-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  display: block;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.05rem;
}
.brand-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--color-gold-light);
  letter-spacing: 1.5px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-item {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-item:hover, .nav-item.active {
  color: var(--color-gold-light);
}
.badge-new {
  background-color: #ef4444;
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  vertical-align: super;
}
.nav-actions {
  display: flex;
  gap: 12px;
}

/* Mobile Toggle Button & Drawer Actions */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

/* Tab Page Control */
.page-content {
  display: none;
}
.page-content.active {
  display: block;
}

/* Page Header Banner */
.page-header {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 60px 24px;
}
.page-header h1 { color: white; font-size: 2.5rem; margin: 10px 0; }
.page-header p { color: #94a3b8; max-width: 600px; margin: 0 auto; }

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--color-dark) 0%, #1e293b 100%);
  color: var(--color-white);
  padding: 80px 24px 100px;
  text-align: center;
}
.gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold-bg);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}
.stats-banner {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--color-gold-light); }
.stat-label { font-size: 0.85rem; color: #cbd5e1; }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.1); }

/* Section Containers */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-gold);
  display: block;
  margin-bottom: 8px;
}
.section-header h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-header p { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* ABOUT SECTIONS (Maxwell & Dr. Daniel T. Haile) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid.reverse-layout {
  grid-template-columns: 1fr 1fr;
}
.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin-bottom: 18px;
}
.bg-dark .lead-text {
  color: #f1f5f9 !important;
}
.about-content-column p {
  margin-bottom: 20px;
  color: #475569;
}
.bg-dark .about-content-column p {
  color: #94a3b8;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.highlight-item i {
  font-size: 1.6rem;
  margin-top: 4px;
}
.highlight-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.highlight-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Trainer Credentials List */
.trainer-credentials {
  list-style: none;
  margin: 24px 0 32px;
}
.trainer-credentials li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* Trainer Call to Action Button Group */
.trainer-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

/* Image Column Visual Displays - Strictly Constrained */
.about-image-column {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

.logo-card {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 auto !important;
}
.brand-display-logo {
  width: 100%;
  max-height: 240px;
  height: auto;
  object-fit: contain;
}

/* Strictly Capped Card and Photo rules */
.trainer-photo-card {
  position: relative !important;
  width: 100% !important;
  max-width: 320px !important; /* Forces max width on online production server */
  margin: 0 auto !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(217, 119, 6, 0.3);
  box-sizing: border-box !important;
}

.trainer-full-photo {
  width: 100% !important;
  max-width: 320px !important;
  height: 340px !important; /* Locks height permanently */
  max-height: 340px !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
}

.trainer-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
  padding: 24px 16px 16px;
  color: #ffffff;
  text-align: center;
}
.trainer-badge strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}
.trainer-badge span {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-gray-bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
}
.card-icon {
  width: 50px;
  height: 50px;
  background: var(--color-gold-bg);
  color: var(--color-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.course-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.course-card p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 20px; }
.card-highlights { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.card-highlights li { font-size: 0.85rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.course-duration { font-size: 0.8rem; color: var(--color-text-muted); }

/* Corporate Booking Section & Forms */
.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.booking-points { margin-top: 32px; }
.point-item { display: flex; gap: 16px; margin-bottom: 20px; }
.point-item i { font-size: 1.5rem; margin-top: 4px; }
.booking-card {
  background: var(--color-dark-card);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}
.booking-card h3 { color: white; margin-bottom: 20px; font-size: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: #cbd5e1; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* Telephone Input with Country Code Selector */
.tel-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tel-input-wrapper:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.country-code-select {
  background-color: #1e293b;
  border: none;
  border-right: 1px solid #334155;
  padding: 12px 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
  outline: none;
  cursor: pointer;
  max-width: 155px;
  height: 100%;
  font-family: inherit;
}

.country-code-select:focus {
  outline: none;
  border-color: #334155;
}

.tel-input-wrapper input[type="tel"] {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 12px;
  font-size: 0.9rem;
  color: white;
  width: 100%;
}

.tel-input-wrapper input[type="tel"]::placeholder {
  color: #64748b;
}

/* Upcoming Events Grid & Filters */
.event-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-gold);
  color: white;
  border-color: var(--color-gold);
}
.events-grid {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.event-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.event-card-header {
  background: var(--color-dark);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.event-date-badge {
  background: var(--color-gold);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.event-type-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}
.event-card-body { padding: 24px; flex-grow: 1; }
.event-card-body h3 { font-size: 1.25rem; margin-bottom: 12px; }
.event-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; }
.event-meta div { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.event-card-footer {
  padding: 16px 24px;
  background: var(--color-gray-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-price { font-weight: 800; font-size: 1.1rem; color: var(--color-dark); }

/* Trainee Portal */
.portal-grid {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.portal-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.status-badge.live { color: #22c55e; font-size: 0.85rem; font-weight: 600; }
.progress-bar-container { margin: 20px 0 28px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; }
.progress-bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--color-gold); }

.video-player-mockup {
  background: #000;
  height: 240px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}
.play-icon { font-size: 3rem; color: var(--color-gold-light); cursor: pointer; margin-bottom: 8px; }
.resource-files { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.resource-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.pdf-icon { color: #ef4444; font-size: 1.5rem; }
.word-icon { color: #3b82f6; font-size: 1.5rem; }
.download-icon { margin-left: auto; color: var(--color-text-muted); }

/* Assessment Sidebar Tool */
.quiz-q { margin-bottom: 16px; font-size: 0.85rem; }
.rating-input { display: flex; gap: 12px; margin-top: 6px; }
.rating-input label { font-size: 0.8rem; cursor: pointer; }
.quiz-result {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-gold-bg);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
}
.hidden { display: none; }

/* Modals */
.modal-backdrop {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-backdrop.active { display: flex; }
.modal-box {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
}

/* Footer */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 60px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a:hover { color: var(--color-gold-light); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  font-size: 0.8rem;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Base Mobile Overrides (< 992px) */
@media screen and (max-width: 992px) {
  .nav-container {
    padding: 0 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
    border-bottom: 2px solid var(--color-gold);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-nav-actions {
    display: flex;
  }

  .about-grid,
  .about-grid.reverse-layout,
  .courses-grid,
  .events-grid,
  .portal-grid,
  .booking-wrapper {
    grid-template-columns: 1fr !important;
    flex-direction: column;
    gap: 36px;
  }

  .about-image-column {
    width: 100% !important;
    justify-content: center !important;
  }

  .trainer-photo-card {
    max-width: 300px !important; /* Strictly caps card width */
  }

  .trainer-full-photo {
    height: 320px !important;
    max-height: 320px !important;
  }

  .trainer-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .trainer-cta .btn, .trainer-cta a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Tablet & Mobile Screens (< 768px) */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-banner {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .stat-divider {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .tel-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .country-code-select {
    width: 100% !important;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #334155;
  }

  .modal-box {
    width: 95% !important;
    max-width: 95vw !important;
    padding: 20px !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
  }
}

/* Extra Small Phones (< 480px) */
@media screen and (max-width: 480px) {
  .brand-title {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  .event-filter-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .filter-btn {
    flex: 0 0 auto;
  }
}