/* _includes/section-list.html 파일 내 h4 제목에 적용 (필요에 따라 더 구체적인 선택자 사용 가능) */

.highlight-black {
    background-color: black;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
  }

.layout-top-middle.details {
    text-align: center;
}

.layout-top-middle.details {
    font-size: 1.2em !important;
}

.container {
    margin-top: 72px;
}

.intro-container {
    margin-top: 56px;
}

.intro-container h3,
.list-container h3,
.text-container h3 {
    position: relative;
    font-size: 2.8rem;
    font-weight: 600;
    color: inherit;
    text-align: left;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.14);
}

.intro-container h3::after,
.list-container h3::after,
.text-container h3::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    position: absolute;
    left: 0;
    bottom: -2px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(1);
    opacity: 1;
}

.intro-container h3.is-underline-animating::after,
.list-container h3.is-underline-animating::after,
.text-container h3.is-underline-animating::after {
    animation: section-underline-on-scroll 2.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

@keyframes section-underline-on-scroll {
    0%,
    12% {
        transform: scaleX(0.08);
        opacity: 0.2;
    }

    48% {
        transform: scaleX(0.9);
        opacity: 0.96;
    }

    78% {
        transform: scaleX(1.05);
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.layout {
    margin-top: 1.75rem;
    align-items: flex-start;
}

.list-container .layout:first-of-type,
.text-container .layout:first-of-type {
    margin-top: 0;
}

.border-weak {
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(34, 34, 34, 0.18);
}

.layout-left .details,
.layout-right .details {
    margin-bottom: 0;
}

.layout .details h4 {
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.28;
    margin-bottom: 0.35rem;
}

.layout .details p,
.layout .content p,
.layout .content ul,
.intro-container p {
    text-align: left;
}

.layout .content ul {
    margin-bottom: 0;
    padding-left: 1.4em;
}

.layout .content li + li {
    margin-top: 0.45rem;
}

.intro-container .hero-kicker {
    margin: 0 0 1rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.intro-container .hero-metrics {
    margin-top: 1.5rem;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

p.quote {
    padding: 0.5rem 0 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
    font-style: normal;
    color: rgba(34, 34, 34, 0.72);
    border-bottom: 1px dashed rgba(34, 34, 34, 0.12);
}

.award-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(191, 141, 0, 0.12);
    border: 1px solid rgba(191, 141, 0, 0.28);
    color: #6b4c00;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
}

.dark .intro-container h3,
.dark .list-container h3,
.dark .text-container h3 {
    border-bottom-color: rgba(230, 230, 230, 0.28);
}

.dark .border-weak {
    border-bottom-color: rgba(230, 230, 230, 0.24);
}

.dark p.quote {
    color: rgba(230, 230, 230, 0.8);
    border-bottom-color: rgba(230, 230, 230, 0.18);
}

.dark .award-badge {
    background: rgba(230, 189, 92, 0.16);
    border-color: rgba(230, 189, 92, 0.34);
    color: rgba(255, 235, 179, 0.95);
}

@media (prefers-reduced-motion: reduce) {
    .intro-container h3.is-underline-animating::after,
    .list-container h3.is-underline-animating::after,
    .text-container h3.is-underline-animating::after {
        animation: none;
    }
}

@media print {
    .intro-container h3.is-underline-animating::after,
    .list-container h3.is-underline-animating::after,
    .text-container h3.is-underline-animating::after {
        animation: none;
    }
}

@media screen and (max-width: 767px) {
    .container {
        margin-top: 56px;
    }

    .intro-container h3,
    .list-container h3,
    .text-container h3 {
        font-size: 2.35rem;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }

    .layout .details h4 {
        font-size: 1.9rem;
    }

    .intro-container .hero-kicker {
        font-size: 1.7rem;
    }

    .intro-container .hero-metrics {
        font-size: 1.5rem;
    }

    .award-badges {
        gap: 0.45rem;
        margin-top: 0.9rem;
    }

    .award-badge {
        font-size: 1.2rem;
    }

    .layout {
        margin-top: 1.5rem;
    }

    .border-weak {
        padding-bottom: 18px;
    }
}
