/* =========================================================
   BiiO ENERGY - BLOGS
   ========================================================= */

.blog-page,
.blog-details-page {
    width: 100%;
    background: #f7faf9;
    color: #073b4c;
}

.blog-container,
.blog-details-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BLOG HERO
   ========================================================= */

.blog-hero {
    position: relative;
    min-height: 480px;
    margin-bottom: 90px;
    padding: 90px 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(
            110deg,
            rgba(5, 47, 61, 0.98),
            rgba(7, 59, 76, 0.90)
        );
}

.blog-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -140px;
    top: -170px;
    border-radius: 50%;
    background: rgba(53, 208, 74, 0.10);
}

.blog-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: 160px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(53, 208, 74, 0.08);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #35d04a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #35d04a;
}

.blog-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -2.5px;
}

.blog-hero h1 span {
    display: block;
    color: #35d04a;
}

.blog-hero p {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    margin-bottom: 35px;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: #35d04a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: #073b4c;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}


/* =========================================================
   FEATURED BLOGS
   ========================================================= */

.featured-blogs {
    margin-bottom: 100px;
}

.featured-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.featured-blog-card {
    overflow: hidden;
    border: 1px solid #e5eceb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(7, 59, 76, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.featured-blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 50px rgba(7, 59, 76, 0.12);
}

.featured-blog-image {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: #e9f0ef;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-blog-card:hover .featured-blog-image img {
    transform: scale(1.05);
}

.featured-blog-content {
    padding: 26px;
}

.blog-category {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 30px;
    background: rgba(53, 208, 74, 0.10);
    color: #168d28;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-blog-content h3 {
    margin: 0 0 13px;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 750;
}

.featured-blog-content h3 a {
    color: #073b4c;
    text-decoration: none;
    transition: color 0.25s ease;
}

.featured-blog-content h3 a:hover {
    color: #35d04a;
}

.featured-blog-content > p {
    margin: 0 0 18px;
    color: #687b80;
    font-size: 14px;
    line-height: 1.7;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #879598;
    font-size: 12px;
    line-height: 1.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #073b4c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.25s ease;
}

.read-more span {
    color: #35d04a;
    font-size: 19px;
    transition: transform 0.25s ease;
}

.read-more:hover {
    color: #35d04a;
}

.read-more:hover span {
    transform: translateX(5px);
}


/* =========================================================
   ALL BLOGS
   ========================================================= */

.all-blogs {
    padding-bottom: 100px;
}

.blog-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.blog-toolbar .section-heading {
    margin-bottom: 0;
}

.blog-search-form {
    width: min(420px, 100%);
}

.blog-search {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 5px 6px 5px 17px;
    border: 1px solid #dfe8e6;
    border-radius: 12px;
    background: #ffffff;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.blog-search:focus-within {
    border-color: #35d04a;
    box-shadow: 0 0 0 4px rgba(53, 208, 74, 0.08);
}

.blog-search i {
    flex-shrink: 0;
    color: #829194;
    font-size: 14px;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #073b4c;
    font-family: inherit;
    font-size: 13px;
}

.blog-search input::placeholder {
    color: #9aa8aa;
}

.blog-search button {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #35d04a;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.blog-search button:hover {
    background: #28b93b;
    transform: translateY(-1px);
}


/* =========================================================
   BLOG CATEGORIES
   ========================================================= */

.blog-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.blog-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid #dfe8e6;
    border-radius: 30px;
    background: #ffffff;
    color: #50656a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.blog-categories a:hover,
.blog-categories a.active {
    border-color: #35d04a;
    background: #35d04a;
    color: #ffffff;
}


/* =========================================================
   BLOG GRID
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid #e3ebe9;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(7, 59, 76, 0.045);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(7, 59, 76, 0.10);
}

.blog-card-image {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: #e9f0ef;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 11px;
    border-radius: 30px;
    background: #35d04a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 750;
}

.blog-card-content h3 a {
    color: #073b4c;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card-content h3 a:hover {
    color: #35d04a;
}

.blog-card-content > p {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: #6d7d80;
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid #edf1f0;
}

.blog-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #073b4c;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.blog-arrow:hover {
    background: #35d04a;
    color: #ffffff;
    transform: translateX(3px);
}


/* =========================================================
   IMAGE PLACEHOLDER
   ========================================================= */

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #073b4c,
            #0b596b
        );
}

.blog-image-placeholder span {
    color: #35d04a;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -2px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.blog-empty {
    padding: 80px 30px;
    border: 1px solid #e3ebe9;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}

.blog-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(53, 208, 74, 0.10);
    color: #35d04a;
    font-size: 22px;
}

.blog-empty h3 {
    margin: 0 0 10px;
    color: #073b4c;
    font-size: 24px;
}

.blog-empty p {
    margin: 0 0 24px;
    color: #7b8a8d;
    font-size: 14px;
}

.blog-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    background: #35d04a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.blog-pagination nav {
    display: flex;
    justify-content: center;
}

.blog-pagination nav > div:first-child {
    display: none;
}

.blog-pagination nav > div:last-child {
    display: flex;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 40px;
    height: 40px;
    margin: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe8e6;
    border-radius: 8px;
    background: #ffffff;
    color: #52676c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.blog-pagination a:hover {
    border-color: #35d04a;
    background: #35d04a;
    color: #ffffff;
}

.blog-pagination span[aria-current="page"] {
    border-color: #35d04a;
    background: #35d04a;
    color: #ffffff;
}


/* =========================================================
   BLOG DETAILS
   ========================================================= */

.blog-details-page {
    padding: 70px 0 100px;
}

.blog-details-container {
    max-width: 1100px;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 35px;
    color: #8b999b;
    font-size: 12px;
}

.blog-breadcrumb a {
    color: #526b70;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #35d04a;
}

.blog-breadcrumb span {
    color: #a4afb1;
}

.blog-article {
    width: 100%;
}

.blog-article-header {
    max-width: 900px;
    margin: 0 auto 45px;
    text-align: center;
}

.blog-article-header .blog-category {
    margin-bottom: 18px;
}

.blog-article-header h1 {
    margin: 0;
    color: #073b4c;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
}

.blog-article-intro {
    max-width: 760px;
    margin: 25px auto 0;
    color: #6b7d80;
    font-size: 17px;
    line-height: 1.8;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    color: #879598;
    font-size: 12px;
}

.blog-article-image {
    width: 100%;
    max-height: 620px;
    overflow: hidden;
    margin-bottom: 55px;
    border-radius: 22px;
    background: #e9f0ef;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    max-height: 620px;
    display: block;
    object-fit: cover;
}

.blog-article-content {
    max-width: 820px;
    margin: 0 auto;
    color: #425b61;
    font-size: 16px;
    line-height: 1.9;
}

.blog-article-content > *:first-child {
    margin-top: 0;
}

.blog-article-content h2 {
    margin: 45px 0 18px;
    color: #073b4c;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.blog-article-content h3 {
    margin: 35px 0 15px;
    color: #073b4c;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 750;
}

.blog-article-content p {
    margin: 0 0 22px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.blog-article-content li {
    margin-bottom: 9px;
}

.blog-article-content a {
    color: #168d28;
    font-weight: 700;
}

.blog-article-content img {
    width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 14px;
}

.blog-article-content blockquote {
    margin: 35px 0;
    padding: 25px 30px;
    border-left: 4px solid #35d04a;
    border-radius: 0 12px 12px 0;
    background: #edf8ef;
    color: #073b4c;
    font-size: 18px;
    font-style: italic;
}

.blog-article-content strong {
    color: #073b4c;
}


/* =========================================================
   RELATED BLOGS
   ========================================================= */

.related-blogs {
    margin-top: 100px;
    padding-top: 75px;
    border-top: 1px solid #dfe8e6;
}

.related-blogs .section-heading {
    text-align: center;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .blog-container,
    .blog-details-container {
        width: min(100% - 32px, 960px);
    }

    .blog-hero {
        min-height: 430px;
        padding: 70px 50px;
    }

    .featured-blog-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-blog-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
        width: 100%;
        justify-self: center;
    }

    .blog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-search-form {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .blog-container,
    .blog-details-container {
        width: calc(100% - 28px);
    }

    .blog-hero {
        min-height: 390px;
        margin-bottom: 65px;
        padding: 55px 25px;
        border-radius: 0 0 20px 20px;
    }

    .blog-hero h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .blog-hero p {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .featured-blogs {
        margin-bottom: 70px;
    }

    .featured-blog-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .featured-blog-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .featured-blog-image {
        height: 220px;
    }

    .featured-blog-content {
        padding: 21px;
    }

    .featured-blog-content h3 {
        font-size: 21px;
    }

    .all-blogs {
        padding-bottom: 70px;
    }

    .blog-toolbar {
        gap: 22px;
        margin-bottom: 25px;
    }

    .blog-search {
        min-height: 48px;
    }

    .blog-search button {
        padding: 0 13px;
    }

    .blog-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 7px;
        margin-bottom: 25px;
        scrollbar-width: none;
    }

    .blog-categories::-webkit-scrollbar {
        display: none;
    }

    .blog-categories a {
        flex-shrink: 0;
        min-height: 37px;
        padding: 0 14px;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-content {
        padding: 21px;
    }

    .blog-card-content h3 {
        font-size: 20px;
    }

    .blog-card-footer {
        padding-top: 15px;
    }

    .blog-empty {
        padding: 60px 20px;
    }


    /* DETAILS */

    .blog-details-page {
        padding: 40px 0 70px;
    }

    .blog-breadcrumb {
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .blog-article-header {
        margin-bottom: 32px;
    }

    .blog-article-header h1 {
        font-size: 35px;
        letter-spacing: -1.2px;
    }

    .blog-article-intro {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-article-meta {
        margin-top: 18px;
    }

    .blog-article-image {
        max-height: 360px;
        margin-bottom: 35px;
        border-radius: 15px;
    }

    .blog-article-image img {
        max-height: 360px;
    }

    .blog-article-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .blog-article-content h2 {
        margin-top: 35px;
        font-size: 26px;
    }

    .blog-article-content h3 {
        margin-top: 28px;
        font-size: 21px;
    }

    .blog-article-content blockquote {
        margin: 25px 0;
        padding: 20px;
        font-size: 16px;
    }

    .related-blogs {
        margin-top: 70px;
        padding-top: 55px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .blog-container,
    .blog-details-container {
        width: calc(100% - 22px);
    }

    .blog-hero {
        min-height: 360px;
        padding: 45px 20px;
    }

    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-hero p {
        font-size: 13px;
    }

    .blog-search {
        padding-left: 12px;
    }

    .blog-search input {
        padding: 0 7px;
        font-size: 12px;
    }

    .blog-search button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    .blog-card-image {
        height: 205px;
    }

    .featured-blog-image {
        height: 205px;
    }

    .blog-card-content,
    .featured-blog-content {
        padding: 18px;
    }

    .blog-card-content h3,
    .featured-blog-content h3 {
        font-size: 19px;
    }

    .blog-article-header h1 {
        font-size: 31px;
    }

    .blog-article-content {
        font-size: 14px;
    }

}