
/* Smooth transitions for all responsive elements */
@media (max-width: 768px) {
    .intro h1 {
        transition: font-size 0.3s ease;
    }
}

/* Social links underline effect */
/* Social links */
.social-links__item {
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.social-links__item span {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.social-links__item span::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #CAB494;
    transition: width 0.3s ease-in-out;
}

.social-links__item:hover span::after {
    width: 100%;
}



/* ============================================
   Feed slider (Swiper)
   ============================================ */

/* Slider container */
.feed__slider {
    padding: 40px 0;
    min-height: 450px;
}

/* Swiper configuration */
.feed__swiper {
    padding: 40px 60px;
    overflow: visible;
    min-height: 420px;
}

/* Swiper slide size */
.feed__swiper .swiper-slide {
    width: 300px !important;
    height: 340px;
    flex-shrink: 0;
}

/* Dim non-active slides slightly */
.feed__swiper .swiper-slide:not(.swiper-slide-active) .feed-card {
    opacity: 0.85;
}

/* Card */
.feed-card {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    border: 3px solid #CAB494;
    box-shadow: 0px 0px 43.9px -5px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Card hover effect */
.swiper-slide-active .feed-card:hover {
    box-shadow: 0px 0px 50px 0px rgba(202, 180, 148, 0.4);
    transform: translateY(-5px);
}

/* Swiper navigation buttons */
.feed__swiper .swiper-button-prev,
.feed__swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 7px solid #CAB494;
    border-top: none;
    border-right: none;
    transition: all 0.3s ease;
}

.feed__swiper .swiper-button-prev::after,
.feed__swiper .swiper-button-next::after {
    content: '';
}

.feed__swiper .swiper-button-prev {
    left: 10px;
    transform: rotate(45deg);
}

.feed__swiper .swiper-button-next {
    right: 10px;
    transform: rotate(-135deg);
}

.feed__swiper .swiper-button-prev:hover,
.feed__swiper .swiper-button-next:hover {
    border-color: #9A8364;
    transform: scale(1.1) rotate(45deg);
}

.feed__swiper .swiper-button-next:hover {
    transform: scale(1.1) rotate(-135deg);
}

.feed__swiper .swiper-button-prev.swiper-button-disabled,
.feed__swiper .swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ============================================
   Responsive: feed slider
   ============================================ */

/* Mobile */
@media (max-width: 640px) {
    .feed__slider {
        min-height: 420px;
    }

    .feed__swiper {
        padding: 0 16px;
        overflow: hidden;
    }

    .feed__swiper .swiper-slide {
        width: 100% !important;
        height: 320px;
    }

    .feed-card {
        border-radius: 20px;
    }

    .feed__swiper .swiper-button-prev,
    .feed__swiper .swiper-button-next {
        display: none;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .feed__slider {
        min-height: 520px;
    }

    .feed__swiper {
        padding: 50px 80px;
        min-height: 480px;
    }

    .feed__swiper .swiper-slide {
        width: 330px !important;
        height: 370px;
    }

    .feed-card {
        border-radius: 25px;
    }

    .feed__swiper .swiper-button-prev,
    .feed__swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .feed__swiper .swiper-button-prev {
        left: 20px;
    }

    .feed__swiper .swiper-button-next {
        right: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .feed__slider {
        min-height: 580px;
    }

    .feed__swiper {
        padding: 60px 100px;
        min-height: 540px;
    }

    .feed__swiper .swiper-slide {
        width: 356px !important;
        height: 397px;
    }

    .feed-card {
        border-radius: 30px;
    }

    .feed__swiper .swiper-button-prev,
    .feed__swiper .swiper-button-next {
        width: 40px;
        height: 40px;
        border-width: 8px;
    }

    .feed__swiper .swiper-button-prev {
        left: 30px;
    }

    .feed__swiper .swiper-button-next {
        right: 30px;
    }
}

/* ============================================
   News grid
   ============================================ */

/* Main grid wrapper */
.news__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1178px;
}

/* Cards grid (2x2) */
.news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 40px;
    width: 100%;
}

/* Individual news card */
.news__card {
    position: relative;
    width: 100%;
    max-width: 388px;
    height: 255px;
    background: #FFFFFF;
    border: 2px solid #CAB494;
    border-radius: 30px;
    box-shadow: 0px 4px 10.6px 0px rgba(0, 0, 0, 0.25);
    padding: 22px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news__card:hover {
    box-shadow: 0px 6px 15px 0px rgba(202, 180, 148, 0.4);
    transform: translateY(-2px);
}

/* News category tag */
.news__category {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.219;
    color: #2D2D2D;
    position: absolute;
    top: 22px;
    left: 20px;
}

/* News date */
.news__date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.219;
    color: #8E8E8E;
    text-align: right;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* News text */
.news__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.338;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 0;
    flex: 1;
}

/* News arrow icon */
.news__icon {
    width: 32px;
    height: 32px;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

/* Telegram subscription card */
.news__subscription {
    width: 100%;
    max-width: 308px;
    height: 550px;
    background: #FFFFFF;
    border: 2px solid #CAB494;
    border-radius: 30px;
    box-shadow: 0px 4px 10.6px 0px rgba(0, 0, 0, 0.25);
    padding: 22px 18px 0 18px;
}

.news__subscription-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

/* Telegram title */
.news__subscription-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 1.338;
    color: #000000;
    margin: 0 0 20px 0;
}

/* Telegram description */
.news__subscription-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.338;
    color: #000000;
    margin: 0 0 24px 0;
}

/* Telegram QR code */
.news__subscription-qr {
    width: 100%;
    max-width: 272px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0 auto 35px auto;
    display: block;
}

/* ============================================
   Responsive: news grid
   ============================================ */

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .news__layout {
        grid-template-columns: 1fr auto;
        gap: 44px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .news__layout {
        justify-items: center;
    }

    .news__grid {
        justify-items: center;
    }

    .news__subscription {
        margin: 0 auto;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .news__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news__card {
        max-width: 100%;
        height: auto;
        min-height: 220px;
        padding: 18px 16px 16px 16px;
    }

    .news__category {
        font-size: 13px;
        top: 18px;
        left: 16px;
    }

    .news__date {
        font-size: 16px;
        top: 16px;
        right: 16px;
    }

    .news__text {
        font-size: 20px;
        margin-top: 35px;
    }

    .news__icon {
        width: 28px;
        height: 28px;
        bottom: 16px;
        left: 16px;
    }

    .news__subscription {
        max-width: 100%;
        /* height: auto; */
        padding: 20px 16px 0px 16px;
    }

    .news__subscription-title {
        font-size: 22px;
    }

    .news__subscription-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .news__subscription-qr {
        max-width: 240px;
        margin-bottom: 24px;
    }

    .news__subscription-button {
        width: 100%;
        max-width: 195px;
        margin: auto auto 0 auto;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .news__text {
        font-size: 18px;
    }

    .news__subscription-qr {
        max-width: 200px;
    }
}
