/* Hero Section - More Compact */
.fahari-hero-section {
  position: relative;
  min-height: 400px; /* Reduced from 600px */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center; /* Changed from flex-start */
  padding: 60px 0; /* Reduced from 100px+ */
  overflow: hidden;
}

/* Semi-transparent overlay for better text readability */
.fahari-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

/* Hero Container */
.fahari-hero-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Content Container */
.fahari-hero-content {
  max-width: 55%;
  padding: 0;
}

/* Hero Title - More Proportional */
.fahari-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem); /* Reduced from 3.75rem */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm); /* Reduced from md */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

/* Hero Subtitle - Better Sizing */
.fahari-hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
}

.fahari-hero-subtitle p {
  margin-bottom: 0;
}

.vision-mission-modern {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.vision-mission-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-border) 20%,
    var(--color-border) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 1;
}

.vm-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

.vm-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  position: relative;
}

.vm-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.vm-mission-side {
  background: linear-gradient(
    135deg,
    rgba(138, 24, 26, 0.02) 0%,
    rgba(138, 24, 26, 0.05) 100%
  );
}

.vm-vision-side {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.02) 0%,
    rgba(40, 167, 69, 0.05) 100%
  );
}

.vm-content-wrapper {
  max-width: 500px;
  text-align: center;
  position: relative;
}

.vm-icon-container {
  margin-bottom: 25px;
}

.vm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.mission-icon {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  box-shadow: 0 10px 30px rgba(138, 24, 26, 0.3);
}

.vision-icon {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.vm-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  z-index: -1;
}

.vm-header {
  margin-bottom: 20px;
}

.vm-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.vm-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
}

.vm-mission-side .vm-title {
  color: var(--color-primary);
}

.vm-vision-side .vm-title {
  color: #28a745;
}

.vm-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 20px;
  line-height: 1.4;
}

.vm-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 25px;
}

.vm-content p {
  margin-bottom: 15px;
}

.vm-accent-line {
  width: 60px;
  height: 4px;
  margin: 0 auto;
  border-radius: 2px;
}

.mission-line {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
}

.vision-line {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.vm-center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.vm-image-frame {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: white;
}

.vm-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   GLASS VALUES - DYNAMIC CMS VERSION
======================================== */

.glass-values-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.glass-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    #2c3e50 100%
  );
  z-index: 1;
}

.glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.glass-container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 1%;
  position: relative;
  z-index: 2;
}

.glass-header {
  text-align: center;
  margin-bottom: 60px;
}

.glass-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* DYNAMIC 4 COLUMN GRID - ADAPTS TO CMS CONTENT */
.glass-values-grid-4col,
.glass-company-values {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 1.5% !important;
  width: 100% !important;
  margin: 0 auto !important;
  justify-items: center;
}

/* Force 4 columns on larger screens when we have exactly 4 items */
@media (min-width: 1200px) {
  .glass-values-grid-4col,
  .glass-company-values {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* GLASS CARD - DYNAMIC CONTENT */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 35px 20px;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
  min-height: 320px; /* Reduced from 350px for dynamic content */
  width: 100%;
  max-width: 300px; /* Prevent cards from getting too wide */
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.glass-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
}

.glass-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  transition: all 0.3s ease;
}

.glass-card:hover .glass-icon {
  transform: scale(1.15) rotate(10deg);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.glass-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  line-height: 1.3;
}

.glass-card:hover .glass-card-title {
  transform: translateY(-2px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.glass-card-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  flex: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  text-align: center;
  hyphens: auto;
  word-wrap: break-word;
}

.glass-card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover .glass-card-glow {
  opacity: 1;
}

/* Dynamic Glow Colors - Cycle through Kenya Airways colors */
.safety-glow {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
}

.integrity-glow {
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-secondary-light)
  );
}

.innovation-glow {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.excellence-glow {
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-primary-dark)
  );
}

/* Additional glow colors if more than 4 values */
.value-glow-5 {
  background: linear-gradient(
    90deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
}

.value-glow-6 {
  background: linear-gradient(
    90deg,
    var(--color-secondary-dark),
    var(--color-secondary)
  );
}

/* ========================================
   RESPONSIVE DESIGN - DYNAMIC CONTENT
======================================== */

@media (min-width: 1600px) {
  .glass-container {
    max-width: 90%;
    padding: 0 1%;
  }

  .glass-values-grid-4col,
  .glass-company-values {
    gap: 2% !important;
  }

  .glass-card {
    padding: 40px 25px;
    min-height: 350px;
    max-width: 320px;
  }

  .glass-card-title {
    font-size: 1.5rem;
  }

  .glass-card-text {
    font-size: 1.1rem;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .glass-values-grid-4col,
  .glass-company-values {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .glass-container {
    max-width: 98%;
  }

  .glass-values-grid-4col,
  .glass-company-values {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1% !important;
  }

  .glass-card {
    padding: 30px 15px;
    min-height: 300px;
    max-width: 280px;
  }

  .glass-card-title {
    font-size: 1.25rem;
  }

  .glass-card-text {
    font-size: 0.95rem;
  }

  .glass-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .glass-values-grid-4col,
  .glass-company-values {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3% !important;
  }

  .glass-card {
    padding: 35px 25px;
    min-height: 320px;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .glass-values-section {
    padding: 60px 0;
  }

  .glass-container {
    max-width: 95%;
    padding: 0 2.5%;
  }

  .glass-title {
    font-size: 2rem;
  }

  .glass-values-grid-4col,
  .glass-company-values {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .glass-card {
    padding: 30px 25px;
    min-height: 280px;
    max-width: 400px;
    margin: 0 auto;
  }

  .glass-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .glass-card-title {
    font-size: 1.3rem;
  }

  .glass-card-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .glass-values-section {
    padding: 50px 0;
  }

  .glass-container {
    padding: 0 5%;
  }

  .glass-title {
    font-size: 1.8rem;
  }

  .glass-card {
    padding: 25px 20px;
    min-height: 260px;
    max-width: 100%;
  }
}

/* ========================================
   ENSURE NO CONTAINER OVERRIDE
======================================== */

.glass-values-section .container,
.glass-values-section .values-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.glass-container {
  position: relative !important;
  z-index: 2 !important;
}

/* ========================================
   FALLBACK COLORS
======================================== */

.glass-values-section {
  --color-primary: #8a181a;
  --color-secondary: #ed1c24;
  --color-primary-dark: #6b1215;
  --color-primary-light: #b93e40;
  --color-secondary-dark: #c01017;
  --color-secondary-light: #f15b60;
  --font-heading: 'Interstate', sans-serif;
  --font-body: 'RobotoFlex', Arial, sans-serif;
}

/* ========================================
   OUR APPROACH - SIMPLE CARD LAYOUT
======================================== */

.approach-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.approach-section .container {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Approach Header */
.approach-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}

.approach-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.approach-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
}

.approach-intro {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 auto;
}

.approach-intro p {
  color: var(--color-muted);
  margin-bottom: 15px;
}

/* ========================================
   SIMPLE CARDS CONTAINER
======================================== */

.approach-cards-grid {
  margin-top: 50px;
  position: relative;
}

.approach-cards,
.approach-section .approach-cards {
  display: flex !important;
  flex-direction: row !important;
  gap: 2% !important;
  width: 85% !important;

  margin: 0 auto !important;
  padding: 0 !important;
  position: relative;
  justify-content: center;
  align-items: stretch;
}

/* ========================================
   SIMPLE CARD DESIGN
======================================== */

.approach-card {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;

  text-align: left;
  transition: all 0.3s ease;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 30px 25px;
  box-shadow: none;
  border: none;
  min-height: 220px;
}

.approach-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Step Content Box */
.approach-step-content {
  width: 100%;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

/* ========================================
   ICON DESIGN - REMOVED
======================================== */

.approach-card-icon {
  display: none; /* Hide icons for clean text-only design */
}

/* ========================================
   CONTENT STYLING
======================================== */

.approach-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.approach-card:hover .approach-card-title {
  color: var(--color-secondary);
}

.approach-card-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
  /* Clean text flow without truncation */
}

.approach-card-description p {
  color: #666666;
  margin-bottom: 12px;
}

.approach-card-description p:last-child {
  margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
  .approach-cards,
  .approach-section .approach-cards {
    width: 98% !important;
    gap: 1.5% !important;
  }

  .approach-card {
    padding: 25px 20px;
    min-height: 200px;
  }

  .approach-card-icon {
    width: 55px;
    height: 55px;
  }

  .approach-card-icon i {
    font-size: 22px;
  }

  .approach-card-title {
    font-size: 1.3rem;
  }

  .approach-card-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .approach-section {
    padding: 40px 0;
  }

  .approach-title {
    font-size: 2rem;
  }

  .approach-intro {
    font-size: 1.1rem;
  }

  /* Stack cards vertically on mobile */
  .approach-cards,
  .approach-section .approach-cards {
    flex-direction: column !important;
    gap: 20px !important;
    width: 98% !important;
    align-items: stretch;
  }

  .approach-card {
    width: 100% !important;
    min-height: auto;
    padding: 20px 18px;
  }

  .approach-card-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .approach-section {
    padding: 30px 0;
  }

  .approach-section .container {
    padding: 0 15px;
  }

  .approach-title {
    font-size: 1.75rem;
  }

  .approach-cards,
  .approach-section .approach-cards {
    width: 100% !important;
    gap: 15px !important;
    padding: 0 !important;
  }

  .approach-card {
    padding: 18px 16px;
  }

  .approach-card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .approach-card-icon i {
    font-size: 20px;
  }

  .approach-card-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .approach-card-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* ========================================
   SIMPLE ANIMATION
======================================== */

/* Card reveal animation */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.approach-card {
  animation: cardReveal 0.5s ease forwards;
}

.approach-card:nth-child(1) {
  animation-delay: 0.1s;
}
.approach-card:nth-child(2) {
  animation-delay: 0.2s;
}
.approach-card:nth-child(3) {
  animation-delay: 0.3s;
}
.approach-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* ========================================
   PROCESS UNIQUE BLOCK - SIMPLE STYLING
======================================== */

.process-unique-wrapper {
  padding: 60px 0;
  background: #ffffff;
}

.process-unique-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.process-unique-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 40px;
}

.process-unique-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
  .process-unique-wrapper {
    padding: 40px 0;
  }

  .process-unique-container {
    padding: 0 15px;
  }

  .process-unique-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .process-unique-content {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .process-unique-title {
    font-size: 1.8rem;
  }

  .process-unique-content {
    font-size: 0.95rem;
  }
}
