/*
Theme Name: nxlex Consulting
Theme URI: https://nxlex.com
Author: nxlex Consulting
Author URI: https://nxlex.com
Description: Professional NCLEX consulting theme for international nurses seeking USA and Canada nursing licensure. Features dynamic navigation, animated hero, services, courses, blog, and contact functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nxlex
Tags: business, consulting, education, medical, professional, dark, one-column, two-columns, custom-header, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1a3050;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0a7a6f;
  --gold: #d4a853;
  --gold-light: #f0c97a;
  --gold-dark: #b8922e;
  --cream: #faf7f2;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --text-dark: #0a1628;
  --text-body: #374151;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.25s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover { color: var(--teal-light); }

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { line-height: 1.75; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-pad { padding: 6rem 5%; }
.section-pad-sm { padding: 4rem 5%; }

.text-center { text-align: center; }
.text-white { color: var(--white); }

/* ============================================================
   SECTION TAG / BADGE
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(13,148,136,0.35);
  background: rgba(13,148,136,0.06);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag.gold {
  color: var(--gold);
  border-color: rgba(212,168,83,0.35);
  background: rgba(212,168,83,0.06);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

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

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,83,0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,168,83,0.15);
  transition: all var(--transition);
}

#masthead.scrolled {
  background: rgba(10,22,40,0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-logo-text em {
  font-style: normal;
  color: var(--gold);
}

.site-logo-img {
  height: 40px;
  width: auto;
}

/* Primary Nav */
#primary-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#primary-menu li { position: relative; }

#primary-menu > li > a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-page-ancestor > a {
  color: var(--gold);
  background: rgba(212,168,83,0.08);
}

/* Dropdown */
#primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-xl);
}

#primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#primary-menu .sub-menu a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition);
}

#primary-menu .sub-menu a:hover {
  color: var(--gold);
  background: rgba(212,168,83,0.08);
}

/* Nav CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--teal-light);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.4);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#page { padding-top: 72px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--navy);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 8%;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13,148,136,0.14) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: 25%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,83,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle 8s ease-in-out infinite;
}

.hero-particle:nth-child(2) { left: 15%; top: 30%; animation-delay: -2s; background: var(--gold); }
.hero-particle:nth-child(3) { left: 80%; top: 20%; animation-delay: -4s; }
.hero-particle:nth-child(4) { left: 60%; top: 70%; animation-delay: -1s; background: var(--gold); }
.hero-particle:nth-child(5) { left: 40%; top: 85%; animation-delay: -3s; }
.hero-particle:nth-child(6) { left: 90%; top: 60%; animation-delay: -5s; background: var(--gold); }

@keyframes float-particle {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 0.8; }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(13,148,136,0.12);
  border: 1px solid rgba(13,148,136,0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(13,148,136,0.4); }
  50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(13,148,136,0); }
}

.hero-badge span {
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-content h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.hero-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(12px);
  position: relative;
  animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-card-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212,168,83,0.45);
  white-space: nowrap;
}

.hero-card-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.hero-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.hero-card > p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  transition: all var(--transition);
}

.hero-feature:hover {
  background: rgba(13,148,136,0.12);
  border-color: rgba(13,148,136,0.25);
}

.hero-feature-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-feature span {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 5rem 8% 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(13,148,136,0.18) 0%, transparent 65%);
  pointer-events: none;
}

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

.page-hero h1 {
  color: var(--white);
  margin: 1.25rem 0;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1.5rem;
}

.breadcrumb a { color: var(--teal-light); }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   MISSION SECTION
   ============================================================ */
.mission-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 6rem 8%;
  background: var(--white);
}

.mission-intro .section-tag { display: block; }
.mission-intro h2 { margin-bottom: 1.5rem; }
.mission-intro p {
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 1rem;
}

.mission-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  border-left: 3px solid var(--teal);
  transition: all var(--transition);
}

.mission-card:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.mission-card h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.mission-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-section {
  padding: 6rem 8%;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-tag { display: inline-block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(13,148,136,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(13,148,136,0.2), rgba(13,148,136,0.08));
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--navy);
  padding: 4.5rem 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,148,136,0.1) 0%, transparent 70%);
}

.stat-item { position: relative; z-index: 1; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 6rem 8%;
  background: var(--white);
}

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

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: all var(--transition);
}

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

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.15;
  position: absolute;
  top: 0.25rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-stars span {
  color: var(--gold);
  font-size: 0.9rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 0.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.testimonial-role {
  color: var(--teal);
  font-size: 0.8rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 5.5rem 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* ============================================================
   SERVICES PAGE — detailed list
   ============================================================ */
.services-detail {
  padding: 6rem 8%;
  background: var(--white);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.service-row:last-child { border-bottom: none; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-row-icon {
  font-size: 4rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.service-row h3 {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.service-row p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.service-visual-block {
  background: linear-gradient(135deg, var(--navy), rgba(13,148,136,0.35));
  border-radius: var(--radius-lg);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.service-visual-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(13,148,136,0.2) 0%, transparent 60%);
}

/* Approach steps */
.approach-section {
  padding: 6rem 8%;
  background: var(--cream);
  text-align: center;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.step-card { text-align: center; }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(13,148,136,0.4);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}

.step-card:hover .step-number {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: scale(1.1);
}

.step-card h4 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================================
   COURSES PAGE
   ============================================================ */
.offerings-section {
  padding: 6rem 8%;
  background: var(--white);
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.offering-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.07);
  text-align: center;
  transition: all var(--transition);
}

.offering-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.offering-icon {
  font-size: 2.75rem;
  margin-bottom: 1.1rem;
  line-height: 1;
  display: block;
}

.offering-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.offering-card p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* How it works steps */
.how-section {
  padding: 6rem 8%;
  background: var(--cream);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3.5rem;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(13,148,136,0.2));
}

.how-step { text-align: center; }

.how-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.how-step:hover .how-step-num {
  background: var(--teal);
  transform: scale(1.1);
}

.how-step h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.how-step p {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Pricing */
.pricing-section {
  padding: 6rem 8%;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.pricing-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.07);
  transition: all var(--transition);
  position: relative;
}

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

.pricing-card.featured {
  background: var(--navy);
  border-color: var(--teal);
  transform: scale(1.04);
}

.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing-card.featured h3,
.pricing-card.featured .pricing-price { color: var(--white); }

.pricing-card.featured .pricing-sub,
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.7); }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.2rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pricing-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-sub {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--gray-700);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-section {
  padding: 6rem 8%;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

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

.blog-card-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img { transform: scale(1.06); }

.blog-card-thumb.no-image { background: linear-gradient(135deg, var(--navy), rgba(13,148,136,0.5)); }

.blog-card-body { padding: 1.5rem; }

.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  border: 1px solid rgba(13,148,136,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  font-weight: 600;
}

.blog-card p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.blog-meta {
  color: var(--gray-400);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gray-400);
  border-radius: 50%;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 6rem 8%;
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--teal);
  transition: all var(--transition);
}

.value-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-card h4 { color: var(--navy); margin-bottom: 0.5rem; }
.value-card p { color: var(--gray-500); font-size: 0.875rem; line-height: 1.65; }

.team-section {
  padding: 6rem 8%;
  background: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

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

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border: 3px solid rgba(13,148,136,0.2);
}

.team-role {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.team-card h3 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1.2rem; }
.team-card p { color: var(--gray-500); font-size: 0.875rem; line-height: 1.75; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 8%;
  background: var(--white);
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--gray-500); line-height: 1.8; margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(13,148,136,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.contact-detail:hover .contact-icon {
  background: var(--teal);
  transform: scale(1.05);
}

.contact-detail-text strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-detail-text span {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-wrapper {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.form-wrapper h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.form-wrapper > p {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

input::placeholder,
textarea::placeholder { color: var(--gray-400); }

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-notice {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.form-notice.success {
  background: rgba(13,148,136,0.1);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--navy);
  border-top: 1px solid rgba(212,168,83,0.15);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4.5rem 8% 3rem;
}

.footer-brand .site-logo-text { display: block; margin-bottom: 1.25rem; }

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,168,83,0.1);
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: 1.5rem;
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  list-style: revert;
}

.entry-content blockquote {
  border-left: 4px solid var(--teal);
  padding-left: 1.5rem;
  color: var(--gray-500);
  font-style: italic;
}

.widget { margin-bottom: 2rem; }
.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal);
}

/* Single post */
.single-hero {
  background: var(--navy);
  padding: 5rem 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.single-hero h1 { color: var(--white); margin: 1rem 0; }
.single-hero .post-meta { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

.single-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 5%;
}

/* 404 */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 5%;
}

.error-404 .error-num {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--teal);
  opacity: 0.15;
  line-height: 1;
}

.error-404 h2 { margin-bottom: 1rem; }
.error-404 p { color: var(--gray-500); margin-bottom: 2rem; }

/* Search results */
.search-results-section { padding: 6rem 8%; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination .page-numbers {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,0.12);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .hero-section { padding: 4rem 5%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .stats-band { padding: 3.5rem 5%; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-wrapper { padding: 0 5%; }
  #primary-navigation { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }

  #primary-navigation.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    padding: 2rem 5%;
    z-index: 999;
    overflow-y: auto;
  }

  #primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  #primary-menu > li > a {
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
  }

  #primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }

  .mobile-nav-cta {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 5% 4rem;
    gap: 0;
  }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-stat-num { font-size: 1.6rem; }

  /* Sections */
  .mission-section,
  .about-mission { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2,1fr); padding: 3rem 5%; }
  .stat-num { font-size: 2.1rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 2rem; }
  .service-row.reverse { direction: ltr; }
  .service-visual-block { height: 200px; }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .offerings-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 5%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 5% 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem 5%; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .services-section,
  .testimonials-section,
  .pricing-section,
  .offerings-section,
  .how-section,
  .blog-section,
  .services-detail,
  .approach-section,
  .team-section { padding: 4rem 5%; }

  .cta-section { padding: 4rem 5%; }
  .page-hero { padding: 4rem 5% 3rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}
