/* Gates Slider */
.gates-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.gates-slider {
    overflow: hidden;
    position: relative;
    padding-bottom: 50px;
}

/* Fade on the left edge */
.gates-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, #f4f3ed 0%, rgba(245, 240, 232, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Fade on the right edge */
.gates-slider-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to left, #f4f3ed 0%, rgba(245, 240, 232, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Card */
.gate-card {
    text-align: center;
    padding: 10px;
    transition: transform 0.4s ease;
}

/* Non-active slides scale down */
.gates-slider .swiper-slide .gate-card {
    transform: scale(0.85);
}

.gates-slider .swiper-slide-active .gate-card {
    transform: scale(1);
}

@media (max-width: 599px) {
    .gates-slider .swiper-slide .gate-card {
        transform: scale(0.8);
    }

    .gates-slider .swiper-slide-active .gate-card {
        transform: scale(1);
    }

    .gates-slider-wrapper::after {
        background: linear-gradient(to right, #f3efe5 0%, rgba(245, 240, 232, 0) 100%);
    }

    .gates-slider-wrapper::before {
        background: linear-gradient(to left, #f3efe5 0%, rgba(245, 240, 232, 0) 100%);
    }
}

.gate-card__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #5a4a3a;
}

/* Image area */
.gate-card__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    background: #f5f0e8;
}

.gate-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gate-card__placeholder {
    width: 100%;
    height: 100%;
    background: #d5cec3;
}

/* Description */
.gate-card__desc {
    font-size: 13px;
    color: #7a6a5a;
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Pagination dots */
.gates-slider-pagination {
    margin-top: 74px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.gates-slider-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid #660E1B;
    opacity: 1;
    transition: background 0.3s, border-color 0.3s;
}

.gates-slider-pagination .swiper-pagination-bullet-active {
    background: #d4a017;
    border-color: #d4a017;
}

/* Navigation arrows */
.gates-slider-prev,
.gates-slider-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #660E1B !important;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    padding: 0;
    box-shadow: none !important;
}

.gates-slider-prev svg,
.gates-slider-next svg {
    width: 28px;
    height: 28px;
    stroke-width: 3;
}

.gates-slider-prev:hover,
.gates-slider-next:hover {
    background: #fff !important;
    background-color: #fff !important;
    color: #660E1B !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.gates-slider-prev {
    left: 0;
}

.gates-slider-next {
    right: 0;
}

.gates-slider-prev svg {
    transform: rotate(180deg);
}

.gates-slider-next svg {
    transform: rotate(180deg);
}

.gates-slider-prev.swiper-button-disabled,
.gates-slider-next.swiper-button-disabled {
    opacity: 0.2;
    cursor: default;
}

@media (max-width: 599px) {
    .gates-slider-prev,
    .gates-slider-next {
        width: 40px;
        height: 40px;
    }

    .gates-slider-prev svg,
    .gates-slider-next svg {
        width: 24px;
        height: 24px;
    }
}


/* ========================
   Messages Feed
   ======================== */
.messages-feed-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.messages-feed__viewport {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
}

.messages-feed__track {
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.5s ease;
}

/* Single message card */
.message-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: 1px solid #660E1B;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    transform: scale(0.9);
    transform-origin: center center;
}

/* Active (top) card — red/maroon style, full size */
.message-card--active {
    background: #660E1B;
    border-color: #660E1B;
    transform: scale(1);
}

.message-card--active .message-card__title {
    color: #fff;
}

.message-card--active .message-card__desc {
    color: rgba(255, 255, 255, 0.9);
}

.message-card__image-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 0;
    overflow: hidden;
    background: #f5f0e8;
}

.message-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-card__placeholder {
    width: 100%;
    height: 100%;
    background: #d5cec3;
}

.message-card__content {
    flex: 1;
    min-width: 0;
}

.message-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #6b2a3a;
    margin: 0 0 12px;
    padding-top: 20px;
    padding-bottom: 12px;
    border-bottom: none;
    position: relative;
}

.message-card__title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: #6b2a3a;
    margin: 12px 0 0 auto;
}

.message-card--active .message-card__title::after {
    background: rgba(255, 255, 255, 0.4);
}

.message-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #5a4a3a;
    margin: 0;
}

/* Gradient overlay at the bottom to "cut" the 4th card */
.messages-feed__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(245, 240, 232, 1) 100%);
    pointer-events: none;
}

/* Chevron button */
.messages-feed__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #6b2a3a;
    transition: opacity 0.3s, transform 0.3s;
    padding: 8px;
}

.messages-feed__chevron:hover {
    transform: translateY(3px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .message-card {
        padding: 16px;
        gap: 14px;
    }

    .message-card__image-wrap {
        width: 80px;
        height: 80px;
    }

    .message-card__title {
        font-size: 17px;
    }

    .message-card__desc {
        font-size: 13px;
    }
}


/* ========================
   Messages Mobile Carousel
   ======================== */
.messages-mobile-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0px;
}

.messages-mobile-swiper {
    overflow: hidden;
}

/* Card layout — image on top, title + desc below */
.msg-mobile-card {
    background: transparent;
    border: 1px solid #660E1B;
    border-radius: 4px;
    padding: 16px;
    text-align: right;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    transform: scale(0.9);
    transform-origin: center center;
}

.swiper-slide-active .msg-mobile-card {
    transform: scale(1);
}

.msg-mobile-card__image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    background: #f5f0e8;
    margin-bottom: 14px;
}

.msg-mobile-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.msg-mobile-card__placeholder {
    width: 100%;
    height: 100%;
    background: #d5cec3;
}

.msg-mobile-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #6b2a3a;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #6b2a3a;
    margin-bottom: 10px;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.msg-mobile-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #5a4a3a;
    margin: 0;
    transition: color 0.4s ease;
}

/* Active slide — maroon background */
.swiper-slide-active .msg-mobile-card {
    background: #660E1B;
    border-color: #660E1B;
}

.swiper-slide-active .msg-mobile-card__title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.swiper-slide-active .msg-mobile-card__desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Pagination dots */
.messages-mobile-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    bottom: -10px !important;
    left: 0;
    width: 100%;
}

.messages-mobile-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid #660E1B;
    opacity: 1;
    transition: background 0.3s, border-color 0.3s;
}

.messages-mobile-pagination .swiper-pagination-bullet-active {
    background: #d4a017;
    border-color: #d4a017;
}
