
/* =========================================================
   SMK MODULARS LLP - BLOG LISTING PAGE
   File: /css/blog-style.css
   Font: Poppins
   Brand Colours:
   Dark Teal: #183d3b
   Teal:      #006766
   Orange:    #f07f00
   Light Green: #eaf2ee
========================================================= */


/* =========================================================
   1. BLOG HERO / BANNER
========================================================= */

.blogs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 75px 0;
    overflow: hidden;

    background-color: #183d3b;
    background-image: url('/images/about-us-banner.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    font-family: var(--font-primary, "Poppins", sans-serif);
}

.blogs-hero *,
.blogs-hero *::before,
.blogs-hero *::after {
    box-sizing: border-box;
}

.blogs-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        90deg,
        rgba(24, 61, 59, 0.96) 0%,
        rgba(24, 61, 59, 0.86) 52%,
        rgba(24, 61, 59, 0.52) 100%
    );
}

.blogs-hero .container {
    position: relative;
    z-index: 1;
}

.blogs-hero-content {
    width: 100%;
    max-width: 800px;
}

.blogs-hero-eyebrow {
    display: inline-block;
    margin: 0 0 16px;

    color: #f07f00;
    font-size: var(--font-small, 12px);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.blogs-hero h1 {
    margin: 0 0 18px;
    padding: 0;

    color: #ffffff;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: var(--font-h1, 44px);
    font-weight: 600;
    line-height: var(--line-heading, 1.25);
    letter-spacing: -0.5px;
}

.blogs-hero p {
    max-width: 720px;
    margin: 0;

    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: var(--font-lead, 16px);
    font-weight: 400;
    line-height: var(--line-body, 1.8);
}


/* =========================================================
   2. BREADCRUMB
========================================================= */

.blogs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.76);
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: var(--font-small, 12px);
    font-weight: 400;
    line-height: 1.6;
}

.blogs-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blogs-breadcrumb a:hover {
    color: #f07f00;
}

.blogs-breadcrumb i {
    color: #f07f00;
    font-size: 13px;
}

.blogs-breadcrumb span {
    color: rgba(255, 255, 255, 0.76);
}


/* =========================================================
   3. BLOG LISTING SECTION
   Existing card design preserved
========================================================= */

.blog-section {
    padding: 80px 0;
    background: #ffffff;
    font-family: var(--font-primary, "Poppins", sans-serif);
}

.blog-section .container {
    width: 100%;
}

.blog-section .row {
    align-items: stretch;
}


/* =========================================================
   4. BLOG CARD
========================================================= */

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e9e6;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(24, 61, 59, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #d3e1da;
    box-shadow: 0 12px 30px rgba(24, 61, 59, 0.12);
}


/* Blog image */

.blog-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eaf2ee;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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


/* Blog content */

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 24px 26px;
}

.blog-card-content h2 {
    margin: 0 0 14px;
    padding: 0;

    color: #183d3b;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.blog-card-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card-content h2 a:hover {
    color: #006766;
}

.blog-card-content p {
    margin: 0 0 18px;

    color: #626d69;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: var(--font-body, 14px);
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   5. BLOG DATE / META
========================================================= */

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: auto;
    margin-bottom: 18px;

    color: #78827e;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: var(--font-small, 12px);
    line-height: 1.6;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-meta i {
    color: #f07f00;
    font-size: 13px;
}


/* =========================================================
   6. READ MORE LINK
========================================================= */

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 0;

    color: #006766;
    font-family: var(--font-primary, "Poppins", sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;

    transition: color 0.25s ease, gap 0.25s ease;
}

.blog-read-more i {
    color: #f07f00;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.blog-read-more:hover {
    gap: 13px;
    color: #183d3b;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}


/* =========================================================
   7. BOOTSTRAP GRID FALLBACK
   Only applies when Bootstrap's grid is unavailable
========================================================= */

.blog-section .row {
    display: flex;
    flex-wrap: wrap;
}

.blog-section .row > [class*="col-"] {
    display: flex;
    margin-bottom: 0;
}

.blog-section .row > [class*="col-"] > .blog-card {
    width: 100%;
}


/* =========================================================
   8. TABLET RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .blogs-hero {
        min-height: 350px;
        padding: 65px 0;
        background-position: center;
    }

    .blogs-hero-content {
        max-width: 700px;
    }

    .blogs-hero h1 {
        font-size: var(--font-h1, 36px);
    }

    .blogs-hero p {
        font-size: var(--font-body, 14px);
    }

    .blog-section {
        padding: 65px 0;
    }

    .blog-card-content {
        padding: 22px 20px 24px;
    }

    .blog-card-content h2 {
        font-size: 19px;
    }
}


/* =========================================================
   9. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .blogs-hero {
        min-height: auto;
        padding: 55px 0;
        background-position: center;
    }

    .blogs-hero-overlay {
        background: rgba(24, 61, 59, 0.88);
    }

    .blogs-hero-eyebrow {
        margin-bottom: 12px;
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .blogs-hero h1 {
        margin-bottom: 14px;
        font-size: var(--font-h1, 28px);
        line-height: 1.3;
        letter-spacing: 0;
    }

    .blogs-hero p {
        font-size: var(--font-body, 13px);
        line-height: 1.8;
    }

    .blogs-breadcrumb {
        gap: 9px;
        margin-top: 20px;
        font-size: 12px;
    }

    .blog-section {
        padding: 45px 0;
    }

    .blog-section .row {
        row-gap: 25px;
    }

    .blog-card-content {
        padding: 21px 19px 23px;
    }

    .blog-card-content h2 {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.5;
    }

    .blog-card-content p {
        margin-bottom: 16px;
        font-size: 13px;
    }
}


/* =========================================================
   10. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .blogs-hero {
        padding: 45px 0;
    }

    .blogs-hero h1 {
        font-size: 27px;
    }

    .blogs-hero p {
        font-size: 13px;
    }

    .blog-section {
        padding: 35px 0;
    }

    .blog-card {
        border-radius: 6px;
    }

    .blog-card-content {
        padding: 19px 17px 21px;
    }

    .blog-card-content h2 {
        font-size: 17px;
    }

    .blog-meta {
        margin-bottom: 15px;
    }
}


/* =========================================================
   11. ACCESSIBILITY
========================================================= */

.blog-card a:focus-visible,
.blogs-breadcrumb a:focus-visible {
    outline: 2px solid #f07f00;
    outline-offset: 4px;
}


/* =========================================================
   12. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-card,
    .blog-card-image img,
    .blog-card-content h2 a,
    .blog-read-more,
    .blog-read-more i,
    .blogs-breadcrumb a {
        transition: none;
    }

    .blog-card:hover {
        transform: none;
    }

    .blog-card:hover .blog-card-image img {
        transform: none;
    }
}
