/* =====================
   blogs.css
   Only new styles for blog pages.
   Reuses site font (Nunito) and Bootstrap.
   ===================== */

* {
    font-family: "Nunito", sans-serif;
}

/* ---- SHARED BANNER ---- */
.blog-banner {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* margin-top: var(--header-height, 70px); */
}

.blog-banner-inner h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Detail banner slightly taller for long titles */
.blog-detail-banner {
    height: auto;
    min-height: 35vh;
    padding: 5vh 10vw;
}

.blog-detail-banner .blog-banner-inner h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.3;
}

/* ---- BLOG CARDS SECTION ---- */
.blog-cards-section {
    padding: clamp(30px, 5vw, 60px) clamp(15px, 3vw, 30px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;          /* makes all cards equal height inside the row */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.blog-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.35;
}

.blog-card-text {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    /* clamp text to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d11a2a;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}


/* ---- BLOG DETAIL SECTION ---- */
.blog-detail-section {
    padding: clamp(30px, 5vw, 60px) clamp(15px, 3vw, 30px);
    /* max-width: 860px; */
}

.blog-main-desc {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: #333;
    line-height: 1.8;
}

.blog-divider {
    border-color: #e0e0e0;
    margin: 32px 0;
}

.blog-sub-section {
    margin-bottom: 36px;
}

.blog-sub-head {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    padding-left: 14px;
    border-left: 4px solid #111;
}

.blog-sub-desc {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #444;
    line-height: 1.8;
    margin: 0;
}

