/* Unique Hero for Volunteer */
.hero-volunteer {
  height: 70vh;
  min-height: 600px;
  background: linear-gradient(
      135deg,
      rgba(108, 74, 182, 0.85),
      rgba(90, 58, 158, 0.85)
    ),
    url("https://images.unsplash.com/photo-1521791055366-0d553872125f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  overflow: hidden;
}

/* Volunteer Section Container */
.volunteer-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.dark-mode .volunteer-section {
  background-color: var(--light-color);
}

/* Volunteer Opportunities Grid */
.volunteer-opportunities {
  margin-bottom: 80px;
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.opportunity-card {
  background-color: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .opportunity-card {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.opportunity-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.opportunity-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.opportunity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.opportunity-card:hover .opportunity-image img {
  transform: scale(1.05);
}

.opportunity-details {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.opportunity-category {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--white-color);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.dark-mode .opportunity-category {
  background-color: var(--primary-dark);
}

.opportunity-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black-color);
  line-height: 1.4;
}

.dark-mode .opportunity-title {
  color: var(--dark-color);
}

.opportunity-description {
  color: var(--gray-color);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.7;
}

.dark-mode .opportunity-description {
  color: rgba(255, 255, 255, 0.7);
}

.opportunity-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--gray-color);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
}

.dark-mode .opportunity-meta {
  color: rgba(255, 255, 255, 0.6);
}

.opportunity-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.opportunity-cta {
  margin-top: 25px;
}

/* Volunteer Benefits */
.volunteer-benefits {
  background: linear-gradient(
    135deg,
    rgba(108, 74, 182, 0.03),
    rgba(248, 180, 0, 0.03)
  );
  padding: 80px 40px;
  margin-bottom: 80px;
  border-radius: 12px;
  border-top: 1px solid rgba(108, 74, 182, 0.1);
  border-bottom: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .volunteer-benefits {
  background: linear-gradient(
    135deg,
    rgba(108, 74, 182, 0.05),
    rgba(248, 180, 0, 0.05)
  );
  border-color: rgba(255, 255, 255, 0.1);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .benefit-item {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
  transform: rotate(5deg) scale(1.1);
}

.benefit-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--black-color);
}

.dark-mode .benefit-content h3 {
  color: var(--dark-color);
}

.benefit-content p {
  color: var(--gray-color);
  line-height: 1.7;
}

.dark-mode .benefit-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* Volunteer Form */
.volunteer-form-container {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 50px;
  box-shadow: var(--shadow-md);
  margin-bottom: 80px;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .volunteer-form-container {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-section {
  margin-bottom: 40px;
}

.form-section-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(108, 74, 182, 0.1);
  position: relative;
}

.form-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.dark-mode .form-section-title {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.skills-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.form-check {
  margin-bottom: 10px;
  padding: 12px 15px;
  background-color: rgba(108, 74, 182, 0.05);
  border-radius: 8px;
  transition: var(--transition);
}

.dark-mode .form-check {
  background-color: rgba(108, 74, 182, 0.1);
}

.form-check:hover {
  background-color: rgba(108, 74, 182, 0.1);
}

.form-check-input {
  accent-color: var(--primary-color);
  margin-right: 10px;
}

.form-check-label {
  color: var(--black-color);
  cursor: pointer;
}

.dark-mode .form-check-label {
  color: var(--dark-color);
}

/* Testimonials */
.volunteer-testimonials {
  margin-bottom: 80px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(108, 74, 182, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dark-mode .testimonial-card {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary-color);
  color: var(--black-color);
  line-height: 1.7;
  flex-grow: 1;
}

.dark-mode .testimonial-quote {
  color: var(--dark-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--primary-light);
}

.testimonial-author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--black-color);
}

.dark-mode .testimonial-author-info h4 {
  color: var(--dark-color);
}

.testimonial-author-info p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.dark-mode .testimonial-author-info p {
  color: rgba(255, 255, 255, 0.6);
}

/* Ad Space */
.ad-space {
  background-color: rgba(248, 180, 0, 0.1);
  border: 1px dashed var(--secondary-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 60px 0;
  color: var(--gray-color);
}

.dark-mode .ad-space {
  background-color: rgba(248, 180, 0, 0.05);
  border-color: var(--secondary-dark);
  color: rgba(255, 255, 255, 0.6);
}

.ad-space-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black-color);
}

.dark-mode .ad-space-title {
  color: var(--dark-color);
}

.ad-space-text {
  max-width: 700px;
  margin: 0 auto 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .opportunities-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .volunteer-form-container {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .hero-volunteer {
    height: 50vh;
    min-height: 400px;
    margin-bottom: 50px;
  }

  .volunteer-form-container {
    padding: 30px;
  }

  .form-section-title {
    font-size: 1.3rem;
  }

  .skills-checkboxes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-volunteer {
    height: 40vh;
    min-height: 300px;
  }

  .opportunities-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-form-container {
    padding: 25px;
  }

  .skills-checkboxes {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    flex-direction: column;
  }

  .benefit-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .ad-space {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  /* Hero Section */
  .hero-volunteer {
    height: 45vh;
    min-height: 280px;
    background-attachment: scroll;
    margin-bottom: 40px;
    background-position: center center;
  }

  /* Main Section */
  .volunteer-section {
    padding: 50px 0;
  }

  /* Volunteer Opportunities */
  .volunteer-opportunities {
    margin-bottom: 60px;
  }

  .opportunities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .opportunity-card {
    border-radius: 10px;
  }

  .opportunity-image {
    height: 180px;
  }

  .opportunity-details {
    padding: 20px;
  }

  .opportunity-category {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .opportunity-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .opportunity-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .opportunity-meta {
    margin-top: 15px;
    font-size: 0.85rem;
  }

  .opportunity-cta {
    margin-top: 20px;
  }

  /* Volunteer Benefits */
  .volunteer-benefits {
    padding: 40px 20px;
    margin-bottom: 60px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .benefit-item {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .benefit-icon {
    margin-right: 0;
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .benefit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .benefit-content p {
    font-size: 0.95rem;
  }

  /* Volunteer Form */
  .volunteer-form-container {
    padding: 25px 15px;
    margin-bottom: 60px;
    border-radius: 10px;
  }

  .form-section {
    margin-bottom: 30px;
  }

  .form-section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .skills-checkboxes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-check {
    padding: 10px;
  }

  /* Testimonials */
  .volunteer-testimonials {
    margin-bottom: 60px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-quote {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .testimonial-author-img {
    width: 50px;
    height: 50px;
  }

  .testimonial-author-info h4 {
    font-size: 1rem;
  }

  /* Ad Space */
  .ad-space {
    padding: 25px 15px;
    margin: 40px 0;
    border-radius: 10px;
  }

  .ad-space-title {
    font-size: 1.3rem;
  }

  .ad-space-text {
    font-size: 0.95rem;
  }

  /* Form Elements */
  .form-control,
  .form-select {
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
  }

  /* Dark Mode Adjustments */
  .dark-mode .opportunity-card,
  .dark-mode .benefit-item,
  .dark-mode .testimonial-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
}

/* Additional optimizations for very small devices */
@media (max-width: 360px) {
  .hero-volunteer {
    height: 40vh;
    min-height: 240px;
  }

  .opportunity-title {
    font-size: 1.2rem;
  }

  .form-section-title {
    font-size: 1.15rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-author-img {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 767.98px) {
  .hero-volunteer {
    height: auto;
    min-height: 50vh;
    padding: 80px 0 60px;
    text-align: center;
    background-attachment: scroll !important;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
    margin-top: 5px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .hero-cta .btn {
    width: 100%;
    margin: 0 0 10px 0;
  }

  .navbar-brand img {
    height: 25px;
    width: auto;
  }
}
