@charset 'utf-8';

/************************************* 공통 *************************************/
.section-padding {
    min-height: 85vh;
    display:flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 6rem; 
    text-align: center;
}




/************************************* 섹션별 *************************************/

#home {
    position: relative;
    background: url(https://cdn.myplayer.kr/lawjibsa-mangobanana/testsvr/corp/hero_img_01.jpeg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    
}

/* HOME background slide animation (left -> right) */
@keyframes home-bg-slide {
    from { background-position: left center; }
    to   { background-position: right center; }
}

/* add class to trigger animation; runs once and holds end state briefly
   JS will remove the class after animation ends so it can replay on next scroll */
#home.home-bg-anim {
    animation-name: home-bg-slide;
    /* animation-duration: 60s;  */
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    will-change: background-position;
}
#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
#hero-box {
    position: relative;
    overflow: hidden;
    width: fit-content;
    padding: 2rem;
    /* background-color: #ffffffc7; */
    background-color: transparent;
}

#hero-box > * {
    position: relative;
    z-index: 1;
}

.goldenTime {
    color: #dea31b;
    font-weight: 700;
}

#ecg-svg {
    stroke: #ff0000;
    stroke-width: 3;
    fill: none;
    z-index: 0;
    position: absolute;
}
#home-container {
    position: relative;
    z-index: 1;
}
.section-title{
    color: #222;
    font-size: var(--fz-xxl);
}
.section-eyebrow{
    color: var(--color-primary);
}
/* case-card styles */
.case-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-card .case-card-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.case-card .case-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card .card-body {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.8) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
}
#pills-tabContent {
    display: flex;
    justify-content: center;
}
#pills-faq {
    width: 900px;
}
#consult {
    background: url(https://cdn.myplayer.kr/lawjibsa-mangobanana/testsvr/corp/form_section_bg.jpeg) center center;
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: center;
}
/* HERO ----------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 4.5rem 0;
    overflow: hidden;
    color: #222;
    background-size: cover;
    background-position: center;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    font-size: var(--fz-md);
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.7);
    color: #111;
    border: 1px solid rgba(75, 85, 99, 0.8);
    margin-bottom: 0.9rem;
}

.hero-chip i {
    color: var(--color-primary);
    font-size: var(--fz-md);
}

.hero-title {
    font-size: max(4vw, var(--fz-xxl));
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
}



.hero-sub {
    font-size: var(--fz-lg);
    color: #eaeaea;
    opacity: 0.9;
    margin-top: 6rem;
    text-align: center;;
}

.hero-sub span {
    color: #f14536;
    font-weight: 500;
}

.hero-meta {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
    margin-top: 1rem;
}

.hero-meta i {
    color: var(--color-accent-red);
}

.hero-visual-card {
    border-radius: var(--radius-xl);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .hero-visual-card {
        padding: 1rem;
        margin: 0 -0.5rem;
    }
}

.hero-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-stat {
    padding: 0.65rem 0.8rem;
    border-radius: 0.85rem;
    background-color: #fff;
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.hero-stat-label {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
}

.hero-stat-value {
    font-size: var(--fz-md);
    font-weight: 600;
    margin-top: 0.15rem;
    color: #222;
}

.hero-timeline {
    border-radius: 0.85rem;
    background-color: #fff;
    border: 1px dashed rgba(55, 65, 81, 0.9);
    padding: 0.8rem 0.9rem;
    font-size: var(--fz-md);
    color: var(--color-text-sub);
    margin-top: 1rem;
}

.hero-timeline strong {
    color: var(--color-accent-red);
}

/* FEATURE CARDS ------------------------------------------- */
#why-summary > .container {
    position: relative;
    padding-left: 2rem;
}
/* #why-summary > .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 100%;
    background-color: var(--color-primary);    
} */


.feature-card {
    min-height: 70vh;
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* allow decorative SVG to overflow and position behind content */
    position: relative;
    overflow: visible;
}
.feature-card > h3 {
    font-size: var(--fz-xl);
    font-weight: 700;
    color: #222;
    text-align:center;
}

.feature-card .feature-description {
    font-size: var(--fz-md);
    font-weight: 500;
    color: #222;
    text-align: center;
    margin-top: 1.25rem;
    background-color: rgba(255,255,255,0.95);
    padding: 1.6rem 1.8rem;
    border: none;
    border-radius: var(--radius-lg);
    line-height: 1.8;
    max-width: 860px;
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb),0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; 
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* ensure card content sits above decorative SVG */
.feature-card > * {
    position: relative;
    z-index: 2;
}

/* decorative SVG inserted by JS */
/* .feature-card-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.feature-card-svg circle {
    fill: none;
    stroke: #308dffa5;
    stroke-width: 6;
    stroke-linecap: round;
    transform-origin: center center;
    transform: rotate(-90deg);
} */

.feature-card .feature-description h3 {
    margin: 0 0 1rem 0;
    font-size: var(--fz-xl);
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 700;;
}

.feature-card .feature-description p {
    margin: 0;
    color: var(--color-text-sub);
    font-size: var(--fz-md);
    line-height: 1.7;
}

@media (max-width: 768px) {
    #why-summary .section-header {
    
        margin-bottom: 3rem;
    }
    .feature-img-wrap {
        height: 200px !important;
    }
    .feature-card .feature-description {
        padding: 1rem 1rem;
        max-width: 100%;
        text-align: left;
    }
    .feature-card .feature-description h3 {
        font-size: var(--fz-md);
        text-align: left;
    }
}

.feature-card:nth-child(1) img {

}
.feature-img-wrap {
width: 100%;
height: 500px;
overflow: hidden;
}
.feature-img-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.feature-card-bottom {
    padding: 1.2rem 1.3rem 1.4rem;
}
.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: var(--fz-md);
    color: #222;
}

.feature-card p {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
}

/* SERVICES ------------------------------------------------- */
.services-section {
    background-color: #fff;
}

#services-rehab .section-title, #services-bankruptcy .section-title {
    font-size: var(--fz-xl) !important;
}
.service-card {
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.service-badge {
    font-size: var(--fz-md);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    color: var(--color-text-sub);
    margin-bottom: 0.6rem;
    display: inline-block;
    border: 1px solid var(--color-border-subtle);
}

.service-section-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list li {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
}

.service-list i {
    color: var(--color-primary);
}

/* SUCCESS CASES ------------------------------------------- */
.success-section {
    background-color: var(--color-bg);
}

.case-card {
    border-radius: 1.1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    overflow: hidden;
    width:300px;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-soft);
}

.case-card-img-wrap {
    height: 170px;
    overflow: hidden;
}

.case-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card .card-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.case-card .badge {
    font-size: var(--fz-md);
    border-radius: 999px;
}

.case-card .card-title {
    font-size: var(--fz-lg);
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.case-card .card-text {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
    overflow:hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
}

/* COLUMNS & FAQ ------------------------------------------- */
.columns-faq-section {
    background-color: #fff;
}

.pill-nav .nav-link {
    border-radius: 999px;
    color: #111;
    font-size: var(--fz-md);
    border: 1px solid #1f2937;
}

.pill-nav .nav-link.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.column-card {
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    padding: 1.4rem 1.4rem 1.2rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.column-card .badge {
    font-size: var(--fz-md);
    border-radius: 999px;
}

.column-card h5 {
    font-size: var(--fz-md);
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.column-card p {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
    margin-bottom: 0;
}

.accordion-item {
    border-radius: 0.8rem !important;
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    margin-bottom: 0.7rem;
    background-color: transparent;
}

.accordion-button {
    background-color: var(--color-surface);
    color: #222;
    font-size: var(--fz-lg);
    font-weight: 600;
    gap:1rem;
    line-height: 1.5;
}

.accordion-button:not(.collapsed) {
    background-color: #ffffff;
    color: #222;
    box-shadow: none;
}

.accordion-body {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
    background-color: #fff;
}

/* CONSULT CTA --------------------------------------------- */
.consult-section {
    background-color: var(--color-bg);
}

.consult-inner {
    border-radius: var(--radius-xl);
    background-color: rgba(255, 255, 255, 0.75);
    padding: 2.4rem 5.3rem;
    height: 400px;
    display: flex;
    align-items: center;
    backdrop-filter:blur(5px);
}

.consult-inner h2 {
    font-size: var(--fz-xl);
    letter-spacing: -0.04em;
    margin-bottom: 0.7rem;
    color: #222;
}

.consult-inner p {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
}

.consult-form .form-control {
    background-color: #fff;
    border-radius: 999px;
    border: 1px solid #374151;
    color: #222;
}

.consult-form .form-control::placeholder {
    color: #6b7280;
}

.consult-note {
    font-size: var(--fz-md);
    color: var(--color-text-sub);
}


.section-desc {
	color: var(--color-text-sub);
	margin: 0 auto 2rem;
    font-size: var(--fz-md);
}

@media (max-width: 768px) {
    .consult-inner {
        padding: 2rem 1.5rem;
        height: auto;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    #consult-heading {
        font-size: var(--fz-lg);
    }

    .consult-form .form-control {
        font-size: var(--fz-md);
    }
    
#pills-tab {
   flex-wrap:nowrap;
   flex-direction: row;
}
#pills-tab .nav-link {
font-size: var(--fz-sm);
}

}