/* Retreats Page Styles */
.page-retreats-section {
    padding: 50px 0 130px 0;
    position: relative;
    overflow: hidden;
}

.page-retreats-header {
    margin-bottom: 35px;
}

.page-retreats-title {
    color: #000;
    font-family: Golden;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: 60px;
    letter-spacing: 2.5px;
    margin: 0;
}

/* Retreats Grid */
.retreats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.retreat-card.static-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Card images */
.static-card .retreat-image-wrap {
    height: auto;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.static-card .retreat-main-img {
    width: calc(100% - 40px);
    object-fit: cover;
    margin: 20px;
    display: flex;
    border-radius: 20px;
    height: 267px;
    margin-bottom: 0px;
}

/* Card Content inside grid */
.static-card .retreat-content {
    padding: 12px 20px 33px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Reset margins inside cards to match slider versions exactly */
.static-card .retreat-title {
    margin-top: 0px;
    margin-bottom: 10px;
    color: #093A58;
    font-family: Outfit;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 1px;
}

.static-card .retreat-date {
    color: #9A9A9A;
    font-family: Outfit;
    font-size: 18px;
    font-style: normal;
    font-weight: 200;
    line-height: 27px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.static-card .retreat-date svg {
    fill: #999;
}

.static-card .retreat-desc {
    color: #000;
    font-family: Outfit;
    font-size: 18px;
    font-style: normal;
    font-weight: 200;
    line-height: 27px;
    margin-bottom: 17px;
}

.static-card .retreat-btn-wrapper {
    margin-top: auto; /* Push button to bottom */
}

.static-card .retreat-btn {
    border-radius: 900px;
    background: #F76A32;
    width: 180px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-align: center;
    font-family: Golden;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: background-color 0.3s;
}

.static-card .retreat-btn:hover {
    background-color: #d95a28;
    color: #fff;
}

/* Custom Pagination styles matching layout */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Spacing between links */
    margin-top: 40px;
}

.custom-pagination .page-numbers {
  color: #3B4859;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

/* Active number styling (the orange box) */
.custom-pagination .page-numbers.current {
    color: #FFF;
    border-radius: 4px;
    background: #F69541;
    box-shadow: 0 5px 20px 0 rgba(126, 211, 33, 0.20);
}

/* Next / Prev buttons SVG adjustment */
.custom-pagination .next,
.custom-pagination .prev {
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0 10px;
}

.custom-pagination .page-numbers:hover:not(.current) {
    color: #F76A32;
}

/* Responsive Overrides */
@media screen and (max-width: 1279px) {
    .retreats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .page-retreats-title {
        font-size: 40px;
    }
    .page-retreats-header {
        margin-bottom: 10px;
    }
    .static-card .retreat-title {
        font-size: 18px;
    }
    .static-card .retreat-date {
        font-size: 16px;
    }
    .static-card .retreat-desc {
        font-size: 16px;
        line-height: 22px;
    }
    .static-card .retreat-content {
        padding: 12px 20px 20px 20px;
    }
    .page-retreats-section {
        padding: 40px 0 50px 0;
    }
}

@media screen and (max-width: 726px) {
    .page-retreats-section {
        padding: 20px 0 50px 0;
    } 
    .page-retreats-header {
        margin-bottom: 15px;
    }
    .retreats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-retreats-title {
        font-size: 27px;
    }
}