/* ======================================================
BLOG HERO
====================================================== */

.blog-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #020617, #0f172a);
    text-align: center;
    color: #ffffff;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.blog-hero p {
    max-width: 720px;
    margin: auto;
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5f5;
}

/* ======================================================
BLOG LIST
====================================================== */

.blog-list {
    padding: 100px 0;
    background: #f8fafc;
}

/* ======================================================
BLOG GRID
====================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* ======================================================
BLOG CARD
====================================================== */

.blog-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
    transition: all .35s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .15);
}

.blog-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ======================================================
IMAGE
====================================================== */

.blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

/* ======================================================
CONTENT
====================================================== */

.blog-content {
    padding: 28px;
}

.blog-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #94a3b8;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #020617;
}

.blog-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

/* READ MORE */

.blog-read {
    font-weight: 600;
    font-size: 14px;
    color: #38bdf8;
}

/* ======================================================
ANIMATION
====================================================== */

.blog-card {
    opacity: 0;
    transform: translateY(40px);
    animation: blogReveal .7s forwards;
}

.blog-card:nth-child(2) {
    animation-delay: .1s
}

.blog-card:nth-child(3) {
    animation-delay: .2s
}

.blog-card:nth-child(4) {
    animation-delay: .3s
}

.blog-card:nth-child(5) {
    animation-delay: .4s
}

.blog-card:nth-child(6) {
    animation-delay: .5s
}

@keyframes blogReveal {

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ======================================================
BLOG POST PAGE
====================================================== */

.blog-post {
    padding: 140px 0;
    background: #ffffff;
}

.blog-post-container {
    max-width: 900px;
    margin: auto;
}

.blog-post-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #020617;
}

.blog-post-image {
    margin-bottom: 50px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}

.blog-post-image img {
    width: 100%;
    display: block;
}

.blog-post-meta {
    margin-bottom: 30px;
    font-size: 14px;
    color: #94a3b8;
}

.blog-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.blog-post-content p {
    margin-bottom: 22px;
}

.blog-post-content h2 {
    font-size: 30px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #020617;
    font-weight: 700;
}

.blog-post-content h3 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 16px;
    color: #020617;
}

.blog-post-content ul {
    padding-left: 22px;
    margin-bottom: 25px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content blockquote {
    border-left: 4px solid #38bdf8;
    padding: 18px 24px;
    background: #f1f5f9;
    border-radius: 10px;
    font-style: italic;
    margin: 30px 0;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 30px 0;
}

.blog-post-content a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

/* ======================================================
RESPONSIVE
====================================================== */

@media (max-width:1200px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width:700px) {

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-content {
        padding: 22px;
    }

    .blog-content h3 {
        font-size: 20px;
    }

    .blog-post {
        padding: 120px 0;
    }

    .blog-post-title {
        font-size: 32px;
    }

    .blog-post-content {
        font-size: 16px;
    }

    .blog-post-content h2 {
        font-size: 24px;
    }

}

/* ======================================================
BLOG POST PAGE
====================================================== */

.blog-post {
    padding: 140px 0;
    background: #ffffff;
}

/* CONTAINER */

.blog-post-container {
    max-width: 900px;
    margin: auto;
}

/* ======================================================
TITLE
====================================================== */

.blog-post-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #020617;
}

/* ======================================================
FEATURED IMAGE
====================================================== */

.blog-post-image {
    margin-bottom: 50px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ======================================================
CONTENT
====================================================== */

.blog-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

/* PARAGRAPH */

.blog-post-content p {
    margin-bottom: 22px;
}

/* HEADINGS */

.blog-post-content h2 {
    font-size: 30px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #020617;
    font-weight: 700;
}

.blog-post-content h3 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 16px;
    color: #020617;
}

/* ======================================================
LISTS
====================================================== */

.blog-post-content ul {
    padding-left: 22px;
    margin-bottom: 25px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

/* ======================================================
BLOCKQUOTE
====================================================== */

.blog-post-content blockquote {
    border-left: 4px solid #38bdf8;
    padding: 18px 24px;
    background: #f1f5f9;
    border-radius: 10px;
    font-style: italic;
    margin: 30px 0;
}

/* ======================================================
LINKS
====================================================== */

.blog-post-content a {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: none;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

/* ======================================================
IMAGES INSIDE CONTENT
====================================================== */

.blog-post-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 30px 0;
}

/* ======================================================
TABLES
====================================================== */

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.blog-post-content th,
.blog-post-content td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.blog-post-content th {
    background: #f8fafc;
}

/* ======================================================
CODE BLOCK
====================================================== */

.blog-post-content pre {
    background: #020617;
    color: #cbd5f5;
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
    margin: 25px 0;
}

/* ======================================================
HOVER EFFECTS
====================================================== */

.blog-post-image img {
    transition: transform .6s ease;
}

.blog-post-image:hover img {
    transform: scale(1.05);
}

/* ======================================================
ANIMATION
====================================================== */

.blog-post-container {
    animation: postFade .7s ease;
}

@keyframes postFade {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ======================================================
RESPONSIVE
====================================================== */

@media (max-width:900px) {

    .blog-post {
        padding: 120px 0;
    }

    .blog-post-title {
        font-size: 32px;
    }

    .blog-post-content {
        font-size: 16px;
    }

    .blog-post-content h2 {
        font-size: 24px;
    }

}

/* ======================================================
READABILITY OPTIMIZATION
====================================================== */

.blog-post-content {
    max-width: 780px;
    margin: auto;
}

/* ======================================================
SPACING IMPROVEMENTS
====================================================== */

.blog-post-content>*:first-child {
    margin-top: 0;
}

.blog-post-content>*:last-child {
    margin-bottom: 0;
}