/* *************************** */
/* HEADER */
/* *************************** */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #bee6f7;

  /* Because we want header to be sticky later */
  height: 9.6rem;
  padding: 0 4.8rem;
  position: relative;
}

.logo {
  height: 6.5rem;
}

/* *************************** */
/* NAVIGATION */
/* *************************** */

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #1a77a0;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #25aae5;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: #1a77a0;
}

/* MOBILE */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* STICKY NAVIGATION */
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.sticky .section-hero {
  margin-top: 9.6rem;
}

/* DROPDOWN STYLES */
.dropdown {
  position: relative;
}

/* Dropdown Menu (hidden by default) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0%;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 170px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  list-style: none;
  text-align: left;
}

/* On Hover - show menu */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 1.6rem;
  transition: background-color 0.2s;
}

.dropdown-menu li {
  padding: 0;
  transition: background-color 0.2s;
}

.dropdown-menu li:hover {
  background-color: #bee6f7;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 1.6rem;
}

/* *************************** */
/* HERO SECTION */
/* *************************** */
.section-hero {
  background-image: linear-gradient(#bee6f7, #e9f7fc);
  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;
  gap: 9.6rem;
  align-items: center;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.hero-img {
  width: 100%;
  border-radius: 20px;
}

/* *************************** */
/* ABOUT US/PHOTO GALLERY SECTION */
/* *************************** */

.section-about {
  padding: 9.6rem 0;
}

.grid--about {
  grid-template-columns: 1.5fr 1fr;
}

.img-about {
  width: 100%;
  border-radius: 30px;
  justify-self: center;
  align-self: center;
}

.about-text {
  font-size: 2.2rem;
  line-height: 1.8;
  color: #07222e;
  justify-self: center;
  text-align: justify;
}

.btn--about:link,
.btn--about:visited {
  background-color: #25aae5;
  color: #fff;
  margin-top: 3rem;
  transition: all 0.5s;
}

.btn--about:hover,
.btn--about:active {
  background-color: #fff;
  color: #555;
  box-shadow: inset 0 0 0 3px #25aae5;
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 30px;
}

/* Slide images */
.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

/* BUTTONS */
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0); /* fully transparent */
  color: rgba(255, 255, 255, 0); /* invisible text */
  border: none;
  font-size: 2.8rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 2;
  transition: all 0.3s ease;
  pointer-events: auto;
  border-radius: 6px;
}

/* Show buttons on hover */
.slideshow:hover .slideshow-btn {
  background-color: rgba(0, 44, 55, 0.4);
  color: white;
}

/* Specific positions */
.slideshow-btn.prev {
  left: 1rem;
}

.slideshow-btn.next {
  right: 1rem;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.slideshow-dot {
  width: 1.2rem;
  height: 1.2rem;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slideshow-dot.active {
  background-color: #25aae5;
}

/* *************************** */
/* CATEGORY OF CLUBS SECTION */
/* *************************** */

.section-club {
  padding: 9.6rem 0;
}

.club-plan {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  justify-self: center;
  padding: 4rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}

.club-plan:hover {
  transform: translateY(-1.2rem);
  box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.06);
}

.action {
  background-image: linear-gradient(
      to right bottom,
      rgba(163, 224, 250, 0.4),
      rgba(180, 203, 243, 0.4)
    ),
    url("../img/img-action/conseil.jpg");
  background-size: cover;
  background-position: center;
}

.sports {
  background-image: linear-gradient(
      to right bottom,
      rgba(163, 224, 250, 0.4),
      rgba(180, 203, 243, 0.4)
    ),
    url("../img/img-sports/imgsports.jpg");
  background-size: cover;
  background-position: center;
}

.arts {
  background-image: linear-gradient(
      to right bottom,
      rgba(163, 224, 250, 0.4),
      rgba(180, 203, 243, 0.4)
    ),
    url("../img/img-arts/artsvisuel.jpg");
  background-size: cover;
  background-position: center;
}

.autre {
  background-image: linear-gradient(
      to right bottom,
      rgba(163, 224, 250, 0.4),
      rgba(180, 203, 243, 0.4)
    ),
    url("../img/img-autre/autre.jpg");
  background-size: cover;
  background-position: center;
}

.club-header {
  text-align: center;
  margin-bottom: 4.8rem;
}

.actionheader {
  text-align: center;
  margin-bottom: 1.8rem;
}

.club-name {
  font-size: 3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
}

.club-text {
  font-size: 2rem;
  font-weight: 500;
  color: #333;
}

.white {
  color: #eeeeee;
}

.club-name span {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 1rem; /* Applies margin to both left and right */
  display: block; /* Ensures each span takes the full width */
  text-align: left; /* Aligns text to the left */
  line-height: 4rem;
}

.club-apply {
  text-align: center;
  margin-top: 4.8rem;
}

.club-apply-action {
  text-align: center;
  margin-top: 1.8rem;
}

.lineheight span {
  line-height: 3rem;
}

.justify-content {
  justify-items: center;
  align-items: center;
}

/* *************************** */
/* CALENDAR SECTION */
/* *************************** */

.section-calendar {
  padding: 2rem 0 9.6rem 0;
  margin-top: 2rem;
}

/* *************************** */
/* CTA (call to action)/SIGN-UP SECTION */
/* *************************** */

.section-cta {
  /* top / right / bottom / left */
  /* padding: 9.6rem 0 12.8rem 0; */

  /* top / horizontal / bottom */
  padding: 9.6rem 0 12.8rem 0;
}

.cta-container {
  max-width: 125rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.cta h2 {
  font-size: 4rem;
}

.cta {
  display: grid;
  /* 2/3 = 66.6% + 1/3 = 33.3% */
  grid-template-columns: 2fr 1fr;
  /* background-color: #eaf4ec; */
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
  border-radius: 11px;

  background-image: linear-gradient(to right bottom, #a6b2f7, #baedff);
  overflow: hidden;
}

.cta-text-box {
  padding: 4.8rem 4.8rem 6.4rem 4.8rem;
  color: #1e1732;
}

.cta .heading-secondary {
  /* color: #0d2b13; */
  color: inherit;
  margin-bottom: 3.2rem;
}

.cta-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 4.8rem;
}

.cta-img-box {
  background-image: linear-gradient(
      to right bottom,
      rgba(166, 178, 247, 0.4),
      rgba(186, 237, 255, 0.4)
    ),
    url("../img/L'école\ ROMA.jpg");
  background-size: cover;
  background-position: center;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 0.5fr;
  column-gap: 3.2rem;
  row-gap: 2rem;
}

.cta-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-form input::placeholder {
  color: #aaa;
}

.cta *:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem rgba(195, 229, 244, 0.4);
}

.outer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.showbtn {
  margin: 200px auto;
}

.closebtn {
  margin-top: 3px;
}

.popup button {
  margin-top: 6px;
}

/* *************************** */
/* FOOTER */
/* *************************** */

.footer {
  padding: 12.8rem 0;
  background-color: #f8f8f8;
  align-items: center;
}

.grid--footer {
  grid-template-columns: 1fr 1fr;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.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;
  margin-bottom: 0.8rem;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #767676;
  margin-top: 1rem;
}

.footer-heading {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 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: 2rem;
  color: #676767;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #3f3f3f;
}
