/* Import CSS Variables */
@import url('variables.css');
/* ========================================
   Guiding Principles Section (About Page)
   ======================================== */

.guiding-principles__inner {
  max-width: 100%;
  margin: 0 auto;
}

.guiding-principles__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1;
  position: relative;
}

/* Carousel wrapper */
.principles-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: visible; */
  padding-top: var(--spacing-60);
}

/* Track (scrollable container) */
.principles-track {
  display: flex;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 1100px;
}

.principles-track::-webkit-scrollbar {
  display: none;
}

/* Card base */
.principle-card {
  width: 100%;
  background: var(--light-grey);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 50px 25px 28px;
  position: relative;
  scroll-snap-align: center;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

/* Circle wrapper and shapes */
.circle-wrapper {
  position: absolute;
  top: -25px;
  left: 30%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
}

.circle1 {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--text-white);
  top: 0;
  left: 0;
  z-index: 0;
}

.circle2 {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--light-grey);
  top: 8px;
  left: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.circle-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.principle-card__title {
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--color-text-white);
  margin: 0;
  line-height: 1.3;
  text-align: left;
}

.principle-card__text {
  font-size: 0.8rem;
  color: var(--dark-grey);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* Tablet responsive */
@media (max-width: 991px) {
  .guiding-principles__header {
    margin-bottom: 2rem;
  }

  .principles-carousel {
    padding-top: 45px;
  }

  .principles-track {
    gap: 1rem;
  }

  .principle-card {
    padding: 45px 22px 26px;
  }

  .circle-wrapper {
    top: -25px;
    width: 64px;
    height: 64px;
  }

  .circle1 {
    width: 64px;
    height: 64px;
  }

  .circle2 {
    width: 50px;
    height: 50px;
    top: 7px;
    left: 7px;
  }

  .circle-icon {
    width: 32px;
    height: 32px;
  }

  .principle-card__title {
    font-size: 1rem;
  }

  .principle-card__text {
    font-size: 0.75rem;
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .guiding-principles__header {
    margin-bottom: 0;
    gap: 0.75rem;
  }

  .principle-slider-button {
    margin-top: var(--spacing-20);
  }

  .principles-carousel {
    padding-top: 40px;
  }

  .principles-track {
    gap: 0.875rem;
    padding: 1rem 0.5rem 2rem;
  }

  .principle-card {
    padding: 42px 20px 24px;
  }

  .circle-wrapper {
    top: -25px;
    width: 60px;
    height: 60px;
  }

  .circle1 {
    width: 60px;
    height: 60px;
  }

  .circle2 {
    width: 46px;
    height: 46px;
    top: 7px;
    left: 7px;
  }

  .circle-icon {
    width: 28px;
    height: 28px;
  }

  .principle-card__title {
    font-size: 0.95rem;
  }

  .principle-card__text {
    font-size: 0.7rem;
  }
}

.our-guiding-principles-img {
  position: absolute;
  top: -90px;
  right: -28px;
  width: 430px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

.principle-slider-button {
  position: relative;
  display: flex;
  gap: var(--spacing-15);
  justify-content: center;
}

.principle-slider-button .swiper-button-next,
.principle-slider-button .swiper-button-prev {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #d7f2df;
  top: auto;
  left: auto;
  bottom: auto;
  right: auto;
  transform: translate(0);
  position: relative;
  background-color: var(--color-brand-green-primary);
}

.principle-slider-button .swiper-button-next::after,
.principle-slider-button .swiper-button-prev::after {
  content: ''
}

.principle-slider-button .swiper-button-next.swiper-button-disabled,
.principle-slider-button .swiper-button-prev.swiper-button-disabled {
  background-color: var(--text-white);
  opacity: 1;
}

/* ========================================
   ABOUT TIMELINE SECTION
   ======================================== */

.about-timeline {
  position: relative;
  padding: clamp(4rem, 6vw, 6rem) 0;
  margin: 0;
  border-radius: 0;
}

.about-timeline__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.about-timeline__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.about-timeline__title {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: var(--fs-48);
  line-height: 1.2;
  color: var(--color-text-white);
  margin: 0.75rem 0 0;
}

/* Timeline container */
.timeline {
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

/* Vertical dashed line */
.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  border-right: 2px dashed var(--color-text-muted);
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.6;
}

/* Individual timeline event */
.timeline-event {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-80);
  padding-bottom: var(--spacing-80);
  gap: var(--spacing-80);
}

.timeline-event:nth-child(2) {
  padding-top: 0;
}

/* Odd events: year left, details right */
.timeline-event:nth-child(odd) .timeline-event__year {
  order: 1;
  text-align: right;
}

.timeline-event:nth-child(odd) .timeline-event__details {
  order: 2;
  text-align: left;
}

/* Even events: details left, year right */
.timeline-event:nth-child(even) .timeline-event__year {
  order: 2;
  text-align: left;
}

.timeline-event:nth-child(even) .timeline-event__details {
  order: 1;
  text-align: right;
}

/* Year styling */
.timeline-event__year {
  width: 45%;
  font-family: var(--font-poppins);
  font-size: clamp(2.5rem, 5vw, 3.625rem);
  font-weight: 800;
  line-height: 1;
  color: var(--title-color);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-30);
}

/* Active event: gradient year */
.timeline-event__dot.active~.timeline-event__year,
.timeline-event:has(.timeline-event__dot.active) .timeline-event__year {
  background: var(--title-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Details container */
.timeline-event__details {
  width: 45%;
}

.timeline-event__title {
  font-family: var(--font-poppins);
  font-size: var(--fs-40);
  margin-bottom: 0.625rem;
  font-weight: 700;
  color: var(--dark-grey);
}

/* Active event: green title */
.timeline-event__dot.active~.timeline-event__details .timeline-event__title,
.timeline-event:has(.timeline-event__dot.active) .timeline-event__title {
  color: var(--brand-green-500);
}

.timeline-event__text {
  font-family: var(--font-poppins);
  font-size: clamp(0.875rem, 1vw, 1rem);
  color: var(--title-color);
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

.timeline-event__dot.active~.timeline-event__details .timeline-event__text,
.timeline-event:has(.timeline-event__dot.active) .timeline-event__text {
  background: var(--title-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Dot in the center */
.timeline-event__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: var(--text-white);
  border-radius: 50%;
  z-index: 5;
  transition: all 0.4s ease;
  box-shadow: 0 0 0px 8px var(--dark-grey);
}

/* Active glow animation */
.timeline-event__dot.active {
  /* transform: translate(-50%, -50%) scale(1.4); */
  box-shadow: 0 0 0 8px var(--brand-green-500);
  border-color: var(--brand-green-500);
}

/* Tablet responsive */
@media (max-width: 991px) {
  .timeline__line {
    left: 0px;
    opacity: 0.6;
  }

  .timeline-event {
    flex-direction: column;
    align-items: flex-start;
    margin: clamp(4rem, 6vw, 5rem) 0;
    padding-left: 80px;
    position: relative;
  }

  /* Force year to always be first (on top) */
  .timeline-event__year {
    order: 1 !important;
    width: 100%;
    text-align: left !important;
    padding: 0 !important;
    margin-bottom: 1rem;
  }

  /* Force details to always be second */
  .timeline-event__details {
    order: 2 !important;
    width: 100%;
    text-align: left !important;
    padding: 0 !important;
  }

  .timeline-event__dot {
    left: 0px;
    order: 0;
  }

  .timeline-event {
    gap: var(--spacing-12);
    margin: 0 0;
    padding-top: var(--spacing-32);
    padding-bottom: var(--spacing-32);
  }
}

/* Medium tablets and small laptops */
@media (max-width: 768px) {
  .timeline__line {
    left: 0px;
    opacity: 0.6;
  }

  .timeline-event {
    margin: clamp(3.5rem, 5vw, 4.5rem) 0;
    padding-left: 65px;
  }

  .timeline-event__year {
    font-size: clamp(2.25rem, 6vw, 2.75rem);
    margin-bottom: 0.875rem;
  }

  .timeline-event__title {
    font-size: clamp(1.05rem, 3.5vw, 1.15rem);
  }

  .timeline-event__text {
    font-size: clamp(0.85rem, 3vw, 0.925rem);
  }

  .timeline-event__dot {
    left: 0px;
    width: 16px;
    height: 16px;
  }

  .timeline-event {
    gap: var(--spacing-12);
    margin: 0 0;
    padding-top: var(--spacing-32);
    padding-bottom: var(--spacing-32);
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .about-timeline {
    padding: clamp(2.5rem, 5vw, 4rem) 5%;
  }

  .about-timeline__header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }

  .timeline {
    padding: clamp(1.5rem, 3vw, 2rem) 0;
  }

  .timeline__line {
    left: 0px;
    opacity: 0.6;
  }

  /* Force year to always be first (on top) */
  .timeline-event__year {
    order: 1 !important;
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 0.75rem;
    width: 100%;
    text-align: left !important;
    padding: 0 !important;
  }

  /* Force details to always be second */
  .timeline-event__details {
    order: 2 !important;
    width: 100%;
    text-align: left !important;
    padding: 0 !important;
  }

  .timeline-event__title {
    font-size: clamp(1rem, 4vw, 1.125rem);
    margin-bottom: 0.5rem;
  }

  .timeline-event__text {
    font-size: clamp(0.8125rem, 3.5vw, 0.875rem);
    line-height: 1.6;
  }

  .timeline-event__dot {
    left: 0px;
    width: 14px;
    height: 14px;
    order: 0;
  }

  .timeline-event__dot.active {
    /* transform: translate(-50%, -50%) scale(1.3); */
  }

  /* Add more spacing for first and last events */
  .timeline-event:first-child {
    margin-top: clamp(2rem, 4vw, 3rem);
  }

  .timeline-event:last-child {
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
}

/* ========================================
   ABOUT PAGE CTA SECTION
   ======================================== */
.about-cta__inner {
  position: relative;
  z-index: 2;
  margin: 0px auto;
  flex-direction: column;
  text-align: center;
}

.about-cta__inner.mt-minus-60 {
  margin-top: -60px;
}

/* ========================================
   UTILITIES
   ======================================== */

.section-spacing-bottom-100 {
  padding-bottom: var(--spacing-100);
}

.section-spacing-top-60 {
  padding-top: var(--spacing-60);
}

.section-spacing-bottom-60 {
  padding-bottom: var(--spacing-60);
}

.title-color {
  color: var(--title-color);
}

.dark-grey-color {
  color: var(--dark-grey);
}

.title-family {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Tablet responsive */
@media (max-width: 991px) {
  .about-cta {
    min-height: auto;
    padding: clamp(3.5rem, 7vw, 6rem) 5%;
  }

  .section-spacing-bottom-100 {
    padding-bottom: var(--spacing-80);
  }

  .our-guiding-principles-img {
    width: 350px;
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .about-cta {
    padding: clamp(4rem, 10vw, 6rem) 7%;
    margin: 0;
    min-height: auto;
    background-size: cover;
    background-position: center;
  }

  .about-cta__inner {
    gap: 1rem;
  }

  .section-spacing-bottom-100 {
    padding-bottom: var(--spacing-60);
  }

  .pill-container {
    padding: 8px var(--spacing-12);
  }

  .pill-container span {
    font-size: var(--fs-16);
  }

  .guiding-principles__inner {
    max-width: 100%;
    padding: 0 var(--spacing-20);
  }

  .principle-slider-button .swiper-button-next,
  .principle-slider-button .swiper-button-prev {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .section-spacing-bottom-60 {
    padding-bottom: var(--spacing-32);
  }

  .our-guiding-principles-img {
    width: 260px;
  }

  .timeline-event {
    margin: 0;
    gap: 0;
  }

  .timeline-event {
    padding-top: var(--spacing-20);
    padding-bottom: var(--spacing-20);
  }
}