/* Dynamic Banner Section */
/* Section height is driven by the banner image so the section always fits the
   banner. The text content sits on top as an absolute overlay. Margins mirror
   .product-suggestion-section so spacing stays consistent even when other
   homepage sections are hidden (disabled sections are simply not rendered). */
.rootslab-dynamic-home-banner {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    width: 1280px;
    max-width: 100%;
    margin: 120px auto 0;
    background: #ffffff;
}

.rootslab-dynamic-home-bg {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.rootslab-dynamic-home-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    gap: 24px;
}

.rootslab-dynamic-home-content h2 {
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: inherit;
    margin: 0;
}

.rootslab-dynamic-home-content p {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    color: inherit;
    margin: 0;
    max-width: 600px;
}

.rootslab-dynamic-home-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 130%;
    color: inherit;
    text-decoration: none;
    border: 1.5px solid currentColor;
    padding: 12px 24px;
    border-radius: 100px;
    transition: opacity 0.2s;
}

.rootslab-dynamic-home-content a:hover {
    opacity: 0.75;
}

/* Responsive: 1200px - 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .rootslab-dynamic-home-banner {
        width: 100%;
        padding: 0 40px;
        margin-top: 120px;
    }

    .rootslab-dynamic-home-content {
        padding: 0 40px;
        gap: 20px;
    }

    .rootslab-dynamic-home-content h2 {
        font-size: 40px;
    }

    .rootslab-dynamic-home-content p {
        font-size: 17px;
    }
}

/* Responsive: 768px - 1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .rootslab-dynamic-home-banner {
        width: 100%;
        padding: 0 24px;
        margin-top: 64px;
    }

    .rootslab-dynamic-home-content {
        padding: 0 24px;
        gap: 20px;
    }

    .rootslab-dynamic-home-content h2 {
        font-size: 32px;
    }

    .rootslab-dynamic-home-content p {
        font-size: 16px;
        max-width: 480px;
    }

    .rootslab-dynamic-home-content a {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Responsive: < 768px */
@media (max-width: 767px) {
    .rootslab-dynamic-home-banner {
        width: 100%;
        margin: 64px auto 0;
    }

    .rootslab-dynamic-home-content {
        padding: 0 16px;
        gap: 16px;
    }

    .rootslab-dynamic-home-content h2 {
        font-size: 24px;
    }

    .rootslab-dynamic-home-content p {
        font-size: 14px;
        max-width: 100%;
    }

    .rootslab-dynamic-home-content a {
        font-size: 14px;
        padding: 10px 20px;
    }
}
