.repeat-animate.view,
.one-time-animate.view {
  animation-name: slide-in;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  animation-delay: 0.3s;
}
.repeat-animate.not-in-view,
.one-time-animate.not-in-view {
  transform: translateY(200px);
  opacity: 0;
}

.one-time-animate.fade-up.view {
  animation-name: fade-up;
}

.one-time-animate.slide-right.view {
  animation-name: slide-right;
}

.one-time-animate.slide-right.not-in-view {
  transform: translateX(-200px);
  opacity: 0;
}

.one-time-animate.fade-up.not-in-view {
  opacity: 0;
  transform: translateY(20px) scale(0.5);
}

.stagger-animate.view {
  animation-name: slide-in;
  animation-fill-mode: both;
  animation-duration: 0.5s;
  animation-delay: calc(var(--stagger-delay, 0) * 150ms);
}

.stagger-animate.not-in-view {
  transform: translateY(200px);
  opacity: 0;
}

.stagger-animate.slide-right.view {
  animation-name: slide-right;
}

.stagger-animate.slide-right.not-in-view {
  transform: translateX(-200px);
  opacity: 0;
}

.stagger-animate.slide-left.view {
  animation-name: slide-left;
}

.stagger-animate.slide-left.not-in-view {
  transform: translateX(200px);
  opacity: 0;
}

@keyframes slide-in {
  0% {
    transform: translateY(200px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-right {
  0% {
    transform: translateX(-200px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-left {
  0% {
    transform: translateX(200px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.text-shadow {
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
}

.flex-basis {
  flex-basis: 450px;
}

.flex-auto {
  flex-basis: auto;
  max-width: 450px;
}

.row-gap-4 {
  row-gap: 4rem;
}

.col-gap-4 {
  column-gap: 4rem;
}

.calendar-btn {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

a.persekutuan-heading {
  color: #1f2937;
  font-weight: 300;
}

a.persekutuan-heading:hover {
  color: #800507;
}

a.tema-link {
  color: #1f2937;
}

a.tema-link:hover {
  color: #800507;
}

.pattern-bg {
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  background-image: radial-gradient(#000 0.5px, transparent 0.5px),
    radial-gradient(#000 0.5px, #fff 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.swiper-pagination-bullet-active {
  background-color: #7f0507 !important;
}

.event-list-container {
  margin: 0 24px !important;
  max-width: 100%;
  background-color: #e8e8e8;
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 50px;
  padding-bottom: 50px;
  box-shadow: 0 2px 5px #0003;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-item {
  display: grid;
  grid-template-columns: 1.75fr 2fr;
  padding: 35px 1rem 85px 1rem;
  width: 90%;
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  margin: 0 auto 50px;
  border-bottom: 2px solid #757575;
}

.event-item .detail-info {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 20px;
}

svg {
  width: 24px;
}

.event-item .detail-info p {
  margin: 0;
}

.event-item img {
  /* height: 300px; */
  max-width: 385px;
  aspect-ratio: 4/5;
  width: 100%;
  object-position: 50%;
  border-radius: 12px;
}

.event-item .left {
  display: flex;
  align-items: center;
}

.event-item .title {
  /* font-size: 50px; */
  font-weight: 350;
  margin: 0;
  margin-bottom: 10px;
}

.event-item .date {
  color: #e55934;
  font-weight: 400;
  /* font-size: 26px; */
  margin: 0;
  margin-bottom: -5px;
}

.event-item .desc {
  margin: 10px 0 20px 0;
}

.heading-section {
  /* font-size: 40px; */
  font-style: normal;
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
}

.button {
  background-color: #58595b;
  color: #fff;
  border: 2px #000;
  border-radius: 30px;
  padding: 13px 30px;
  display: inline-block;
}

.button:hover {
  background-color: #434447;
}

.persekutuan-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  min-width: 100%;
  padding: 0 24px;
}

.post-card {
  max-width: 420px;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.3s ease !important;
  border: 1px solid #eee;
}

.post-card > a {
  color: unset;
}

.post-card:hover .post-title {
  color: #5b57a6;
  /* transform: translateY(-5px) !important; */
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); */
}

.post-card:hover .post-image {
  background-size: 130% 130%;
}

.post-image {
  position: relative;
  /* height: 250px; */
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(45deg, #4a69bd, #6a89cc);
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  transition: background-size 0.5s ease;
}

.post-image-cover-container {
  height: 250px;
  overflow: clip;
}

.post-image-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  /* height: 250px; */
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.post-image-cover:hover {
  transform: scale(1.3);
}

.post-image .post-overlay {
  position: absolute;
  inset: 0;
}

.text-over-image {
  padding: 1rem;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.8);
  display: inline-block;
  border-bottom-right-radius: 18px;
}

.text-over-image p {
  padding: 0;
  margin: 0;
  font-weight: 350;
  text-align: center;
}

.text-over-image p.month {
  line-height: 0.7;
  font-size: 12px !important;
}

.text-over-image p.day {
  line-height: 1;
  font-size: 36px !important;
}

.post-content {
  padding: 1.5rem 2rem;
}

.info-detail-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-content .info-detail {
  font-weight: 325;
}

.post-type {
  margin: 0;
  font-size: 1rem;
}

.post-title {
  font-weight: 400;
  color: #2c3e50;
  transition: color 0.3s ease;
  margin-top: 0;
  margin-bottom: 1.5rem;
  /* font-size: 1.5rem; */
}

.post-excerpt {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.latest-pustaka-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  min-width: 100%;
  gap: 1.5rem;
}

.pustaka-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 650px;
  /* width: 100%; */
  flex: 1 1 auto;
}

.pustaka-detail {
  width: 100%;
}

.pustaka-card {
  position: relative;
  width: 100%;
  /* aspect-ratio: 16/9; */
  height: 400px;
  background-size: cover !important;
  padding: 40px;
  text-align: center;
}

.pustaka-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.pustaka-card:hover .pustaka-overlay {
  opacity: 1;
}

.pustaka-item .pustaka-type {
  color: #fff;
  /* font-size: 28px; */
  font-weight: 350;
  text-transform: uppercase;
  letter-spacing: 4px;

  text-decoration: underline;
  text-underline-offset: 8px;
  position: relative;
}

.pustaka-card:hover .pustaka-title {
  color: #fcaf17;
}

.pustaka-item .pustaka-title {
  font-style: italic;
  color: #fff;
  /* font-size: 18px; */
  font-weight: 325;
  transition: color 0.3s ease;
  position: relative;
}

.bg-image-prakata {
  margin: 0 auto !important;
  max-width: none;
  /* height: 100vh; */
  padding: 15rem 0;
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
    url(http://grii-duren-sawit.local/wp-content/uploads/2025/09/DSCF0043A-scaled.jpg); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-image-prakata .overlay-to-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0,
    rgba(0, 0, 0, 0.8) 5rem,
    rgba(0, 0, 0, 0.5) 10rem,
    transparent 15rem
  );
}

.landing-prakata-container {
  margin: auto !important;
  padding: 0 2rem;
  max-width: 1440px;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.prakata-container {
  color: #fff;
  width: 80%;
}

.prakata-container .prakata-title {
  margin: 0;
  /* font-size: 60px; */
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 6px;
}

.prakata-container .prakata-text {
  font-weight: 325;
  /* font-size: 42px; */
}

.prakata-container .highlight-bg {
  background-color: #7f0507;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  font-weight: 400;
}

.prakata-container .highlight-bg.bg-gray {
  background-color: #2f756c;
}

.prakata-container .highlight-bg.bg-yellow {
  background-color: #ffde59;
  color: black;
}

.highlight-bg {
  white-space: nowrap; /* Keeps text on one line */
}

.pt-quotes-container {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pt-quotes-container .pt-quotes-image {
  position: relative;
}

.pt-quotes-container img {
  width: 700px;
  max-width: 100%;
}

.pt-quotes-container .overlay-to-top {
  inset: 0;
  position: absolute;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.5) 25%,
    transparent 30%
  );
}

.pt-quotes-text {
  /* font-size: 38px; */
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  margin: 0.5rem 0;
}

.pt-quotes-text .underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  position: relative;
}

.pt-quotes-text .highlight {
  font-style: italic;
  font-weight: bold;
  color: #fedc59;
}

.pt-quotes-container svg {
  /* width: 4rem;
  height: 4rem; */
  width: clamp(2.5rem, 3.3vw, 4rem);
  height: clamp(2.5rem, 3.3vw, 4rem);
}

.pt-quotes-container .pt-quotes-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pt-quotes-container .pt-quotes-text-container svg {
  color: #fff;
}

.pt-generation-container {
  max-width: 100%;
  padding: 0 2rem;
  color: #fff;
}

.pt-generation-container .grid-2 {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}

.pt-generation-container .pt-heading {
  /* font-size: 50px; */
  font-weight: 400;
  margin: 0;
}

.pt-generation-container .pt-gen-text {
  margin: 0;
}

.pt-generation-container .author {
  text-align: right;
  margin: 0;
}

.red-highlight {
  color: #f10000;
}

@media screen and (max-width: 768px) {
  .prakata-container .prakata-title {
    /* font-size: 50px; */
  }

  .prakata-container .prakata-text {
    /* font-size: 28px; */
  }

  .landing-prakata-container img {
    display: none;
  }

  .pt-quotes-container .pt-quotes-text-container {
    --stagger-delay: 0;
  }

  .pt-quotes-container .pt-quotes-image {
    --stagger-delay: 1;
  }

  .pt-quotes-container svg {
    /* width: 2.5rem;
    height: 2.5rem; */
  }

  .pt-quotes-text {
    /* font-size: 28px; */
  }

  .pt-generation-container .grid-2 {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .pt-generation-container .pt-heading {
    /* font-size: 40px; */
  }

  .pt-generation-container .author {
    margin-top: 2rem;
  }

  .pt-quotes-container {
    flex-wrap: wrap-reverse;
  }

  .pt-quotes-container .pt-quotes-text-container {
    left: 20px;
    margin: 0 2rem;
  }

  .event-item {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .highlight-bg {
    white-space: normal;
  }

  .bg-image-prakata {
    padding: 5rem 0;
  }

  .bg-image-prakata .overlay-to-top {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 0.8) 2rem,
      rgba(0, 0, 0, 0.5) 4rem,
      transparent 8rem
    );
  }

  .prakata-container {
    width: unset;
  }

  .prakata-container .prakata-title {
    /* font-size: 34px; */
  }

  .prakata-container .prakata-text {
    /* font-size: 20px; */
  }

  .pt-quotes-text {
    /* font-size: 20px; */
  }

  .pt-generation-container .pt-heading {
    /* font-size: 35px; */
  }

  .pt-generation-container .pt-gen-text {
    /* font-size: 14px; */
  }

  .jim-heading {
    font-size: 25px;
  }

  .jim-text p {
    /* font-size: 1.3rem !important; */
  }

  .location-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .jim-location-heading {
    font-size: 1.3rem !important;
  }
  .jim-location-text {
    font-size: 1rem !important;
  }

  .heading-section {
    /* font-size: 35px; */
  }

  .event-item {
    margin-left: 0;
    margin-right: 0;
  }

  .event-item .title {
    /* font-size: 30px; */
  }

  .event-item .date {
    /* font-size: 20px; */
  }

  .event-item .detail-info {
    font-size: 16px;
  }
}
