/*
 * BLOG CONTENT STYLES
 * Styles only the content inside <main>...</main>.
 * Header, footer, navigation, logo, font-family and top-bar styles are excluded.
 */

main {
    --red: #ed1c24;
    --green: #087c3b;
    --dark-green: #04582b;
    --navy: #101d34;
    --text: #556274;
    --light-text: #7d8998;
    --border: #e2e8e5;
    --soft: #f6f9f7;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(16, 29, 52, .08);

    color: var(--navy);
    line-height: 1.7;
}

main img {
    width: 100%;
    display: block;
}

main a {
    color: inherit;
    text-decoration: none;
}


/* Buttons */

main .button {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 12px;
    font-weight: 700;
    transition: .25s ease;
}

main .button:hover {
    transform: translateY(-2px);
}

main .button-primary {
    color: #fff;
    background: var(--red);
    box-shadow: 0 12px 25px rgba(237, 28, 36, .22);
}

main .button-secondary {
    color: var(--green);
    background: #fff;
    border-color: var(--green);
}

main .button-light {
    color: var(--dark-green);
    background: #fff;
}

main .button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

/* Article hero */

.article-hero {
    overflow: hidden;
    padding: 72px 0 86px;
    background:
        radial-gradient(circle at 12% 12%, rgba(8,124,59,.06), transparent 28%),
        #fff;
}

.article-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

.article-label,
.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.article-hero h1 {
    font-size: clamp(45px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.article-hero h1 span {
    display: block;
    color: var(--green);
}

.article-subtitle {
    max-width: 620px;
    margin-top: 24px;
    color: var(--text);
    font-size: 17px;
}

.article-actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-points {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hero-points > div {
    display: flex;
    gap: 13px;
    padding: 0 20px;
    border-right: 1px solid var(--border);
}

.hero-points > div:first-child {
    padding-left: 0;
}

.hero-points > div:last-child {
    border-right: 0;
}

.hero-points i {
    color: var(--green);
    font-size: 25px;
}

.hero-points span {
    display: block;
    color: var(--light-text);
    font-size: 11px;
}

.hero-points strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
}

.article-hero-media {
    position: relative;
    isolation: isolate;
}

.article-hero-media::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 112%;
    height: 112%;
    left: -6%;
    top: -6%;
    border-radius: 50% 0 0 50%;
    background: var(--green);
    transform: rotate(4deg);
}

.article-hero-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -12px 10px 10px -12px;
    border: 3px solid var(--red);
    border-right: 0;
    border-radius: 50% 0 0 50%;
}

.article-hero-media > img {
    min-height: 520px;
    height: 520px;
    object-fit: cover;
    border-radius: 260px 22px 22px 260px;
    box-shadow: 0 24px 55px rgba(16,29,52,.19);
}

.hero-media-badge {
    position: absolute;
    left: 12%;
    bottom: -26px;
    width: min(390px, 80%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.hero-media-badge i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
}

.hero-media-badge span {
    color: var(--light-text);
    font-size: 11px;
}

.hero-media-badge strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
}

/* Generic sections */

.article-section {
    padding: 95px 0;
}

.soft-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(8,124,59,.04), transparent 27%),
        var(--soft);
}

.section-intro {
    max-width: 580px;
}

.section-intro.compact {
    margin-bottom: 28px;
}

.section-intro h2,
.center-heading h2 {
    font-size: clamp(31px, 3.5vw, 48px);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.section-intro p,
.center-heading p {
    margin-top: 18px;
    color: var(--text);
}

.red-rule {
    width: 48px;
    height: 3px;
    margin-top: 17px;
    background: var(--red);
}

.center-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.center-heading .red-rule {
    margin-inline: auto;
}

.tick-list {
    margin-top: 28px;
    display: grid;
    gap: 13px;
    list-style: none;
    color: #344256;
    font-size: 14px;
    font-weight: 600;
}

.tick-list i {
    margin-right: 9px;
    color: var(--green);
}

/* Overview and product cards */

.overview-grid {
    display: grid;
    grid-template-columns: .68fr 1.32fr;
    align-items: center;
    gap: 65px;
}

.product-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-type-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16,29,52,.06);
    transition: .28s ease;
}

.product-type-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.product-type-card > img {
    height: 155px;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-type-card:hover > img {
    transform: scale(1.06);
}

.product-type-content {
    position: relative;
    padding: 25px 17px 21px;
}

.product-type-content > span {
    position: absolute;
    top: 18px;
    right: 16px;
    color: rgba(8,124,59,.23);
    font-size: 24px;
    font-weight: 800;
}

.product-icon {
    width: 48px;
    height: 48px;
    margin-top: -51px;
    margin-bottom: 17px;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 12px;
    color: #fff;
    background: var(--green);
}

.product-type-content h3 {
    font-size: 15px;
}

.product-type-content p {
    margin-top: 8px;
    color: var(--text);
    font-size: 11px;
}

/* Selection steps */

.selection-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.selection-steps article {
    position: relative;
    padding: 30px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(16,29,52,.045);
    transition: .25s ease;
}

.selection-steps article:hover {
    transform: translateY(-6px);
    border-color: rgba(8,124,59,.35);
}

.selection-steps article > span {
    position: absolute;
    right: 18px;
    top: 17px;
    color: rgba(8,124,59,.18);
    font-size: 25px;
    font-weight: 800;
}

.selection-steps article > i {
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: #eef8f2;
    font-size: 24px;
}

.selection-steps h3 {
    font-size: 15px;
}

.selection-steps p {
    margin-top: 9px;
    color: var(--text);
    font-size: 12px;
}

/* Advice */

.advice-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: stretch;
    gap: 45px;
}

.mistake-list {
    display: grid;
    gap: 14px;
}

.mistake-list article {
    padding: 20px;
    display: flex;
    gap: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(16,29,52,.04);
}

.mistake-list article > i {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--red);
    background: rgba(237,28,36,.08);
}

.mistake-list h3 {
    font-size: 14px;
}

.mistake-list p {
    margin-top: 5px;
    color: var(--text);
    font-size: 12px;
}

.expert-panel {
    overflow: hidden;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    color: #fff;
    background: linear-gradient(140deg, var(--dark-green), var(--green));
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.expert-panel-image img {
    height: 100%;
    object-fit: cover;
}

.expert-panel-content {
    padding: 40px 33px;
}

.section-eyebrow.light {
    color: #b4e5c8;
}

.expert-panel-content h2 {
    font-size: 29px;
    line-height: 1.2;
}

.expert-panel-content p {
    margin-top: 15px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

.expert-panel-content ul {
    margin: 22px 0 28px;
    display: grid;
    gap: 10px;
    list-style: none;
    font-size: 13px;
}

.expert-panel-content li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expert-panel-content li i {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--dark-green);
    background: #fff;
    font-size: 10px;
}

/* FAQ */

.faq-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    align-items: start;
    gap: 65px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 9px 25px rgba(16,29,52,.045);
}

.faq-list summary {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary i {
    color: var(--red);
    transition: .25s ease;
}

.faq-list details[open] summary i {
    transform: rotate(180deg);
}

.faq-list details p {
    padding: 0 22px 22px;
    color: var(--text);
    font-size: 13px;
}

/* CTA */

.article-cta-section {
    padding: 0 0 90px;
}

.article-cta {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr .95fr;
    color: #fff;
    background: linear-gradient(135deg, var(--dark-green), var(--green));
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.article-cta-copy {
    padding: 52px;
}

.article-cta-copy > span {
    color: #b4e5c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.article-cta h2 {
    max-width: 620px;
    margin-top: 12px;
    font-size: clamp(31px, 4vw, 49px);
    line-height: 1.13;
}

.article-cta p {
    max-width: 580px;
    margin-top: 18px;
    color: rgba(255,255,255,.8);
}

.article-cta > img {
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}


/* Main-content responsive styling only */

@media (max-width: 1180px) {
    main .article-hero-grid {
        gap: 40px;
    }

    main .hero-points {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    main .hero-points > div {
        padding: 0;
        border-right: 0;
    }

    main .product-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    main .article-hero-grid,
    main .overview-grid,
    main .advice-grid,
    main .faq-grid {
        grid-template-columns: 1fr;
    }

    main .article-hero-media {
        order: -1;
    }

    main .article-hero-media > img {
        height: 420px;
        min-height: 420px;
        border-radius: 22px;
    }

    main .article-hero-media::before,
    main .article-hero-media::after {
        display: none;
    }

    main .selection-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    main .expert-panel {
        grid-template-columns: 1fr;
    }

    main .expert-panel-image {
        height: 340px;
    }

    main .article-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    main .article-hero {
        padding-top: 45px;
    }

    main .article-hero h1 {
        font-size: 42px;
    }

    main .article-actions {
        flex-direction: column;
    }

    main .button {
        width: 100%;
    }

    main .hero-media-badge {
        left: 5%;
        width: 90%;
    }

    main .article-section {
        padding: 70px 0;
    }

    main .product-type-grid,
    main .selection-steps {
        grid-template-columns: 1fr;
    }

    main .product-type-card > img {
        height: 225px;
    }

    main .article-cta-copy,
    main .expert-panel-content {
        padding: 34px 24px;
    }
}
