.energy-score-page-container {
    display: flex;
    flex-direction: column;
    gap: 10px;

    hr {
        margin: 0;
    }
}

.energy-score-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #5cb85c;
    border-radius: 10px;
    vertical-align: middle;
}

.energy-score-hero {
    margin: 8px 0 24px;
    background-image: url('/cover_img.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 28px 32px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.energy-score-hero__content {
    background: transparent;
    color: #ffffff;
    border-radius: 18px;
    padding: 0;
    max-width: 700px;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.energy-score-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 30%,
            rgba(128, 128, 128, 0.3) 50%,
            rgba(200, 200, 200, 0.2) 60%,
            rgba(255, 255, 255, 0.6) 70%);
    z-index: 1;
}

.section-title {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

.section-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #3f3f3f;
}

.energy-score-hero__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 700;
}

.energy-score-hero__text {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.energy-score-hero__text:last-child {
    margin-bottom: 0;
}

.energy-score-hero__link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.energy-score-hero__link:hover,
.energy-score-hero__link:focus {
    color: #e7e5ff;
}

.energy-score-divider {
    border: 0;
    height: 2px;
    background: rgba(63, 63, 63, 0.25);
    margin: 16px 0 24px;
}

.energy-score-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.energy-score-section__media {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-score-section__image {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.link-white {
    color: #fff;
    text-decoration: underline;
}

.link-white:hover{
    color: #e7e5ff;
}

.energy-score-resources {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 12px 0 20px;
}

.energy-score-resources__content {
    flex: 1 1 70%;
}

.energy-score-resources__content p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.6;
}

.energy-score-resources__content ul {
    margin: 0;
    padding-left: 20px;
}

.energy-score-resources__media {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-score-resources__image {
    max-width: 350px;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .energy-score-badge {
        margin-left: 6px;
        font-size: 10px;
        padding: 2px 7px;
    }

    .energy-score-hero {
        padding: 20px 22px;
    }

    .energy-score-hero__title {
        font-size: 22px;
    }

    .energy-score-section {
        flex-direction: column-reverse;
        align-items: center;
        text-align: left;
    }

    .energy-score-section__image {
        max-width: 200px;
    }

    .energy-score-resources {
        flex-direction: column;
        align-items: center;
    }

    .energy-score-resources__image {
        max-width: 180px;
    }
}
