/* Home Page Specific Styles */

/* Hero Slider */
.hero-slider {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  /* Added margin-top to position slider below fixed header */
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(26, 90, 2, 0.85) 0%, rgba(43, 185, 6, 0.75) 100%);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Updated to use green gradient from config */
  background: linear-gradient(135deg, rgb(36 36 36 / 57%) 0%, rgb(0 0 0 / 49%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  max-width: 900px;
  padding: 2rem;
  text-align: center;
  color: var(--white);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.slide-btn {
  display: inline-block;
  background: linear-gradient(135deg,var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 166, 81, 0.4);
  border: 2px solid var(--secondary-color);
}

.slide-btn:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.5);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active,
.slider-dot:hover {
  background: var(--white);
  transform: scale(1.3);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.5);
  z-index: 10;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
}

.slider-arrow.prev {
  left: 30px;
}

.slider-arrow.next {
  right: 30px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  /* Updated gradient to use green theme */
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  /* Updated to use green gradient */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Features Section */
.features-section {
  background: var(--light-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  /* Updated to use green gradient theme */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
  background: var(--white);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--light-bg);
  border-radius: 10px;
  transition: var(--transition);
}

.about-feature-item:hover {
  background: var(--accent-color);
  transform: translateX(10px);
}

.about-feature-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.about-feature-item span {
  color: var(--text-dark);
  font-weight: 500;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.stat-content h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Mission Section */
.mission-section {
  background: var(--light-bg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-image img {
  width: 100%;
  height: auto;
  display: block;
}

.mission-content h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.mission-subtitle {
  color: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.mission-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition);
}

.mission-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.mission-item h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-item h3 i {
  color: var(--secondary-color);
}

.mission-item p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Timetable Section */
.timetable-section {
  background: var(--white);
}

.timetable-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
}

.timetable {
  width: 100%;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.timetable thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.timetable th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
}

.timetable tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.timetable tbody tr:hover {
  background: var(--light-bg);
}

.timetable tbody tr:last-child {
  border-bottom: none;
}

.timetable td {
  padding: 1.25rem 1.5rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* FAQ Section */
.faq-section {
  background: var(--light-bg);
}

.faq-container {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--secondary-color);
  display: inline-block;
}

.faq-item {
  background: var(--white);
  border-radius: 15px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  transition: var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-question.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-question.active .faq-icon {
  background: var(--white);
  color: var(--primary-color);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slider {
    height: 500px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slider-arrow.prev {
    left: 15px;
  }

  .slider-arrow.next {
    right: 15px;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid .mission-image {
    order: 2;
  }

  .mission-grid .mission-content {
    order: 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-content h3 {
    font-size: 2.5rem;
  }

  .about-title,
  .mission-content h2 {
    font-size: 2rem;
  }

  .timetable {
    font-size: 0.9rem;
  }

  .timetable th,
  .timetable td {
    padding: 1rem;
  }
}
