/* USSVI Charitable Foundation Page Specific Styles */

/* Hero Section for Charitable Foundation Page */
.hero-charitable {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  z-index: 1;
}

/* Override any Bootstrap container padding */
.hero-charitable .container,
.hero-charitable .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hero image styling - full width */
.hero-charitable .hero-image {
  width: 100%;
  height: 45vh;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7);
  background-color: #090933;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero content overlay */
.hero-charitable .hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 2rem;
  background: rgba(9, 9, 51, 0.3);
  margin: 0 !important;
}

/* Charitable hero text styling */
.hero-charitable .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero-charitable .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content container */
.charitable-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Page title styling */
.charitable-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #090933;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.charitable-page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
}

.charitable-page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  border-radius: 2px;
}

/* Foundation info card */
.charitable-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(9, 9, 51, 0.15);
  border: 2px solid rgba(9, 9, 51, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.charitable-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(9, 9, 51, 0.25);
  border-color: #090933;
}

/* Foundation card body */
.charitable-card .card-body {
  padding: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Foundation card title */
.charitable-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: #090933;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

.charitable-card-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 2px;
}

/* Section titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #090933;
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #262c83;
  border-radius: 1px;
}

/* Foundation icon */
.charitable-icon {
  font-size: 4rem;
  color: #090933;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  text-align: center;
  display: block;
}

.charitable-card:hover .charitable-icon {
  opacity: 1;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Foundation description */
.charitable-description {
  font-size: 1rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: left;
}

/* Button group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

/* Action buttons */
.action-btn {
  background: linear-gradient(135deg, #090933 0%, #262c83 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(9, 9, 51, 0.2);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: linear-gradient(135deg, #262c83 0%, #3d4db8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 9, 51, 0.3);
  color: white;
  text-decoration: none;
}

/* Disabled button styling */
.action-btn.disabled {
  background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%) !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
}

.action-btn.disabled:hover {
  background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%) !important;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(9, 9, 51, 0.2) !important;
}

/* Funds grid */
.funds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.fund-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #090933;
}

.fund-item:hover {
  border-color: #090933;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(9, 9, 51, 0.15);
}

.fund-item strong {
  color: #090933;
  font-weight: 700;
}

/* Info sections */
.info-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 5px solid #090933;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .charitable-content {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-charitable .hero-image {
    height: 40vh;
  }
  
  .hero-charitable .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-charitable .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .charitable-page-title {
    font-size: 2.2rem;
  }
  
  .charitable-card .card-body {
    padding: 2.5rem;
  }
  
  .charitable-card-title {
    font-size: 1.8rem;
  }
  
  .funds-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .charitable-content {
    padding: 2rem 1rem;
  }
  
  .hero-charitable .hero-image {
    height: 35vh;
  }
  
  .hero-charitable .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-charitable .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-charitable .hero-content {
    padding: 1rem;
  }
  
  .charitable-page-title {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }
  
  .charitable-page-subtitle {
    margin-bottom: 2rem;
  }
  
  .charitable-card .card-body {
    padding: 2rem;
  }
  
  .charitable-card-title {
    font-size: 1.6rem;
  }
  
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .funds-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .charitable-content {
    padding: 1.5rem 0.5rem;
  }
  
  .hero-charitable .hero-image {
    height: 30vh;
  }
  
  .hero-charitable .hero-title {
    font-size: 1.9rem;
  }
  
  .charitable-page-title {
    font-size: 1.7rem;
  }
  
  .charitable-card .card-body {
    padding: 1.5rem;
  }
  
  .charitable-icon {
    font-size: 3rem;
  }
  
  .info-section {
    padding: 1.5rem;
  }
}

/* Animation for card on load */
.charitable-card {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced typography */
.charitable-content h1,
.charitable-content h2,
.charitable-content h3 {
  color: #090933;
}

.charitable-content p {
  color: #495057;
}