/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

h1, h2, p {
  margin: 0;
}

/* Header Styles */
header {
  background: #000;
  color: #fff;
  padding: 15px 20px;
  position: relative;
  z-index: 10;
}

/* Navigation Container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo in Navbar */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 50px;
  margin-right: 10px;
}

/* Logo Text */
.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

/* Menu Button (Hamburger Icon) */
.menu-btn {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  right: 20px;
  top: 60px;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 99;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background-color: #28a745;
}

/* Show Menu when Active */
.show-menu {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Hero Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

/* Updated Title Styling */
.bold-title {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

/* Updated Tagline Styling */
.tagline {
  font-size: 1.3rem;
  font-style: italic;
  color: #ddd;
  margin-bottom: 20px;
}

/* Slideshow */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.7;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.active {
  opacity: 1;
}

/* Page Section */
.section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

/* Footer Container */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 10px;
}

/* Footer Info Section */
.footer-info {
  display: flex;
  gap: 40px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #28a745;
}

.footer-section p,
.footer-section a {
  font-size: 1rem;
  color: #ccc;
  text-decoration: none;
}

.footer-section a:hover {
  color: #28a745;
}

/* Social Media Links */
.footer-container .social-icons {
  margin-top: 10px;
}

.footer-container .social-icons a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 1.2rem;
}

.footer-container .social-icons a:hover {
  color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bold-title {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .dropdown-menu {
    right: 10px;
    top: 50px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Additional Enhancements */

/* Call to Action Section */
.call-to-action {
  background-color: #001f3f;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.call-to-action h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.call-to-action p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #28a745;
  color: white;
  font-size: 1.1rem;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #218838;
}

/* Programs Section */
.programs ul {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
}

.programs li {
  background-color: #f1f1f1;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.programs li:hover {
  transform: translateY(-5px);
}

/* Mission and Vision Section */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: #f8f9fa;
  padding: 60px 20px;
}

.mission-vision > div {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  margin: 20px;
  background-color: #fff;
  padding: 30px;
  border-left: 5px solid #001f3f;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mission-vision h3 {
  color: #001f3f;
  margin-bottom: 10px;
}

/* About Preview Section */
.about-preview p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Media Queries */
@media (max-width: 768px) {
  .mission-vision {
    flex-direction: column;
    align-items: center;
  }

  .programs ul {
    text-align: center;
  }

  .programs li {
    text-align: left;
  }
}

/* Dropdown Menu Fixes */
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 60px;
  background-color: #222;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.show-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .dropdown-menu {
    right: 10px;
    top: 55px;
  }
}



/* Redesigned Footer */
.clean-footer {
  background-color: #fff;
  padding: 40px 20px;
  color: #222;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #e0e0e0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  max-width: 150px;
  margin: auto;
  display: block;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  text-align: left;
}

.footer-column p,
.footer-column a {
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  margin: 6px 0;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column .icon {
  margin-right: 6px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: transparent;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column h3 {
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }
}



/* Footer Layout Fixes */
.clean-footer {
  background-color: #fff;
  padding: 60px 20px;
  color: #222;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #e0e0e0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.center-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-width: 140px;
  height: auto;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 12px;
}

.footer-column p,
.footer-column a {
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  margin: 6px 0;
  display: inline-block;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column .icon {
  margin-right: 6px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: transparent;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-column h3 {
    text-align: center;
  }
}



/* Clean 4-column Footer */
.clean-footer {
  background-color: #fff;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
  color: #222;
  border-top: 1px solid #e0e0e0;
}

.footer-wrapper.four-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
  text-align: left;
}

.logo-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  width: 130px;
  height: auto;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111;
}

.footer-column p,
.footer-column a {
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  margin: 6px 0;
  display: inline-block;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column .icon {
  margin-right: 6px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .footer-wrapper.four-columns {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h3 {
    text-align: center;
  }
}



/* Align icons with text in Contact Us */
.footer-column p {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.footer-column .icon {
  margin-right: 0;
  font-size: 1.1rem;
  line-height: 1;
}

/* Email link alignment */
.footer-column p a {
  display: inline;
  color: #222;
}

.footer-column p a:hover {
  text-decoration: underline;
}



/* Equal column height and vertical centering */
.footer-wrapper.four-columns {
  align-items: stretch;
}

/* Vertically center logo with flexbox */
.logo-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Match all columns' internal spacing */
.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}



/* Remove excess spacing between lines in footer columns */
.footer-column p {
  margin: 2px 0;
  gap: 6px;
}

.footer-column a {
  margin: 0;
}

.footer-column h3 {
  margin-bottom: 8px;
}



/* Center-align all footer columns and ensure heading alignment */
.footer-column {
  align-items: center;
  text-align: center;
}

/* Make sure all headings align at the same vertical level */
.footer-wrapper.four-columns {
  align-items: flex-start;
}



/* Scrollable event cards */
.event-scroll-container {
  display: flex;
  overflow-x: auto;
  padding: 20px 0;
  gap: 20px;
  scroll-behavior: smooth;
}

.event-card-block {
  flex: 0 0 auto;
  width: 280px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.event-card-block:hover {
  transform: translateY(-5px);
}

.event-card-block img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.event-details {
  padding: 15px;
}

.event-details h3 {
  font-size: 1.1rem;
  color: #001f3f;
  margin-bottom: 8px;
}

.event-details p {
  font-size: 0.95rem;
  color: #333;
}



/* Event Carousel with Arrow Controls */
.carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.event-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
}

.event-card-block {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: #001f3f;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  border-radius: 50%;
  opacity: 0.8;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.left {
  left: -10px;
}

.carousel-btn.right {
  right: -10px;
}

/* Past Events Styles */
.past-events {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.past-article {
  background: #fff;
  padding: 20px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 5px solid #001f3f;
  border-radius: 8px;
}

.past-article h3 {
  color: #001f3f;
  margin-bottom: 10px;
}

.past-article a {
  color: #28a745;
  font-weight: bold;
  text-decoration: none;
}

.past-article a:hover {
  text-decoration: underline;
}











/* Adjust carousel arrows closer to the cards */
.carousel-btn.left {
  left: -40px;
}

.carousel-btn.right {
  right: -40px;
}

/* Fix navigation dropdown positioning */
.nav-right {
  position: relative;
}

.dropdown-menu {
  top: 50px;
  right: 0;
}


/* Final Carousel and Nav Fixes */
.carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  scroll-behavior: smooth;
  overflow: hidden;
  width: 960px;
  padding: 20px 0;
  justify-content: center;
}

.event-card-block {
  flex: 0 0 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: #001f3f;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
  border-radius: 50%;
  opacity: 0.85;
}

.carousel-btn.left {
  left: 20px;
}

.carousel-btn.right {
  right: 20px;
}

.carousel-btn:hover {
  opacity: 1;
}

/* Nav dropdown alignment */
.nav-right {
  position: relative;
}

.dropdown-menu {
  top: 50px;
  right: 0;
  display: none;
  position: absolute;
  background-color: #222;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.show-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Tighter arrow position next to event blocks */
.carousel-btn.left {
  left: -10px;
}

.carousel-btn.right {
  right: -10px;
}

/* Dropdown menu: ensure visibility and layering */
.nav-right {
  position: relative;
  z-index: 2000;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #222;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3000;
}

.show-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-btn.left {
  left: 5px;
}

.carousel-btn.right {
  right: 5px;
}


.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.event-carousel {
  position: relative;
  padding: 0 50px; /* padding inside carousel to make room for buttons */
}


.carousel-btn {
  background-color: transparent;
  color: #001f3f;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 10;
  opacity: 0.9;
  transition: color 0.3s ease;
}

.carousel-btn:hover {
  color: #003366;
}

.event-card-block:hover {
  box-shadow: 0 0 0 3px #001f3f;
}


.carousel-btn {
  font-size: 2.5rem;
  margin-top: -5px;
}

.event-card-block {
  margin-top: 10px;
  padding-top: 2px;
}


/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* Contact Info Section */
.contact-info {
  max-width: 600px;
  margin: 30px auto;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #001f3f;
  outline: none;
}

.contact-form button {
  width: fit-content;
  align-self: flex-start;
}
