/* =======================================================
   BLOG HERO SECTION
========================================================= */

.blog-hero-section {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* =========================================
   OVERLAY
========================================= */

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url('../images/ebony-black-carousel-far.webp') center/cover no-repeat;
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* =========================================
   CONTAINER
========================================= */

.blog-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* =========================================
   CONTENT
========================================= */

.blog-hero-content {
    text-align: center;
    color: #ffffff;
    animation: blogHeroFadeUp 1s ease forwards;
    opacity: 0;
}

/* =========================================
   TITLE
========================================= */

.blog-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 46px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* =========================================
   DIVIDER
========================================= */

.blog-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* =========================================
   LINE
========================================= */

.blog-hero-line {
    width: 160px;
    height: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

.blog-hero-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #CE0F2C;
    animation: blogLineMove 2s linear infinite;
}

/* =========================================
   ICON
========================================= */

.blog-hero-icon {
    width: 18px;
    height: 18px;
    display: flex;
    animation: blogHeroPulse 2s ease infinite;
}

.blog-hero-icon svg {
    fill: #CE0F2C;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(206,15,44,0.5));
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes blogHeroFadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes blogLineMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes blogHeroPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .blog-hero-title {
        font-size: 28px;
    }

    .blog-hero-section {
        padding: 60px 15px;
    }

    .blog-hero-line {
        width: 70px;
    }
}

@media (max-width: 480px) {

    .blog-hero-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .blog-hero-line {
        width: 40px;
    }

    .blog-hero-divider {
        gap: 8px;
    }
}



/* =============================================
   GLOBAL BLOG WRAPPER (WHITE THEME)
============================================= */

.blog-page {
    background: #f6f7fb;
    color: #111;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog__layout {
    display: flex;
    flex-direction: column;
}

.blog__main {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* =============================================
   FEATURED POST (LUXURY WHITE CARD)
============================================= */

/* =============================================
   FEATURED POST SECTION
============================================= */

.blog-featured {
    position: relative;

    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;

    gap: 0;

    background: #ffffff;

    border-radius: 30px;

    overflow: hidden;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.06),
        0 30px 80px rgba(0,0,0,0.08);

    transition: all 0.45s ease;
}

/* Hover */
.blog-featured:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 50px rgba(0,0,0,0.10),
        0 35px 90px rgba(206,15,44,0.12);
}

/* =============================================
   IMAGE
============================================= */

.blog-featured__image {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.blog-featured__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.8s ease;
}

.blog-featured:hover .blog-featured__image img {
    transform: scale(1.08);
}

/* Dark Overlay */
.blog-featured__image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.05)
        );

    pointer-events: none;
}

/* =============================================
   CONTENT
============================================= */

.blog-featured__content {

    padding: 55px 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 18px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 100%
        );
}

/* =============================================
   BADGE
============================================= */

.blog-featured__badge {

    width: fit-content;

    padding: 10px 18px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #CE0F2C 0%,
            #ff3f62 100%
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow:
        0 10px 25px rgba(206,15,44,0.25);
}

/* =============================================
   CATEGORY
============================================= */

.blog-featured__category {

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #CE0F2C;
}

/* =============================================
   TITLE
============================================= */

.blog-featured__title {
    margin: 0;
    line-height: 1.2;
}

.blog-featured__title a {

    color: #111;

    text-decoration: none;

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 900;

    font-family: 'Orbitron', sans-serif;

    transition: 0.3s ease;
}

.blog-featured__title a:hover {
    color: #CE0F2C;
}

/* =============================================
   EXCERPT
============================================= */

.blog-featured__excerpt {

    margin: 0;

    font-size: 16px;

    line-height: 1.9;

    color: #555;
}

/* =============================================
   META
============================================= */

.blog-featured__meta {

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 5px;

    font-size: 13px;

    color: #777;
}

.blog-featured__dot {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #CE0F2C;
}

/* =============================================
   BUTTON
============================================= */

.blog-featured__link {

    margin-top: 12px;

    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 24px;

    border-radius: 50px;

    background: #111;

    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    transition: all 0.35s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15);
}

.blog-featured__link:hover {

    background: #CE0F2C;

    transform: translateY(-4px);

    box-shadow:
        0 16px 40px rgba(206,15,44,0.30);
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 992px) {

    .blog-featured {

        grid-template-columns: 1fr;
    }

    .blog-featured__image {
        height: 400px;
    }

    .blog-featured__content {

        padding: 40px 30px;
    }
}

@media (max-width: 768px) {

    .blog-featured__image {
        height: 280px;
    }

    .blog-featured__content {

        padding: 30px 22px;
    }

    .blog-featured__title a {

        font-size: 30px;
    }

    .blog-featured__excerpt {

        font-size: 15px;
        line-height: 1.7;
    }

    .blog-featured__link {

        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .blog-featured {

        border-radius: 20px;
    }

    .blog-featured__image {
        height: 230px;
    }

    .blog-featured__title a {

        font-size: 24px;
    }

    .blog-featured__badge {

        font-size: 11px;
        padding: 8px 14px;
    }
}

/* =============================================
   BLOG GRID (CLEAN WHITE GRID)
============================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =============================================
   BLOG CARD (MODERN WHITE CARD)
============================================= */

.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: 0.35s ease;

    display: flex;
    flex-direction: column;

    /* ✅ FIX: equal height cards */
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    border-color: rgba(206,15,44,0.25);
}

.blog-card__image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.08);
}

.blog-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
}

.blog-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    /* ✅ FIX: enables footer push to bottom */
    flex: 1;
}

.blog-card__category {
    font-size: 12px;
    color: #CE0F2C;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.blog-card__title a{
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #111;
    font-size: clamp(1.5rem, 4vw, 1.5rem); 
}

.blog-card__title a:hover{    
    color: #CE0F2C;    
}

.blog-card__excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* =============================================
   FOOTER FIXED ALIGNMENT (IMPORTANT FIX)
============================================= */

.blog-card__footer {
    margin-top: auto; /* ✅ pushes footer to bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card__date {
    font-size: 12px;
    color: #888;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #CE0F2C;
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-card__link:hover {
    transform: translateX(4px);
    opacity: 0.9;
}

/* =============================================
   PAGINATION (CLEAN WHITE STYLE)
============================================= */

.blog-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Default WordPress Pagination Links */
.blog-pagination .page-numbers {
    position: relative;
    min-width: 52px;
    height: 52px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);

    color: #111;
    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: all 0.35s ease;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(0,0,0,0.04);
}

/* Hover Effect */
.blog-pagination .page-numbers:hover {
    transform: translateY(-4px);

    color: #ffffff;

    border-color: #CE0F2C;

    background: linear-gradient(
        135deg,
        #CE0F2C 0%,
        #ff3b5c 100%
    );

    box-shadow:
        0 14px 30px rgba(206,15,44,0.28);
}

/* Active Page */
.blog-pagination .page-numbers.current {
    background: linear-gradient(
        135deg,
        #CE0F2C 0%,
        #ff3b5c 100%
    );

    color: #ffffff;

    border-color: transparent;

    box-shadow:
        0 14px 30px rgba(206,15,44,0.35);

    transform: translateY(-2px);
}

/* Prev + Next */
.blog-pagination .prev,
.blog-pagination .next {
    padding: 0 22px;
    font-size: 18px;
}

/* Dots */
.blog-pagination .dots {
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: auto;
    height: auto;
    padding: 0 4px;
    color: #888;
}

.blog-pagination .dots:hover {
    transform: none;
    background: transparent;
    color: #888;
    box-shadow: none;
}

/* =============================================
   GLASS EFFECT
============================================= */

.blog-pagination .page-numbers::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.4),
            rgba(255,255,255,0)
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}

.blog-pagination .page-numbers:hover::before,
.blog-pagination .page-numbers.current::before {
    opacity: 1;
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 768px) {

    .blog-pagination {
        gap: 8px;
    }

    .blog-pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 14px;
        padding: 0 14px;
    }

    .blog-pagination .prev,
    .blog-pagination .next {
        padding: 0 16px;
    }
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */

@media (max-width: 992px) {

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured__title {
        font-size: 24px;
    }

    .blog__container {
        padding: 50px 15px;
    }
}