/*
  New color scheme
  Primary #ffcf13 Yellow
  Secondary #2b0087 Purple

*/

/* variables */
:root {
  --primary-color: #ffcf13;
  --secondary-color: #2b0087;
  --facebook-color: #1877f2;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global styles */
* {
  transition: var(--transition);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* main */
.main {
  min-height: calc(90vh - 100px);
}

/* navbar */
.navbar {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(43, 0, 135, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

.navbar-nav .nav-link.active {
  color: white;
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link.active::before {
  display: none;
}

.navbar-toggler {
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(43, 0, 135, 0.25);
}

/* hero */
.hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 60vh;
  min-height: 400px;
}

.hero .content {
  background-color: rgba(0, 0, 0, 0.6);
}

.hero .content .title {
  font-weight: bold;
}

.hero .content .subtitle {
  max-width: 1200px;
}

.hero .socials-btn.facebook {
  border: 2px solid white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.hero .socials-btn.facebook:hover {
  background-color: var(--facebook-color);
  color: white;
  border-color: var(--facebook-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Card */
.activity-card {
  min-height: 480px;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  background: white;
  position: relative;
}

.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 1;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}

.activity-card:hover::before {
  transform: scaleX(1);
}

.activity-card .card-title {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.activity-card:hover .card-title {
  color: var(--primary-color);
}

.activity-card .card-body {
  min-height: 220px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.activity-card .card-text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.activity-card .tip {
  bottom: 12px;
  left: 1.5rem;
  right: 1.5rem;
}

.activity-card .tip a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-card .tip a::after {
  content: "→";
  transition: var(--transition);
}

.activity-card:hover .tip a {
  color: var(--primary-color);
}

.activity-card:hover .tip a::after {
  transform: translateX(4px);
}

.activity-card .card-img-top {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: var(--transition);
}

.activity-card:hover .card-img-top {
  transform: scale(1.05);
}

/* footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ffd84d 100%);
  color: var(--secondary-color);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 4rem;
}

.footer .text-center {
  font-weight: 500;
  line-height: 1.8;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--facebook-color);
  text-decoration: underline;
}

/* activity photos */
.activity-photos {
  display: grid;
  gap: 1.5rem;
}

.activity-photos img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.activity-photos img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 767px) {
  /* bootstrap container breakpoint */
  .activity-photos img {
    height: 400px;
  }
}

@media (min-width: 840px) {
  .activity-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-photos img {
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .activity-photos {
    grid-template-columns: repeat(3, 1fr);
  }
  .activity-photos img {
    height: 300px;
  }
}

.activity-photo img {
  cursor: pointer;
}

/* carousel */
.carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.carousel .inactive {
  display: none;
}

.carousel .control {
  color: white;
  font-size: 2.5rem;
  width: 30vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}

.carousel .control:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.carousel .left-control {
  left: 0;
  border-radius: 0 12px 12px 0;
}

.carousel .right-control {
  right: 0;
  border-radius: 12px 0 0 12px;
}

.carousel .close-control {
  color: white;
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  z-index: 2001;
}

.carousel .close-control:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* bestuur-card */
.bestuur-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  background: white;
  height: 100%;
}

.bestuur-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.bestuur-card img {
  object-fit: cover;
  transition: var(--transition);
  width: 100%;
}

.bestuur-card:hover img {
  transform: scale(1.1);
}

.bestuur-card .card-body {
  padding: 1.5rem;
  text-align: center;
}

.bestuur-card .card-title {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bestuur-card .card-text {
  color: var(--text-light);
  font-weight: 500;
}

@media (min-width: 990px) {
  .bestuur-card img {
    height: 280px;
  }
}

/* Section headings */
h2 {
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Container improvements */
.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Button improvements */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Card shadow improvements */
.shadow {
  box-shadow: var(--shadow-md) !important;
}
