/* Content Cards Styling
 * A dedicated stylesheet for content cards and sliders
 */

/* Card Base Styles */
.content-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px;
  z-index: 1;
  cursor: pointer;
}

.content-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: -1;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-card:hover:before {
  opacity: 1;
  transform: scale(1);
}

.content-card .card-date-container {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-left: 10px;
  transition: all 0.3s ease;
}

.content-card:hover .card-date-container {
  transform: translateX(5px);
}

.content-card .card-date-container:before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  height: 80%;
  width: 3px;
  background: linear-gradient(to bottom, #FFC107, #FFD54F);
  border-radius: 3px;
  transform: scaleY(0.7);
  transition: transform 0.3s ease;
}

.content-card:hover .card-date-container:before {
  transform: scaleY(1);
}

.content-card .card-date-day {
  font-size: 45px;
  font-weight: 700;
  line-height: 0.9;
  color: #313166;
  transition: transform 0.3s ease, color 0.3s ease;
}

.content-card:hover .card-date-day {
  color: #FFC107;
  transform: scale(1.05);
}

.content-card .card-date-month {
  font-size: 22px;
  color: #313166;
  font-weight: 400;
  transition: color 0.3s ease;
}

.content-card:hover .card-date-month {
  color: #666;
}

.content-card .card-separator {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #FFC107, rgba(255, 193, 7, 0.3));
  margin: 15px 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.content-card:hover .card-separator {
  width: 60px;
  background: linear-gradient(to right, #FFC107, #FFD54F);
}

.content-card .card-img-top {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  margin-top: auto;
  margin-bottom: 0;
  order: 3;
  transition: transform 0.5s ease;
}

.content-card:hover .card-img-top {
  transform: scale(1.02);
}

.content-card .card-img-top img {
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.content-card:hover .card-img-top img {
  transform: scale(1.1) rotate(1deg);
}

.content-card .card-body {
  padding: 0;
  margin-bottom: 25px;
  order: 2;
  transition: transform 0.3s ease;
}

.content-card:hover .card-body {
  transform: translateY(-5px);
}

.content-card .card-title {
  color: var(--bs-secondary, #313166);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 15px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.content-card:hover .card-title {
  color: #000;
}

.content-card .card-text {
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 15px;
  transition: color 0.3s ease;
}

.content-card:hover .card-text {
  color: #444;
}

.content-card .card-footer {
  border-top: none;
  background-color: transparent;
  padding: 0;
  margin-top: auto;
  order: 4;
  transition: transform 0.3s ease;
}

.content-card:hover .card-footer {
  transform: translateY(-5px);
}

.content-card .btn-card {
  font-weight: 600;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.content-card .btn-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFC107;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.content-card .btn-card:hover {
  color: #212529;
  border-color: #FFC107;
  transform: translateX(3px);
  background-color: transparent;
}

.content-card .btn-card:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.content-card .btn-card img {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.content-card .btn-card:hover img {
  transform: translateX(4px);
}

/* Slider Specific Styles */
.treasury-content-cards {
  padding: 1rem 0;
}

.treasury-content-cards h2 {
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.treasury-content-cards h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FFC107, #FFD54F);
  margin: 0.5rem auto 0;
  transition: width 0.3s ease;
}

.treasury-content-cards:hover h2:after {
  width: 100px;
}

.treasury-content-cards .lead {
  font-size: 1.15rem;
  color: #555;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.content-cards-slider {
  margin: 0 -12px;
  overflow: hidden;
}

.content-card-slide {
  padding: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card-slide:nth-child(1) { animation-delay: 0.1s; }
.content-card-slide:nth-child(2) { animation-delay: 0.2s; }
.content-card-slide:nth-child(3) { animation-delay: 0.3s; }
.content-card-slide:nth-child(4) { animation-delay: 0.4s; }
.content-card-slide:nth-child(5) { animation-delay: 0.5s; }

.content-card-left-arrow,
.content-card-right-arrow {
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin: 10px 0;
}

.content-card-left-arrow:hover,
.content-card-right-arrow:hover {
  background-color: var(--bs-secondary, #313166);
  transform: scale(1.1);
}

.content-card-left-arrow img,
.content-card-right-arrow img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.content-card-left-arrow:hover img {
  transform: translateX(-2px);
}

.content-card-right-arrow:hover img {
  transform: translateX(2px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .content-card {
    padding: 20px;
  }
  
  .content-card .card-date-day {
    font-size: 35px;
  }
  
  .content-card .card-date-month {
    font-size: 18px;
  }
  
  .content-card .card-title {
    font-size: 22px;
  }
  
  .content-card .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .content-card {
    padding: 15px;
  }
  
  .content-card .card-date-day {
    font-size: 30px;
  }
  
  .content-card .card-date-month {
    font-size: 16px;
  }
} 