/* ========================================
   TECHBLOG
======================================== */

.blog-page {
    margin-bottom: 90px;
}


/* ========================================
   HEADER
======================================== */

.blog-header {
    max-width: 820px;
    margin: 20px auto 55px;
    text-align: center;
}

.blog-header h1 {
    margin: 0 0 20px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;

    letter-spacing: -0.035em;
}

.blog-header p {
    max-width: 700px;
    margin: 0 auto;

    color: #627D98;

    font-size: 17px;
    line-height: 1.7;
}


/* ========================================
   BLOG GRID
======================================== */

.blog-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* ========================================
   BLOG CARD
======================================== */

.blog-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid #E6EDF3;
    border-radius: 14px;

    box-shadow:
        0 4px 18px rgba(16, 42, 67, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);

    border-color: #B8DDF5;

    box-shadow:
        0 12px 35px rgba(16, 42, 67, 0.12);
}


/* ========================================
   CARD IMAGE
======================================== */

.blog-card-image {
    display: block;

    height: 220px;

    overflow: hidden;

    background: #F4F8FB;
}

.blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}


.blog-card-image-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #102A43,
            #173F5F
        );

    color: rgba(255, 255, 255, 0.75);

    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* ========================================
   CARD CONTENT
======================================== */

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 27px 26px 28px;
}

.blog-card-meta {
    margin-bottom: 11px;

    color: #3FA9F5;

    font-family: 'Manrope', sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 0 0 13px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 21px;
    line-height: 1.3;

    letter-spacing: -0.015em;
}

.blog-card p {
    margin: 0 0 24px;

    color: #627D98;

    font-size: 14px;
    line-height: 1.7;
}


/* ========================================
   READ MORE
======================================== */

.blog-read-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

.blog-read-more span {
    color: #3FA9F5;

    font-size: 18px;

    transition: transform 0.2s ease;
}

.blog-read-more:hover {
    color: #3FA9F5;
}

.blog-read-more:hover span {
    transform: translateX(4px);
}


/* ========================================
   EMPTY
======================================== */

.blog-empty {
    max-width: 700px;

    margin: 40px auto 80px;

    padding: 70px 30px;

    text-align: center;

    background: #F4F8FB;

    border-radius: 16px;
}

.blog-empty h2 {
    margin: 0 0 14px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 30px;
}

.blog-empty p {
    max-width: 550px;

    margin: 0 auto;

    color: #627D98;

    font-size: 16px;
    line-height: 1.7;
}


/* ========================================
   ARTICLE
======================================== */

.blog-detail {
    margin-bottom: 90px;
}

.blog-detail-header {
    max-width: 900px;

    margin: 25px auto 45px;

    text-align: center;
}

.blog-detail-date {
    margin-bottom: 13px;

    color: #627D98;

    font-size: 13px;
}

.blog-detail-header h1 {
    margin: 0 0 22px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;

    letter-spacing: -0.035em;
}

.blog-detail-excerpt {
    max-width: 750px;

    margin: 0 auto;

    color: #627D98;

    font-size: 18px;
    line-height: 1.7;
}


/* ========================================
   ARTICLE IMAGE
======================================== */

.blog-detail-image {
    width: 100%;

    max-height: 560px;

    margin-bottom: 55px;

    overflow: hidden;

    border-radius: 14px;

    background: #F4F8FB;
}

.blog-detail-image img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 560px;

    object-fit: cover;
}


/* ========================================
   ARTICLE LAYOUT
======================================== */

.blog-detail-layout {
    display: grid;

    grid-template-columns: minmax(0, 760px) 300px;

    justify-content: center;

    gap: 70px;

    align-items: start;
}


/* ========================================
   ARTICLE TEXT
======================================== */

.blog-detail-content {
    color: #334E68;

    font-size: 17px;
    line-height: 1.85;
}

.blog-detail-content p {
    margin: 0 0 24px;
}

.blog-detail-content h2 {
    margin: 45px 0 18px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 29px;
    line-height: 1.3;
}

.blog-detail-content h3 {
    margin: 35px 0 15px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 22px;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 0 0 25px;

    padding-left: 25px;
}

.blog-detail-content li {
    margin-bottom: 9px;
}

.blog-detail-content strong {
    color: #102A43;
}


/* ========================================
   SIDEBAR
======================================== */

.blog-detail-sidebar {
    position: sticky;

    top: 30px;
}

.blog-sidebar-card {
    padding: 27px;

    background: #F4F8FB;

    border: 1px solid #E6EDF3;

    border-radius: 14px;
}

.blog-sidebar-card h3 {
    margin: 0 0 12px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 20px;
    line-height: 1.35;
}

.blog-sidebar-card p {
    margin: 0 0 20px;

    color: #627D98;

    font-size: 14px;
    line-height: 1.65;
}


/* ========================================
   CONTACT BUTTON
======================================== */

.blog-contact-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    padding: 12px 17px;

    background: #102A43;

    border: 1px solid #102A43;
    border-radius: 8px;

    color: #FFFFFF;

    font-family: 'Manrope', sans-serif;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.blog-contact-button span {
    color: #3FA9F5;

    font-size: 17px;
}

.blog-contact-button:hover {
    transform: translateY(-2px);

    background: #173F5F;
}


/* ========================================
   BACK
======================================== */

.blog-detail-back {
    max-width: 830px;

    margin: 55px auto 0;
}

.blog-detail-back a {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #102A43;

    font-family: 'Manrope', sans-serif;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.blog-detail-back a span {
    color: #3FA9F5;

    font-size: 18px;

    transition: transform 0.2s ease;
}

.blog-detail-back a:hover {
    color: #3FA9F5;
}

.blog-detail-back a:hover span {
    transform: translateX(-4px);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .blog-detail-sidebar {
        position: static;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .blog-page {
        margin-bottom: 60px;
    }

    .blog-header {
        margin-bottom: 38px;
    }

    .blog-header h1 {
        font-size: 34px;
    }

    .blog-header p {
        font-size: 15px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-card-image {
        height: 210px;
    }

    .blog-card-content {
        padding: 24px 22px 25px;
    }

    .blog-card h2 {
        font-size: 20px;
    }

    .blog-detail-header {
        margin-bottom: 35px;
    }

    .blog-detail-header h1 {
        font-size: 34px;
    }

    .blog-detail-excerpt {
        font-size: 16px;
    }

    .blog-detail-image {
        margin-bottom: 35px;
        border-radius: 10px;
    }

    .blog-detail-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .blog-detail-content h2 {
        font-size: 25px;
    }

    .blog-detail-content h3 {
        font-size: 20px;
    }

}