/* ========================
   About Us Page Styling
   ======================== */

.about-page-main {
  padding: 40px 0 80px 0;
  background-color: #ffffff;
}

/* Hero Banner Container */
.about-hero-banner {
  width: 100%;
  height: 500px; /* Adjust height based on preference */
  border-radius: 20px; /* Matches the rounded corners in image */
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Background Image */
.about-hero-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end; /* Pushes text to bottom */
  padding: 40px 50px; /* Spacing from bottom-left corner */
}

/* Gradient Overlay (Optional: makes text more readable) */
.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  z-index: 1;
}

/* "About us" Title */
.about-hero-title {
  position: relative;
  z-index: 2; /* Sits above overlay */
  color: #ffffff;
  font-size: 64px; /* Large, bold font */
  font-weight: 700;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: capitalize;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .about-hero-banner {
    height: 300px;
    border-radius: 12px;
  }

  .about-hero-bg {
    padding: 20px 30px;
  }

  .about-hero-title {
    font-size: 26px;
    /* font-size: 42px; */
  }
}

/* ========================
   About Story Section
   ======================== */
.about-story-section {
  /* Design specifies 60px Top and Bottom padding */
  padding: 60px 0;
  background-color: #ffffff;
}

.zuari-container {
  /* Layout width is fixed at 1,440px in design */
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px; /* Standard gutter for large screens */
}

.story-layout {
  display: grid;
  /* Adjusting columns to match the wide visual gap in Figma */
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Label Styling */
.story-label {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  /* Aligning top of text with the main content */
  padding-top: 8px;
}

/* Content Typography */
.story-text {
  font-size: 24px;
  line-height: 1.4;
  color: #101010; /* Darker tone as per visual */
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 32px; /* Spacing between the two paragraphs */
  max-width: 850px; /* Limits line length for better readability */
}

.story-text:last-child {
  margin-bottom: 0;
}

/* Responsive */
/* ========================
   Mobile Design Fix
   ======================== */
@media (max-width: 768px) {
  .about-story-section {
    padding: 50px 0;
  }

  .zuari-container {
    padding: 0 22px;
  }

  .story-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .story-label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-top: 0;
    display: block;
  }

  .story-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 100%;
  }
}

/* ========================
   About Mission Slider
   ======================== */

.about-mission-section {
  padding: 60px 0 100px 0;
  background-color: #ffffff;
}

.mission-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mission-header {
  text-align: center;
  margin-bottom: 40px; /* Reduced slightly */
  max-width: 900px;
}

.mission-badge {
  display: inline-block;
  border: 1px solid #009a44;
  color: #009a44;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  /* letter-spacing: 1px; */
  margin-bottom: 30px;
  background: #ffffff;
  font-family: inter;
}

.mission-title {
  font-family: var(--font-primary, "Trebuchet MS", sans-serif);
  font-size: 32px; /* Slightly refined for balance */
  font-weight: 700;
  color: #002b5c;
  line-height: 1.3;
  margin: 0;
}

/* --- SLIDER CONTAINER --- */
.mission-slider-wrapper {
  display: grid;
  grid-template-areas: "slide";
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  /* FIXED: Set to 400px for better proportion */
  min-height: 300px;
}

/* --- INDIVIDUAL SLIDE --- */
.mission-slide {
  grid-area: slide;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: relative;
  width: 100%;
  height: 70vh;
  z-index: 1;
}

.mission-slide.active {
  opacity: 1;
  z-index: 2;
}

.mission-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* FIXED: Matches container height */
  min-height: 400px;
}

/* --- OVERLAY CARD --- */
.mission-overlay-card {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: auto;
  background-color: #ffffff;
  padding: 25px 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 40%;
  align-items: center;
  /* max-width: 96%; */
  margin: 0 auto;
}

.mission-card-number {
  display: block;
  color: #10b981;
  font-family: var(--font-primary, sans-serif);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.mission-card-title {
  font-family: var(--font-primary, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.mission-card-desc {
  font-family: var(--font-secondary, sans-serif);
  font-size: 15px;
  /* width: 500px; */
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
/* ========================
   About Mission - Mobile Update
   ======================== */

@media (max-width: 768px) {
  .about-mission-section {
    padding: 60px 0;
  }

  .mission-header {
    text-align: center;
    padding: 0 20px;
  }

  .mission-title {
    font-size: 24px;
    br {
      display: none;
    } /* Better flow for small screens */
  }

  /* Transform Grid to Horizontal Scroll */
  .mission-slider-wrapper {
    display: flex !important; /* Force cards side-by-side */
    grid-template-areas: none; /* Disable desktop grid */
    overflow-x: auto; /* Enable touch scrolling */
    scroll-snap-type: x mandatory; /* Snap cards into place */
    gap: 20px;
    padding: 20px 0 40px 0;
    /* margin: 0 -20px; */
    -webkit-overflow-scrolling: touch;
    min-height: auto;
  }

  /* Hide scrollbar for clean look */
  .mission-slider-wrapper::-webkit-scrollbar {
    display: none;
  }

  .mission-slide {
    flex: 0 0 85%;
    opacity: 1 !important; /* All cards visible in scroll area */
    position: relative;
    scroll-snap-align: center;
    align-items: start;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .mission-bg-image {
    height: 250px;
    min-height: 250px;
    border-radius: 16px;
    width: 100%;
    object-fit: cover;
  }

  /* Card Content Positioned Below Image */
  .mission-overlay-card {
    position: relative;
    bottom: auto;
    left: 0;
    right: auto;
    width: 100%;
    margin-top: -30px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 5;
    flex-grow: 1;
    max-width: 100%;
  }

  .mission-card-title {
    font-size: 20px;
    margin: 10px 0;
  }

  .mission-card-desc {
    width: 100%;
    font-size: 14px;
  }
}
/* ========================
   Values Section
   ======================== */

.values-section {
  padding: 80px 0 100px 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden; /* To clip background decorations */
}

/* Background Leaf Graphic (Optional - requires image) */
.values-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-image: url("../images/leaf-bg-right.png"); /* Add your leaf image here */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  opacity: 0.8;
  pointer-events: none;
}

.values-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background-image: url("../images/leaf-bg-left.png"); /* Add right side leaf */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.8;
  pointer-events: none;
}

.values-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
}

/* Header Styling */
.values-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
}

.values-badge {
  display: inline-block;
  border: 1px solid #009a44;
  color: #009a44;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
  margin-bottom: 24px;
  background: #ffffff;
  font-family: inter;
}

.values-title {
  font-size: 32px;
  font-weight: 700;
  color: #002b5c; /* Navy Blue */
  line-height: 1.4;
  margin: 0;
}

/* Grid Layout */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Columns */
  gap: 30px;
  width: 100%;
}

/* Card Styling */
.values-card {
  background-color: #fafafa; /* Very light gray/off-white background */
  padding: 40px;
  border-radius: 12px;
  /* No shadow or border by default in this design, clean look */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

/* Number Styling */
.values-num {
  display: block;
  font-size: 18px;
  color: #10b981; /* Green */
  margin-bottom: 15px;
  font-weight: 500;
}

/* Typography */
.values-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 15px 0;
}

.values-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555; /* Gray text */
  margin: 0;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .values-title {
    font-size: 24px;
  }

  .values-grid {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
  }

  .values-card {
    padding: 30px;
  }
}

/* ========================
   Vision Section
   ======================== */

.vision-section {
  padding: 80px 0 100px 0;
  background-color: #ffffff;
}

.vision-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Header */
.vision-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
}

.vision-badge {
  display: inline-block;
  border: 1px solid #009a44; /* Green border */
  color: #009a44;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
  margin-bottom: 24px;
  background: #ffffff;
  font-family: inter;
}

.vision-subtext {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-weight: 400;
}

/* Grid Layout (3 Columns) */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

/* --- Text Card Styling --- */
.vision-card.text-card {
  background-color: #fafafa; /* Light gray background like previous section, or pure white with border */
  border: 1px solid #f3f4f6; /* Very subtle border */
  padding: 40px 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s ease;
}

.vision-card.text-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

/* Icon Box */
.vision-icon {
  width: 50px;
  height: 50px;
  background-color: #e0f2fe; /* Light Blue BG */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

/* Typography */
.vision-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 15px 0;
}

.vision-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* --- Image Card Styling --- */
.vision-card.image-card {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 300px; /* Ensure height matches text cards */
}

.vision-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Styling */
@media (max-width: 992px) {
  .vision-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
  }
}
/* ========================
   Vision Section - Mobile Update
   ======================== */

@media (max-width: 600px) {
  .vision-header {
    text-align: left; /* Aligned left as per mobile design */
    padding: 0 20px;
  }

  .vision-grid {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    gap: 20px;
    padding: 0 20px;
  }

  /* --- Manual Ordering for Mobile --- */

  /* First Image Card at the Top */
  .vision-card.image-card:nth-of-type(3) {
    order: 1;
  }

  /* All Text Cards in the Middle */
  .vision-card.text-card:nth-of-type(1) {
    order: 2;
  }
  .vision-card.text-card:nth-of-type(2) {
    order: 3;
  }
  .vision-card.text-card:nth-of-type(5) {
    order: 4;
  }
  .vision-card.text-card:nth-of-type(6) {
    order: 5;
  }

  /* Second Image Card at the Bottom */
  .vision-card.image-card:nth-of-type(4) {
    order: 6;
  }

  /* Card UI Adjustments */
  .vision-card.text-card {
    padding: 30px 25px;
    background-color: #fafafa;
    border: 1px solid #eee;
  }

  .vision-card.image-card {
    min-height: 250px;
    height: 250px;
    border-radius: 16px;
  }

  .vision-card h3 {
    font-size: 22px; /* Matching the bold mobile headers */
    margin-bottom: 10px;
  }
}
