/* Custom styles for Baptist School landing page */

:root {
  --curve-height: 150px;
  --primary-color: var(--theme1, #0056b3);
  --secondary-color: var(--theme2, #28a745);
  --text-light: #ffffff;
  --text-dark: #333333;
  --section-padding: 5rem 0;
  --transition: all 0.3s ease;
}

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
}

.section-title.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding-top: 120px;
  padding-bottom: calc(var(--curve-height) + 50px);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero/hero-pattern.png');
  background-size: cover;
  opacity: 0.1;
}

.hero-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-curve svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: var(--curve-height);
}

.hero-curve .shape-fill {
  fill: #FFFFFF;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.hero-carousel {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease 0.6s;
  animation-fill-mode: both;
}

/* Stats Section */
.stats-section {
  padding: var(--section-padding);
  background-color: #f8f9fa;
}

.stat-card {
  transition: var(--transition);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Facilities Section */
.facilities-section {
  padding: var(--section-padding);
}

.facility-card {
  transition: var(--transition);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
  position: relative;
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero/hero-pattern.png');
  background-size: cover;
  opacity: 0.1;
}

.about-content {
  position: relative;
  z-index: 1;
}

.mission-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.mission-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Admin Section */
.admin-section {
  padding: var(--section-padding);
}

.admin-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.admin-image {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.admin-position {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  color: white;
}

/* Staff Section */
.staff-section {
  padding: var(--section-padding);
  background-color: #f8f9fa;
}

.staff-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.staff-image {
  height: 250px;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
}

.contact-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  margin-right: 1rem;
  background-color: var(--primary-color);
  color: white;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding-top: 100px;
    padding-bottom: calc(var(--curve-height) + 30px);
  }
  
  .hero-carousel {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding-top: 80px;
  }
}

/* Custom Owl Carousel Styles */
.owl-carousel .owl-nav button.owl-next, 
.owl-carousel .owl-nav button.owl-prev {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.owl-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.owl-carousel .owl-nav button.owl-next {
  right: -20px;
}

.owl-carousel .owl-dots {
  margin-top: 20px;
}

.owl-carousel .owl-dot span {
  background-color: #ccc;
}

.owl-carousel .owl-dot.active span {
  background-color: var(--primary-color);
}