body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #7f1d1d, #b91c1c);
  padding: 12px 20px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo {
  height: 45px;
  margin-right: 10px;
  border-radius: 50%;
}
.navbar a {
  margin: 0 12px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  position: relative;
}
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #fca5a5;
  transition: width 0.3s ease;
}
.navbar a:hover::after {
  width: 100%;
}

/* Slideshow */
.slideshow {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}
.slides img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 4px solid #b91c1c;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.slides img:hover {
  transform: scale(1.03);
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  background: rgba(185, 28, 28, 0.7);
  border-radius: 50%;
  user-select: none;
  z-index: 3;
  transition: background 0.3s ease;
}
.prev:hover, .next:hover {
  background: rgba(127, 29, 29, 0.9);
}
.next { right: 0; }

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
}
.hero-text h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}
.hero-text p {
  font-size: 18px;
  color: #fca5a5;
}
@media (min-width: 768px) {
  .hero-text h2 { font-size: 40px; }
  .hero-text p { font-size: 22px; }
  .slides img { height: 500px; }
}

/* Sections */
.section {
  padding: 50px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease-in;
}
.section h2 {
  color: #b91c1c;
  margin-bottom: 20px;
  font-size: 28px;
  border-bottom: 2px solid #fca5a5;
  display: inline-block;
  padding-bottom: 6px;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: white;
  padding: 20px;
  border-left: 5px solid #b91c1c;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.curriculum ul {
  text-align: left;
  max-width: 600px;
  margin: auto;
  line-height: 1.8;
  background: #fff8f8;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #b91c1c;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 450px;
  margin: auto;
}
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 5px rgba(185, 28, 28, 0.5);
  outline: none;
}
.contact-form button {
  padding: 12px;
  background: #b91c1c;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.contact-form button:hover {
  background: #7f1d1d;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: linear-gradient(to right, #7f1d1d, #b91c1c);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fca5a5;
}

/* Responsive */
@media (min-width: 768px) {
  .cards { flex-direction: row; }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-container {
    margin-bottom: 10px;
  }
  .navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .navbar a {
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .cards {
    flex-direction: column;
  }
  .card {
    width: 100%;
  }
}

/* Animations */
.hero-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  border-radius: 8px;
  margin-top: 5%;
}

#caption {
  margin: 15px auto;
  text-align: center;
  color: #ccc;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.close:hover {
  color: #fca5a5;
}

/* Announcements Bar */
.announcements {
  background: #fbbf24;       /* gold background */
  color: #7f1d1d;            /* deep red text */
  font-weight: bold;
  padding: 10px;
  text-align: center;
  font-size: 15px;
  border-bottom: 2px solid #b91c1c;
}

.announcements p {
  margin: 0;
  animation: fadeIn 1s ease-in-out;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

video, iframe {
  width: 100%;          
  aspect-ratio: 1 / 1;  
  border-radius: 20px;  
  object-fit: cover;    
  max-width: 300px;     
  display: block;
  margin: auto;         
  border: 2px solid #cc0000; /* 🔴 red border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); 
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

video:hover, iframe:hover {
  transform: scale(1.04); 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(204, 0, 0, 0.5); /* ✨ red glow */
  border-color: #e60000; /* brighter red on hover */
}

.gallery img {
  width: 100%;
  max-width: 300px;       /* keep them similar to videos */
  aspect-ratio: 1 / 1;    /* square shape */
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid #cc0000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: block;
  margin: auto;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(204, 0, 0, 0.5);
  border-color: #e60000;
}


