/* Blog-only additions on top of one2.0 styles.min.css */

.post-hero-banner {
    position: relative;
    height: 100vh;
    margin-bottom: 0;
    overflow: hidden;
}

.post-hero-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.post-hero-banner__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.post-hero-banner--fallback {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem 2rem;
}

.post-hero-banner--fallback .post-hero-banner__caption {
    position: static;
    background: none;
    padding: 0;
    width: 100%;
}

h1.hero-title,
h2.hero-title,
h3.hero-title,
.post-hero-banner .hero-title {
    width: auto;
    margin: 0;
}

.post-hero-banner .hero-title {
    color: #fff;
    text-shadow: 1px 1px 5px #000;
    text-align: left;
}

.blog-content a {
    color: #153D34;
}

.blog-content a:hover {
    color: #153D34;
}

.blog-content img {
    max-width: 100%;
    height: auto;
}

.bg-primary,
.btn.btn-primary.btn-op,
.btn.btn-primary.btn-optimise {
    border-color: #494c6b !important;
}

/* Archive post cards */
.blog-post-card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-post-card__thumbnail {
    position: relative;
    overflow: hidden;
}

.blog-post-card__thumbnail a {
    display: block;
}

.blog-post-card__thumbnail img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.blog-post-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #494C6B;
    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 12px;
    text-decoration: none;
    top:5%;
    right:5%;
    border-radius: 5%;
}

.blog-post-card__badge:hover {
    color: #fff;
    text-decoration: none;
}

.blog-post-card__body {
    padding: 20px 20px 16px;
    flex-grow: 1;
}

.blog-post-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
}

.blog-post-card__title a {
    color: #444444;
    text-decoration: none;
}

.blog-post-card__title a:hover {
    color: #153D34;
    text-decoration: none;
}

.blog-post-card__excerpt {
    font-size: 14px;
    line-height: 1.5em;
    color: #858585;
    font-weight: 400;
    margin: 0 0 16px;
}

.blog-post-card__read-more {
    display: inline-block;
    color: #153D34;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.blog-post-card__read-more:hover {
    color: #153D34;
    text-decoration: underline;
}

.blog-post-card__meta {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
    color: #C3B889;
    font-size: 12px;
    font-weight: 400;
    padding: 12px 20px;
    margin-top: auto;
}

.blog-post-card__meta-sep {
    margin: 0 6px;
}

/* List / category page header */
.blog-archive-hero {
    background-color: #494C6B;
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.blog-archive-hero__title {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    margin: 0;
}

.blog-archive-content {
    background-color: #fff;
}

.blog-archive-layout {
    padding-top: 40px;
    padding-bottom: 40px;
}

.blog-archive-layout__row {
    align-items: flex-start;
}

.blog-archive-layout__sidebar {
    padding-left: 40px;
}

@media (max-width: 991px) {
    .blog-archive-layout__sidebar {
        padding-left: 15px;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .blog-archive-hero__title {
        font-size: 28px;
    }

    .blog-archive-hero {
        padding: 30px 0;
    }

    .blog-archive-layout {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .blog-archive-layout__sidebar {
        padding-left: 15px;
    }
}

/* List / category page sidebar */
.blog-archive-sidebar {
    background-color: #F3F2DC;
    padding: 30px;
}

.blog-archive-sidebar__share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-archive-sidebar__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

.blog-archive-sidebar__share-btn:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.blog-archive-sidebar__share-btn--linkedin {
    background-color: #0A66C2;
}

.blog-archive-sidebar__share-btn--email {
    background-color: #EA4335;
}

.blog-archive-sidebar__share-btn--whatsapp {
    background-color: #25D366;
}

.blog-archive-sidebar__heading {
    color: #000000;
    font-size: calc((22 / 16) * 1rem);
    line-height: 1.4;
    font-weight: 700;
    margin: 60px 0 20px;
}

.blog-archive-sidebar .blog-sidebar-popular__item {
    margin-bottom: 35px;
}

/* Detail page sidebar */
.blog-sidebar {
    padding: 40px 30px;
    border-left: solid 0.5px #eee;
}

.blog-sidebar__heading {
    color: #153D34;
    font-size: calc((22 / 16) * 1rem);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-sidebar-about {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.blog-sidebar-about__logo {
    background: #fff;
    text-align: center;
    padding: 45px 30px;
}

.blog-sidebar-about__logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.blog-sidebar-about__body {
    background-color: #494C6B;
    text-align: center;
    padding: 25px 20px 30px;
}

.blog-sidebar-about__body p {
    color: #F3F2DC;
    font-size: 15px;
    font-weight: 100;
    line-height: 1.5;
    margin: 0 0 20px;
}

.blog-sidebar-about__btn {
    display: inline-block;
    background-color: #fff;
    color: #494C6B;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

.blog-sidebar-about__btn:hover {
    background-color: #fff;
    color: #153D34;
    text-decoration: none;
}

.blog-sidebar-popular__item {
    margin-bottom: 1.75rem;
}

.blog-sidebar-popular__item:last-child {
    margin-bottom: 0;
}

.blog-sidebar-popular__title {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 4px;
}

.blog-sidebar-popular__title a {
    color: #444444;
    text-decoration: none;
}

.blog-sidebar-popular__title a:hover {
    color: #153D34;
    text-decoration: none;
}

.blog-sidebar-popular__link {
    color: #153D34;
    font-size: 14px;
    text-decoration: none;
}

.blog-sidebar-popular__link:hover {
    color: #153D34;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .post-hero-banner__caption {
        padding: 2rem 1rem;
    }

    .post-hero-banner--fallback {
        padding: 2rem 1rem;
    }

    .blog-sidebar {
        border-left: none;
        padding-top: 0;
    }

    .blog-archive-sidebar__heading {
        margin-top: 40px;
    }
}
