/* =========================================
   BUXNESIA BLOG GLOBAL
========================================= */

.blog-page {
    padding: 90px 20px;
    background: transparent;
}

.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.blog-title {
    margin-bottom: 14px;

    color: #ffffff;
    text-align: center;

    font-size: clamp(32px, 4vw, 52px);
    font-weight: 950;
    letter-spacing: -.05em;
}

.blog-subtitle {
    max-width: 620px;
    margin: 0 auto 42px;

    color: #94a3b8;
    text-align: center;

    font-size: 15px;
    line-height: 1.8;
}

/* =========================================
   SEARCH
========================================= */

.blog-search {
    max-width: 640px;
    margin: 30px auto 52px;
}

.blog-search form {
    display: flex;
    gap: 10px;

    padding: 8px;

    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;

    box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.blog-search input {
    flex: 1;
    height: 48px;

    padding: 0 15px;

    color: #ffffff;
    background: transparent;

    border: none;
    outline: none;

    font-size: 14px;
}

.blog-search input::placeholder {
    color: #64748b;
}

.blog-search button {
    min-width: 110px;
    height: 48px;

    border: none;
    border-radius: 16px;

    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);

    font-weight: 900;
    cursor: pointer;

    transition: .25s ease;
}

.blog-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34,211,238,.18);
}

/* =========================================
   LAYOUT
========================================= */

.blog-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1.15fr);
    gap: 34px;
    align-items: flex-start;
}

.blog-main,
.blog-sidebar {
    width: 100%;
}

.blog-sidebar {
    position: sticky;
    top: 120px;
}

/* =========================================
   BLOG GRID
========================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* =========================================
   BLOG CARD
========================================= */

.blog-card {
    overflow: hidden;

    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;

    box-shadow: 0 20px 55px rgba(0,0,0,.26);

    transition: .28s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34,211,238,.28);
    box-shadow:
        0 28px 70px rgba(0,0,0,.35),
        0 0 28px rgba(34,211,238,.10);
}

.blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.blog-card-content {
    padding: 18px;
}

.blog-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
    line-height: 1.35;
}

.blog-card h3 a {
    color: #ffffff;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #22d3ee;
}

.blog-card p {
    margin-bottom: 13px;

    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.blog-meta {
    color: #64748b;
    font-size: 12px;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar-card {
    margin-bottom: 22px;
    padding: 20px;

    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;

    box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.sidebar-card h3 {
    margin-bottom: 16px;
    padding-bottom: 10px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 900;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.sidebar-post {
    display: flex;
    gap: 12px;

    padding: 10px;

    border-radius: 16px;
    text-decoration: none;

    transition: .25s ease;
}

.sidebar-post:hover {
    background: rgba(34,211,238,.08);
    transform: translateX(3px);
}

.sidebar-post img {
    width: 66px;
    height: 66px;

    border-radius: 16px;
    object-fit: cover;

    border: 1px solid rgba(255,255,255,.08);
}

.sidebar-post-content h4 {
    margin-bottom: 5px;

    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
}

.sidebar-meta {
    margin-bottom: 4px;

    color: #64748b;
    font-size: 11px;
}

.sidebar-post-content p {
    margin: 0;

    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-category-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 12px;

    color: #cbd5e1;
    background: rgba(255,255,255,.045);

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;

    text-decoration: none;
    font-size: 13px;

    transition: .25s ease;
}

.sidebar-category-item:hover {
    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);
    border-color: transparent;
    transform: translateX(3px);
}

.sidebar-category-item span {
    font-size: 11px;
    font-weight: 900;
}

/* =========================================
   PAGINATION
========================================= */

.pagination {
    margin-top: 48px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a {
    min-width: 38px;
    padding: 8px 13px;

    color: #cbd5e1;
    background: rgba(255,255,255,.055);

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;

    transition: .25s ease;
}

.pagination a.active,
.pagination a:hover {
    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);
    border-color: transparent;
}

/* =========================================
   SINGLE POST
========================================= */

.blog-post {
    max-width: 900px;
    margin: 50px auto 90px;
    padding: 0 20px;
}

.blog-post img {
    width: 100%;
    max-height: 430px;

    object-fit: cover;

    margin: 22px 0 32px;

    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.10);

    box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.blog-post h1 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 52px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -.05em;
}

.blog-post-meta {
    margin-bottom: 22px;

    color: #64748b;
    font-size: 13px;
}

.blog-content {
    color: #cbd5e1;

    font-size: 16px;
    line-height: 1.95;
}

.blog-content a {
    color: #22d3ee;
    font-weight: 800;
}

.blog-content p {
    margin-bottom: 18px;
    color: #cbd5e1;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 36px;
    margin-bottom: 13px;

    color: #ffffff;
    font-weight: 950;
    letter-spacing: -.035em;
}

.blog-single-page .blog-wrapper {
    align-items: start;
}

.blog-single-page .blog-sidebar {
    position: sticky;
    top: 120px;
}

.blog-single-page .blog-sidebar .sidebar-card {
    margin-top: 40px;
}

/* =========================================
   BLOG HOME CAROUSEL
========================================= */

.blog-home {
    padding: 90px 20px;
    background: transparent;
}

.blog-home-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    margin-bottom: 30px;
}

.blog-home-header h2 {
    color: #ffffff;

    font-size: clamp(26px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -.045em;
}

.blog-view-all {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 900;
}

.blog-view-all:hover {
    color: #facc15;
}

.blog-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.blog-carousel {
    display: flex;
    gap: 20px;

    width: 100%;
    overflow: visible;

    will-change: transform;
    transform: translateX(0);

    user-select: none;
    cursor: grab;
}

.blog-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);

    overflow: hidden;
    box-sizing: border-box;

    color: inherit;
    text-decoration: none;

    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;

    box-shadow: 0 20px 55px rgba(0,0,0,.24);

    transition: .28s ease;
}

.blog-slide:hover {
    border-color: rgba(34,211,238,.28);
    box-shadow:
        0 28px 70px rgba(0,0,0,.35),
        0 0 28px rgba(34,211,238,.10);
    transform: translateY(-5px);
}

.blog-slide img {
    display: block;

    width: 100%;
    height: 180px;

    object-fit: cover;
}

.blog-slide-content {
    padding: 16px;
}

.blog-slide-content h3 {
    margin-bottom: 9px;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
}

.blog-slide-content p {
    margin: 0;

    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
}

.blog-nav {
    position: absolute;
    top: 42%;
    z-index: 10;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(15,23,42,.88);

    cursor: pointer;
    font-size: 20px;

    box-shadow: 0 16px 36px rgba(0,0,0,.30);

    transition: .25s ease;
}

.blog-nav:hover {
    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #facc15);
    border-color: transparent;
}

.blog-nav.prev {
    left: 10px;
}

.blog-nav.next {
    right: 10px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {
    .blog-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .blog-single-page .blog-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 30px !important;
    }

    .blog-single-page .blog-sidebar .sidebar-card {
        margin-top: 0 !important;
    }

    .blog-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 64px 15px;
    }

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

    .blog-search form {
        flex-direction: column;
        padding: 10px;
    }

    .blog-search button {
        width: 100%;
    }

    .blog-card img {
        height: 170px;
    }

    .blog-home {
        padding: 64px 15px;
    }

    .blog-home-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-slide {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .blog-slide img {
        height: 180px;
    }

    .blog-nav {
        display: none;
    }
}