:root {
    --header-height: 92px;
}
.blog-top-back {
    max-width: 1050px;
    margin: 0 auto 15px;
}

.blog-top-back a {
    display: inline-block;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.blog-top-back a:hover {
    color: #f59e0b;
}
/* =========================================
   BLOG PAGE
========================================= */
.blogs-page {
    width: 100%;
    min-height: 100vh;
    padding-top: 92px;
    padding-bottom: 70px;
    overflow-x: hidden;
}
/* =========================================
   BLOG SECTION
========================================= */
.blogs-section {
    width: 100%;
}

/* =========================================
   BLOG HEADER
========================================= */
.blogs-section .about-title-row {
    margin-bottom: 35px !important;
}
/* =========================================
   BLOG GRID
========================================= */
.blogs-section .row {
    align-items: stretch;
}

.blogs-section .blog-column {
    display: flex;
}

/* =========================================
   BLOG CARD
========================================= */
.blog-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffc107;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-7px);
    border-color: #ffc107;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

/* =========================================
   BLOG IMAGE
========================================= */
.blog-image-wrapper {
    width: 100%;
    height: 240px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    border-radius: 14px;
}

.blog-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
    filter: brightness(1.03);
}

/* =========================================
   IMAGE OVERLAY
========================================= */

.blog-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* =========================================
   NO IMAGE
========================================= */
.blog-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f5f5f5;
}

.blog-no-image i {
    font-size: 45px;
}
/* =========================================
   BLOG CONTENT
========================================= */

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* =========================================
   BLOG DATE
========================================= */

.blog-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.blog-date i {
    color: #d99f00;
    font-size: 14px;
}

/* =========================================
   BLOG TITLE
========================================= */

.blog-title {
    margin: 0 0 12px;
    min-height: 59px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   BLOG DESCRIPTION
========================================= */

.blog-description {
    margin: 0;
    min-height: 72px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* =========================================
   CARD FOOTER
========================================= */

.blog-card-footer {
    margin-top: auto;
    padding-top: 24px;
}

/* =========================================
   VIEW MORE BUTTON
========================================= */

.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: #111827;
    background: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover {
    color: #111827;
    background: #ffb300;
    border-color: #ffb300;
    transform: translateY(-2px);
    box-shadow:
        0 6px 15px rgba(255, 193, 7, 0.28);
}

.view-more-btn:hover i {
    transform: translateX(4px);
}
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination button {
    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    color: #111827;
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.blog-pagination button:hover:not(:disabled),
.blog-pagination button.active {
    color: #111827;
    background: #ffc107;
    border-color: #ffc107;
}

.blog-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .blogs-page {
        padding-top: 82px;
        padding-bottom: 60px;
    }

    .blogs-section {
        padding-top: 60px;
    }

    .blog-image-wrapper {
        height: 220px;
    }

    .blog-content {
        padding: 22px;
    }

    .blog-title {
        font-size: 20px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .blogs-page {
        padding-top: 75px;
        padding-bottom: 50px;
    }

    .blogs-section {
        padding-top: 45px;
    }

    .blogs-section .about-title-row {
        margin-bottom: 28px !important;
    }

    .blogs-section .section-title {
        font-size: 36px;
    }

    .blog-image-wrapper {
        height: 220px;
    }

    .blog-content {
        padding: 21px;
    }

    .blog-title {
        font-size: 20px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 575px) {

    .blogs-page {
        padding-top: 70px;
    }

    .blogs-section {
        padding-top: 35px;
    }

    .blogs-section .section-title {
        font-size: 32px;
    }

    .blog-image-wrapper {
        height: 210px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 19px;
        min-height: 53px;
    }

    .blog-description {
        font-size: 14px;
        min-height: 67px;
    }

    .view-more-btn {
        width: 100%;
    }

}

/* =========================================
   VERY SMALL DEVICES
========================================= */

@media (max-width: 375px) {

    .blog-image-wrapper {
        height: 190px;
    }

    .blog-content {
        padding: 18px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-description {
        font-size: 14px;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-card,
    .blog-image,
    .view-more-btn,
    .view-more-btn i {
        transition: none;
    }

}