/* Home Page Banner Styles */
#homeBanner .carousel-item img {
  height: 600px; /* Set fixed height */
  width: 100%; /* Ensure full width */
  object-fit: cover; /* Maintain aspect ratio */
}

/* Optional: Add some spacing around the banner */
.home-banner {
  margin-bottom: 2rem;
}

/* Animation and Card Styles */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* Card hover effects */
.card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Feature card specific styles */
.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
}

.feature-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.feature-icon-wrapper {
  display: inline-block;
  padding: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  margin-bottom: 20px;
}

.feature-icon {
  color: #007bff;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: #0056b3;
}

/* Welcome section */
.welcome-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.welcome-section .card {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  margin: 0 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.welcome-section h2 {
  font-family: 'Georgia', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-section .lead {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: #555;
  font-size: 1.2rem;
}

.welcome-section .fa-graduation-cap {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* History section */
.history-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
  opacity: 0.3;
}

.history-section .card {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  margin: 0 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.history-section h2 {
  font-family: 'Georgia', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-section .lead {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  text-align: left;
  max-width: none;
  margin: 0;
  color: #555;
  font-size: 1.2rem;
}

.history-section .fa-history {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section spacing */
.welcome-section {
  margin-bottom: 0;
  padding-bottom: 3rem;
}

.history-section {
  margin-top: 0;
  padding-top: 3rem;
}

/* Card hover effects */
.welcome-section .card,
.history-section .card {
  transition: all 0.3s ease;
}

.welcome-section .card:hover,
.history-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Our Society section */
.our-society-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Image hover effects */
.our-society-section img {
  transition: all 0.4s ease;
  transform: scale(1);
  height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.our-society-section img:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* Who We Are section */
.who-we-are-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Image hover effects */
.who-we-are-section img {
  transition: all 0.4s ease;
  transform: scale(1);
  height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.who-we-are-section img:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* Button hover effects */
.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Image hover effects */
.animate__fadeInLeft img,
.animate__fadeInRight img {
  transition: all 0.3s ease;
}

.animate__fadeInLeft img:hover,
.animate__fadeInRight img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Facilities Page Styles */
.facility-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.facility-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.facility-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.facility-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.facility-overlay i {
  color: white;
  font-size: 2rem;
}

.facility-card:hover .facility-overlay {
  opacity: 1;
}

.facility-card:hover .facility-image {
  transform: scale(1.1);
}

.facility-icon {
  text-align: center;
}

.facility-features ul li {
  font-size: 0.9rem;
}

.facility-status .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain3" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain3)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Statistics Card */
.stat-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.stat-item:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .facility-image-wrapper {
    height: 200px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 1.5rem !important;
  }
  
  .feature-icon-wrapper {
    padding: 15px;
  }
  
  .feature-icon {
    font-size: 2rem !important;
  }
}
