@import url("../css/2026/default.css");

:root {
    --hero-h: 440px;
    --sub-title-gap: clamp(28px, 3.2vw, 40px);
}

.rf7-heroPoster {
    height: calc(var(--hero-h) + var(--nav-h));
    padding-top: var(--nav-h);
}

@media (min-width: 992px) {
    :root {
        --hero-h: 400px;
    }
}

.rf7-subHeroImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform-origin: center;
    transform: scale(1);
    animation: rf7SubKenBurns 20s ease-in-out infinite alternate both;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes rf7SubKenBurns { from { transform: scale(1);} to { transform: scale(1.6);} }

.rf7-subSection {
    padding: 80px 0;
    background: #ffffff;
    color: rgba(17, 17, 17, 0.92);
}

.rf7-subSectionTitle {
    display: inline-block;
    font-family: "SchoolSafetyWave", Pretendard, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    letter-spacing: -0.04em;
    color: #000000;
    margin: 0;
    margin-bottom: var(--sub-title-gap);
    padding-bottom: 20px;
    position: relative;
}

.rf7-subSectionTitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.86);
}

@media (max-width: 575.98px) {
    :root {
        --hero-h: 340px;
        --sub-title-gap: clamp(16px, 4.5vw, 24px);
    }

    .rf7-subSection {
        padding: 56px 0;
    }

    .rf7-subSectionTitle {
        font-size: clamp(1.5rem, 6.2vw, 2rem);
        padding-bottom: 16px;
    }
}

.rf7-topBtn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(17, 17, 17, 0.58);
    color: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.rf7-topBtn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rf7-topBtn:hover {
    background: rgba(17, 17, 17, 0.72);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.rf7-topBtn:focus-visible {
    outline: 3px solid rgba(254, 166, 64, 0.8);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .rf7-topBtn {
        display: none;
    }
}
