:root {
  --primary: #00003a;
  --green: rgb(86, 185, 77);
  --secondary: rgb(244, 193, 41);
  --tertiary: rgb(246, 137, 38);
  --lightGreen: rgb(134, 197, 72);
  --lightBlue: rgb(54, 114, 185);
  --blueGrey: rgb(39, 174, 228);
  --lightGrey: rgb(211, 211, 211);
  --offWhite: #f7f7f7;
  --fontGrey: #4a5568;
}

.container {
  width: 95%;
}
/*HEADER SECTION*/

.header-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/img/whoWeAreHeroBg.jpg");
  background-size: cover;
  background-position: top;
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
  padding-top: 70px;
  height: 80vh;
}

.header-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: rgba(246, 137, 38, 0.8);
  margin: 4rem 0;
  line-height: 1.2;
  width: 80%;
  margin: 0 auto;
}

.header-title span {
  color: var(--green);
  text-decoration: underline;
}

.header-description {
  font-size: 1rem;
  color: var(--lightGrey);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5rem;
  letter-spacing: 3px;
  font-weight: 100;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--lightBlue);
  margin-bottom: 2.5rem;
}

/* Timeline Section */
.timeline-section {
  margin-bottom: 4rem;
}

.timeline-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  background-color: var(--offWhite);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease-in-out;
  position: relative; /* For the custom timeline line/dot */
  padding-left: 2rem; /* Space for the dot */
  border-left: 2px solid #cbd5e1; /* Light gray line */
  margin-left: 0.5rem; /* Adjust to align with dot */
}

.timeline-item:last-child {
  border-left: none; /* No line after the last item */
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.4rem; /* Position the dot on the line */
  top: 0;
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--tertiary); /*dot */
  border-radius: 50%;
  border: 2px solid #f8fafc;
}

.timeline-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.timeline-item-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  margin: 0.75rem 0;
}

.timeline-item-description {
  font-size: 1rem;
  color: var(--fontGrey);
  margin-bottom: 1rem;
  text-align: justify;
}

/*STRATEGIC MILESTONES*/
/*STORY*/

.story-title {
  color: var(--lightBlue);
  margin-bottom: 1rem;
}

.story-hidden-content {
  display: none;
}

.story-hidden-content.show {
  display: block;
}

#readMoreBtn {
  background-color: transparent;
  border: none;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

.gallery-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0; /* Covers the entire item */
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.7) 0%,
    transparent 100%
  ); /* Gradient overlay */
  border-radius: 0.5rem; /* Rounded corners */
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out; /* Smooth transition for overlay */
  display: flex;
  align-items: flex-end; /* Align caption to bottom */
  padding: 0.75rem; /* Padding inside overlay */
}

.gallery-item:hover .gallery-overlay {
  opacity: 1; /* Show overlay on hover */
}

.gallery-caption {
  color: #ffffff; /* White text */
  font-size: 0.875rem; /* Small text for mobile captions */
  font-weight: 500; /* Medium font weight */
}

/* BOARD MEMBERS SECTION */
.board-section {
  margin-bottom: 1.5rem; /* Spacing below board section title */
}

.timeline-item-board-description {
  margin-bottom: 2rem;
  color: var(--fontGrey);
}

.board-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fontGrey);
  margin-bottom: 1rem;
}

.board-group-photo {
  grid-column: span 1;
}

.board-group-photo .gallery-image {
  height: 14rem;
}

.board-group-photo .gallery-caption {
  font-size: 1rem;
  font-weight: 700;
}

#boardPhoto {
  object-position: top;
}

.board-member-card {
  text-align: center;
}

.board-member-image {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
}

.board-member-image:hover {
  transform: scale(1.05);
  box-shadow: 5px 5px 10px var(--lightGrey);
}

.board-member-name {
  font-weight: 600;
  color: #1a202c;
  font-size: 0.95rem;
}

.board-member-role {
  font-size: 0.75rem;
  color: #4a5568;
}

/*CLIENT PARTNERSHIP*/
.timeline-item-partnerships-description {
  margin-bottom: 2rem;
  color: var(--fontGrey);
}

.client-partnership-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.partnership-focus-card {
  text-align: center;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.partnership-icon {
  font-size: 3rem;
  color: var(--lightBlue);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 4rem;
}

.partnership-focus-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.partnership-focus-description {
  font-size: 0.875rem;
  color: var(--fontGrey);
}

.client-partnership-photo-large {
  grid-column: span 2;
}

.companies-supported-section {
  margin-top: 1rem;
  text-align: center;
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
}

.companies-supported-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.companies-supported-description {
  font-size: 0.95rem;
  color: var(--fontGrey);
  margin-bottom: 1.5rem;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
}

.company-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.company-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 0.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 75px;
  transition: transform 0.3s ease-in-out;
}

.company-logo-item:hover {
  transform: scale(1.15);
}

.company-logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-logo-item:hover .company-logo-image {
  filter: grayscale(0%); /* Color on hover */
  opacity: 1; /* Full color on hover */
}

/* Core Values Section */
.values-section {
  text-align: center;
  margin-bottom: 4rem; /* Spacing below values section */
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 1.5rem; /* Gap between value cards */
}

.value-card {
  background-color: #ffffff; /* White background */
  padding: 1.5rem; /* Default padding for mobile */
  border-radius: 0.75rem; /* Rounded corners */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Subtle shadow */
  transition: box-shadow 0.3s ease-in-out; /* Smooth transition for hover */
}

.value-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Enhanced shadow on hover */
}

.value-icon {
  font-size: 2.5rem; /* Default icon size */
  color: #2563eb; /* Blue color */
  margin-bottom: 0.75rem; /* Spacing below icon */
}

.value-title {
  font-size: 1.25rem; /* Default title size */
  font-weight: 600; /* Semi-bold */
  color: #1a202c; /* Dark text */
  margin-bottom: 0.5rem; /* Spacing below title */
}

.value-description {
  font-size: 0.95rem;
  color: #4a5568; /* Gray text */
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem; /* sm:px-6 */
    padding-right: 1.5rem; /* sm:px-6 */
  }

  .header-section {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    padding-top: 120px;
    height: 50vh;
  }

  .header-title {
    font-size: 3rem; /* text-5xl on larger small screens */
  }

  .header-description {
    font-size: 1.125rem; /* text-lg on larger small screens */
  }

  .section-title {
    font-size: 2.25rem; /* text-4xl */
    margin-bottom: 3rem;
  }

  .timeline-items-wrapper {
    gap: 4rem; /* space-y-16 */
  }

  .timeline-item {
    padding: 2rem; /* p-8 */
  }

  .timeline-item-title {
    font-size: 1.875rem; /* text-3xl */
  }

  .timeline-item-description {
    column-count: 2;
    column-gap: 2rem;
  }

  #ourStoryContent {
    font-size: 14px;
  }

  .timeline-item-description {
    font-size: 1.125rem; /* text-lg */
  }

  .story-hidden-content {
    display: block !important;
  }

  #readMoreBtn {
    display: none;
    cursor: pointer;
  }

  .client-partnership-gallery {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  }

  .client-partnership-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .companies-supported-section {
    margin-top: 1rem;
  }

  .companies-supported-title {
    font-size: 1.85rem;
    font-weight: 600;
  }

  .companies-supported-description {
    font-size: 1.25rem;
  }

  .company-logo-grid {
    grid-template-columns: repeat(
      4,
      1fr
    ); /* 4 logos per row on larger screens */
  }

  /* Gallery Grids */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 1.5rem; /* More gap */
  }

  .gallery-image {
    height: 14rem; /* Slightly taller images */
  }

  .gallery-caption {
    font-size: 1rem; /* Slightly larger caption */
  }

  .board-group-photo {
    grid-column: span 2; /* Occupies full width on this grid */
  }

  .board-group-photo .gallery-image {
    height: 16rem; /* Taller group photo */
  }

  .board-group-photo .gallery-caption {
    font-size: 1.125rem; /* Larger font for group photo caption */
  }

  .board-member-image,
  .team-member-image {
    width: 10rem; /* Larger circular images */
    height: 10rem;
  }

  .values-grid {
    gap: 2rem; /* More gap */
  }

  .value-icon {
    font-size: 3rem; /* Larger icon size */
  }

  .value-title {
    font-size: 1.5rem; /* Larger title size */
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns for values */
  }
}

@media (min-width: 992px) {
  .header-section {
    height: 80vh;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: 2rem; /* lg:px-8 */
    padding-right: 2rem; /* lg:px-8 */
  }

  .header-section {
    margin-bottom: 4rem; /* mb-16 */
  }

  .header-title {
    font-size: 3.5rem; /* Closer to text-5xl */
  }

  .header-description {
    font-size: 1.25rem; /* text-xl */
  }

  .section-title {
    font-size: 2.5rem; /* text-4xl */
  }

  .timeline-item {
    padding: 2rem; /* p-8 */
  }

  .timeline-item-title {
    font-size: 2rem; /* text-3xl */
  }

  .timeline-item-description {
    font-size: 1.125rem; /* text-lg */
  }

  #hiddenContent {
    display: block;
  }

  .expandedContent {
    column-count: 2;
    column-gap: 2rem;
    text-align: left;
    font-size: 14px;
    line-height: 1.2rem;
  }

  #readMore {
    display: none;
  }

  .client-partnership-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
  }
  .client-partnership-photo-large {
    grid-column: span 2;
  }

  .companies-supported-section {
    margin-top: 0;
  }

  .companies-supported-title {
    font-size: 2rem;
    font-weight: 600;
  }

  .companies-supported-description {
    font-size: 1.25rem;
  }

  .company-logo-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 logos per row on desktops */
    gap: 2rem;
    padding: 0 2rem;
  }
  .company-logo-item {
    height: 85px; /* Slightly taller for desktop */
  }

  /* Gallery Grids */
  .founders-gallery {
    grid-template-columns: repeat(3, 1fr); /* Three columns for founders */
  }

  .board-gallery {
    grid-template-columns: repeat(3, 1fr); /* Three columns for board */
  }

  .team-gallery {
    grid-template-columns: repeat(4, 1fr); /* Four columns for team */
  }

  .gallery-image {
    height: 16rem; /* Taller images on larger screens */
  }

  .gallery-caption {
    font-size: 1.125rem; /* Larger caption text */
  }

  .board-group-photo {
    grid-column: span 3; /* Full width on this grid */
  }

  .board-group-photo .gallery-image {
    height: 18rem; /* Taller group photo */
  }

  .board-group-photo .gallery-caption {
    font-size: 1.25rem; /* Larger font for group photo caption */
  }

  .board-member-image,
  .team-member-image {
    width: 12rem; /* Even larger circular images */
    height: 12rem;
  }

  .team-collaboration-photo-large {
    grid-column: span 2; /* Each takes half of the grid */
  }
  .team-collaboration-photo-large .gallery-image {
    height: 16rem;
  }

  .value-card {
    padding: 2rem; /* More padding for values */
  }

  .value-icon {
    font-size: 3rem;
  }

  .value-title {
    font-size: 1.5rem;
  }
}
