/* 
   Groove Seed Coffee School & Academy - Global & Page Styles
   Brand Theme: Modern, Premium, Educational, Inspiring, Community-driven
*/

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

:root {
  /* Color Palette */
  --primary: #103D26; /* Exact Dark Green Background of Logo */
  --secondary: #1A5E3D; /* Medium Forest Green matching the logo palette */
  --accent: #F9B341; /* Exact Golden Yellow Coffee Text of Logo */
  --bg: #F4F7F5; /* Light Minty White */
  --text: #1C2521; /* Dark Forest Charcoal */
  --white: #FFFFFF;
  --gray: #5A6E65;
  --light-gray: #E2EAE6;
  --accent-light: rgba(249, 179, 65, 0.08);
  --primary-light: rgba(16, 61, 38, 0.04);
  --success: #25D366;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(16, 61, 38, 0.04), 0 2px 4px -1px rgba(16, 61, 38, 0.02);
  --shadow-md: 0 12px 20px -3px rgba(16, 61, 38, 0.08), 0 4px 6px -2px rgba(16, 61, 38, 0.04);
  --shadow-lg: 0 24px 30px -5px rgba(16, 61, 38, 0.12), 0 10px 10px -5px rgba(16, 61, 38, 0.04);
  --shadow-premium: 0 40px 60px rgba(16, 61, 38, 0.08);

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  color: #444444;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

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

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

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  gap: 10px;
  letter-spacing: 0.2px;
}

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

.btn-primary:hover {
  background-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-accent:hover {
  background-color: #bfa14c;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header span {
  font-family: var(--font-heading);
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1rem;
  color: #555555;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  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; }

/* ---------------------------------
   1. HEADER & NAVIGATION
------------------------------------ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
  padding: 24px 0;
}

header.scrolled {
  background-color: rgba(16, 61, 38, 0.97); /* Forest Green brand theme background */
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-wrapper {
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: center;
  justify-content: center;
  gap: 5px; /* Space between artwork and text */
  height: 110px; /* Increased height */
  transition: var(--transition);
}

.logo-artwork {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 85px; /* vapour (26px) + cup (59px) */
  width: auto;
  position: relative;
  transition: var(--transition);
}

.logo-vapour {
  height: 26px !important;
  width: auto !important;
  animation: realisticSmoke 5s infinite linear; /* Smooth rising and diffusing white smoke */
  transform-origin: center bottom;
  filter: brightness(0) invert(1) blur(1.2px); /* Convert to pure white and soften edges */
  opacity: 0;
  z-index: 1;
  transition: var(--transition);
}

.logo-cup {
  height: 59px !important;
  width: auto !important;
  animation: cupWobble 6s infinite ease-in-out;
  transform-origin: center bottom;
  margin-top: -2px;
  z-index: 2; /* Sits in front of the rising smoke */
  transition: var(--transition);
}

.logo-text-wrap {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent); /* Typewriter cursor */
  width: 0;
  height: 20px;
  transition: var(--transition);
}

.logo-text-wrap.animating {
  animation: 
    logoTypewriter 2.5s steps(20, end) 0.5s forwards, 
    logoCursorBlink 0.75s step-end infinite,
    removeCursor 0.1s 3.3s forwards;
}

.logo-text-wrap.typed {
  width: 88px; /* Proportional text width */
  border-right: none;
}

.logo-text-img {
  height: 20px !important;
  width: auto !important;
  transition: var(--transition);
}

header.scrolled .logo-wrapper {
  height: 80px;
  gap: 3px;
}

header.scrolled .logo-artwork {
  height: 62px;
}

header.scrolled .logo-vapour {
  height: 19px !important;
}

header.scrolled .logo-cup {
  height: 43px !important;
}

header.scrolled .logo-text-wrap {
  height: 15px;
  border-right: none !important;
  animation: none;
  width: 66px !important;
}

header.scrolled .logo-text-img {
  height: 15px !important;
}

.logo-wrapper:hover .logo-cup {
  transform: scale(1.05);
}

@keyframes realisticSmoke {
  0% {
    transform: translateY(2px) translateX(0) scale(0.9) skewX(0deg);
    opacity: 0;
    filter: brightness(0) invert(1) blur(1.2px);
  }
  15% {
    opacity: 0.65; /* Fade in quickly as it rises from the cup */
  }
  50% {
    transform: translateY(-8px) translateX(-3px) scale(1.08) skewX(-4deg);
    opacity: 0.45;
    filter: brightness(0) invert(1) blur(1.8px);
  }
  80% {
    transform: translateY(-16px) translateX(3px) scale(1.18) skewX(4deg);
    opacity: 0.15;
    filter: brightness(0) invert(1) blur(2.5px);
  }
  100% {
    transform: translateY(-24px) translateX(0) scale(1.25) skewX(0deg);
    opacity: 0;
    filter: brightness(0) invert(1) blur(3px);
  }
}

@keyframes cupWobble {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  20% {
    transform: rotate(0.8deg) translateY(-0.3px);
  }
  40% {
    transform: rotate(-0.8deg) translateY(0.3px);
  }
  60% {
    transform: rotate(0.5deg) translateY(-0.2px);
  }
  80% {
    transform: rotate(-0.5deg) translateY(0.1px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes logoTypewriter {
  from { width: 0; }
  to { width: 88px; }
}

@keyframes logoCursorBlink {
  from, to { border-color: transparent }
  50% { border-color: var(--accent); }
}

@keyframes removeCursor {
  to { border-right-color: transparent; }
}

@media (max-width: 768px) {
  .logo-wrapper {
    height: 90px;
    gap: 4px;
  }
  .logo-artwork {
    height: 68px;
  }
  .logo-vapour {
    height: 20px !important;
  }
  .logo-cup {
    height: 48px !important;
  }
  .logo-text-wrap {
    height: 16px;
  }
  .logo-text-wrap.animating {
    animation: 
      logoTypewriterMobile 3s steps(30, end) 0.5s forwards, 
      logoCursorBlink 0.75s step-end infinite,
      removeCursor 0.1s 3.8s forwards;
  }
  .logo-text-wrap.typed {
    width: 70px;
    border-right: none;
  }
  .logo-text-img {
    height: 16px !important;
  }
  
  header.scrolled .logo-wrapper {
    height: 68px;
    gap: 2px;
  }
  header.scrolled .logo-artwork {
    height: 52px;
  }
  header.scrolled .logo-vapour {
    height: 16px !important;
  }
  header.scrolled .logo-cup {
    height: 36px !important;
  }
  header.scrolled .logo-text-wrap {
    height: 12px;
    animation: none;
    width: 53px !important;
  }
  header.scrolled .logo-text-img {
    height: 12px !important;
  }
}

@keyframes logoTypewriterMobile {
  from { width: 0; }
  to { width: 70px; }
}

.logo-icon {
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  border: 1px solid var(--accent);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
  transition: var(--transition-fast);
}

header:not(.scrolled) .logo-text {
  color: var(--white);
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white); /* White links in both states */
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Adjust header CTA button styling on dark/green backgrounds */
.nav-links .btn-primary {
  background-color: var(--accent);
  color: var(--primary);
}

.nav-links .btn-primary:hover {
  background-color: var(--white);
  color: var(--primary);
}

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

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

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white); /* White toggle bars in both states */
  margin: 6px 0;
  transition: var(--transition);
}

/* ---------------------------------
   2. HERO SECTIONS
------------------------------------ */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

/* Clean overlay pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80%, rgba(249, 179, 65, 0.15) 0%, rgba(16, 61, 38, 0.95) 70%);
  z-index: 1;
}
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background-color: var(--primary);
}

.hero-bg-img-animate {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(10%) contrast(115%) brightness(90%);
  animation: ken-burns 30s ease-in-out infinite alternate;
}

/* Cinematic Ken Burns slow zoom, shift, and rotation */
@keyframes ken-burns {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  50% {
    transform: scale(1.06) translate(-2%, -2%) rotate(1deg);
  }
  100% {
    transform: scale(1.12) translate(-3%, -1%) rotate(-1deg);
  }
}

/* Realistic rising steam overlay */
.steam-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

.steam-line {
  position: absolute;
  bottom: 0;
  width: 100px;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(15px);
  border-radius: 50%;
}

.steam-1 {
  left: 10%;
  animation: rise-and-drift 12s infinite linear;
}

.steam-2 {
  left: 40%;
  animation: rise-and-drift 16s infinite linear 4s;
}

.steam-3 {
  left: 70%;
  animation: rise-and-drift 14s infinite linear 8s;
}

@keyframes rise-and-drift {
  0% {
    transform: translateY(100px) scale(0.6) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  60% {
    opacity: 0.3;
    transform: translateY(-150px) scale(1.2) translateX(30px);
  }
  100% {
    transform: translateY(-400px) scale(2) translateX(-30px);
    opacity: 0;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-tagline {
  color: var(--accent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: inline-block;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero p {
  color: #dfd5cf;
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

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

.hero-circle-outline {
  width: 380px;
  height: 380px;
  border: 2px dashed rgba(249, 179, 65, 0.4);
  border-radius: 50%;
  position: absolute;
  animation: rotateCircle 30s linear infinite;
}

.hero-main-img-wrap {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-premium);
  position: relative;
  z-index: 2;
}

.hero-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-main-img-wrap:hover img {
  transform: scale(1.1);
}

@keyframes rotateCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Inner Page Hero Header */
.inner-hero {
  padding: 160px 0 80px 0;
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 61, 38, 0.98) 0%, rgba(26, 94, 61, 0.9) 100%);
  z-index: 1;
}

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

.inner-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 10px;
  color: #dfd5cf;
  font-size: 0.9rem;
}

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

.breadcrumbs span {
  color: var(--accent);
}

/* ---------------------------------
   3. WHY CHOOSE / FEATURES
------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent);
  transition: var(--transition-fast);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 14px;
}

.feature-card p {
  color: #555555;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------------------------------
   4. FEATURED COURSES
------------------------------------ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
}

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

.course-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-img-wrap img {
  transform: scale(1.08);
}

.course-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.course-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--gray);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.course-card p {
  color: #555555;
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--light-gray);
  padding-top: 20px;
}

.course-fee {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
}

.course-link {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-link:hover {
  color: var(--primary);
}

/* ---------------------------------
   5. TIMELINE / LEARNING JOURNEY
------------------------------------ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 15px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  right: -9px;
  top: 25px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--white), var(--shadow-sm);
  transition: var(--transition);
}

.timeline-item:nth-child(3n+1)::after {
  background-color: var(--primary);
}
.timeline-item:nth-child(3n+2)::after {
  background-color: var(--secondary);
}
.timeline-item:nth-child(3n+3)::after {
  background-color: var(--accent);
}

.timeline-item:hover::after {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--white), 0 0 15px currentColor;
}

.timeline-item:nth-child(3n+1):hover::after {
  color: var(--primary);
}
.timeline-item:nth-child(3n+2):hover::after {
  color: var(--secondary);
}
.timeline-item:nth-child(3n+3):hover::after {
  color: var(--accent);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -9px;
}

.timeline-content {
  padding: 28px;
  background-color: var(--white);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.timeline-item:nth-child(3n+1) .timeline-content {
  border-left: 4px solid var(--primary);
}
.timeline-item:nth-child(3n+2) .timeline-content {
  border-left: 4px solid var(--secondary);
}
.timeline-item:nth-child(3n+3) .timeline-content {
  border-left: 4px solid var(--accent);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.timeline-item:nth-child(3n+1):hover .timeline-content {
  box-shadow: 0 15px 30px rgba(16, 61, 38, 0.08);
}
.timeline-item:nth-child(3n+2):hover .timeline-content {
  box-shadow: 0 15px 30px rgba(26, 94, 61, 0.08);
}
.timeline-item:nth-child(3n+3):hover .timeline-content {
  box-shadow: 0 15px 30px rgba(249, 179, 65, 0.15);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content h3 {
  color: var(--secondary);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--light-gray);
  position: absolute;
  top: 15px;
  right: 20px;
  transition: var(--transition);
  opacity: 0.5;
}

.timeline-item:nth-child(3n+1):hover .timeline-number {
  color: var(--primary);
  opacity: 0.15;
}
.timeline-item:nth-child(3n+2):hover .timeline-number {
  color: var(--secondary);
  opacity: 0.15;
}
.timeline-item:nth-child(3n+3):hover .timeline-number {
  color: var(--accent);
  opacity: 0.2;
}

.timeline-content p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--gray);
  line-height: 1.6;
}

/* Timeline Scroll Reveal Transitions */
@media (min-width: 1024px) {
  .timeline-item.left.reveal {
    transform: translateX(-60px);
    opacity: 0;
  }
  .timeline-item.right.reveal {
    transform: translateX(60px);
    opacity: 0;
  }
  .timeline-item.left.reveal.active,
  .timeline-item.right.reveal.active {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 1023px) {
  .timeline-item.reveal {
    transform: translateY(40px);
    opacity: 0;
  }
  .timeline-item.reveal.active {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------------------------------
   6. STATS / LEARNING JOURNEY
------------------------------------ */
.stats {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #dfd5cf;
  font-weight: 500;
}

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

.testimonials-slider-inner {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--primary);
  position: relative;
  max-width: 600px;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--accent);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

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

.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-fast);
}

.slider-nav-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: transparent;
}

/* ---------------------------------
   8. PHOTO GALLERY (MASONRY & CARDS)
------------------------------------ */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(16, 61, 38, 0.9) 0%, rgba(16, 61, 38, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-overlay span {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------------------------------
   9. BLOG (POST CARD & GRID)
------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.blog-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.08);
}

.blog-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.blog-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.blog-details h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-details p {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* ---------------------------------
   10. CONTACT PAGE & FORM
------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-info-wrap {
  background-color: var(--primary);
  color: var(--white);
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-info-wrap h3 {
  color: var(--white);
  margin-bottom: 30px;
}

.contact-info-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-info-list h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-info-list p {
  color: #dfd5cf;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-map-wrap {
  margin-top: 30px;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-wrap {
  background-color: var(--white);
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

.contact-form-wrap h3 {
  margin-bottom: 12px;
}

.contact-form-wrap p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 30px;
}

/* ---------------------------------
   11. ABOUT PAGE SPECIFICS
------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  position: relative;
  z-index: 2;
}

.about-img-badge {
  background-color: var(--accent);
  color: var(--primary);
  padding: 24px;
  border-radius: var(--radius-md);
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 3;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  text-align: center;
}

.about-img-badge h4 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.about-img-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.mission-vision-values {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mvv-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
}

.mvv-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.mvv-card h3 {
  margin-bottom: 14px;
}

.mvv-card p {
  color: #555555;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------------------------------
   12. CONSULTING PAGE SPECIFICS
------------------------------------ */
.consulting-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.service-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 0;
}

/* ---------------------------------
   13. FINAL CALL TO ACTION
------------------------------------ */
.cta-banner {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(26, 94, 61, 0.4) 0%, rgba(16, 61, 38, 0.95) 100%);
  z-index: 1;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: #C4D7CE; /* Light sage green for brand coherence */
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ---------------------------------
   12B. MODAL & FORM INQUIRY STYLING
------------------------------------ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 61, 38, 0.6); /* Dark Forest Green tint overlay */
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  width: 92%;
  max-width: 480px;
  box-shadow: 0 30px 60px rgba(16, 61, 38, 0.15);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--light-gray);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* Input & Form Elements Styling */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid var(--light-gray);
  background-color: #FBFDFB;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(249, 179, 65, 0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23103D26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ---------------------------------
   13. FOOTER STYLING
------------------------------------ */
footer {
  background-color: #0A281C; /* Darker Forest Green for premium container depth */
  color: #A3BEB2; /* Clean sage-green-grey text contrast */
  padding: 80px 0 40px 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.8fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo .logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: auto;
}

.footer-logo .logo-artwork {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 85px;
}

.footer-logo .logo-vapour {
  height: 26px !important;
}

.footer-logo .logo-cup {
  height: 59px !important;
}

.footer-logo .logo-text-wrap {
  height: 20px;
  animation: none;
  width: 88px !important;
  border-right: none !important;
}

.footer-logo .logo-text-img {
  height: 20px !important;
}

.footer-desc {
  color: #A3BEB2;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.social-icon[aria-label="Facebook"]:hover {
  background-color: #1877F2; /* Facebook Blue */
}

.social-icon[aria-label="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); /* Instagram Gradient */
}

.social-icon[aria-label="TikTok"]:hover {
  background-color: #010101; /* TikTok Black */
  box-shadow: -2px 0 0 #00F2FE, 2px 0 0 #FE2C55; /* TikTok Cyan/Red glitch shadow */
}

.social-icon[aria-label="YouTube"]:hover {
  background-color: #FF0000; /* YouTube Red */
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #A3BEB2;
  font-size: 0.95rem;
  display: inline-block;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
  font-weight: bold;
}

.newsletter-btn:hover {
  background-color: var(--white);
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--white); /* Highlight all text (copyright, address, Phone label) in bright white */
  font-weight: 500;
}

.footer-bottom p {
  margin: 0;
}

.footer-address {
  color: var(--white); /* Bright white highlight for the physical address */
  font-weight: 500;
}

.footer-phone-label {
  color: var(--white); /* Highlight the label "Phone:" in bright white */
  font-weight: 600;
}

.footer-phone {
  color: var(--accent); /* Brand gold highlight for the telephone number */
  font-weight: 700; /* Bolder gold number for excellent contrast and legibility */
  text-decoration: none;
  transition: var(--transition);
}

.footer-phone:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-email-label {
  color: var(--white); /* Highlight the label "Email:" in bright white */
  font-weight: 600;
}

.footer-email {
  color: var(--accent); /* Brand gold highlight for the email link */
  font-weight: 700; /* Bolder gold email for excellent contrast and legibility */
  text-decoration: none;
  transition: var(--transition);
}

.footer-email:hover {
  color: var(--white);
  text-decoration: underline;
}


/* ---------------------------------
   14. RESPONSIVE ADJUSTMENTS
------------------------------------ */
@media (max-width: 1024px) {
  header {
    padding: 14px 0;
    background-color: rgba(16, 61, 38, 0.97); /* Dark green background on mobile for legibility */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  header.scrolled {
    padding: 10px 0;
  }

  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .mobile-nav-toggle span {
    background-color: var(--white) !important;
  }

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: rgba(10, 40, 28, 0.98); /* Deep forest green */
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 80px 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
    padding: 8px 0;
    color: var(--white) !important;
  }

  .nav-links a::after {
    bottom: 0px;
  }

  .nav-links .btn-primary {
    width: 100%;
    margin-top: 15px;
    padding: 12px 24px;
    text-align: center;
    justify-content: center;
    background-color: var(--accent) !important;
    color: var(--primary) !important;
  }
}

@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-graphic {
    display: none; /* Hide graphic on tablet/mobile for clean flow */
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after,
  .right::after,
  .timeline-item:nth-child(n)::after {
    left: 22px !important;
    right: auto !important;
  }

  .left, .right {
    left: 0%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .about-img-badge {
    position: static;
    margin-top: 20px;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    margin-left: -15px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
