/* Campaign Cards - Kunco Style */

.pages-grid-section {
  padding: 2rem 0;
  background: #f8f9fa;
}

.pages-grid-section .section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  color: #1a1a1a;
}

/* Grid Layout - Let Bootstrap handle the grid */
.pages-grid {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* Ensure columns have proper spacing */
.pages-grid .col-12,
.pages-grid .col-md-6,
.pages-grid .col-lg-4 {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 30px;
}

/* Campaign Card */
.campaign-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.campaign-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Campaign Image */
.campaign-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #e9ecef;
}

.campaign-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.campaign-image-link img,
.campaign-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.campaign-card:hover .campaign-image-link img,
.campaign-card:hover .campaign-card-image img {
  transform: scale(1.08);
}

.campaign-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.campaign-image-placeholder svg {
  opacity: 0.3;
  color: #fff;
}

/* Progress Bar Section - Minimalist Design */
.campaign-progress-bar {
  padding: 0;
  background: #fff;
}

/* Progress Bar Track */
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  width: 0;
  transition: width 0.3s ease;
}

/* Hover Animation - Progress bar grows from 0 to 100% */
.campaign-card:hover .progress-bar-fill {
  width: 100% !important;
  transition: width 2s ease-in-out;
}

/* Campaign Content */
.campaign-content {
  padding: 25px 25px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.campaign-title {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.campaign-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.campaign-title a:hover {
  color: var(--color-primary);
}

.campaign-body {
  flex: 1;
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.campaign-body p {
  margin: 0;
}


/* Responsive Design */
@media (max-width: 991px) {
  .pages-grid-section {
    padding: 2rem 0;
  }
  
  .pages-grid-section .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .pages-grid-section {
    padding: 2rem 0;
  }
  
  .pages-grid-section .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .campaign-card {
    margin-bottom: 25px;
  }
  
  .campaign-title {
    font-size: 18px;
  }
}

/* Field Adjustments */
.campaign-body .field--name-body {
  margin: 0;
}

.campaign-card-image .field--name-field-teaser-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.campaign-card-image .field--name-field-teaser-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}