/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(to bottom, #87cefa, #f0e68c);
}

/* Header Banner */
.header-banner {
  text-align: center;
  overflow: hidden;
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation Styles */
nav {
  background-color: #006994;
  padding: 10px;
}

nav ul.navigation {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

nav ul.navigation li {
  display: inline;
  margin-right: 15px;
}

nav ul.navigation li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul.navigation li a:hover {
  color: #ffdd57;
}

/* Flex Container for Main Content */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.main-content,
.lesson-item,
.links-section {
  background-image: url('images/wave-pattern.png');
  background-size: cover;
  padding: 20px;
  border-radius: 10px;
}

/* Flex Items */
.flex-item {
  background: rgba(255, 255, 255, 0.9);
  color: #003366;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #00bcd4;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.flex-item:hover {
  transform: translateY(-10px);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
}

/* Typography */
h1, h2, h3 {
  font-family: 'Pacifico', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #008080;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

p, ul, address {
  font-family: 'Verdana', sans-serif;
  line-height: 1.5;
  color: #003366;
}

/* Forms */
form {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-weight: bold;
  color: #006994;
  margin-bottom: 5px;
  width: 100%;
  text-align: left;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.send-message-button {
  background-color: #ff7f50;
  color: #fff;
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.send-message-button:hover {
  background-color: #ff6347;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: linear-gradient(to right, #006994, #87cefa);
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* Back to Top Link */
.back-to-top-container {
  text-align: center;
  margin: 20px 0;
}

.back-to-top {
  color: #006994;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #87cefa;
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #006994;
  color: #fff;
}

/* Image Styling (Lesson, Contact, Camp) */
.lesson-image,
.contact-image-container,
.camp-image {
  text-align: center;
  margin: 20px 0;
}

.lesson-image img,
.contact-image-container img,
.camp-image img {
  border-radius: 20px;
  max-width: 100%;
  height: auto;
  border: 5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.lesson-image img:hover,
.contact-image-container img:hover,
.camp-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Flex Layout for Camp and Did You Know Sections */
.camps-flex,
.camps-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 20px 0;
}

/* Camp Item Styling */
.camp-item {
  flex: 1 1 calc(50% - 20px);
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Did You Know Section */
.did-you-know {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.did-you-know:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Three-Column Layout */
.three-column-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.lesson-item,
.links-section {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex: 1 1 calc(50% - 20px);
  max-width: 600px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .lesson-item,
  .links-section,
  .camp-item {
    flex: 1 1 100%;
  }

  nav ul.navigation li {
    display: block;
    margin: 10px 0;
  }

  .send-message-button {
    font-size: 0.9em;
    padding: 10px;
  }
}
/* About WAVES Section */
.about-section {
  text-align: center;
  padding: 20px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Trainers Section */
.trainers-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
}

.trainer {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex: 1 1 calc(50% - 20px);
}

.trainer img {
  width: 150px; /* Base width */
  height: auto; /* Maintain aspect ratio */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

.trainer img:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Intensify shadow on hover */
}

/* Adjust image size for wider screens */
@media (min-width: 1024px) {
  .trainer img {
      width: 200px; /* Increase width for full-screen */
  }
}

/* Adjust image size for very large screens */
@media (min-width: 1440px) {
  .trainer img {
      width: 250px; /* Further increase width for ultra-wide screens */
  }
}

.trainer div {
  max-width: 600px;
}

/* Reverse layout for female trainer */
.reverse-layout {
  flex-direction: row-reverse;
}

.reverse-layout img {
  margin-right: 0;
  margin-left: 20px;
}

/* Additional Info Section */
.info-section {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  text-align: center;
}

/* Back to Top */
.back-to-top-container {
  text-align: center;
  margin: 20px 0;
}

.back-to-top {
  color: #006994;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #87cefa;
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #006994;
  color: #fff;
}
h4 {
  background: linear-gradient(to right, #006994, #87cefa);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  text-shadow: none; /* Remove the shadow for a cleaner look */
}
/* Centered and Responsive Layout */
.trainers-section {
  max-width: 1200px; /* Set a maximum width for the container */
  margin: 0 auto; /* Center the container */
  padding: 20px; /* Add some padding for spacing */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.trainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* Ensure proper alignment between image and text */
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.trainer:hover {
  transform: scale(1.02); /* Slight scale effect on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

.trainer img {
  max-width: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 10px;
}

.trainer img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.trainer div {
  flex: 1;
  padding: 10px 20px;
  max-width: 600px;
}

.trainer.reverse-layout {
  flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trainer {
      flex-direction: column; /* Stack items on smaller screens */
      text-align: center;
  }

  .trainer.reverse-layout {
      flex-direction: column; /* Consistent stacking for reversed layout */
  }

  .trainer div {
      max-width: none; /* Allow full width for text on smaller screens */
  }
}
/* Centered and Responsive Main Content */
.index-main {
  max-width: 1200px; /* Set a maximum width for the content */
  margin: 0 auto; /* Center the content */
  padding: 20px; /* Add padding for spacing */
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* Space between sections */
  justify-content: space-between;
}

/* Individual Flex Items */
.index-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  flex: 1 1 calc(50% - 20px); /* Two equal-width columns with a gap */
  max-width: 48%; /* Prevents flex items from growing too large */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-section:hover {
  transform: scale(1.02); /* Subtle hover effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Full-Width Section (for any section that spans the full container) */
.index-full {
  flex: 1 1 100%; /* Full-width item */
  max-width: 100%; /* Ensures full width */
}

/* Images within Sections */
.index-section img {
  max-width: 100%;
  height: auto;
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
  margin: 20px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-section img:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Map Container */
.map-container {
  border-radius: 15px;
  overflow: hidden; /* Clip the map within rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .index-section {
      flex: 1 1 100%; /* Stack all sections vertically */
      max-width: 100%;
      text-align: center; /* Center text on smaller screens */
  }

  .index-section img {
      margin: 0 auto; /* Center images */
  }
}
.center-text {
  text-align: center;
  margin: 0 auto; /* Ensure it's centered within its container */
  display: block; /* Ensure it behaves like a block-level element */
}
aside .fact-image-container img {
  display: block; /* Makes the image a block-level element */
  margin: 0 auto; /* Automatically centers the image horizontally */
}