/* ========================================
   BLOG LISTING + BLOG POST PAGES
======================================== */

.blog-page {
    width: 100%;
    padding: 200px 70px 90px 70px;
    background: #fff8f4;
    overflow: hidden;
    box-sizing: border-box;
    color: #1c1c1c;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after {
    box-sizing: border-box;
}

/* ========================================
   HEADING
======================================== */

.blog-heading {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto 50px;
}

.blog-heading h1,
.blog-post-header h1 {
    margin: 0;
    padding: 0;
    font-family: "Oxanium", sans-serif;
    font-weight: 700;
    line-height: 1.1;

    background: linear-gradient(
        180deg,
        #c0004d 10%,
        #a00079 70%,
        #5422c5 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.blog-heading h1 {
    font-size: 65px;
}

/* ========================================
   META (author / date / category)
======================================== */

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
}

.blog-meta li + li::before {
    content: "/";
    margin: 0 9px;
    opacity: 0.6;
}

.blog-meta a {
    color: #a00079;
    text-decoration: none;
}

.blog-meta a:hover {
    text-decoration: underline;
}

/* ========================================
   LISTING GRID
======================================== */

.blog-grid {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 18px -6px rgba(34, 56, 101, 0.04);
    border: 1px solid #f0e4dc;
}

.blog-card-category {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a00079;
}

.blog-card-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.blog-card-title a {
    color: #1c1c1c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #a00079;
}

/* Boundless image, 4:3 like the live site */
.blog-card-image {
    display: block;
    margin: 0 -30px 20px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f1ee;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card-image:hover img {
    transform: scale(1.04);
}

.blog-card-excerpt {
    flex: 1;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: #3d3d3d;
}

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

.blog-post {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-header h1 {
    margin-bottom: 18px;
    font-size: 42px;
}

.blog-post-content {
    font-size: 16px;
    line-height: 1.75;
    color: #1c1c1c;
}

.blog-post-content p {
    margin: 0 0 1.2em;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    margin: 1.6em 0 0.6em;
    line-height: 1.35;
    color: #1c1c1c;
}

.blog-post-content h2 { font-size: 28px; }
.blog-post-content h3 { font-size: 24px; }
.blog-post-content h4 { font-size: 21px; }
.blog-post-content h5 { font-size: 19px; }
.blog-post-content h6 { font-size: 17px; }

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.blog-post-content li {
    margin-bottom: 0.4em;
}

.blog-post-content a {
    color: #a00079;
}

.blog-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
}

.blog-post-content table {
    width: 100%;
    margin: 0 0 1.5em;
    border-collapse: collapse;
    font-size: 15px;
}

.blog-post-content th,
.blog-post-content td {
    padding: 10px 12px;
    border: 1px solid #e5d8cf;
    text-align: left;
    vertical-align: top;
}

.blog-post-content th {
    background: #f7ece6;
}

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

@media (max-width: 1000px) {
    .blog-heading h1 {
        font-size: 42px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-post-header h1 {
        font-size: 34px;
    }
}

@media (max-width: 700px) {
    .blog-page {
        padding: 150px 16px 60px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card {
        padding: 22px;
    }

    .blog-card-image {
        margin: 0 -22px 18px;
    }

    .blog-post-header h1 {
        font-size: 28px;
    }

    .blog-post-content {
        font-size: 15px;
    }

    /* Wide tables scroll inside the post instead of the page */
    .blog-post-content table {
        display: block;
        overflow-x: auto;
    }
}
