
/* HERO */
.projects-hero{
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('images/comhero.jpeg');
    background-size: cover;
    background-position: center;
    height:80vh;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    text-align:center;
}

/* Container for content alignment */
.container {
  width: 100%;

  margin: 0 auto;
  padding: 0 20px;
}

/* About Section */
.about {
  background: #e2e2e2;
  padding: 40px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #0a4d8c;
}

.about p {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  word-wrap: break-word;
  padding: 0 15px;
}

/* Video Section */
.videos {
  background: #fff;
  padding: 60px 0;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.video {
  flex: 1 1 48%; /* Ensures videos take up 48% width */
}

.video iframe {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery {
  background: #fff;
  padding: 60px 0;
}

.gallery h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #0a4d8c;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-container img {
  width: 100%;
  height: 250px; /* Maintain consistent height */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Call to Action Section */
.cta {
  background: #0a4d8c;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.cta h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta .btn {
  background-color: #fff;
  color: #0a4d8c;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta .btn:hover {
  background-color: #e2e2e2;
}



/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .about h2 {
    font-size: 2em;
  }

  .about p {
    font-size: 1.1em;
    max-width: 90%; /* Fill more of the container */
    margin: 0 auto;
    padding: 0 15px; /* Ensures text doesn't touch the edges */
  }

  .video {
    flex: 1 1 100%; /* Stack videos vertically */
  }

  .video iframe {
    height: 200px;
  }

  .gallery-container img {
    height: 200px; /* Resize gallery images for mobile */
  }

  .cta h2 {
    font-size: 2em;
  }

  .cta p {
    font-size: 1.1em;
  }

  .cta .btn {
    width: 100%; /* Full-width button on mobile */
    padding: 20px;
  }

  .footer p {
    font-size: 0.9em;
  }
}

@media screen and (max-width: 480px) {
  .about h2 {
    font-size: 1.8em;
  }

  .about p {
    font-size: 1em;
    max-width: 90%;
  }

  .gallery-container img {
    height: 200px; /* For very small screens */
  }

  .cta h2 {
    font-size: 1.8em; /* Even smaller heading for small screens */
  }

  .cta p {
    font-size: 1em;
  }

  .cta .btn {
    padding: 20px; /* Adjust padding on very small screens */
  }
}