/* ========================================
   BASE LAYOUT - BLOG LIST PAGE
   ======================================== */

.blog-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.blog-inner {
    width: 100%;
    display: flex;
    margin-top: 105px;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 480px) {
    .blog-inner  {
        margin-top: 78px;
    }
}


.blog-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1720px;
}

.blog-content-left {
    width: 100%;
    max-width: 1138px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-content-right {
    width: 100%;
    max-width: 487px;
    display: flex;
}

/* ========================================
   BLOG CARD COMPONENT
   ======================================== */

.blog-card {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 337px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.blog-card__image {
    flex: 0 0 40%;
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.blog-card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.blog-card__meta {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.blog-card__date,
.blog-card__category {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(208px);
    color: #FFF;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
    padding: 8px 16px;
}

.blog-card__date::before {
    content: url("../../assets/icons/blog-card-calendar.svg");
}

.blog-card__content {
    flex: 1;
    background: var(--Primary, #46A351);
    color: white;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.blog-card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.blog-card__text {
    color: #FFF;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
}

.blog-card__description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.blog-card__hint {
    font-style: italic;
    font-weight: 300;
    opacity: 0.85;
    white-space: nowrap;
}

.blog-card__link {
    color: #FFF;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: 25%;
    text-underline-position: from-font;
}

.blog-card__link:hover::after {
    transform: translateX(5px);
}

/* ========================================
   NEWS SIDEBAR COMPONENT
   ======================================== */

.news-sidebar {
    width: 487px;
    padding: 32px;
    position: relative;
    min-height: 518px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 294px 82px 0 rgba(0, 0, 0, 0.00), 0 188px 75px 0 rgba(0, 0, 0, 0.01), 0 106px 63px 0 rgba(0, 0, 0, 0.05), 0 47px 47px 0 rgba(0, 0, 0, 0.09), 0 12px 26px 0 rgba(0, 0, 0, 0.10);
}

.news-sidebar__title {
    color: var(--Primary, #46A351);
    text-align: center;
    font-family: Helvetica;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.news-item {
    padding: 20px 0;
    border-bottom: 2px solid #505050;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item__date {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--Primary, #46A351);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    gap: 8px;
}

.news-item__date::before {
    content: url("../../assets/icons/calendar-logo.svg");
}

.news-item__title {
    color: var(--666666, #666);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* ========================================
   BLOG POST PAGE
   ======================================== */

.blog-post-content {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    width: 100%;
    max-width: 1720px;
}

.blog-post-content-left {
    width: 100%;
    max-width: 706px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-post-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-post-content-right {
    width: 100%;
    max-width: 950px;
    max-height: 548px;
    display: flex;
    flex-shrink: 1;
}

.blog-post-card__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-post-card__title {
    color: #2A2F2C;
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: 125%;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.blog-post-card__date,
.blog-post-card__category {
    color: var(--Primary, #46A351);
    font-family: Helvetica;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid #46A351;
    padding: 8px 16px;
}

.blog-post-card__date {
    gap: 4px;
}

.blog-post-card__description-1 {
    color: #2A2F2C;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
}

.blog-post-card__meta {
    display: flex;
    gap: 12px;
}

.blog-post-content-right-image {
    border-radius: 16px;
    max-width: 950px;
    max-height: 548px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   PAGINATION COMPONENT
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination__prev,
.pagination__next {
    color: var(--Primary, #46A351);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #46A351;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination__prev:hover,
.pagination__next:hover {
    background-color: #46A351;
    color: white;
    transform: translateY(-2px);
}

.pagination__current {
    color: #2A2F2C;
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   SWIPER COMPONENT
   ======================================== */

.swiper {
    max-width: 950px;
    max-height: 548px;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.blogSwiper {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
    color: var(--color-primary);
}

.swiper-pagination {
    left: 50% !important;
    width: fit-content !important;
    padding: 10px;
    transform: translateX(-50%) !important;
    background-color: white !important;
    display: flex;
    border-radius: 16px;
}

.swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--color-primary) !important;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

/* Desktop Large - 1752px */
@media (max-width: 1752px) {
    .blog-content,
    .blog-post-content {
        width: 100%;
        max-width: unset;
        padding: 0 15px;
    }

    .blog-post-content {
        gap: 40px;
        align-items: flex-start;
    }

    .blog-post-content-left {
        flex: 1 1 auto;
        min-width: 0;
        /* max-width: none; */
    }

    .blog-post-content-right {
        flex: 0 1 auto;
        max-width: 50%;
        max-height: none;
        width: auto;
    }

    .swiper,
    .blog-post-content-right-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }



    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
        margin-top: -18px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
}

/* Desktop Medium - 1420px */
@media (max-width: 1420px) {
    .blog-card {
        flex-direction: column;
    }
}

/* Tablet - 1200px */
@media (max-width: 1100px) {
    .blog-content {
        flex-direction: column-reverse;
    }

    .blog-content-left {
        flex-wrap: wrap;
    }

    .news-sidebar {
        min-height: unset;
        width: 100%;
    }

    .blog-post-content {
        flex-direction: column-reverse;
        gap: 32px;
    }

    .blog-post-content-left,
    .blog-post-content-right {
        max-width: 100%;
        max-height: unset;
        width: 100%;
    }

    .swiper,
    .blog-post-content-right-image {
        max-width: 100%;
        max-height: unset;
    }

    .blog-post-card__title {
        /* font-size: 24px; */
    }
}

/* Tablet Medium - 900px */
@media (max-width: 900px) {
    .blog-post-content {
        gap: 24px;
    }

    .blog-post-content-left {
        gap: 24px;
    }

    .blog-post-card__title {
        /* font-size: 22px; */
    }
}

/* Tablet Range - 769px to 1200px */
@media (min-width: 769px) and (max-width: 1100px) {
    .blog-content-left {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }
    
    .blog-card {
        width: calc(50% - 12px);
        flex-direction: column;
    }

    .blog-card__text {
        font-size: 15px;
    }

    .blog-card__description {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .blog-card__title {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .blog-content {
        flex-wrap: wrap-reverse;
    }

    .blog-content-right {
        max-width: 100%;
        height: fit-content;
    }

    /* News Sidebar */
    .news-sidebar {
        width: 100%;
        height: fit-content;
        min-height: unset;
    }

    .news-sidebar__title {
        font-size: 24px;
    }

    .news-item__date {
        font-size: 14px;
        margin-bottom: 9px;
    }

    .news-item__title {
        font-size: 13px;
    }

    /* Blog Cards */
    .blog-card {
        min-height: unset;
    }

    .blog-card__meta {
        flex-wrap: wrap-reverse;
    }

    .blog-card__date,
    .blog-card__category {
        font-size: 13px;
    }

    .blog-card__title {
        font-size: 18px;
    }

    .blog-card__text {
        font-size: 13px;
    }

    .blog-card__description {
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }

    .blog-card__link {
        display: none;
    }

    /* Blog Post */
    .blog-post-content {
        gap: 24px;
    }

    .blog-post-content-left,
    .blog-post-content-right {
        width: 100%;
        max-width: 100%;
    }

    .blog-post-content-left {
        gap: 20px;
    }

    .blog-post-card__title {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .blog-post-card__description-1 {
        font-size: 24px;
    }

    .blog-post-card__meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-post-content-right-image {
        width: 100%;
        height: auto;
        margin: auto;
        object-fit: contain;
    }

    /* Swiper */
    .swiper {
        border-radius: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
        margin-top: -16px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 12px !important;
    }

    .swiper-pagination {
        padding: 6px 8px;
        border-radius: 12px;
    }

    /* Pagination */
    .pagination {
        flex-direction: column;
        gap: 12px;
    }

    .pagination__prev,
    .pagination__next {
        font-size: 14px;
        padding: 8px 16px;
    }

    .pagination__current {
        font-size: 14px;
    }

    /* Breadcrumbs */
    .breadcrumbs-current {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        text-align: left;
    }
}

/* Fluid typography 768px -> 480px */
@media (min-width: 481px) and (max-width: 768px) {
    .blog-post-card__title {
        font-size: calc(24px + 12 * ((100vw - 480px) / 288)) !important;
    }
    .blog-post-card__description-1 {
        font-size: calc(18px + 6 * ((100vw - 480px) / 288)) !important;
    }
}

/* Mobile Small - 480px */
@media (max-width: 480px) {
    .blog-post-card__title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .blog-post-card__description-1 {
        font-size: 18px;
        line-height: 125%;
    }

    .blog-post-card__date,
    .blog-post-card__category {
        font-size: 11px;
        padding: 6px 12px;
    }

    .blog-post-content {
        gap: 20px;
    }

    .blog-post-content-left {
        gap: 16px;
    }

    .swiper {
        border-radius: 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 28px !important;
        height: 28px !important;
        margin-top: -14px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 10px !important;
    }
}