/* ==========================================================
   INDEX.CSS — Blog Listing Page
   xPal Blog v3
   ========================================================== */

/* ----------------------------------------------------------
   Page layout
   ---------------------------------------------------------- */

.blog-listing-section {
    padding: 0 0 60px;
}

/* ----------------------------------------------------------
   Hero card — most recent / featured post
   ---------------------------------------------------------- */

.hero-card {
    margin-top: 30px;
    margin-bottom: 36px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: block;
}

.hero-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
}

.hero-card .hero-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.hero-card .hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-card:hover .hero-img-wrap img {
    transform: scale(1.04);
}

.hero-card .hero-body {
    padding: 20px 24px 24px;
    background: #fff;
}

.hero-card .hero-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #289dcc;
    margin-bottom: 8px;
}

.hero-card .hero-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-card .hero-img-wrap {
        aspect-ratio: 16 / 9;
    }

    .hero-card .hero-title {
        font-size: 1.2rem;
    }

    .hero-card .hero-body {
        padding: 14px 16px 18px;
    }
}

/* ----------------------------------------------------------
   Blog grid — 3-column on desktop
   ---------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ----------------------------------------------------------
   Blog card
   ---------------------------------------------------------- */

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.09);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

.blog-card .card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    line-height: 1.45;
    margin: 0;
}

.blog-card:hover .card-title {
    color: #289dcc;
}

/* ----------------------------------------------------------
   Section divider line
   ---------------------------------------------------------- */

.section-divider {
    border: none;
    border-top: 1px solid rgba(203, 203, 203, 0.5);
    margin: 0 0 32px;
}

/* ----------------------------------------------------------
   Padding fix — remove Bootstrap default col padding
   for listing columns at large screens
   ---------------------------------------------------------- */

@media (min-width: 1200px) {
    .col-md-3,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-9 {
        padding-left: 0;
        padding-right: 0;
    }
}
