/* Figma Footer Styles */
.biko-footer {
    background-color: rgba(252, 252, 252, 0.5);
    border-radius: 200px 0px 0px 0px;
    padding: 100px 240px 80px;
    display: flex;
    justify-content: center;
    margin-top: 120px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* 중요: ::before가 ?�져?��?지 ?�게 */
}

/* 배경 ?��?지 + 블러 */
.biko-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/layout/Footer_PC.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px);
    z-index: 0;
}

.biko-footer-inner {
    width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1; /* ?�스?��? 블러??배경 ?�에 ?�도�?*/
}

.biko-footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.biko-footer-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.biko-footer-logo a {
    display: block;
}

.biko-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.biko-footer-links a {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: #222222;
    text-decoration: none;
    font-weight: 500;
}

.biko-footer-links a.bold {
    font-weight: 700;
}

.biko-footer-links .divider {
    width: 1px;
    height: 12px;
    background-color: #D9D9D9;
}

.biko-footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.biko-footer-info-line {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.biko-footer-info-line span {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: #222222;
}

.biko-footer-info-line .label {
    font-weight: 700;
    width: 65px; /* Unified width with mobile for consistency */
    flex-shrink: 0;
}

.biko-footer-info-line .content {
    font-weight: 500;
}

.biko-mail-link {
    font-size: 16px;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.biko-footer-info-group {
    display: flex;
    align-items: flex-start;
}

.biko-footer-info-line .content-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biko-footer-info-group .divider {
    display: block;
    width: 1px;
    height: 12px;
    background-color: #D9D9D9;
    margin: 0 16px;
}

.biko-footer-divider {
    width: 100%;
    height: 1px;
    background-color: #D9D9D9;
}

.biko-footer-copyright {
    width: 100%;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #464C53;
    padding-top: 10px;
}

/* Added for dropdown */
.biko-footer-links .related-sites {
    position: relative;
}

.related-sites-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    background-color: #FCFCFC;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #222222;
}

.related-sites-button img {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.related-sites-button.active img {
    transform: rotate(180deg);
}

.related-sites-panel {
    display: none;
    position: fixed;
    background-color: #fcfcfc;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 4px;
    box-sizing: border-box;
    max-height: 60vh;
    overflow-y: auto;
}

.related-sites-panel a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #222;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    background-color: #fcfcfc;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.related-sites-panel a:hover {
    background-color: #f0f0f0;
}

/* Added for family sites */
.biko-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.biko-family-sites {
    display: flex;
    align-items: center;
    gap: 24px;
}

.biko-family-sites img {
    width: 32px;
}

/* Sub Page Footer Override */
.sub-page .biko-footer {
    background-color: #F8F9FA;
    border-radius: 0;
    margin-top: 60px;
}
.sub-page .biko-footer::before {
    display: none;
}

@media (max-width: 1280px) {
    .biko-footer::before {
        background-image: url('../images/layout/Footer_MO.png');
        filter: none;
    }

    .biko-footer {
        padding: 144px 20px 30px;
        margin-top: 30px;
        border-radius: 40px 0 0 0;
    }

    .sub-page .biko-footer {
        border-radius: 0;
    }

    .biko-footer-inner {
        width: 100%;
        gap: 0;
        position: relative;
    }

    .biko-footer-top, .biko-footer-bottom, .biko-footer-row1 {
        display: contents;
    }

    .biko-footer-logo {
        order: 1;
        margin-bottom: 40px;
    }
    
    .biko-footer-logo img {
        width: 156px; /* Figma: 156px width for mobile logo */
        height: auto;
    }

    .biko-family-sites {
        order: 2;
        position: absolute;
        top: 0;
        right: 0;
        gap: 16px;
    }

    .biko-family-sites img {
        width: 24px;
    }

    .biko-footer-links {
        order: 3;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between; /* Spread links across 100% width */
        gap: 0; /* Gap is handled by space-between */
        margin-bottom: 40px;
        width: 100%;
    }

    .biko-footer-links a {
        font-size: 12px;
        line-height: 20px;
    }

    .related-sites-button {
        padding: 6px 10px;
        font-size: 12px;
		line-height: 20px;
    }
    
    .related-sites-panel a {
	    font-size: 12px;
	    line-height: 20px;
	}

    .biko-footer-info {
        order: 4;
        display: flex;
        flex-direction: column;
        gap: 12px; /* Balanced gap for mobile */
        margin-bottom: 32px;
    }

    .biko-footer-info-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .biko-footer-info-group .divider {
        display: none; /* Hide divider between E-mail and Tel on mobile */
    }

    .biko-footer-info-line {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        line-height: 1.6;
    }

    .biko-footer-info-line .divider {
        display: none;
    }

    .biko-footer-info-line span {
        font-size: 12px;
        line-height: 20px;
        color: #555;
    }

    .biko-footer-info-line .content {
        flex: 1;
        margin-bottom: 0;
        word-break: keep-all;
    }

    .biko-footer-info-line .label {
        flex-shrink: 0;
        width: 65px; /* Aligned width for mobile */
        font-weight: 700;
        font-size: 12px;
        line-height: 20px;
    }
    
    .biko-mail-link {
        font-size: 12px;
        line-height: 20px;
    }

    .biko-footer-divider {
        order: 5;
        margin-bottom: 32px;
    }

    .biko-footer-copyright {
        order: 6;
        padding-top: 0;
        text-align: left;
        font-size: 14px;
    }
}
