/* Scholarship.css */
/* Custom styles for the Scholarship page */

/* Scholarship Hero Section */
.scholarship-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.scholarship-icon {
  font-size: 5rem;
  color: white;
  margin-bottom: 20px;
}

/* Stats Section */
.stats-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stats-label {
  font-size: 1rem;
  color: var(--gray-color);
}

/* Scholarship Cards */
.scholarship-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.scholarship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.scholarship-card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
}

.scholarship-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.benefits-list, .eligibility-list {
  list-style: none;
  padding-left: 0;
}

.benefits-list li, .eligibility-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

.benefits-list i {
  color: var(--primary-color);
  margin-right: 8px;
  flex-shrink: 0;
}

.eligibility-list i {
  color: var(--gray-color);
  margin-right: 8px;
  flex-shrink: 0;
}

/* Application Steps */
.application-steps {
  position: relative;
  padding-left: 30px;
}

.application-steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
}

.step-item {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.step-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 25px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid white;
}

/* FAQ Section */
.faq-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-item {
  border-bottom: 1px solid #e9ecef;
}

.faq-question {
  padding: 20px;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-item.active .faq-toggle i {
  transform: rotate(180deg);
}

.faq-toggle i {
  transition: var(--transition);
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .scholarship-hero {
    padding: 60px 0;
    text-align: center;
  }
  
  .scholarship-hero h1 {
    font-size: 2rem;
  }
  
  .stats-card {
    margin-bottom: 20px;
  }
  
  .application-steps {
    padding-left: 20px;
  }
  
  .step-item::before {
    left: -28px;
  }
}

@media (max-width: 576px) {
  .scholarship-hero {
    padding: 40px 0;
  }
  
  .scholarship-hero h1 {
    font-size: 1.75rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
  
  .scholarship-card-header h4 {
    font-size: 1.1rem;
  }
}
/* Back to Top Button Enhancements */
.back-to-top {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--box-shadow);
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  border: none;
  outline: none;
  font-size: 1.2rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure it doesn't interfere with AI chat button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 90px; /* Move up to avoid AI chat button on mobile */
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .back-to-top {
    bottom: 80px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}