/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  top: 86px;
  position: relative;
  overflow: hidden;
  background: url("../../Images/Student-02/bg.jpg") no-repeat center
    center/cover;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 50px;

  color: rgb(255, 255, 255);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(255, 255, 255, 0.24); /* light white overlay */
  pointer-events: none;
  border-radius: 10px;
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 1.2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero button {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  background-color: #0099cc;
}

.hero .tuna1 {
  position: absolute;

  pointer-events: none;
  padding: 2px;
  scale: 0.15;
  animation: swim1 20s linear infinite;
}
.hero .tuna2 {
  position: absolute;
  top: 0%;
  pointer-events: none;
  padding: 2px;
  scale: 0.25;
  animation: swim2 60s linear infinite;
}

.hero .octopus {
  position: absolute;
  left: 0.1%;
  pointer-events: none;
  padding: 2px;
  scale: 0.15;
  animation: swim3 40s linear infinite;
}

@keyframes swim1 {
  0% {
    left: -100px;
    transform: scaleX(1);
  }
  100% {
    left: 110%;
    transform: scaleX(1);
  }
}
@keyframes swim2 {
  0% {
    left: -110px;
    transform: scaleX(1);
  }
  100% {
    left: 110%;
    transform: scaleX(1);
  }
}
@keyframes swim3 {
  0% {
    top: 60%;
  }
  50% {
    top: 30%;
  }
  100% {
    top: 60%;
  }
}
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  font-size: 12px;
  cursor: pointer;
}
.button:hover {
  background-color: #0056b3;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 40px;
}

.card {
  position: relative;
  background-color: rgb(255, 255, 255);
  flex: 1 1 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  transition: 0.3s;
}
.card > * {
  position: relative;
  z-index: 2;
}
.card1 {
  position: relative;
  background: url("../../Images/Student-02/Ocean Conservation.gif");
  background-size: contain;
}
.card2 {
  position: relative;
  background: url("../../Images/Student-02/Marine Biodiversity.gif");
  background-repeat: no-repeat;
  background-size: cover;
}
.card3 {
  position: relative;
  background: url("../../Images/Student-02/Plastic Pollution.gif");
  background-repeat: no-repeat;
  background-size: cover;
}

.card4 {
  position: relative;
  background: url("../../Images/Student-02/Coral-Reefs.gif");
  background-repeat: no-repeat;
  background-size: cover;
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.777); /* light white overlay */
  pointer-events: none;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px 1px #48abe0;
}

.card h3 {
  color: #004c99;

  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  nav a {
    margin-left: 10px;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
}
/* Full-screen loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.mission-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f0f8ff;
  border-top: 2px solid #0077b6;
  border-bottom: 2px solid #0077b6;
  border-radius: 5%;
}

.mission-content {
  flex: 1 1 400px;
  max-width: 600px;
  padding: 20px;
}

.mission-content h2 {
  font-size: 2em;
  color: #0077b6;
  margin-bottom: 15px;
}

.mission-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.mission-content a.button {
  display: inline-block;
  background-color: #00b4d8;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: bold;
}

.mission-image {
  flex: 1 1 300px;
  max-width: 700px;
  padding: 20px;
  text-align: center;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.mission-image img:hover {
  transform: scale(1.01);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
