* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 30px 20px;
  font-family: Arial, sans-serif;
  color: #073b4c;
  background: linear-gradient(180deg, #8ee3f5, #e9fbff);
}

.page {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h1 {
  margin: 10px 0 5px;
  color: #075985;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.subtitle {
  margin-bottom: 45px;
  color: #176b87;
}

.surfboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 48px 55px;
  border: 8px solid #c47b39;
  border-radius: 50% 50% 48% 48% / 30% 30% 70% 70%;
  background: linear-gradient(90deg, #f6c56b, #ffe09a, #f6c56b);
  box-shadow: 0 18px 25px rgba(0, 70, 100, 0.25);
}

.surfboard::before,
.surfboard::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 7px;
  border-radius: 50%;
  background: #ef476f;
  opacity: 0.8;
}

.surfboard::before {
  top: 25px;
}

.surfboard::after {
  bottom: 25px;
  background: #06a6c9;
}

.video-card {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  border: 4px solid white;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 15px rgba(0, 55, 80, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.video-card:hover,
.video-card:focus {
  outline: none;
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 15px 25px rgba(0, 55, 80, 0.3);
}

.video-card:nth-child(even):hover,
.video-card:nth-child(even):focus {
  transform: translateY(-8px) rotate(1deg);
}

.card-image {
  display: grid;
  height: 180px;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.ocean-one {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.ocean-two {
  background: linear-gradient(135deg, #ff7b54, #ffb26b 55%, #5b4b8a);
}

.play-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  padding-left: 4px;
  color: white;
  font-size: 26px;
  border: 3px solid white;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}

.card-content {
  padding: 12px 18px;
}

.card-content h2 {
  margin: 0 0 5px;
  font-size: 1.25rem;
}

.card-content p {
  margin: 0;
  color: #52727d;
}

.video-modal,
.carti-popup {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(1, 25, 40, 0.82);
}

.video-modal.active,
.carti-popup.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(800px, 95vw);
  padding: 25px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.carti-popup-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(600px, 92vw);
  max-height: 90vh;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.modal-content h2,
.carti-popup-content h2 {
  margin-top: 0;
  color: #075985;
}

.modal-content iframe,
.carti-popup-content iframe {
  display: block;
  width: 100%;
  height: min(70vh, 450px);
  border: 0;
  border-radius: 10px;
  background: #001d2b;
}

.carti-popup-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(90vh - 32px);
  object-fit: contain;
  border-radius: 10px;
}

.close-button,
.popup-close,
.carti-close {
  border: 0;
  cursor: pointer;
  color: white;
  background: #ef476f;
}

.close-button {
  position: absolute;
  z-index: 2;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  font-size: 25px;
  border-radius: 50%;
}

.extra-popup {
  position: absolute;
  z-index: 12;
  right: 7%;
  bottom: 8%;
  width: 230px;
  padding: 20px;
  text-align: left;
  border: 4px solid white;
  border-radius: 16px;
  color: #073b4c;
  background: #ffd166;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 5px;
  right: 8px;
  color: #073b4c;
  font-size: 20px;
  background: transparent;
}

.carti-section {
  max-width: 1400px;
  margin: 45px auto 0;
  text-align: center;
}

.carti-section img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: auto;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 55, 80, 0.25);
}

.carti-section h2 {
  color: red;
}

.carti-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 25px;
  border-radius: 50%;
}

@media (max-width: 700px) {
  .surfboard {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    border-radius: 35px;
  }

  .extra-popup {
    right: 20px;
    bottom: 20px;
  }

  .carti-popup {
    padding: 12px;
  }

  .carti-popup-content {
    width: 95vw;
    max-height: 85vh;
    padding: 10px;
  }

  .carti-popup-content img {
    max-height: calc(85vh - 20px);
  }
}