main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 0
}

/* Toggle Switch CSS (same as reference) */
.lang-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0;
    z-index: 10;
}

.lang-toggle-switch {
    position: relative;
    width: 106px;
    height: 48px;
    background-color: #00C795;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    /* button element reset (browser default border / font) */
    border: 0;
    margin: 0;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.lang-toggle-switch:focus-visible {
    outline: 2px solid #00754A;
    outline-offset: 2px;
}

.lang-toggle-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Pretendard', 'Ria Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lang-text-en {
    color: #fcfcfc;
    right: 11px;
    opacity: 1;
}

.lang-text-ko {
    color: #fcfcfc;
    left: 16px;
    opacity: 0;
}

.lang-toggle-switch[data-lang="en"] {
    background-color: #00C795;
}

.lang-toggle-switch[data-lang="en"] .lang-text-en {
    opacity: 0;
}

.lang-toggle-switch[data-lang="en"] .lang-text-ko {
    opacity: 1;
}

.lang-toggle-thumb {
    position: absolute;
    top: 6px;
    left: -8px;
    width: 36px;
    height: 36px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lang-toggle-switch[data-lang="en"] .lang-toggle-thumb {
    transform: translateX(72px); /* Adjusted for 106px width: 106-3-3-28 = 72 */
}

.lang-toggle-thumb svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.lang-toggle-switch[data-lang="en"] .lang-toggle-thumb svg {
    transform: rotate(180deg);
}

.lang-toggle-switch[data-lang="ko"] .arrow-path {
    stroke: #27C289;
}

.lang-toggle-switch[data-lang="en"] .arrow-path {
    stroke: #27C289;
}

/* =================================================================== */
/* --- Header Related Organizations (Dynamic) --- */
/* =================================================================== */
.header-related-sites {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.header-portal-link {
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 500;
    color: #00754A;
    text-decoration: none;
    white-space: nowrap;
}

.header-portal-link:nth-child(even) {
    color: #2793C2;
}

.header-portal-link:hover {
    text-decoration: underline;
}

/* Mobile Specific */
@media (max-width: 1280px) {
    .mobile-related-sites {
        display: flex;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .mobile-portal-link {
        font-size: 14px;
        font-weight: 500;
        color: #00754A;
        text-decoration: none;
    }

    .mobile-portal-link:nth-child(even) {
        color: #2793C2;
    }
}
