/* ============================================
   Mainland Safety Training - Complete Stylesheet
   Modern, Professional Safety Training Design
   ============================================ */

/* ---- Google Fonts loaded via HTML head ---- */
/* Inter (body) + Montserrat (headings) */

/* ---- CSS Variables ---- */
:root {
  --navy: #1a2e4a;
  --navy-light: #243b5e;
  --navy-dark: #0f1d30;
  --navy-hover: #15253d;
  --orange: #cc2936;
  --orange-hover: #a8212c;
  --orange-light: #e63946;
  --orange-glow: rgba(204, 41, 54, 0.35);
  --white: #ffffff;
  --off-white: #f8f9fb;
  --light-gray: #f1f4f8;
  --gray: #6b7280;
  --medium-gray: #9ca3af;
  --dark-gray: #374151;
  --border: #e2e6ed;
  --border-light: #eef1f6;
  --green: #16a34a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--dark-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--orange); }

ul, ol { list-style: none; padding: 0; margin: 0; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--dark-gray); }

.section-subtitle {
  color: var(--gray);
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.required { color: var(--orange); }

/* ---- Fade-in Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--orange-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.logo-text .highlight,
.logo span {
  color: var(--orange);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a {
  display: block;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--dark-gray);
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--orange);
  background: rgba(204,41,54,0.06);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: var(--transition-fast);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  background: var(--white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--dark-gray);
  border-radius: 6px;
  transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: var(--light-gray);
  color: var(--orange);
  padding-left: 20px;
}

/* Nav CTA */
.nav-cta {
  padding: 10px 24px;
  font-size: 0.9rem;
  margin-left: 12px;
  border-radius: 50px;
}

.nav-cta:hover {
  color: var(--white);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 10;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--light-gray);
  padding: 14px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb a {
  color: var(--gray);
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--orange); }

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--medium-gray);
}

.breadcrumb span:last-child {
  color: var(--navy);
  font-weight: 600;
}

/* Breadcrumb list variant (used in some pages) */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.breadcrumb-list li::after {
  content: '\203A';
  margin-left: 10px;
  color: var(--medium-gray);
}

.breadcrumb-list li:last-child::after { content: ''; }
.breadcrumb-list li:last-child a { color: var(--orange); font-weight: 600; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(204,41,54,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container,
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  max-width: 780px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero p,
.hero-description {
  font-size: 1.12rem;
  max-width: 640px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  backdrop-filter: blur(4px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.city-hero-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

/* ============================================
   COURSE INFO CARDS
   ============================================ */
.course-info {
  padding: 0;
  margin-top: -50px;
  position: relative;
  z-index: 5;
  margin-bottom: 30px;
}

.info-cards,
.course-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.info-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 6px;
}

.info-value,
.info-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.info-detail,
.info-label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ============================================
   ABOUT / INTRO SECTION
   ============================================ */
.about-section {
  padding: 80px 0 60px;
}

.about-section h2 {
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 900px;
  color: var(--dark-gray);
}

/* About page grid */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}

/* Stats */
.stats-section {
  padding: 70px 0;
  background: var(--light-gray);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 25px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

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

/* ============================================
   FEATURES / BENEFITS GRID
   ============================================ */
.features-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.features-section h2 {
  margin-bottom: 0.75rem;
  text-align: center;
}

.features-section > .container > .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(204,41,54,0.1) 0%, rgba(204,41,54,0.05) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================
   CURRICULUM SECTION
   ============================================ */
.curriculum-section {
  padding: 80px 0;
}

.curriculum-section h2 {
  margin-bottom: 0.75rem;
  text-align: center;
}

.curriculum-section > .container > .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.curriculum-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.curriculum-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.curriculum-item:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.curriculum-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(204,41,54,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.curriculum-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.curriculum-item p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Old li-based curriculum (some pages) */
.curriculum-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.curriculum-list li:hover {
  border-color: var(--orange);
}

.curriculum-list li::before {
  content: '\2713';
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================
   WHO NEEDS / INDUSTRIES SECTION
   ============================================ */
.who-needs-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.who-needs-section h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.who-needs-section > .container > p {
  max-width: 800px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 2rem;
}

.industry-item {
  background: var(--white);
  padding: 20px 16px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  line-height: 1.4;
}

.industry-item:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 80px 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(204,41,54,0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
  line-height: 1.45;
}

.faq-question:hover { color: var(--orange); }

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  transition: var(--transition);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(204,41,54,0.08);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 28px 22px;
  color: var(--gray);
  line-height: 1.75;
  font-size: 0.95rem;
}

.faq-answer a { color: var(--orange); font-weight: 500; }
.faq-answer a:hover { text-decoration: underline; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.testimonials-section h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.testimonials-section > .container > .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--orange-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.stars { color: var(--orange-light); margin-bottom: 15px; font-size: 1.1rem; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Avatar variant */
.testimonial-avatar {
  width: 45px;
  height: 45px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-name { font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 0.85rem; color: var(--gray); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204,41,54,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 0.5rem;
}

.contact-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  text-align: left;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* Nested form inside .contact-form */
.contact-form form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: var(--off-white);
  color: var(--dark-gray);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--medium-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(204,41,54,0.1);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact page grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(204,41,54,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   CITY / INTERNAL LINKS SECTION
   ============================================ */
.city-links-section,
.internal-links {
  padding: 70px 0;
  background: var(--off-white);
}

.city-links-section h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.city-links-section > .container > .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.city-links-grid,
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.city-link-card {
  display: block;
  padding: 28px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
}

.city-link-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.city-link-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.city-link-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0;
}

.links-grid a {
  display: block;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  font-size: 0.93rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  color: var(--navy);
}

.links-grid a:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 3rem;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--medium-gray);
  margin-bottom: 10px;
  font-weight: 500;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--navy);
}

.blog-card-body h3 a:hover {
  color: var(--orange);
}

.blog-card-body p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.read-more {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more::after {
  content: '\2192';
  transition: var(--transition-fast);
}

.read-more:hover {
  color: var(--orange-hover);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ============================================
   BLOG ARTICLE
   ============================================ */
.blog-article {
  padding: 50px 0;
}

.blog-article .container,
.blog-article .blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-article h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 15px;
}

.blog-meta {
  color: var(--gray);
  font-size: 0.93rem;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}

.blog-article h2 {
  margin-top: 45px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.blog-article h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.blog-article p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-article ul, .blog-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.blog-article ol { list-style: decimal; }

.blog-article li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.blog-article blockquote {
  border-left: 4px solid var(--orange);
  padding: 20px 28px;
  background: var(--light-gray);
  margin: 30px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}

.blog-sidebar-cta {
  background: linear-gradient(135deg, var(--light-gray) 0%, rgba(204,41,54,0.05) 100%);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  border-left: 4px solid var(--orange);
}

.blog-sidebar-cta h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.blog-sidebar-cta p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* Related posts */
.related-posts { margin-top: 50px; }
.related-posts h3 { margin-bottom: 16px; }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li { margin-bottom: 10px; }
.related-posts a { color: var(--orange); font-weight: 500; }
.related-posts a:hover { text-decoration: underline; }

/* ============================================
   RELATED COURSES SECTION
   ============================================ */
.related-courses {
  padding: 60px 0;
  background: var(--off-white);
}

.related-courses h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  text-decoration: none;
  color: var(--navy);
}

.course-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--orange);
}

.course-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(204,41,54,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.course-card-title {
  font-weight: 600;
  font-size: 0.93rem;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  padding: 20px 0;
  background: var(--navy-dark);
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-bar strong {
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-col h4,
.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.01em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo .logo-icon {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 1.05rem;
}

.footer-col p,
.footer-about p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
}

.footer-site-link {
  color: var(--orange) !important;
  font-weight: 600;
  font-size: 0.93rem;
}

.footer-site-link:hover { text-decoration: underline; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover,
.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-col .contact-info-list li {
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
}

.footer-col .contact-info-list li strong {
  color: rgba(255,255,255,0.85);
  min-width: 55px;
}

.footer-col .contact-info-list li a {
  color: rgba(255,255,255,0.6);
}

.footer-col .contact-info-list li a:hover {
  color: var(--orange);
}

/* Footer contact variant */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: var(--orange);
}

.footer-bottom a:hover { text-decoration: underline; }

/* ============================================
   FLOATING ACTION BUTTONS (Call + Email)
   ============================================ */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  color: var(--white);
}

.floating-btn-phone {
  background: #22c55e;
}

.floating-btn-phone:hover {
  background: #16a34a;
}

.floating-btn-email {
  background: var(--orange);
}

.floating-btn-email:hover {
  background: var(--orange-hover);
}

.floating-btn .tooltip {
  position: absolute;
  right: 68px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-btn:hover .tooltip {
  opacity: 1;
}

@media (max-width: 768px) {
  .floating-actions {
    bottom: 20px;
    right: 16px;
    gap: 12px;
  }
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  .floating-btn .tooltip {
    display: none;
  }
}

/* ============================================
   HERO WITH BACKGROUND IMAGE
   ============================================ */
.hero-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 100px 0 110px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,29,48,0.92) 0%, rgba(26,46,74,0.85) 50%, rgba(36,59,94,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-trust {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ============================================
   ABOUT GRID (image + text side by side)
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image-badge .stat-number {
  color: var(--white);
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0;
}

.about-image-badge .stat-label {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================================
   IMAGE BREAK SECTION (parallax-style)
   ============================================ */
.image-break {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 450px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.image-break-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,29,48,0.82) 0%, rgba(26,46,74,0.7) 100%);
  z-index: 1;
}

/* ============================================
   CTA BUTTONS ROW
   ============================================ */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================
   SECTION HELPERS (used by some pages)
   ============================================ */
.section { padding: 70px 0; }
.section-gray { background: var(--light-gray); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { color: var(--gray); font-size: 1.08rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid,
  .testimonials-grid,
  .blog-grid,
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .city-links-grid,
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-cards,
  .course-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .curriculum-list {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links > li > a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: transparent;
    min-width: auto;
  }

  .dropdown-menu::before { display: none; }

  .dropdown-menu li a {
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  /* Sections */
  .hero {
    padding: 60px 0 70px;
  }

  .course-info {
    margin-top: -35px;
  }

  .about-section,
  .features-section,
  .curriculum-section,
  .who-needs-section,
  .faq-section,
  .testimonials-section,
  .contact-section,
  .city-links-section,
  .section {
    padding: 50px 0;
  }

  .cta-banner {
    padding: 50px 0;
  }

  .features-grid,
  .testimonials-grid,
  .blog-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    height: 320px;
  }

  .about-image-badge {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 340px;
  }

  .image-break {
    min-height: 350px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .city-links-grid,
  .links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .info-cards,
  .course-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 20px 14px;
  }

  .info-value,
  .info-number {
    font-size: 1.6rem;
  }

  .city-links-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}
