:root {
  --mefcam-primary: #00256f;
  --mefcam-primary-dark: #00174c;
  --mefcam-primary-light: #1a3c8f;
  --mefcam-secondary: #006496;
  --mefcam-secondary-light: #e1f0fa;
  --mefcam-accent: #FFC107;
  --mefcam-accent-hover: #e0a800;
  --mefcam-accent-soft: #fff8e1;
  --mefcam-surface: #faf8ff;
  --mefcam-card-bg: #ffffff;
  --mefcam-dark: #1a1b21;
  --mefcam-muted: #6a6a6a;
  --mefcam-border: #e2e4ed;
  --mefcam-shadow-sm: 0 2px 8px rgba(0, 37, 111, 0.06);
  --mefcam-shadow-md: 0 8px 24px rgba(0, 37, 111, 0.09);
  --mefcam-shadow-lg: 0 16px 40px rgba(0, 37, 111, 0.12);
  --mefcam-radius: 12px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--mefcam-dark);
  background-color: var(--mefcam-surface);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--mefcam-primary);
  letter-spacing: -0.02em;
}

/* Navbar Customization */
.mefcam-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 37, 111, 0.08);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.mefcam-navbar .navbar-brand img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.mefcam-navbar .navbar-brand:hover img {
  transform: scale(1.03);
}

.mefcam-navbar .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #2b303a;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mefcam-navbar .nav-link:hover,
.mefcam-navbar .nav-link.active {
  color: var(--mefcam-primary);
  background-color: rgba(0, 37, 111, 0.05);
}

.mefcam-topbar {
  background-color: var(--mefcam-primary-dark);
  color: #dbe1ff;
  font-size: 0.82rem;
  padding: 0.4rem 0;
}

.mefcam-topbar a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mefcam-topbar a:hover {
  color: var(--mefcam-accent);
}

/* Buttons */
.btn-mefcam-primary {
  background-color: var(--mefcam-primary);
  border-color: var(--mefcam-primary);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 37, 111, 0.25);
}

.btn-mefcam-primary:hover,
.btn-mefcam-primary:focus {
  background-color: var(--mefcam-primary-light);
  border-color: var(--mefcam-primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 37, 111, 0.35);
}

.btn-mefcam-accent {
  background-color: var(--mefcam-accent);
  border-color: var(--mefcam-accent);
  color: var(--mefcam-primary-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-mefcam-accent:hover,
.btn-mefcam-accent:focus {
  background-color: var(--mefcam-accent-hover);
  border-color: var(--mefcam-accent-hover);
  color: var(--mefcam-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}

.btn-mefcam-outline-primary {
  color: var(--mefcam-primary);
  border: 2px solid var(--mefcam-primary);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-mefcam-outline-primary:hover {
  background: var(--mefcam-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-mefcam-outline-light {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-mefcam-outline-light:hover {
  background: #ffffff;
  color: var(--mefcam-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-slider-item {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-slider-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0, 23, 76, 0.92) 0%, rgba(0, 37, 111, 0.82) 60%, rgba(0, 100, 150, 0.7) 100%);
  z-index: 1;
}

.hero-slider-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 193, 7, 0.2);
  color: var(--mefcam-accent);
  border: 1px solid rgba(255, 193, 7, 0.5);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

/* Stat Counter Banner */
.stats-banner {
  background: linear-gradient(90deg, #00256f 0%, #003a94 100%);
  color: #ffffff;
  padding: 3rem 0;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--mefcam-radius);
  box-shadow: var(--mefcam-shadow-lg);
}

.stat-box {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--mefcam-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  color: #dbe1ff;
  font-weight: 500;
  margin-top: 0.35rem;
}

/* Cards & Elevation */
.mefcam-card {
  background: var(--mefcam-card-bg);
  border: 1px solid var(--mefcam-border);
  border-radius: var(--mefcam-radius);
  box-shadow: var(--mefcam-shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mefcam-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mefcam-shadow-md);
  border-color: rgba(0, 37, 111, 0.2);
}

/* Arm Cards */
.arm-card {
  border-radius: var(--mefcam-radius);
  border: 1px solid var(--mefcam-border);
  background: #ffffff;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.arm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--mefcam-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.arm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mefcam-shadow-md);
  border-color: var(--mefcam-primary);
}

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

.arm-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mefcam-surface);
  color: var(--mefcam-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.arm-card:hover .arm-icon-wrapper {
  background: var(--mefcam-primary);
  color: var(--mefcam-accent);
}

/* Course Card */
.course-card .badge-price {
  background-color: var(--mefcam-accent-soft);
  color: #732c00;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.course-card .badge-level {
  background-color: var(--mefcam-secondary-light);
  color: var(--mefcam-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* Download App Section */
.download-section {
  background: linear-gradient(135deg, #00174c 0%, #00256f 50%, #004b72 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--mefcam-shadow-lg);
}

.download-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #ffffff;
}

.phone-mockup-frame {
  max-width: 360px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
  border-radius: 36px;
  transition: transform 0.4s ease;
}

.phone-mockup-frame:hover {
  transform: translateY(-8px) rotate(-1deg);
}

/* Footer Styling */
.mefcam-footer {
  background-color: #001438;
  color: #d1d5e5;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.mefcam-footer h5 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.mefcam-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--mefcam-accent);
  border-radius: 2px;
}

.mefcam-footer a {
  color: #a8b0cc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mefcam-footer a:hover {
  color: var(--mefcam-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: #8c95b3;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
  border-color: var(--mefcam-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 37, 111, 0.15);
}

/* Badge System */
.badge-opportunity {
  background-color: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.badge-mission-pass {
  background: linear-gradient(45deg, #FFC107, #ff9800);
  color: #00174c;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
}

/* Page Transitions */
.page-transition {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Quick Chatbot */
.chatbot-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--mefcam-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--mefcam-shadow-lg);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-fab:hover {
  transform: scale(1.1) rotate(-10deg);
  background-color: var(--mefcam-primary-light);
  color: var(--mefcam-accent);
}
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  background: white;
  border-radius: var(--mefcam-radius);
  box-shadow: var(--mefcam-shadow-lg);
  z-index: 1050;
  overflow: hidden;
  display: none;
  border: 1px solid var(--mefcam-border);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.chatbot-window.show {
  display: flex;
  flex-direction: column;
}
.chatbot-header {
  background: var(--mefcam-primary);
  color: white;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-body {
  padding: 1rem;
  height: 250px;
  overflow-y: auto;
  background: var(--mefcam-surface);
  font-size: 0.9rem;
}
.chatbot-input-area {
  padding: 0.75rem;
  background: white;
  border-top: 1px solid var(--mefcam-border);
}
.chat-msg { margin-bottom: 0.75rem; max-width: 85%; padding: 0.6rem 0.8rem; border-radius: 12px; }
.chat-msg.bot { background: white; border: 1px solid var(--mefcam-border); align-self: flex-start; }
.chat-msg.user { background: var(--mefcam-primary); color: white; align-self: flex-end; margin-left: auto; }

