/* BEGIN INITIALIZATION */
* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  --main-darkblue-hex : #000071;
  --main-skyblue-hex : #3079ec;
  --main-lightblue-hex : #549efb;
  --main-darkgray-hex : #60636f;
  --main-lightgray-hex : #949494;
  --main-green-hex : #22b573;
  --main-darkblue-rgb : rgb(20, 44, 123);
  --main-skyblue-rgb : rgb(46, 152, 211);
  --main-skyblue-rgb : rgb(90, 191, 212);
  --main-darkgray-rgb : rgb(96, 99, 111);
  --main-lightgray-rgb : rgb(148, 148, 148);
  --main-green-rgb : rgb(4, 108, 52);
}

/* NEW POLICE */
@font-face {
  font-family: "cpt";
  src: local('AvenirNextLTPro-Regular'), local('AvenirNextLTPro-Regular'),
      url('../../assets/font/AvenirNextLTPro-Regular.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "cpl";
  src: local('AvenirNextLTPro-Bold'), local('AvenirNextLTPro-Bold'),
      url('../../assets/font/AvenirNextLTPro-Bold.otf') format('opentype');
  font-weight: 400;
  font-style: bolder;
}

body {
  font-family: "cpt", sans-serif;
  background-color: #f0f8ff;
  color: #333;
  margin: 0;
  padding: 0;
}

/* BEGIN NAVBAR */
header {
  background-color: var(--main-skyblue-hex);
  position: fixed;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  align-items: center;
  font-family: "cpt", sans-serif;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
}


.nav-logo > img {
  width: 100px;  
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 5rem;
  position: relative;
  letter-spacing: .3rem;
}

.nav-link {
  text-decoration: none;
  font-size: 1.8rem;
  color: #fff;
  transition: all .3s ease;
}

.nav-link:hover {
  color: var(--main-darkblue-hex);
}

.navbar.scrolled .nav-link {
  color: var(--main-darkblue-hex);
}

.navbar.scrolled .nav-link:hover {
  color: var(--main-darkblue-hex);
}

.navbar.scrolled .nav-link span {
  color: #fff;
}

.navbar.scrolled .menu-btn:hover {
  background-color: var(--main-lightblue-hex);
}

.menu-btn {
  background-color: var(--main-darkblue-hex);
  color: #fff;
  border-radius: 25px;
  padding: 15px;
  transition: all ease .3s;
}

.menu-btn:hover {
  background-color: var(--main-lightblue-hex);
}

.navbar.scrolled .menu-btn {
  background-color: var(--main-darkblue-hex);
  color: #fff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  list-style: none;
}

.dropdown-item {
  margin: 0;
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #fff;
}

.dropdown-link:hover {
  background-color: #f1f1f1;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.3s;
}
/* END NAVBAR */

/* .filter-section {
  background-color: var(--main-darkblue-hex);
  padding: 20px;
  text-align: center;
  font-family: "cpl", sans-serif;
  font-size: .9rem;
  letter-spacing: 1px;
  position: fixed;
  width: 100%;
}

.filter-section form {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.filter-section > form > div > label {
  color: #fff;
  font-family: "cpt", sans-serif;
}

.filter-section select, .filter-section input, .filter-section button {
  padding: 15px;
  border: none;
  border-radius: 25px;
  font-family: "cpt", sans-serif;
  color: var(--main-lightgray-hex);
  font-size: 1rem;
} */

/* BEGIN COMING SOON PAGE */
#activity-coming-soon {
  display: grid;
  height: 100vh;
  align-items: center;
  justify-items: center;
  font-size: 2rem;
  align-content: center;
}

#activity-coming-soon > h1 {
  text-align: center;
}

.btn-activities-coming-soon-mobile {
  display: none;
}

.btn-activities-coming-soon {
  border: none;
  font-size: 2rem;
  margin-top: 2%;
  letter-spacing: 2px;
  font-family: "cpt", sans-serif;
}

.btn-activities-coming-soon:hover {
  cursor: pointer;
}

.btn-activities-coming-soon > a {
  color: #fff;
  text-decoration: none;
}
/* END COMING SOON PAGE */

input:focus {
  border: none;
}

input::placeholder {
  color: var(--main-lightgray-hex);
}

#btn-activity-submit {
  background-color: var(--main-skyblue-hex);
  color: #fff;
  font-family: "cpt", sans-serif;
  letter-spacing: 2px;
  font-size: 1rem;
}

#btn-activity-submit:hover {
  background-color: var(--main-lightblue-hex);
  cursor: pointer;
}

#search-bar-activity {
  padding-top: 8%;
  display: flex;
  width: 90%;
  margin: 0 auto;
  justify-content: end;
  align-items: center;
}

#search-bar-activity > div > label {
  font-family: "cpt", sans-serif;
  font-size: 1rem;
}

#search-bar-activity > div >input {
  font-family: "cpt", sans-serif;
  font-size: 1rem;
  padding: 10px;
  border: 1px solid var(--main-green-hex);
  border-radius: 25px;
}

#color-date-of-event {
  color: red;
  margin-top: 2%;
  margin-bottom: 3%;
}

#activitiesList {
  padding-top: 10%;
  padding-bottom: 8%;
}

.activities-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  font-family: "cpt", sans-serif;
  font-weight: 300;
  line-height: 2rem;
  gap: 20px;
}

.activity-row {
  display: flex;
  gap: 20px;
  border-radius: 10px;
  margin: 10px 0;
  width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.activity-image img {
  border-radius: 10px;
  max-width: 400px;
  object-fit: cover;
}

.activity-details {
  padding: 20px;
  flex: 1;
}

.activity-details h3 {
  margin-top: 0;
  color: var(--main-green-hex);
  font-size: 2rem;
}

.activity-details p {
  margin: 10px 0;
  font-size: 1.7rem;
}

.activity-details button {
  background-color: var(--main-darkblue-hex);
  color: #ffffff;
  border: none;
  padding: 20px 30px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 2%;
  font-family: "t", sans-serif;
  letter-spacing: 2px;
  font-size: 1.3rem;
}

.activity-details button:hover {
  background-color: var(--main-lightblue-hex);
}

.pagination {
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination a {
  margin: 0 5px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--main-darkblue-hex);
  border: 1px solid #ddd;
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.5rem;
}

.pagination a:hover {
  background-color: var(--main-skyblue-hex);
  color: #fff;
}

.pagination a.active {
  background-color: var(--main-darkblue-hex);
  color: #fff;
  border-color: var(--main-green-hex);
}

/* Truncated description */
.description {
  max-height: 70px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding-bottom: 0;
}

/* Expanded state */
.description.expanded {
  max-height: none;
  padding-bottom: 10px;
}



@media (max-width: 1024px) {
  .header-home {
    height: 50vh;
  }

  .nav-logo > img {
    width: 60px;
    height: auto;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 10rem;
    flex-direction: column;
    background-color: var(--main-darkblue-hex);
    width: 100%;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 2.5rem 0;
  }

  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
  }

  .dropdown-link:hover {
    background-color: var(--main-darkblue-hex);
    color: #fff;
  }
  
  .dropdown-item.active .dropdown-link {
    background-color: var(--main-darkblue-hex);
    color: #fff;
  }
  
  .hamburger {
    display: flex;
  }

  .nav-link:hover {
    color: var(--main-lightblue-hex);
  }

  .navbar.scrolled .nav-link {
    color: #fff;
  }
  
  .navbar.scrolled .nav-link:hover {
    color: var(--main-lightblue-hex);
  }
  /* END RESPONSIVE MENU */
}



/* Responsive Design */
@media (max-width: 768px) {
  #activity-coming-soon {
    width: 80%;
    margin: 0 auto;
  }

  #activity-coming-soon > h1 {
    font-size: 2.5rem;
  }

  .btn-activities-coming-soon {
    padding: 0;
  }

  .btn-activities-coming-soon > a {
    font-size: 1rem;
  }

  .filter-section form {
      flex-direction: column;
      gap: 5px;
  }

  .activity-row {
      flex-direction: column;
      align-items: center;
  }

  .activity-image img {
      width: 100%;
      height: auto;
      border-radius: 10px 10px 0 0;
  }

  .activity-details {
      padding: 10px;
  }

  .nav-logo > img {
    width: 60px;
    height: auto;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 10rem;
    flex-direction: column;
    background-color: var(--main-darkblue-hex);
    width: 100%;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 2.5rem 0;
  }

  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
  }

  .dropdown-link:hover {
    background-color: var(--main-darkblue-hex);
    color: #fff;
  }
  
  .dropdown-item.active .dropdown-link {
    background-color: var(--main-darkblue-hex);
    color: #fff;
  }
  
  .hamburger {
    display: flex;
  }

  .nav-link:hover {
    color: var(--main-lightblue-hex);
  }

  .navbar.scrolled .nav-link {
    color: #fff;
  }
  
  .navbar.scrolled .nav-link:hover {
    color: var(--main-lightblue-hex);
  }
  
  .btn-activities-coming-soon {
    display: none;
  }
  
  .btn-activities-coming-soon-mobile {
    display: block;
    margin-top: 8%;
    border: none;
    outline: none;
    letter-spacing: 2px;
  }
  
  .btn-activities-coming-soon-mobile:hover {
    background-color: var(--main-lightblue-hex);
  }
  
  .btn-activities-coming-soon-mobile > a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    border: none;
    font-family: "cpt", sans-serif;
  }
}
/* END RESPONSIVE MENU */