/* Background animation for larger screens */
@keyframes bgMove {
  0% {
    transform: scale(1.1) translate(0px, 0px);
  }
  100% {
    transform: scale(1.2) translate(40px, 40px);
  }
}

/* Home section styles */
.home-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 4rem 1rem;
}

/* Animated background image */
.home-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: bgMove 30s ease-in-out infinite alternate;
  transform-origin: center center;
}
/* Background carousel wrapper */
.bg-carousel {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

/* Each slide */
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 8s infinite;
  transition: opacity 1s  ease-in-out;
}

/* Slide 1 */
.bg-slide:nth-child(1) {
  background-image: url('../images/KLA front 2.jpg');
  animation-delay: 0s;
}

/* Slide 2 */
.bg-slide:nth-child(2) {
  background-image: url('../images/collegehouse-wide.jpg');
  animation-delay: 4s;
}

/* Keyframes for fading in/out */
@keyframes slideShow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Dark overlay for readability */
.home-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.518);
  z-index: -1;
}

/* Content animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section h1,
.home-section p,
.home-section .btn {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.home-section h1 {
  font-size: 3rem;
  font-weight: 700;
  animation-delay: 0.5s;
}

.divider {
  margin: 0 1rem;
  color: #f4d35e; /* optional: gold accent */
  font-weight: bold;
}

.home-section p {
  font-size: 1.20rem;
  animation-delay: 0.9s;
  padding: 0 1rem;

}

.home-section .btn {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  animation-delay: 1.3s;
}
.animated-heading{
  font-family: 'Times New Roman', Times, serif;
  font-size:54px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
  margin: 0 auto;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
 
}

.animated-heading h1 span {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
  animation: zoomIn 1.0s ease-out forwards;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5);
  animation: zoomInOut 0.6s forwards;
  animation-timing-function: ease-out;
  color: white; /* final color */
}

/* Keyframes with color animation */
@keyframes zoomInOut {
  0% {
    opacity: 0;
    transform: scale(5.5);
    color: rgb(255, 230, 0); /* starting zoom color */
  }
  50% {
    opacity: 1;
    transform: scale(10.3);
    color: rgba(255, 200, 0, 0.436); /* mid-animation color */
  }
  100% {
    opacity: 1;
    transform: scale(1);
    color: white; /* final color */
  }
}


/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .home-section {
    padding: 2rem 1rem;
    flex-direction: column;
  }

  .home-section h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .home-section p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .home-section .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .animated-heading {
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 0 0.5rem;
  }

  .letter {
    font-size: 1.4rem;
  }


}

/* Background movement for mobile (less aggressive) */
@keyframes bgMoveMobile {
  0% {
    transform: scale(1.05) translate(0px, 0px);
  }
  100% {
    transform: scale(1.1) translate(20px, 20px);
  }
}
.about-section {
  background-color: #0d1b2a; /* matches dark theme */
}

/* About Section Responsive Enhancements */
.about-section h2 {
  font-size: 2.2rem;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-section img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* On small devices, center-align text and images */
@media (max-width: 576px) {
  .about-section .row {
    text-align: center;
  }

  .about-section .col-md-5 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-section img {
    margin: 5px;
    width: 40% !important; /* Resize images for smaller screens */
  }

  .about-section h2 {
    font-size: 1.6rem;
  }

  .about-section p {
    font-size: 1rem;
    padding: 0 10px;
  }
  .about-section .img-fluid{
    width: 25px;
   height: 150px;
  }
}
/* Vision Section */
.vision-section h2 {
  font-size: 2.2rem;
}

.vision-section p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Mobile Styling */
@media (max-width: 576px) {
  .vision-section {
    text-align: center;
  }

  .vision-section h2 {
    font-size: 1.6rem;
  }

  .vision-section p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .vision-section img {
    width: 80% !important;
    margin-top: 1rem;
  }
}
.countdown-section {
  background-color: #1a1a1a;
}

.countdown-box {
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 255, 0.2);
  border: 2px solid #ffc107;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffc107;
  box-shadow: 0 0 10px rgba(255, 230, 7, 0.5);
  transition: transform 0.2s ease-in-out;
}

.countdown-box:hover {
  transform: scale(1.1);
}

.countdown-box p {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #fff;
}
.card img {
  transition: transform 0.3s ease-in-out;
}

.card img:hover {
  transform: scale(1.1);
}
.card img {
  transition: transform 0.3s ease-in-out;
}

.card img:hover {
  transform: scale(1.1);
}
.list-group-item {
  background: transparent;
  font-weight: 500;
}

.list-group-item i {
  margin-right: 8px;
  font-size: 1.2rem;
}
.list-group-item {
  font-weight: 500;
}

.list-group-item i {
  margin-right: 10px;
  font-size: 1.3rem;
}
table th {
  font-size: 1.2rem;
  text-transform: uppercase;
}

table td {
  font-size: 1.1rem;
  font-weight: 500;
}

.table-warning {
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #ffedcc !important;
}
table th, table td {
  font-size: 1.2rem;
  font-weight: 500;
}

.table-warning th {
  text-transform: uppercase;
}

.table-danger {
  font-size: 1.3rem;
  font-weight: bold;
  background-color: #ffcccc !important;
}

.btn-warning {
  font-size: 1.2rem;
  padding: 10px 20px;
}
/* Registration Section Styling */
#registration {
  background: #f8f9fa;
  padding: 60px 0;
}

#registration h2 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

#registration form .form-label {
  font-weight: 600;
  color: #1b263b;
}

#registration form .form-control,
#registration form .form-select {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 10px 14px;
  font-size: 1rem;
  background-color: #fff;
}

#registration form .form-control:focus,
#registration form .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#registration form textarea {
  resize: vertical;
}

#registration ul {
  padding-left: 0;
  list-style: none;
}

#registration ul li {
  padding: 5px 0;
}

#registration img {
  border: 2px solid #dee2e6;
  border-radius: 1rem;
}

#registration .btn-primary {
  background-color: #0d6efd;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

#registration .btn-primary:hover {
  background-color: #0b5ed7;
}

/* File input styling (optional) */
input[type="file"]::file-selector-button {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  margin-right: 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background-color: #0b5ed7;
}
/* Show red border when input is invalid */
#registration form .form-control:invalid,
#registration form .form-select:invalid {
  border-color: #dc3545;
}

/* Style the required asterisk in red */
#registration form .form-label.required::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

/* Optional: display browser validation message styling */
#registration form .form-control:invalid:focus,
#registration form .form-select:invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* red glow */
}
.about-con{
  justify-self: center;
}
.about-con p{
 
}
