/* About Home Section */
.about-home-section {
  background-color: #F9FAFB;
  padding: 40px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 15px;
}

.title-underline {
  height: 4px;
  width: 80px;
  background-color: #F4C430;
  margin: 0 auto 25px;
}

.section-description {
  font-size: 1.2rem;
  color: #4B5563;
  max-width: 800px;
  margin: 0 auto 30px;
}

.about-image-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
}

.about-content {
  padding: 20px;
}

.about-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 15px;
}

.content-underline {
  height: 3px;
  width: 60px;
  background-color: #F4C430;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #003264;
  border-color: #003264;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #F4C430;
  border-color: #F4C430;
  color: #003264;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Gallery Home Section */
.gallery-home-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.gallery-grid {
  margin-top: 20px;
}

.gallery-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E5E7EB;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #FFFFFF;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #4DA8DA;
}

.gallery-img-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-container img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 50, 100, 0.8), rgba(0, 50, 100, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-link {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #F4C430;
  color: #003264;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.gallery-link:hover {
  background-color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-card-body {
  padding: 15px;
  text-align: center;
}

.gallery-card-body h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0;
}

/* Admission Button Styling */
.admission-btn {
  background-color: #ffcc00;
  color: #003264;
  font-weight: bold;
  border: none;
  transition: all 0.3s ease;
}

.admission-btn:hover {
  background-color: #fff;
  color: #003264;
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .about-content h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .about-content {
    text-align: center;
  }
  
  .content-underline {
    margin: 0 auto 20px;
  }
  
  .about-image-container {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-home-section {
    padding: 20px 0; /* Reduced from 40px to 20px */
  }
  
  .gallery-img-container {
    height: 200px;
  }
}
