/* ============================================
   Donation Page Fixes
   Created: November 16, 2024
   Purpose: Fix breadcrumb sizing and style Donorbox
   ============================================ */

/* ============================================
   1. BREADCRUMB FIXES
   ============================================ */

/* Reduce breadcrumb section height and padding */
.breadcrumb-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(135deg, #FFF8F5 0%, #FFFFFF 100%);
  position: relative;
}

/* Fix breadcrumb navigation size */
.breadcrumb-nav .breadcrumb {
  margin-bottom: 15px;
  padding: 0;
  background: transparent;
}

.breadcrumb-nav .breadcrumb-item {
  font-size: 14px;
  color: #666;
}

.breadcrumb-nav .breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav .breadcrumb-item a:hover {
  color: #FF5722;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 8px;
  color: #999;
}

/* Fix breadcrumb title size */
.breadcrumb-text .title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .breadcrumb-section {
    padding: 40px 0 30px 0;
  }
  
  .breadcrumb-text .title {
    font-size: 28px;
  }
  
  .breadcrumb-nav .breadcrumb-item {
    font-size: 13px;
  }
}

/* ============================================
   2. DONORBOX STYLING TO MATCH WEBSITE
   ============================================ */

/* Donorbox wrapper styling */
.donorbox-wrapper {
  background: #FFFFFF;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

/* Style the iframe container */
.donorbox-wrapper iframe {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Add a decorative header above Donorbox */
.donorbox-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5722, #FFA024);
  border-radius: 2px;
  margin-top: -2px;
}

/* Donation section styling */
.donate-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.donate-section .title {
  color: #1a1a1a;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.donate-section .pera {
  color: #666;
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Info cards styling */
.info-card {
  transition: all 0.3s ease;
  border: 1px solid #E0E0E0;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.info-card i {
  display: block;
  color: #FF5722;
}

.info-card h5 {
  color: #1a1a1a;
  font-weight: 600;
}

.info-card p {
  color: #666;
  font-size: 14px;
}

/* ============================================
   3. DONATION IMPACT SECTION
   ============================================ */

.donation-info {
  margin-top: 60px;
}

/* Add visual separator */
.donation-info::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF5722, #FFA024);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* ============================================
   4. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
  .donate-section {
    padding: 60px 0;
  }
  
  .donate-section .title {
    font-size: 32px;
  }
  
  .donate-section .pera {
    font-size: 16px;
  }
  
  .donorbox-wrapper {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .donate-section {
    padding: 40px 0;
  }
  
  .donate-section .title {
    font-size: 28px;
  }
  
  .donorbox-wrapper {
    padding: 15px;
  }
  
  .info-card {
    margin-bottom: 20px;
  }
}

/* ============================================
   5. CUSTOM DONORBOX OVERRIDES
   ============================================ */

/* Try to style Donorbox elements (limited due to iframe) */
.donorbox-wrapper iframe {
  /* Add subtle border to match site design */
  border: 2px solid #F0F0F0 !important;
}

/* Add loading state */
.donorbox-wrapper.loading {
  position: relative;
  min-height: 900px;
}

.donorbox-wrapper.loading::after {
  content: 'Loading donation form...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 16px;
}

/* ============================================
   6. ADDITIONAL DONATION PAGE ELEMENTS
   ============================================ */

/* Header section improvements */
.text-center.mb-50 {
  margin-bottom: 50px;
}

/* Ensure proper spacing */
.top-bottom-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 767px) {
  .top-bottom-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .text-center.mb-50 {
    margin-bottom: 30px;
  }
}

/* ============================================
   7. TRUST INDICATORS
   ============================================ */

/* Style the security and tax info cards */
.donation-info .row {
  margin-top: 40px;
}

/* Add subtle animation to info cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card {
  animation: fadeInUp 0.6s ease-out;
}

.info-card:nth-child(2) {
  animation-delay: 0.1s;
}

/* ============================================
   8. PRINT STYLES
   ============================================ */

@media print {
  .breadcrumb-section,
  .donorbox-wrapper,
  .header-area,
  footer {
    display: none;
  }
  
  .donation-info {
    page-break-inside: avoid;
  }
}
