/* Existing styles */
.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: background-color 0.3s ease; /* Retained transition for hover effect */
}

.cutom-navbar{
  background-color: #79582C;
}

/* Carousel Image Styling */
.carousel-inner .carousel-item img {
    height: 300px;
    width: 100%;
    object-fit: contain;
    border-radius: 20px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in-out;
}

/* Fade-in effect when image becomes active */
.carousel-inner .carousel-item.active img.fade-in {
    opacity: 1;
}

/* Carousel Control Buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Visibility */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    font-size: 20px;
    color: white;
}

p{
     text-align: justify;
}

.justified-text {
  text-align: justify;
}

.image-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.custom-bg {
  background-color: rgb(241, 55, 55);
  color: white;
}

.custom-bg1 {
  background-color: rgb(67, 219, 67);
  color: white;
}

/* Hover effect - slight zoom and brighten */
.newsimg{
  border: 0px;
}

.newsimg:hover {
  border: 5px solid #79582C;
}

.custheader {
  background-color: #79582C;
  height: 130px;
}

.event-section {
  width: 70%;
  margin: auto;
  height: 300px;
  background: linear-gradient(-90deg,  #ccc,  #ddd,  #eee,  #fff);
}

.event-section ul {
  list-style-type: none;
  padding: 0;
}

.event-section li a {
  cursor: pointer;
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  color: white; !important;
}

.event-section #eventModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.event-section .modal-content {
  background: #fff;
  padding: 5px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.event-section .close-btn {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}

.event-section img {
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid #ccc;
}

.event-section ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.event-section li {
  margin-bottom: 2px !important;
}

.event-section li a {
  display: block !important;
  background-color: #f8f9fa !important;
  padding: 0px 0px !important;
  border-radius: 8px !important;
  color: #0d6efd !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.event-section li a:hover {
  background-color: #e0ecff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.vertical-marquee {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: scroll-up 8s linear infinite;
  padding: 20px;
}

@keyframes scroll-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

h2 {
  color: #79582C;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.0rem;
  font-weight: 700; /* bold */
  line-height: 1.2;
}

.custom-border {
  border: 4px solid #79582C;
}

#eventModal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enables scrolling for the whole modal */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-height: 80vh; /* Limit height */
  overflow-y: auto; /* Add vertical scroll if needed */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

h5 {
  color: #79582C;
}

/* Style for the custom-gallery class */
.custom-gallery {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  border-radius: 8px; /* Optional: Add rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  overflow: hidden; /* Ensure the rounded corners are respected */
}

.custom-gallery:hover {
  transform: scale(1.05); /* Slight zoom effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Darker shadow on hover */
  filter: brightness(1.1); /* Make image a little brighter */
}

/* Optional: Add a border effect for hover */
.custom-gallery:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #007bff; /* Border color on hover */
  border-radius: 8px; /* Same as the image's border radius */
  pointer-events: none; /* Prevent this border from interfering with clicks */
}

/* Optional: Add a text overlay when the image is hovered */
.custom-gallery::after {
  content: '🎓 Placed Student';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 10px;
  border-radius: 5px;
  display: none; /* Hidden by default */
}

.custom-gallery:hover::after {
  display: block; /* Show on hover */
}

/* Dropdown Menu Fixes */
.navbar-nav .dropdown-menu {
  z-index: 1050; /* Ensure it's above other elements */
}

.navbar-nav .dropdown-menu.show {
  display: block; /* Ensure dropdown is shown */
}


/* Ensure the dropdown menu is positioned correctly */
.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;  /* Ensure it appears on top of other elements */
  display: none;  /* Hide the dropdown by default */
}

/* Make the dropdown menu visible when hovered or clicked */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* Alternatively, use :focus-within for accessibility */
.navbar-nav .dropdown:focus-within .dropdown-menu {
  display: block;
}
/* Custom Styles for Principal's Message Section */
.imp_message {
  background-color: #f8f9fa;
  padding-top: 50px;
  padding-bottom: 50px;
}

.imp_message img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid #6c757d;
}

.imp_message h2 {
  font-family: 'Arial', sans-serif;
  color: #004085;
  font-weight: bold;
  margin-bottom: 30px;
}

.imp_message .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #495057;
}

.imp_message p {
  font-size: 1rem;
  color: #212529;
  margin-bottom: 20px;
}

.imp_message .row {
  margin-bottom: 30px;
}
.footer {
  background-color:#79582C;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 5px;
  color:white;
}

.footer-links ul {
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 5px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffc107;
}

.footer-contact p {
  margin-bottom: 5px;
}

.footer-social a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ffc107;
}
