/* 
 * Vanguard Language Academy & Visa Consultant - Consolidated Global Stylesheet
 * Brand Palette: Primary Red (#C41E3A), Charcoal (#111111), Light Gray (#F8F9FA)
 * Typography: Poppins (400, 500, 600, 700)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #C41E3A;
  --primary-hover: #A0182E;
  --primary-light: #FDF2F4;
  --primary-rgb: 196, 30, 58;
  --dark: #111111;
  --dark-light: #1A1A1A;
  --muted: #555555;
  --light-gray: #F8F9FA;
  --border-color: #EAEAEA;
  --bg-white: #FFFFFF;
  
  /* Trust/Success colors */
  --whatsapp: #25D366;
  --whatsapp-hover: #20BA56;
  --gold: #D4AF37;
  --gold-light: #FFFDF0;

  /* Shadows & Transitions */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-red: 0 15px 35px rgba(196, 30, 58, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --max-width: 1200px;
  --border-radius: 12px;
}

/* CSS Reset & Core Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

/* Prevent horizontal scroll without breaking fixed positioning on mobile */
.site-wrapper {
  overflow-x: hidden;
  position: relative;
}

/* SPA Routing Transitions */
.spa-view {
  display: none;
  animation: viewFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spa-view.active {
  display: block;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.25rem;
  position: relative;
  margin-bottom: 2.5rem;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Shared Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-bg {
  background-color: var(--light-gray);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-header p {
  font-size: 1.125rem;
}

/* Buttons & CTA Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 0.5rem;
}

.btn-solid {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.btn-solid:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.35);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--bg-white);
}

.btn-dark:hover {
  background-color: var(--dark-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Header & Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
  height: 70px;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05) rotate(-3deg);
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* HERO SECTION styles */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f4f5f8 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(196, 30, 58, 0.1);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.owner-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 380px;
  width: 100%;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.owner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.owner-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 1;
}

.owner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verified-stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--bg-white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.owner-info {
  text-align: center;
}

.owner-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.owner-title {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.owner-location {
  font-size: 0.85rem;
  color: var(--muted);
}

.world-map-bg {
  position: absolute;
  top: 10%;
  left: -20%;
  width: 140%;
  height: 80%;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
}

/* TWO SERVICES SECTION (Split Screen Design) */
.services-split {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service-card {
  background-color: var(--light-gray);
  border-radius: 20px;
  padding: 3.5rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 30, 58, 0.15);
}

.service-card.card-academy:hover {
  box-shadow: 0 20px 45px rgba(196, 30, 58, 0.1);
}

.service-card.card-consultant:hover {
  box-shadow: 0 20px 45px rgba(17, 17, 17, 0.08);
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-tagline {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.card-features {
  margin-bottom: 2.5rem;
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.feature-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* WHY CHOOSE VANGUARD (4 columns) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
  background-color: var(--primary);
  color: var(--bg-white);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* OUR SERVICES (Detailed breakdowns & Tabs) */
.detailed-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  background-color: var(--light-gray);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.services-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.detailed-service-item {
  background-color: var(--light-gray);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.detailed-service-item:hover {
  background-color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(196, 30, 58, 0.1);
}

.service-item-icon {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.service-item-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.service-item-text p {
  font-size: 0.875rem;
}

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

.visa-country-grid {
  margin: 2rem 0;
  grid-template-columns: repeat(3, 1fr);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.country-card {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2.25rem 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.country-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(196,30,58,0.03) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.country-card:hover::after {
  opacity: 1;
}

.country-flag {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
  display: inline-block;
}

.country-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  transition: var(--transition-smooth);
}

.country-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.country-card:hover .country-flag {
  transform: scale(1.25) rotate(4deg);
}

.country-card:hover .country-name {
  color: var(--primary);
}

/* TESTIMONIALS SLIDER SECTION */
.testimonials-slider-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 2rem;
  padding: 1.5rem 0.5rem;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 1.333rem);
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testimonial-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 30, 58, 0.1);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.testimonial-quote {
  font-size: 0.975rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(196, 30, 58, 0.15);
  text-transform: uppercase;
}

.testimonial-details h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.testimonial-details span {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.slider-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-red);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
  width: 25px;
  border-radius: 5px;
}

/* VERIFICATION & TRUST SIGNALS */
.trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.trust-badge-card {
  background-color: var(--light-gray);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  border: 2px dashed rgba(196, 30, 58, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.trust-badge-card:hover {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.badge-seal {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, var(--gold-light) 0%, #FFF8D2 100%);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  position: relative;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2);
  transition: var(--transition-smooth);
}

.trust-badge-card:hover .badge-seal {
  transform: rotate(360deg) scale(1.05);
}

.badge-seal i {
  color: var(--gold);
  font-size: 2.25rem;
}

.badge-seal::before {
  content: '★ VERIFIED ★';
  position: absolute;
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  width: 100%;
  text-align: center;
  bottom: 12px;
}

.badge-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.badge-owner {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.badge-description {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CONTACT SECTION layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.contact-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-card p {
  margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--dark);
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

/* Info Cards & Maps */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-details-box {
  background-color: var(--light-gray);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-text {
  /* Prevent long email addresses from overflowing the card on small screens */
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0; /* required for overflow-wrap to work inside flex containers */
}

.info-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-text p, .info-text a {
  font-size: 0.95rem;
  color: var(--muted);
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-text a:hover {
  color: var(--primary);
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER SECTION */
.footer {
  background-color: var(--dark);
  color: #B0B0B0;
  padding: 5rem 0 2rem 0;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-about .logo {
  color: var(--bg-white);
  margin-bottom: 1.25rem;
}

.footer-about p {
  color: #B0B0B0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-links ul {
  display: grid;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #777777;
}

.footer-copyright a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--bg-white);
}

@media (max-width: 768px) {
  .footer-copyright {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* =====================================================
   FLOATING ACTION BUTTONS — Bulletproof Mobile Fixed
   ===================================================== */
.floating-actions {
  /* Anchored to the viewport, never to a scroll container */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  /* Highest possible stacking context — above SPA views, nav, modals */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  /* Force GPU layer — prevents mobile browsers from compositing
     fixed elements incorrectly inside overflow:hidden ancestors */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  /* Always visible — never let any parent hide these */
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  /* Ensure each button is also GPU-composited */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.08) translateZ(0);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn-phone {
  background-color: var(--primary);
}

.btn-phone:hover {
  background-color: var(--primary-hover);
}

.float-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, right 0.2s ease;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  right: 70px;
}

/* ── Tablet & Mobile Responsive (≤ 768px) ────────────── */
@media (max-width: 768px) {
  .floating-actions {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.7rem;
  }
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
  /* Hide text tooltips on touch devices — they trigger on tap, not hover */
  .float-tooltip {
    display: none;
  }
}

/* ── Small Mobile Responsive (≤ 480px) ──────────────── */
@media (max-width: 480px) {
  .floating-actions {
    bottom: 1rem;
    right: 1rem;
    gap: 0.6rem;
  }
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }
}

/* ── Very Small Screens (≤ 360px) ───────────────────── */
@media (max-width: 360px) {
  .floating-actions {
    bottom: 0.75rem;
    right: 0.75rem;
  }
  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}


/* SUBPAGE SPECIFIC STYLING (Academy, Visa, About, Contact inside SPA) */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--bg-white);
  padding: 9rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}

.page-hero h1 {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: #B0B0B0;
  font-size: 1.15rem;
  max-width: 700px;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumbs a {
  color: #B0B0B0;
  cursor: pointer;
}

.breadcrumbs a:hover {
  color: var(--bg-white);
}

/* Service Detail Pages grids */
.service-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.service-main-content h3 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem 0;
}

.service-main-content h3:first-of-type {
  margin-top: 0;
}

.service-main-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.detailed-features-list {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.detailed-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
}

.detailed-features-list li i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.detailed-features-list li strong {
  color: var(--dark);
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-box {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.sidebar-box.highlight {
  background-color: var(--primary-light);
  border-color: rgba(196, 30, 58, 0.15);
}

.sidebar-box h4 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.sidebar-contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Expert About Us Layout Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.about-overtitle {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-overtitle::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.about-content h2 {
  text-align: left;
  font-size: 2.35rem;
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

.about-content h2::after {
  left: 0;
  transform: none;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Stats Dashboard Box */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.about-stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.about-stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.about-stat-desc {
  font-size: 0.775rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Image Card Styling */
.about-img-box {
  position: relative;
}

.about-img-wrapper-expert {
  position: relative;
  background-color: var(--light-gray);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  transition: var(--transition-smooth);
}

.about-img-wrapper-expert::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 2px dashed rgba(196, 30, 58, 0.15);
  border-radius: 24px;
  z-index: -1;
  pointer-events: none;
}

.about-img-wrapper-expert:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(196, 30, 58, 0.12);
  border-color: rgba(196, 30, 58, 0.2);
}

.about-img-frame-expert {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 0.85;
}

.about-img-frame-expert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-img-wrapper-expert:hover .about-img-frame-expert img {
  transform: scale(1.03);
}

.about-badge-expert {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: radial-gradient(circle, var(--gold-light) 0%, #FFF8D2 100%);
  border: 2px solid var(--gold);
  color: var(--dark);
  padding: 1rem 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: var(--transition-smooth);
}

.about-img-wrapper-expert:hover .about-badge-expert {
  transform: scale(1.05);
}

.about-badge-expert .title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.about-badge-expert .name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.15rem;
}

.about-badge-expert .sub {
  font-size: 0.725rem;
  color: var(--muted);
  font-weight: 600;
}

/* ANIMATIONS Definitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(196, 30, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

.btn-solid.pulse {
  animation: pulse 2s infinite;
}

/* RESPONSIVE DESIGN - BREAKPOINTS */

@media (max-width: 1200px) {
  h1 { font-size: 2.5rem; }
  .hero-title { font-size: 3rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-top: 8rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-list-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slide {
    flex: 0 0 100%;
  }
  
  .trust-badges-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 680px;   /* cap width so it doesn't stretch full viewport */
    margin-left: auto;
    margin-right: auto;
  }

  /* Both columns fill the centered grid and align their content centrally */
  .contact-card,
  .contact-info-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .service-details-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    /* Mirror contact-grid centering — cap width and center the stacked layout */
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Sidebar stacks below main content — full width, centered */
  .service-main-content,
  .service-sidebar {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Mobile Nav Bar Layout */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    align-items: flex-start;
  }
  
  .navbar.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
  }
  
  .nav-actions {
    display: none; /* Hide on mobile to avoid layout crowding */
  }
}

@media (max-width: 768px) {
  .section-header h2 { font-size: 1.85rem; }
  .hero-title { font-size: 2.5rem; }
  .service-card { padding: 2.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Contact Section ── */
  .contact-grid {
    gap: 2rem;
  }

  /* ── Service Subpages (Academy / Visa) 768px ── */
  .service-main-content h3 {
    font-size: 1.5rem;
  }
  .service-main-content p {
    font-size: 0.95rem;
  }
  .detailed-features-list li {
    font-size: 0.95rem;
    gap: 0.85rem;
  }
  .sidebar-box {
    padding: 1.75rem;
  }
  .sidebar-box h4 {
    font-size: 1.1rem;
  }
  /* Prevent long email in sidebar from overflowing */
  .sidebar-contact-item span {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    font-size: 0.85rem;
  }
  .contact-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  .contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center; /* center heading to match trust-badges visual style */
  }
  .contact-card > p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center; /* center intro text only; form inputs remain left-aligned */
  }
  .form-group {
    margin-bottom: 1.25rem;
  }
  .form-label {
    font-size: 0.82rem;
  }
  .form-control {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
  textarea.form-control {
    min-height: 100px;
  }
  /* Info sidebar */
  .info-details-box {
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  .info-item {
    gap: 1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
  }
  .info-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .info-text h4 {
    font-size: 0.9rem;
  }
  .info-text p,
  .info-text a {
    font-size: 0.875rem;
  }
  /* Map */
  .map-wrapper {
    height: 220px;
    border-radius: 16px;
  }

  /* ── Subpages Responsive 768px ── */
  .page-hero {
    padding: 7rem 0 3.5rem 0;
  }
  .page-hero h1 {
    font-size: 2.25rem !important;
  }
  .page-hero p {
    font-size: 1rem !important;
  }
  .visa-country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-img-box {
    max-width: 450px;
    margin: 2rem auto 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .service-card { padding: 1.75rem; }
  .card-title { font-size: 1.6rem; }
  .country-grid { grid-template-columns: 1fr; }

  /* ── Contact Section (small phones) ── */
  .contact-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-card h3 {
    font-size: 1.25rem;
  }
  .form-control {
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
  }
  .form-label {
    font-size: 0.8rem;
  }
  .info-details-box {
    padding: 1.25rem;
  }
  .info-item {
    flex-direction: row;
    gap: 0.85rem;
  }
  .info-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .info-text h4 {
    font-size: 0.85rem;
  }
  .info-text p,
  .info-text a {
    font-size: 0.82rem;
  }
  .map-wrapper {
    height: 190px;
  }

  /* ── Subpages Responsive 480px ── */
  .page-hero {
    padding: 6rem 0 3rem 0;
  }
  .page-hero h1 {
    font-size: 1.85rem !important;
  }
  .page-hero p {
    font-size: 0.9rem !important;
  }
  .visa-country-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-badge-expert {
    bottom: -10px;
    right: 10px;
    padding: 0.75rem 1.25rem;
  }

  /* ── Service Subpages (Academy / Visa) 480px ── */
  .service-main-content h3 {
    font-size: 1.3rem;
  }
  .service-main-content p {
    font-size: 0.9rem;
    margin-bottom: 1.15rem;
  }
  .detailed-features-list {
    gap: 1rem;
  }
  .detailed-features-list li {
    font-size: 0.9rem;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .sidebar-box {
    padding: 1.25rem;
  }
  .sidebar-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* ── Very Small Screens (≤ 360px) ───────────────────── */
@media (max-width: 360px) {
  .contact-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .contact-card h3 {
    font-size: 1.15rem;
  }
  .form-control {
    padding: 0.7rem 0.85rem;
    font-size: 0.84rem;
  }
  .info-details-box {
    padding: 1rem;
  }
  .info-icon {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }
  .map-wrapper {
    height: 170px;
  }
}
