/* =========================
   ABOUT SECTION SPACING
========================= */

.about-section {
  padding: 60px 24px;
}


/* =========================
   ABOUT PAGE STYLES
========================= */

/* HERO */
.about-us-hero {
  position: relative;
  min-height: 550px;
  width: 98%;
  margin: 8px auto;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  gap: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title {
  display: inline-block;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 24px;
  margin-bottom: 24px;
}

.rotating-word {
  display: inline-block;
  font-style: italic;
  white-space: nowrap;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.word-exit {
  opacity: 0;
  transform: translateY(20px);
}

.word-enter {
  opacity: 0;
  transform: translateY(-20px);
  transition: transform 0.6s ease, opacity 0.6s ease;
} 

/* Optional: first word starts earlier */
.word-enter.first {
  transition-delay: 2s; /* adjust as needed */
}

/* =========================
   OUR STORY
========================= */

.story-section { 
  max-width:1200px; 
  margin:0 auto; 
  padding: 60px 24px; 
}

.story-header p.eyebrow {
  color: var(--brand-primary);
  font-size: 16px;
}

.story-header h2 { 
  margin-bottom:16px; 
}

.story-header p { 
  font-size:20px; 
  line-height:1.6; 
  color:#444; 
}

/* =========================
   MISSION
========================= */
.mission {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mission .container {
  max-width: 820px;
}

.mission .eyebrow {
  margin-bottom: 48px;
}

.mission h3{
  font-weight: 500;
}

/* =========================
   CARDS
========================= */
.section {
  background: #f9f9f9;
  text-align: center;
}

.section > .container > .eyebrow {
  color: var(--brand-primary);
}

.section-title {
  font-weight: 600;
  margin-bottom: 60px;
}

.section-subtitle {
  max-width: 720px;
  margin: 16px auto 32px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
}

.section > .container > p {
  max-width: 760px;
  margin: 0 auto 48px; /* space before cards */
  line-height: 1.7;
  color: #555;
} 

.cards-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px; 
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  min-height: 360px;
  border:1px solid #0a2472;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.card:hover { 
  transform:translateY(-6px); 
  box-shadow:0 20px 40px rgba(0,0,0,0.08); 
  border-color: var(--brand-secondary);
}


/* =========================
   2ND IMAGE
========================= */
.second-image-section {
  max-width: 900px;
  margin: 0 auto; /* keep centering */
}

.second-image-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 550px; /* adjust to the height you like */
  min-height: 260px;
  overflow: hidden;
  border-radius: 20px;
}

.second-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.second-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.second-image-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  color: #fff;
}

.second-image-title {
  margin-bottom: 0.75rem;
}

  /* Paragraph */
  .second-image-text {
    max-width: 600px;
    line-height: 1.7;
  }


  
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .about-us-hero {
    height: 60vh; /* smaller height for mobile */
    min-height: 300px; /* optional minimum */
  }

  .hero-title { font-size: 50px; }
  .hero-subtitle { font-size: 16px; max-width: 450px; margin-top: 0px; }
  .hero-body { font-size: clamp(0.8rem, 3vw, 1.2rem); }

  /* MISSION */
  .mission {
    padding: 4rem 2rem 6rem;
  }
  .mission .eyebrow {
    margin-bottom: 32px;
  }

    /* IMAGE SECTION */
  .image-section img {
    width: 100%;
    max-width: 700px;
  }

  .second-image-wrapper {
    height: 340px;
  }

  .second-image-title {
    font-size: 1.5rem;
  }

  .second-image-text {
    font-size: 0.95rem;
  }

  /* CARDS */
  .cards-grid{ 
    grid-template-columns:1fr; 
  }

  .carousel-title, 
  .story-title,
  .section-title  { 
    font-size:34px; 
  }

  .story-header p{
    font-size: 16px;
  }

  .carousel-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section > .container > p {
    max-width: 90%;        /* narrower than full width */
    margin: 0 auto 32px;   /* center horizontally, add bottom spacing */
    font-size: 0.95rem;    /* slightly smaller for mobile */
    line-height: 1.6;      /* maintain readability */
    text-align: center;     /* optional: center text */
  }

}
