/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  color: #f2f2f2;
  background: #f2f2f2;
  line-height: 1.6;
}

/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 20px;
}
.top-bar .logo img {
  height: 60px;
}
.top-bar .email {
  font-size: 14px;
  color: #000;
  left: 303px;
  position: relative;
}
.top-bar .search input {
  padding: 5px 8px;
  border: 1px solid #ccc;
}

/* NAVBAR */
.navbar {
  background: #0a1a3c;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.navbar li {
  margin: 10px 20px;
}
.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  transition: 0.3s;
}
.navbar a:hover {
  color: #c12028;
}

/* HERO COURSES SECTION */
.home .courses {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 20px;
  flex-wrap: wrap;
}
.course {
  flex: 1 1 calc(33.33% - 20px);
  background: rgba(0,0,0,0.5);
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}
.course img {
  width: 100%;
  height: 200px;          
  object-fit: contain;    
  /* background: #0a1a3c;     */
  border-radius: 10px;
  padding: 15px;         
}

.course h2 {
  margin: 15px 0;
}
.course .btn {
  display: block;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #fff;
  text-decoration: none;
  color: #fff;
  border-radius: 5px;
  transition: 0.3s;
}
.course .btn.red {
  background: #c12028;
  border: none;
}
.course .btn:hover {
  background: #fff;
  color: #000;
}

/* FOOTER */
footer {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 30px 20px;
  margin-top: 20px;
}
.footer-links {
  margin-bottom: 20px;
}
.footer-links a {
  color: #000;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}
.footer-links a:hover {
  color: #c12028;
}
.footer-address {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
  margin: 20px 0;
}
.footer-address div {
  width: 250px;
}
.copy {
  font-size: 14px;
  margin-top: 10px;
}

.social-icons {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;
  gap: 15px; /* space between icons */
  margin: 20px 0;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.2); /* slight zoom on hover */
  opacity: 0.8; /* subtle hover effect */
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .course {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 10px;
  }
  .course {
    flex: 1 1 100%;
  }
  .navbar ul {
    flex-direction: column;
  }
  .navbar li {
    margin: 10px 0;
  }
}
.courses {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.course {
  position: relative;
  width: 320px;
  padding: 30px 20px;
  background: #0c2045; /* fallback bg */
  color: #fff;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

/* Common background image layer */
.course::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transform: scale(1);
  transition: transform 6s linear;
  z-index: 0;
}

/* Specific background images */
.course.gateway::before {
  background-image: url("images/buttons/button_1.jpg");
}

.course.sam::before {
  background-image: url("images/buttons/button_2.jpg");
}

.course.randolph::before {
  background-image: url("images/buttons/button_3.jpg");
}

/* Hover effect */
.course:hover::before {
  transform: scale(1.5);
}

/* Content above bg */
.course * {
  position: relative;
  z-index: 1;
}
/* General Section Styles */
.events-section,
.event-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

/* Event Container for Section 2 */
.event-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  gap: 0;
}

.event-container.reverse {
  flex-direction: row-reverse;
}

/* Image Styles */
.event-image {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  overflow: hidden;
  border-radius: 15px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.5s ease;
}

.event-image:hover img {
  transform: scale(1.05);
}

/* Content Styles */
.event-content {
  flex: 1;
  min-width: 300px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #222;
}

.event-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.event-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.event-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-content ul li {
  font-size: 16px;
  margin: 10px 0;
  color: #444;
}

.event-content ul li span {
  color: #c12028;
  font-weight: bold;
}

/* Links */
.event-content a,
.calendar-link {
  color: #c12028;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.event-content a:hover,
.calendar-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .events-section,
  .event-container {
    flex-direction: column;
    text-align: center;
  }

  .event-content {
    padding: 25px 20px;
  }

  .event-image {
    max-width: 100%;
    min-width: 100%;
  }
}



