/* ========================= */
/* CONTAINER */
/* ========================= */

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================= */
/* BLOG PAGE */
/* ========================= */

.blog-page {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at top, #0b0f2a, #050816 60%);
    overflow: hidden;
}

.blog-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.15;
    pointer-events: none;
}

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

.blog-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.blog-header h1 {
    font-size: 52px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
}

.blog-header h1 span {
    background: linear-gradient(90deg, #ffd700, #ffae00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-header p {
    color: #aaa;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
}

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

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;

    position: relative;
    z-index: 2;

    align-items: stretch;
}

/* FORCE ALL ITEMS EQUAL */

.blog-grid > * {
    grid-column: span 1 !important;
    grid-row: span 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* REMOVE FEATURED/FIRST POST EFFECT */

.blog-grid .blog-card:first-child {
    grid-column: span 1 !important;
    width: 100% !important;
}

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

.blog-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    min-width: 0;

    position: relative;
}

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

.blog-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    border-radius: 18px;

    background: #111;
}

.blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

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

/* ========================= */
/* CONTENT */
/* ========================= */

.blog-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding-top: 18px;
}

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

.blog-content h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.4;

    margin-bottom: 14px;

    min-height: 62px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

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

.blog-subtext {
    color: #b8b8b8;
    font-size: 15px;
    line-height: 1.8;

    min-height: 85px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.card-btn {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 11px 20px;

    border-radius: 999px;

    background: linear-gradient(90deg, #ffd700, #ffae00);

    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.3s ease;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
}

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

@media (max-width: 1024px) {

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

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

@media (max-width: 768px) {

    .blog-page {
        padding: 70px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
    }

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

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

    .blog-content h3 {
        font-size: 20px;
        min-height: auto;
    }

    .blog-subtext {
        min-height: auto;
    }
}





/* ===== SINGLE BLOG ONLY ===== */

/* HERO SECTION */
.blog-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

/* Hero Content */
.blog-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.blog-date {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 42px;
    font-weight: 700;
    margin: 10px 0;
}

.blog-subtext {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
}

/* MAIN GRID */
.blog-main {
    padding: 60px 20px;
}

.container {
    max-width: 1500px;
    margin: auto;
    padding: 0 40px;
}

.single-blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* LEFT */
.blog-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* RIGHT (sticky form) */
.blog-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}


/* CONTENT */

.blog-para {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
}

/* Gallery Row */
.blog-gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.blog-gallery-row img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

/* Single Image */
.blog-single-img img {
    width: 100%;
    border-radius: 10px;
}

/* Features */
.feature-title {
    font-size: 22px;
    margin-top: 10px;
}

.blog-features {
    padding-left: 20px;
}

.blog-features li {
    margin-bottom: 8px;
    color: #ddd;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .blog-title {
        font-size: 32px;
    }
}

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

    .blog-right {
        position: static;
    }

    .blog-gallery-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        height: 400px;
    }

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

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