/*******************************/
/* HEADER */
/*******************************/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-surface);

  /* BECAUSE WE WANT THE NAVIGATION TO BE STICKY LATER */
  height: 14rem;
  padding: 0 4.8rem;

  position: relative;
  z-index: 20;
}

.logo {
  height: 13rem;
  width: auto;
}

/*******************************/
/* NAVIGATION */
/*******************************/
.main_nav_list {
  list-style: none;
  display: flex;
  gap: 4.4rem;
  align-items: center;
}

.main_nav_link:link,
.main_nav_link:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main_nav_link:hover,
.main_nav_link:active {
  color: var(--color-accent-soft);
}

.main_nav_link[aria-current="page"] {
  color: var(--color-accent);
}

.main_nav_link:focus-visible,
.footer_link:focus-visible,
.member_linkedin:focus-visible {
  border-radius: var(--radius-base);
}

.main_nav_link.nav_cta:link,
.main_nav_link.nav_cta:visited {
  padding: 1.2rem 3.2rem;
  border-radius: var(--radius-base);
  background-color: var(--color-accent);
  color: white;
}

.main_nav_link.nav_cta:hover,
.main_nav_link.nav_cta:active {
  background-color: var(--color-accent-dark);
}

/* MOBILE */
.btn_mobile_nav {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}

.icon_mobile_nav {
  height: 4.8rem;
  width: 4.8rem;
  color: var(--color-heading);
}

.icon_mobile_nav[name="close-outline"] {
  display: none;
}

/*******************************/
/* HERO SECTION */
/*******************************/

.section_hero {
  background-color: var(--color-surface);
  padding: 4.8rem 0 9.6rem 0;
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 9.6rem;
}

.hero_description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 3.2rem;
}

.hero_image {
  width: 100%;
  max-width: 52rem;
  border-radius: 10px;
}

.page_links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
  margin-top: 3.2rem;
}

.mission_delivery_card {
  max-width: 90rem;
  margin: 4.8rem auto 0;
  padding: 2.4rem 3.2rem;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-base);
  background-color: var(--color-surface-alt);
  text-align: center;
}

.mission_delivery_title {
  font-size: 2.4rem;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.mission_delivery_text {
  font-size: 1.8rem;
  line-height: 1.5;
}

/*******************************/
/* MISSION SECTION */
/*******************************/

.section_mission {
  background-color: var(--color-surface);
  padding: 4.8rem 0 9.6rem 0;
}

.mission_description {
  font-size: 2rem;
  line-height: 1.6;
}

.team_photo {
  width: min(100%, 96rem);
  margin: 4.8rem auto 0;
  border-radius: 2.4rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f7f3 0%, #e8eee7 100%);
  box-shadow: 0 2rem 4.8rem rgba(16, 52, 28, 0.14);
}

.team_photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
}

/*******************************/
/* VALUES SECTION */
/*******************************/

.section_values {
  background-color: var(--color-surface);
  padding: 4.8rem 0 9.6rem 0;
}

.section_values .container {
  max-width: 114rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.values_description {
  font-size: 2rem;
  margin-bottom: 4.8rem;
  line-height: 1.7;
}

.values_summary_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  margin-bottom: 4.8rem;
}

.values_summary_card {
  display: grid;
  grid-template-rows: auto 8.8rem 1fr;
  align-items: start;
  padding: 3rem 2.8rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%);
  box-shadow: 0 1.6rem 3.6rem rgba(16, 52, 28, 0.07);
  text-align: center;
}

.values_card_label {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.6rem;
}

.values_summary_card .heading_tertiary {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin-bottom: 1.6rem;
}

.values_summary_text {
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--color-heading);
}

.values_cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  align-items: start;
}

.value_card {
  align-self: start;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f4 100%);
  box-shadow: 0 1.4rem 3.2rem rgba(16, 52, 28, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.value_card:hover,
.value_card:focus-within,
.value_card.is_open,
.value_card.is_open:hover {
  transform: translateY(-3px);
  box-shadow: 0 2.2rem 4.2rem rgba(16, 52, 28, 0.12);
}

.value_card_toggle {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 2.8rem;
  cursor: pointer;
}

.value_card_toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  box-shadow: none;
}

.value_card_name {
  display: block;
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  text-align: center;
}

.value_card_summary {
  display: block;
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-heading);
  text-align: center;
}

.value_card_detail {
  padding: 0 2.8rem 2.8rem;
  font-size: 1.7rem;
  line-height: 1.7;
  color: #4a4a4a;
}

.value_card_detail[hidden] {
  display: none;
}

/*******************************/
/* TEAM SECTION */
/*******************************/

.section_team {
  background-color: var(--color-surface);
  padding: 4.8rem 0 9.6rem 0;
}

.section_team .container {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.section_team .heading_primary {
  text-align: center;
  margin-bottom: 4.8rem;
}

.section_team .subheading {
  display: block;
  text-align: center;
  margin-bottom: 1.2rem;
}

.team_cards {
  --team-open-image-width: clamp(30rem, 31vw, 34rem);
  --team-open-image-height: calc(var(--team-open-image-width) * 1.285);
  display: grid;
  grid-template-columns: repeat(2, 36rem);
  justify-content: center;
  gap: 3.6rem;
}

.team_card {
  min-width: 0;
  width: 36rem;
  max-width: 36rem;
}

.team_card.is_open {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.team_card_shell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 1.6rem 3.6rem rgba(16, 52, 28, 0.08);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.team_card.is_open .team_card_shell {
  grid-template-columns: auto minmax(0, 1.8fr);
  align-items: start;
}

.team_card_toggle {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
  height: 42.4rem;
}

.team_card.is_open .team_card_toggle {
  height: auto;
  align-self: start;
}

.team_card_toggle:hover,
.team_card_toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.team_card_shell:hover,
.team_card_shell:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 2.2rem 4.2rem rgba(16, 52, 28, 0.14);
}

.team_card_image {
  display: block;
  width: 100%;
  height: 42.4rem;
  object-fit: cover;
  object-position: center top;
}

.team_card_image_bolawa {
  object-position: center 70%;
}

.team_card_image_khalil {
  object-position: center 70%;
}

.team_card.is_open .team_card_toggle {
  width: auto;
}

.team_card.is_open .team_card_image {
  width: 100%;
  max-width: var(--team-open-image-width);
  height: var(--team-open-image-height);
  object-fit: contain;
}

.team_card_content {
  padding: clamp(2.2rem, 2vw, 3.2rem) clamp(2.4rem, 2.4vw, 3.6rem);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #f7faf7 0%, #edf3ee 100%);
  min-width: 0;
  height: auto;
  overflow: visible;
}

.team_card.is_open .team_card_content {
  justify-content: flex-start;
  padding: clamp(2.4rem, 2.2vw, 3.4rem) clamp(3rem, 3vw, 4.4rem);
  height: var(--team-open-image-height);
  max-height: var(--team-open-image-height);
  overflow-y: auto;
}

.team_card_content[hidden] {
  display: none;
}

.member_description {
  font-size: clamp(1.45rem, 1vw, 1.7rem);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.member_position {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #d0dbd2;
  margin-bottom: 2rem;
}

.member_focus {
  font-size: clamp(1.55rem, 1.3vw, 1.8rem);
  line-height: 1.45;
  color: var(--color-accent);
  margin-bottom: 0;
  flex: 1 1 0;
  min-width: 0;
}

.member_linkedin:link,
.member_linkedin:visited {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  font-size: 1.6rem;
  color: var(--color-text);
  background-color: rgba(42, 78, 53, 0.08);
  transition: all 0.3s;
}

.member_linkedin:hover,
.member_linkedin:active {
  text-decoration: none;
  color: var(--color-accent);
  background-color: rgba(42, 78, 53, 0.16);
}
/*******************************/
/* DINNER SECTION */
/*******************************/

.section_dinner,
.section_padel,
.section_members_corner {
  background-color: var(--color-surface);
  padding: 4.8rem 0 9.6rem 0;
}

.section_dinner .container,
.section_padel .container,
.section_members_corner .container {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.section_dinner .heading_secondary,
.section_padel .heading_secondary,
.section_members_corner .heading_secondary {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 2.4rem;
}

.section_dinner .subheading {
  display: block;
  text-align: center;
  margin-bottom: 1.2rem;
}

.events_page_title {
  font-size: clamp(4.6rem, 4vw, 5.2rem);
  margin-bottom: 1.6rem;
  text-align: center;
}

.events_page_intro,
.section_dinner .events_description,
.section_padel .events_description,
.section_members_corner .events_description {
  font-size: 1.95rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 0;
  color: var(--color-heading);
}

.events_page_intro {
  margin-bottom: 4.8rem;
}

.event_card {
  max-width: 92rem;
  margin: 0 auto;
}

.event_intro {
  max-width: 84rem;
  margin: 0 auto;
  padding: 3.2rem 3.6rem;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #f5f8f5 0%, #edf3ee 100%);
  box-shadow: 0 1.2rem 3rem rgba(16, 52, 28, 0.06);
}

.event_intro[hidden] {
  display: none;
}

.event_intro.is_open {
  display: block;
}

.event_meta {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.event_intro .events_description + .events_description {
  margin-top: 1.8rem;
}

/*******************************/
/* FOOTER */
/*******************************/
.footer {
  padding: 9.6rem 0;
  border-top: 1px solid #eee;
  background-color: var(--color-surface);
}

.grid_footer {
  grid-template-columns: 3fr 3fr 2fr 2fr 2fr;
}

.logo_col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer_logo {
  display: block;
  margin-bottom: 3.2rem;
}

.social_links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.social_icon {
  height: 2.4rem;
  width: 2.4rem;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: auto;
}

.footer_heading {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 4rem;
}

.contacts {
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1.6;
}

.address {
  margin-bottom: 2.4rem;
}

.footer_nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer_link:link,
.footer_link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: var(--color-text);
  transition: all 0.3s;
}

.footer_link:hover,
.footer_link:active {
  text-decoration: none;
  color: var(--color-accent);
}

/*******************************/
/* SLIDESHOW SECTION */
/*******************************/

/* Slideshow container styling */
.slideshow_container {
  position: relative;
  width: 100%;
  max-width: 84rem;
  aspect-ratio: 16 / 10;
  min-height: clamp(30rem, 52vw, 50rem);
  margin: auto;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-large);
  background-color: transparent;
  box-shadow: none;

  display: flex;
  justify-content: center;
  align-items: center;
}

.slideshow_container[data-description-toggle="true"] {
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.slideshow_container[data-description-toggle="true"]:hover,
.slideshow_container[data-description-toggle="true"]:focus-visible {
  transform: translateY(-2px);
  box-shadow: none;
  outline: none;
}

.slideshow_container.is_open {
  border-radius: var(--radius-large) var(--radius-large) 0 0;
}

/* Slideshow images styling */
.slideshow_image {
  width: auto;
  height: clamp(30rem, 52vw, 50rem);
  max-width: 100%;
  object-fit: contain;
  display: none;
}

/* Show the first image initially */
.slideshow_image:first-child {
  display: block;
}

/* Navigation buttons styling */
.slideshow_button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(16, 52, 28, 0.56);
  color: white;
  border: none;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s;
}

.slideshow_button.prev {
  left: 10px;
}

.slideshow_button.next {
  right: 10px;
}

.slideshow_button:hover,
.slideshow_button:active {
  background-color: rgba(
    42,
    78,
    53,
    0.8
  ); /* Slightly darker green tint on hover */
  color: #fff;
}

.slideshow_button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.35);
}

/* Add more images to the slideshow */
.slideshow {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* Ensure slideshow container centers images */
.slideshow_container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slideshow_hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 9;
  padding: 0.9rem 1.6rem;
  width: min(calc(100% - 3.2rem), 34rem);
  border-radius: 999px;
  background-color: rgba(16, 52, 28, 0.82);
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  white-space: normal;
}
