/* Wrapper and background layer */
.Iskcon-festival-section-wrapper {
  background: linear-gradient(117deg, #fff 70%, #284169 105%, #284169 120%);
  position: relative;
  overflow: hidden;
}

/* Section title decorative */
.Iskcon-festival-section-title {
  color: #222;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 45px;
  position: relative;
}
.Iskcon-festival-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -16px;
  width: 82px;
  height: 10px;
  background: radial-gradient(circle, #fef139aa 0%, #fff0 70%);
  z-index: -1;
  opacity: 0.8;
}
/* Divider with yellow glow */
.Iskcon-festival-section-divider {
  width: 60px;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #284169 0%, #fef139 100%);
  margin-bottom: 12px;
  box-shadow: 0 0 12px #fef13944;
}
.Iskcon-festival-section-subtitle {
  font-size: 16px;
  color: #222;
  font-weight: 500;
  margin-bottom: 12px;
}
/* Responsive equal height rows */
.Iskcon-festival-section-wrapper .row {
  display: flex;
  flex-wrap: wrap;
}
/* Image box with halo animation */
.Iskcon-festival-section-imgbox {
  position: relative;
  background: linear-gradient(120deg, #fff 60%, #284169 100%);
  border-radius: 1rem;
  box-shadow: 0 2px 14px #28416922;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.Iskcon-festival-section-img {
  width: 98%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px #28416925;
}
.Iskcon-festival-section-imgicon {
  position: absolute;
  bottom: 12px;
  right: 18px;
  background: #fff;
  color: #284169;
  border-radius: 50%;
  box-shadow: 0 2px 7px #28416933;
  padding: 7px 11px;
  font-size: 1.2em;
  z-index: 2;
  opacity: 0.93;
  animation: halo 2.4s infinite alternate;
}
@keyframes halo {
  0% {
    box-shadow: 0 0 16px #fef139bb, 0 0 5px #28416944;
  }
  100% {
    box-shadow: 0 0 24px #fef139aa, 0 0 24px #28416933;
  }
}
.Iskcon-festival-section-box p {
  color: #fff;
  text-align: justify;
  font-size: 18px;
}
.Iskcon-festival-section-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #284169;
  color: #fff;
  font-size: 18px;
  border-radius: 22px;
  box-shadow: 0 2px 12px #284169bb;
  border: 2.5px solid #284169;
  padding: 24px 22px 16px 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 7px;
}
.Iskcon-festival-section-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: 0.2px;
}
.Iskcon-festival-section-box-title i {
  margin-right: 8px;
  color: #fff;
}
/* Scripture block */
.Iskcon-festival-section-scripture {
  background: rgba(255, 255, 255, 0.11);
  border-left: 4px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-size: 1.02rem;
  font-style: italic;
  padding: 12px 18px;
  font-size: 18px;
}
.text-white-50 {
  color: #fff !important;
}
/* Closing note */
.Iskcon-festival-section-closingalert {
  color: #222;
  font-weight: 600;
}
.Iskcon-festival-section-closingalert i {
  color: #284169;
}

/* Main Section with Background Image */
.iskcon-festival-title {
  color: #fff !important;
}
.iskcon-festival-title::before,
.iskcon-festival-title::after {
  background: #fff !important;
}
.iskcon-festival-even-main {
  background: linear-gradient(
      135deg,
      rgba(26, 26, 46, 0.9) 0%,
      rgba(22, 33, 62, 0.85) 50%,
      rgba(15, 52, 96, 0.9) 100%
    ),
    url("../image/donation/12.jpg") center/cover no-repeat;
  min-height: 100vh;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.iskcon-festival-even-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 107, 107, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(107, 207, 127, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 217, 61, 0.05) 0%,
      transparent 70%
    );
  z-index: 1;
}

.iskcon-festival-even-main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

.iskcon-festival-even-container {
  position: relative;
  z-index: 2;
}

/* Enhanced Section Styles */
.iskcon-festival-even-section {
  padding: 27px;
  border-radius: 40px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  background: #f4f4f4;
  overflow: hidden;
}

.iskcon-festival-even-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e3352 0%, #284369 50%, #35578a 100%);

  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.iskcon-festival-even-section:hover::before {
  opacity: 1;
}

.iskcon-festival-even-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Enhanced Card Styles */
.iskcon-festival-even-card {
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid rgb(40, 67, 105);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  height: 110px;
}

.iskcon-festival-even-card::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.6s ease;
}

.iskcon-festival-even-card:hover::before {
  left: 100%;
}

.iskcon-festival-even-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Image Styling */
.iskcon-festival-even-card-image-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.iskcon-festival-even-card-image {
  width: 100%;
  height: 80px !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.iskcon-festival-even-card-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Black transparent overlay */
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Enhanced Date Badge */
.iskcon-festival-even-card-date {
  color: #222;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
}

.iskcon-festival-even-cta {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* Rest of the CSS remains the same... */
.iskcon-festival-even-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 21px;
  border-bottom: 1px solid rgb(40, 67, 105);
  padding-bottom: 13px;
}

.iskcon-festival-even-section-title {
  color: #222;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}
.iskcon-festival-even-section:hover .iskcon-festival-even-section-title {
  color: #fff;
}

.iskcon-festival-even-section:hover .iskcon-festival-even-view-all {
  border: 1px solid #fff;
  color: #fff;
}

.iskcon-festival-even-section:hover .iskcon-festival-even-section-header {
  border-bottom: 1px solid #fff;
}

.iskcon-festival-even-section:hover .iskcon-festival-even-card {
  border: 1px solid rgb(250, 250, 251);
}

.iskcon-festival-even-section:hover .iskcon-festival-even-card-date {
  color: #fff;
}
.iskcon-festival-even-section:hover .iskcon-festival-even-card-title {
  color: #fff;
}
.iskcon-festival-even-section:hover .iskcon-festival-even-card-description {
  color: #fff;
}
.iskcon-festival-even-view-all {
  color: #222;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 16px;
  border: 1px solid #284369;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: transparent;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(0px);
}
.iskcon-festival-even-view-all:hover {
  background: linear-gradient(45deg, #284369 0%, #3a5998 50%, #284369 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(40, 67, 105, 0.3);
}

.iskcon-festival-even-card-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.iskcon-festival-even-card-details {
  flex: 1;
}

.iskcon-festival-even-card-date i {
  margin-right: 5px;
}

.iskcon-festival-even-card-title {
  color: #222;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;

  /* 2 words limit ke liye */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  max-width: 150px; /* Adjust according to your design */
  white-space: nowrap;
  text-overflow: ellipsis;
}

.iskcon-festival-even-card-description {
  color: #222;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.iskcon-festival-even-cta-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.iskcon-festival-even-cta-text {
  color: #e0e0e0;
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
  .Iskcon-festival-section-img {
    height: 160px;
  }
  .Iskcon-festival-section-box {
    padding: 14px 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 767px) {
  .Iskcon-festival-section-title {
    font-size: 1.18rem;
  }
  .Iskcon-festival-section-img {
    height: 90vw;
    min-height: 110px;
  }

  .iskcon-festival-even-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .iskcon-festival-even-section {
    margin-bottom: -15px;
    padding: 25px;
  }

  .iskcon-festival-even-section-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .iskcon-festival-even-card-content {
    flex-direction: column;
  }

  .iskcon-festival-even-card-image {
    align-self: center;
  }

  .iskcon-festival-even-cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .Iskcon-festival-section-title {
    font-size: 28px;
  }
  .Iskcon-festival-section-subtitle {
    text-align: justify;
    padding: 15px;
    margin-bottom: -38px;
  }
  .Iskcon-festival-section-box p {
    font-size: 16px;
  }
  .Iskcon-festival-section-scripture {
    text-align: justify;
    font-size: 16px;
  }
  .iskcon-festival-even-card {
    padding-top: 5px;
  }
  .iskcon-festival-even-main {
    padding: 30px 0 !important;
  }

  .iskcon-festival-even-title {
    font-size: 28px;
  }

  .iskcon-festival-even-section {
    padding: 20px;
  }

  .iskcon-festival-even-cta {
    padding: 40px 20px;
  }
  .iskcon-festival-even-card-details {
    margin-left: 10px;
  }
  .iskcon-festival-even-card-content {
    display: ruby;
  }

  .iskcon-festival-even-card-title {
    max-width: 135px;
  }
  .iskcon-festival-even-card-description {
    color: #222;
    font-size: 12px;
    margin-left: 13px;
    margin-left: 12px;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
    overflow: hidden;
    max-width: 170px; /* Adjust according to your design */
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
