@charset "UTF-8";
/*!
 * Charitable Campaign Updates - Frontend Styles
 * Version: 1.0.0
 */
.charitable-campaign-updates {
  margin: 30px 0;
  font-family: inherit;
}

.charitable-updates-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  display: none;
}

.charitable-updates-title {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
}

/* Cards Layout (Carousel) */
.charitable-updates-carousel {
  position: relative;
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
}
.charitable-updates-carousel .charitable-updates-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-height: 300px;
  transition: height 0.2s ease-in-out;
}
.charitable-updates-carousel .charitable-updates-carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  transition: transform 0.3s ease;
  width: 500%; /* 5 slides × 100% each */
  min-height: 100%;
}
.charitable-updates-carousel {
  /* Carousel specific styling */
}
.charitable-updates-carousel .charitable-campaign-update {
  flex: 0 0 20%; /* Each card takes 20% of track width (100% / 5 cards) */
  min-width: 20%;
  height: auto;
  box-shadow: none;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  padding: 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.charitable-updates-carousel .charitable-campaign-update.charitable-update-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #999;
}

/* List Layout */
.charitable-updates-list-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

/* Feed Layout */
.charitable-updates-list-feed {
  max-width: 600px;
  margin: 0 auto 20px;
}
.charitable-updates-list-feed .charitable-campaign-update {
  margin-bottom: 25px;
}

.charitable-campaign-update {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: box-shadow 0.2s ease;
}
.charitable-campaign-update:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.charitable-campaign-update {
  /* Featured Updates */
}

.charitable-update-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #007cba;
  color: #fff;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
}
.charitable-update-featured-badge .fa {
  margin-right: 3px;
}

/* General Updates */
.charitable-update-type-general {
  border-left-color: #A86917;
}
.charitable-update-type-general .charitable-update-type {
  color: #A86917;
}
.charitable-update-type-general .charitable-update-type .fa {
  color: #A86917;
}

/* Milestone Updates */
.charitable-update-type-milestone {
  border-left-color: #2E6BC1;
}
.charitable-update-type-milestone .charitable-update-type {
  color: #2E6BC1;
}
.charitable-update-type-milestone .charitable-update-type .fa {
  color: #2E6BC1;
}

/* Urgent Updates */
.charitable-update-type-urgent {
  border-left-color: #CA3C33;
  background-color: #fff8f8;
}
.charitable-update-type-urgent .charitable-update-type {
  color: #CA3C33;
  font-weight: 600;
}
.charitable-update-type-urgent .charitable-update-type .fa {
  color: #CA3C33;
}
.charitable-update-type-urgent.charitable-update-urgency-4, .charitable-update-type-urgent.charitable-update-urgency-5 {
  animation: urgentPulse 2s infinite;
}

.charitable-update-urgency-indicator {
  margin-left: 5px;
}
.charitable-update-urgency-indicator .fa {
  font-size: 0.8em;
  margin-left: 1px;
}

/* Urgent animations */
@keyframes urgentPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}
.charitable-update-header {
  margin-bottom: 15px;
}

.charitable-update-type {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.charitable-update-type .fa {
  margin-right: 5px;
  font-size: 1.1em;
}

.charitable-update-type-icon {
  margin-right: 5px;
  vertical-align: middle;
}

.charitable-update-title {
  margin: 0 0 8px;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.charitable-update-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85em;
  color: #666;
}

.charitable-update-date {
  font-weight: 500;
}

.charitable-update-author-name {
  font-weight: 500;
}

.charitable-carousel-header {
  margin-bottom: 0;
  /* Top Row: Update Number and Type */
}
.charitable-carousel-header .charitable-carousel-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.charitable-carousel-header .charitable-update-number {
  font-size: 0.9em;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.charitable-carousel-header .charitable-update-type {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.charitable-carousel-header .charitable-update-type.charitable-update-type-urgent {
  color: #CA3C33;
}
.charitable-carousel-header .charitable-update-type.charitable-update-type-milestone {
  color: #2E6BC1;
}
.charitable-carousel-header .charitable-update-type.charitable-update-type-general {
  color: #A86917;
}
.charitable-carousel-header {
  /* Title Row with Featured Badge */
}
.charitable-carousel-header .charitable-carousel-title-row {
  margin-bottom: 20px;
}
.charitable-carousel-header .charitable-update-title {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  color: #2d3748;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.charitable-carousel-header .charitable-update-featured-badge {
  background: #38a169;
  color: white;
  font-size: 0.6em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: static;
}
.charitable-carousel-header {
  /* Author Row with Avatar */
}
.charitable-carousel-header .charitable-carousel-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.charitable-carousel-header .charitable-update-author-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #2d3748;
}
.charitable-carousel-header .charitable-update-date {
  font-size: 0.9em;
  color: #718096;
  font-weight: 400;
}

.charitable-update-author-avatar {
  flex-shrink: 0;
}
.charitable-update-author-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.charitable-update-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Carousel Divider */
.charitable-carousel-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 24px 0;
}

.charitable-updates-carousel-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 0;
}

.charitable-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.charitable-carousel-dot:hover {
  background: #a0aec0;
  transform: scale(1.1);
}
.charitable-carousel-dot.active {
  background: #2d3748;
  transform: scale(1.2);
}
.charitable-carousel-dot:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

.charitable-update-content {
  margin-bottom: 15px;
}
.charitable-updates-carousel .charitable-update-content {
  margin-bottom: 0;
}

/* Content truncation for list style with Read More functionality */
.charitable-updates-list-list .charitable-campaign-update .charitable-update-content {
  max-height: 140px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease-out;
}

/* Expanded state shows full content */
.charitable-updates-list-list .charitable-campaign-update.expanded .charitable-update-content {
  max-height: none;
  overflow: visible;
}

/* Fade effect for truncated content */
.charitable-updates-list-list .charitable-campaign-update:not(.expanded) .charitable-update-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
}

.charitable-update-excerpt,
.charitable-update-full-content {
  line-height: 1.6;
  color: #555;
}
.charitable-update-excerpt p:last-child,
.charitable-update-full-content p:last-child {
  margin-bottom: 0;
}

/* Carousel Content Styling */
.charitable-updates-carousel .charitable-update-full-content {
  font-size: 1em;
  line-height: 1.7;
  color: #4a5568;
}
.charitable-updates-carousel .charitable-update-full-content p {
  margin-bottom: 16px;
}
.charitable-updates-carousel .charitable-update-full-content p:last-child {
  margin-bottom: 0;
}

.charitable-update-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 15px;
}

.charitable-update-read-more {
  background: none;
  border: 1px solid #007cba;
  color: #007cba;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.2s ease;
}
.charitable-update-read-more:hover {
  background: #007cba;
  color: #fff;
}
.charitable-update-read-more.expanded .charitable-read-more-icon {
  transform: rotate(180deg);
}

.charitable-read-more-icon {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.charitable-update-admin-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.charitable-campaign-update:hover .charitable-update-admin-actions {
  opacity: 1;
}

.charitable-update-edit-link,
.charitable-update-delete {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  color: #666;
  padding: 5px 8px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.75em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.charitable-update-edit-link:hover {
  background: #007cba;
  color: #fff;
  border-color: #007cba;
}

.charitable-update-delete:hover {
  background: #CA3C33;
  color: #fff;
  border-color: #CA3C33;
}

.charitable-updates-pagination {
  text-align: center;
  margin-top: 20px;
}

.charitable-updates-view-all {
  background: #007cba;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
.charitable-updates-view-all:hover {
  background: #005a87;
  color: #fff;
}

.charitable-updates-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.charitable-updates-admin-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.charitable-add-update-link {
  background: #2E6BC1;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}
.charitable-add-update-link:hover {
  background: #218838;
  color: #fff;
}
.charitable-add-update-link .fa {
  margin-right: 5px;
}

.charitable-manage-updates-link {
  color: #007cba;
  text-decoration: none;
  font-weight: 500;
}
.charitable-manage-updates-link:hover {
  text-decoration: underline;
}

.charitable-sr-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Original layouts */
  .charitable-updates-list-cards {
    grid-template-columns: 1fr;
  }
  .charitable-campaign-update {
    padding: 15px;
  }
  .charitable-update-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .charitable-update-admin-actions {
    position: static;
    opacity: 1;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
  }
  .charitable-updates-admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  /* Carousel responsive */
  .charitable-updates-carousel .charitable-campaign-update {
    padding: 24px 20px;
  }
  .charitable-updates-carousel .charitable-updates-carousel-container {
    min-height: 250px; /* Smaller min-height on mobile */
  }
  .charitable-carousel-header .charitable-update-title {
    font-size: 1.3em;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .charitable-carousel-header .charitable-carousel-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }
  .charitable-carousel-header .charitable-carousel-author-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .charitable-update-author-avatar {
    align-self: flex-start;
  }
  .charitable-updates-carousel-navigation {
    margin-top: 16px;
    padding: 12px 0;
  }
  .charitable-carousel-dot {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 480px) {
  .charitable-updates-carousel .charitable-campaign-update {
    padding: 20px 16px;
  }
  .charitable-carousel-header .charitable-update-title {
    font-size: 1.2em;
  }
  .charitable-update-number,
  .charitable-carousel-header .charitable-update-type {
    font-size: 0.8em;
  }
}
/* Make delete confirmation modals wider */
.jconfirm .jconfirm-box {
  min-width: 500px !important;
  max-width: 600px !important;
}

.jconfirm .jconfirm-content {
  max-height: none !important;
  line-height: 1.5;
}

/* Responsive modal width */
@media (max-width: 768px) {
  .jconfirm .jconfirm-box {
    min-width: 90% !important;
    max-width: 95% !important;
  }
}

/* ==========================================================================
   Campaign Updates Consent Form Integration (Phase 3)
   ========================================================================== */

/* Campaign Updates Consent Field */
.charitable-form-field-campaign-updates-consent {
    margin: 15px 0;
}

.charitable-form-field-campaign-updates-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.charitable-form-field-campaign-updates-consent input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 3px; /* Align with first line of text */
    width: 16px;
    height: 16px;
}

/* Disabled State for Dependent Consent */
.charitable-form-field-campaign-updates-consent.disabled {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.charitable-form-field-campaign-updates-consent.disabled label {
    color: #999;
    cursor: not-allowed;
}

.charitable-form-field-campaign-updates-consent input[type="checkbox"]:disabled {
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Integration with privacy policy section */
.charitable-privacy-policy-container .charitable-form-field-campaign-updates-consent,
.charitable-form-field-privacy-policy + .charitable-form-field-campaign-updates-consent {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

/* Visual hierarchy within privacy section */
.charitable-privacy-policy-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.charitable-privacy-policy-container .charitable-form-field-campaign-updates-consent {
    background: none;
    border: none;
    padding: 12px 0 0 0;
    margin: 12px 0 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .charitable-form-field-campaign-updates-consent label {
        gap: 8px;
        font-size: 13px;
    }

    .charitable-form-field-campaign-updates-consent input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* Theme compatibility adjustments */
.charitable-form .charitable-form-field-campaign-updates-consent {
    margin-bottom: 20px;
}

.charitable-form .charitable-form-field-campaign-updates-consent label {
    font-weight: normal;
    margin-bottom: 0;
}

/* Integration with common donation form themes */
.charitable-donation-form .charitable-form-field-campaign-updates-consent {
    clear: both;
}

/* Accessibility improvements */
.charitable-form-field-campaign-updates-consent input[type="checkbox"]:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.charitable-form-field-campaign-updates-consent.disabled input[type="checkbox"]:focus {
    outline: 2px solid #ccc;
}

/* Loading state (when form is being submitted) */
.charitable-form.processing .charitable-form-field-campaign-updates-consent {
    opacity: 0.7;
    pointer-events: none;
}

/* ==========================================================================
   Aggressive Theme Override Styles - Icon Spacing Fix
   ========================================================================== */

/* Override Astra theme and other themes for icon spacing in campaign updates */
.charitable-campaign-updates .fa,
.charitable-campaign-updates i.fa,
.charitable-campaign-updates [class*="fa-"],
.charitable-campaign-updates .fas,
.charitable-campaign-updates .far,
.charitable-campaign-updates .fab {
    margin-right: 15px !important;
}

/* Specific overrides for common icon patterns */
.charitable-campaign-updates .charitable-toggle .fa-angle-down,
.charitable-campaign-updates .charitable-toggle i.fa-angle-down,
.charitable-campaign-updates button .fa,
.charitable-campaign-updates a .fa,
.charitable-campaign-updates .btn .fa {
    margin-right: 15px !important;
    margin-left: 0 !important;
}

/* Override theme button styles that might interfere */
.charitable-campaign-updates button,
.charitable-campaign-updates .button,
.charitable-campaign-updates .btn,
.charitable-campaign-updates a.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Ensure no double spacing on last icons */
.charitable-campaign-updates .fa:last-child,
.charitable-campaign-updates i:last-child {
    margin-right: 0 !important;
}

/* ==========================================================================
   Aggressive Border Override - Remove Theme Colored Borders
   ========================================================================== */

/* Force consistent border styling, override theme purple/colored borders */
.charitable-campaign-updates .charitable-campaign-update {
    border: 1px solid #e0e0e0 !important;
    border-left: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-color: #e0e0e0 !important;
}

/* Override any theme-specific border styles */
.charitable-campaign-updates .charitable-campaign-update::before,
.charitable-campaign-updates .charitable-campaign-update::after {
    border: none !important;
    border-left: none !important;
    background: none !important;
}

/* Additional safety overrides for nested elements */
.charitable-campaign-updates .charitable-campaign-update * {
    border-left-color: inherit !important;
}

/*# sourceMappingURL=charitable-campaign-updates-frontend.css.map */
