/**
 * OER Custom Styles
 * 피그마 디자인 기반 스타일
 */

a:hover {
    text-decoration: none !important;
}

/* Color Variables */
:root {
    --oer-primary-blue: #0e336f;
    --oer-dark-blue: #071a3a;
    --oer-footer-bg: #0d1420;
    --oer-light-blue: #3366FF;
    --oer-text-white: #ffffff;
    --oer-text-gray: #9ba2a6;
    --oer-text-dark: #333333;
    --oer-bg-light: #f5f5f5;
    --oer-border-gray: rgba(255, 255, 255, 0.2);
}

/* ============================================
   상단 링크바 (Top Bar)
   ============================================ */
.oer-top-bar {
    background-color: var(--oer-dark-blue);
    width: 100%;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.oer-top-bar-container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 20px;
}

#header.oer .xn-header-member-btn-group:last-child {
    height: unset;
    margin: 0;
    padding: 0;
    border: none;
}

.oer-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
#header.oer .xn-header-member-btn-group{
    gap: 8px;
}

/* ============================================
   헤더 (Header)
   ============================================ */
#header.oer .navbar-static-top .container .xn-main-menu-wrap .desktop .xn-header-menu-wrapper {
    float: unset;
}

#header.oer .navbar-static-top .container .xn-main-menu-wrap .desktop~.pull-right {
    width: unset;
    float: unset;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 88px !important;
    gap: 12px !important;
    /* 버튼 간격 증가 */
}

#header.oer {
    background-color: var(--oer-primary-blue);
    min-height: 88px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    font-family: 'Pretendard', 'S-Core Dream', sans-serif;
    position: relative;
    z-index: 1000;
}

#header.oer .navbar-static-top {
    background-color: var(--oer-primary-blue);
    border: none;
}

#header.oer .navbar-static-top .container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding: 0 20px;
}
@media (max-width: 1024px) {
    #header.oer .navbar-static-top .container .navbar-header{
        background-color: unset;
        border: 0;
    }

    /* 강좌 등록 버튼 텍스트 표시 유지 */
    #header.oer .xn-header-member-btn-group .btn-dropdown-course-menu .xn-common-title {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
/* navbar-header 스타일 - 플랫폼 헤더와 동일 */
#header.oer .navbar-static-top .container .navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PC에서 햄버거 버튼 숨김 - 플랫폼 헤더와 동일 */
#header.oer .navbar-static-top .container .navbar-header > div.float-left:first-of-type,
#header.oer .navbar-static-top .container .navbar-header:after {
    display: none;
}

/* 로고 영역 */
#header.oer .xn-main-catalog-header-logo-wrap,
#header.oer .navbar-static-top .container .xn-main-menu-wrap {
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    bottom: unset;
}

#header.oer .navbar-static-top .container .xn-main-menu-wrap {}

.oer-header-logo-wrap {}

.oer-header-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.oer-header-logo-image {
    height: 40px;
    width: auto;
    max-width: 151px;
    object-fit: contain;
}

.oer-header-subtitle {
    font-family: 'S-Core Dream', sans-serif;
    font-weight: 300;
    font-size: 10px;
    color: #9ac6ff;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* 메뉴 영역 */
.oer-nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* 데스크톱 메뉴 표시 - PC에서 보이게, 모바일에서 숨기기 */
/* PC에서 보이게 (다른 파일의 display: none !important 오버라이드) */
@media (min-width: 769px) {
    #header .navbar-static-top .container .xn-main-menu-wrap .desktop {
        display: block !important;
    }

    #header .navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse {
        display: flex !important;
        justify-content: center;
    }

    #header .navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse.navbar-hidden {
        display: flex !important;
        justify-content: center;
    }
}

/* 모바일에서 숨기기 */
@media (max-width: 768px) {
    #header .navbar-static-top .container .xn-main-menu-wrap .desktop {
        display: none !important;
    }
}

#header.oer.navbar-static-top .container .xn-main-menu-wrap .xn-header-menu-wrapper {
    display: block;
    float: left;
}

#header.oer.navbar-static-top .container .xn-main-menu-wrap .xn-header-menu-wrapper .xn-header-menu {
    display: table;
    height: auto;
    table-layout: fixed;
    width: 100%;
    max-width: 430px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header.oer.navbar-static-top .container .xn-main-menu-wrap .xn-header-menu-wrapper .xn-header-menu li {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    text-align: center;
    float: none;
    width: auto;
}

/* li:before 제거 */
#header.oer .xn-header-menu li:before {
    display: none !important;
}


/* 언어 선택 버튼 - 지구본 아이콘으로 표시 (계정 메뉴와 동일한 스타일) */
/* btn 클래스나 다른 스타일의 border-radius 오버라이드 방지 */
#header.oer .btn.xn-translate_language-select_box.xn-translate_language-wide-screen,
#header.oer .xn-common-white-gray-btn.xn-translate_language-select_box.xn-translate_language-wide-screen,
#header.oer .xn-translate_language-select_box.xn-translate_language-wide-screen {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    /* 계정 메뉴와 동일하게 동그라미 */
    background: transparent !important;
    border: none !important;
    /* 테두리 제거 */
    vertical-align: middle !important;
    margin: 0 !important;
    position: relative !important;
}

#header.oer .xn-translate_language-select_box.xn-translate_language-wide-screen .xn-translate_language-image,
#header.oer .xn-translate_language-select_box.xn-translate_language-wide-screen .xn-translate_language-text {
    display: none !important;
}

#header.oer .xn-translate_language-select_box.xn-translate_language-wide-screen::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 언어 선택 버튼 호버 효과 - 유저 아이콘과 동일 */
#header.oer .dropdown-menu {
    right: 0 !important;
    top: 48px !important;
    transform: unset !important;
    left: unset !important;
}

#header.oer .xn-translate_language-select_box.xn-translate_language-wide-screen:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: background-color 0.2s ease !important;
}

#header.oer .xn-translate_language-select_box.xn-translate_language-wide-screen i {
    display: none !important;
}

/* 호버 시 배경색 변경 방지 */
#header.oer .xn-header-menu li:hover {
    background-color: transparent !important;
}

#header.oer .xn-header-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--oer-text-white);
    text-decoration: none;
    font-family: 'S-Core Dream', sans-serif;
    position: relative;
}

/* 호버 시 하단 흰색 줄 애니메이션 */
#header.oer .xn-header-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

#header.oer .xn-header-menu li:hover a::after {
    width: 100%;
}

#header.oer .xn-header-menu li a:hover {
    color: var(--oer-text-white);
    opacity: 1;
}

/* 서브 메뉴 스타일 - 세련된 디자인 */
#header.oer .xn-header-menu li {
    position: relative;
}

#header.oer .xn-header-menu li .oer-header-submenu {
    display: none;
    position: absolute;
    width: 160px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    padding: 12px 0 !important;
    background: #ffffff !important;
    border-radius: 8px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    top: calc(100% - 2px);
    /* 간격 최소화 - 약간 겹치게 */
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 서브 메뉴와 메인 메뉴 사이 간격 제거를 위한 가상 요소 - hover 유지 */
#header.oer .xn-header-menu li .oer-header-submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -20px;
    right: -20px;
    height: 8px;
    background: transparent;
    pointer-events: auto;
}

/* 서브 메뉴가 비어있으면 숨김 */
#header.oer .xn-header-menu li .oer-header-submenu:empty {
    display: none !important;
}

/* 서브 메뉴가 표시될 때 - 호버 또는 jQuery로 표시된 경우 */
#header.oer .xn-header-menu li:hover .oer-header-submenu:not(:empty),
#header.oer .xn-header-menu li .oer-header-submenu:hover {
    display: block !important;
}

#header.oer .xn-header-menu li .oer-header-submenu>li {
    display: block;
    width: 100%;
    height: auto;
    min-height: 40px;
    line-height: 40px !important;
    font-weight: 400;
    float: inherit;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* 흰색 선 제거 */
#header.oer .xn-header-menu li .oer-header-submenu>li:before,
#header.oer .xn-header-menu li .oer-header-submenu>li:after {
    display: none !important;
}

/* 구분선 - 마지막 항목 제외 */
#header.oer .xn-header-menu li .oer-header-submenu>li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: #f0f0f0;
}

#header.oer .xn-header-menu li .oer-header-submenu>li:first-child {
    margin-top: 0 !important;
}

#header.oer .xn-header-menu li .oer-header-submenu>li:last-child {
    margin-bottom: 0 !important;
}

#header.oer .xn-header-menu li .oer-header-submenu>li>a {
    display: block;
    height: auto;
    min-height: 40px;
    line-height: 40px !important;
    font-size: 15px;
    padding: 0 20px;
    color: #333333 !important;
    letter-spacing: -0.3px;
    text-decoration: none;
    margin: 0;
    background: transparent !important;
    transition: all 0.2s ease;
    position: relative;
}

#header.oer .xn-header-menu li .oer-header-submenu>li:hover {
    background: transparent !important;
}

#header.oer .xn-header-menu li .oer-header-submenu>li>a:hover {
    color: #0e336f !important;
    background: #f8f9ff !important;
    padding-left: 24px;
}

.oer-header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.oer-menu-item {
    position: relative;
}

.oer-menu-item>a {
    font-family: 'S-Core Dream', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--oer-text-white);
    text-decoration: none;
    line-height: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px 0 8px 0;
}

.oer-menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--oer-text-white);
    transition: width 0.3s ease;
}

.oer-menu-item>a:hover {
    opacity: 1;
    color: var(--oer-text-white);
}

.oer-menu-item>a:hover::after {
    width: 100%;
}

.oer-menu-item:hover .oer-sub-menu {
    display: block;
}

.oer-sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background-color: var(--oer-text-white);
    list-style: none;
    margin: 0;
    padding: 12px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    display: none;
    z-index: 1001;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oer-sub-menu-item {
    position: relative;
}

.oer-sub-menu-item a {
    display: block;
    padding: 10px 20px;
    color: var(--oer-text-dark);
    font-size: 14px;
    font-family: 'S-Core Dream', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.oer-sub-menu-item a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--oer-primary-blue);
    transition: width 0.3s ease;
}

.oer-sub-menu-item a:hover {
    background-color: rgba(14, 51, 111, 0.05);
    color: var(--oer-primary-blue);
    padding-left: 24px;
}

.oer-sub-menu-item a:hover::after {
    width: calc(100% - 40px);
}

/* 헤더 버튼 영역 */
.oer-header-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 헤더 버튼 영역 - Bootstrap 기본 스타일 오버라이드 */
#header.oer .oer-btn-login,
#header.oer .oer-btn-join {
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    padding: 8px !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.oer-btn-login {
    background-color: var(--oer-text-white) !important;
    color: var(--oer-primary-blue) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-family: 'S-Core Dream', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
}

.oer-btn-login:hover {
    background-color: #f0f0f0 !important;
    color: var(--oer-primary-blue) !important;
}

.oer-btn-login span {
    color: var(--oer-primary-blue) !important;
    font-family: 'S-Core Dream', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.oer-login-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230e336f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E");
}

.oer-btn-join {
    background-color: transparent !important;
    color: var(--oer-text-white) !important;
    border: 1px solid var(--oer-text-white) !important;
    border-radius: 4px !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-family: 'S-Core Dream', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
    cursor: pointer !important;
}

.oer-btn-join:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--oer-text-white) !important;
    border-color: var(--oer-text-white) !important;
}

.oer-btn-join span {
    color: var(--oer-text-white) !important;
    font-family: 'S-Core Dream', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.oer-join-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E");
}

.oer-btn-user-menu {
    background-color: var(--oer-text-white);
    color: var(--oer-primary-blue);
    border: none;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'S-Core Dream', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.oer-user-name {
    color: var(--oer-primary-blue);
}

/* 기존 custom.css에서 옮겨온 OER 스타일 */
/* 로그인 버튼 - xn-common-navy-btn 클래스 오버라이드 (강좌 등록과 동일한 스타일) */
#header.oer .btn-login.xn-common-navy-btn {
    background-color: #ffffff !important;
    color: #0C2A7F !important;
    border: 1px solid #0C2A7F !important;
    text-decoration: none !important;
}

#header.oer .btn-login.xn-common-navy-btn:hover {
    background-color: #ECF1FF !important;
    color: #0C2A7F !important;
    border-color: #0C2A7F !important;
}

#header.oer .xn-main-catalog-header-logo {
    height: 60px;
}

/* 콘텐츠 등록 및 강좌 등록 버튼 스타일 - 메뉴와 정렬 */
#header.oer .xn-header-member-btn-group .btn-regist-content-menu,
#header.oer .xn-header-member-btn-group .btn-dropdown-course-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* 마지막 버튼은 오른쪽 마진 제거 */
#header.oer .xn-header-member-btn-group .btn-regist-content-menu:last-child,
#header.oer .xn-header-member-btn-group .btn-dropdown-course-menu:last-child {
    margin-right: 0 !important;
}

/* 콘텐츠 등록 버튼 - 밝은 파란색 배경 (헤더 배경과 대비) */
#header.oer .xn-header-member-btn-group .btn-regist-content-menu,
#header.oer .xn-header-member-btn-group a.btn-regist-content-menu {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #4A90E2 !important;
    /* 더 밝은 파란색으로 변경 */
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    /* 그림자 추가로 구분 */
}

#header.oer .xn-header-member-btn-group .btn-regist-content-menu:hover {
    background-color: #357ABD !important;
    /* 호버 시 약간 어두운 파란색 */
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* 강좌 등록 버튼 - 흰색 배경, 파란색 테두리 */
#header.oer .xn-header-member-btn-group .btn-dropdown-course-menu {
    background-color: #ffffff !important;
    color: #0C2A7F !important;
    border: 1px solid #0C2A7F !important;
}

#header.oer .xn-header-member-btn-group .btn-dropdown-course-menu:hover {
    background-color: #ECF1FF !important;
    color: #0C2A7F !important;
    border-color: #0C2A7F !important;
}

/* 버튼 내부 아이콘 및 텍스트 - 수직 정렬 개선 */
#header.oer .xn-header-member-btn-group .btn-regist-content-menu .xn-plus-icon,
#header.oer .xn-header-member-btn-group .btn-dropdown-course-menu .xn-plus-icon {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

#header.oer .xn-header-member-btn-group .btn-regist-content-menu .xn-common-title,
#header.oer .xn-header-member-btn-group .btn-dropdown-course-menu .xn-common-title {
    display: inline !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin: 0 !important;
}

#header.oer .btn-group,
.btn-group-vertical {
    width: auto;
    position: relative;
}

#header.oer .btn-group {
    top: unset;
    transform: translateY(0);
}

/* 로그인 및 회원가입 버튼 정렬 */
/* 로그인 및 회원가입 버튼 스타일 */
#header.oer .btn-login,
#header.oer .btn-join {
    width: fit-content;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 8px 16px !important;
    vertical-align: middle !important;
    margin: 0 8px 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* 회원가입 버튼 - 콘텐츠 등록 버튼과 동일한 스타일 */
#header.oer .btn-join {
    background-color: #4A90E2 !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin-right: 8px !important;
}

#header.oer .btn-join:hover {
    background-color: #357ABD !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* 로그인 버튼 - 강좌 등록 버튼과 동일한 스타일 */
/* position: absolute 충돌 해결 */
#header.oer .btn-login,
#header.oer .btn-login.xn-common-navy-btn {
    background-color: #ffffff !important;
    color: #0C2A7F !important;
    border: 1px solid #0C2A7F !important;
    text-decoration: none !important;
    position: relative !important;
    /* custom.css의 position: absolute 오버라이드 */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: fit-content !important;
}

#header.oer .btn-login:hover,
#header.oer .btn-login.xn-common-navy-btn:hover {
    background-color: #ECF1FF !important;
    color: #0C2A7F !important;
    border-color: #0C2A7F !important;
}

/* 계정 메뉴 버튼 - 유저 아이콘으로 표시 (언어 선택 버튼과 동일한 스타일) */
/* btn 클래스나 다른 스타일의 border-radius 오버라이드 방지 */
#header.oer .btn.btn-dropdown-user-menu,
#header.oer .xn-common-white-gray-btn.btn-dropdown-user-menu,
#header.oer .btn-dropdown-user-menu {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    border-radius: 50% !important;
    /* 언어 선택 버튼과 동일하게 동그라미 */
    background: transparent !important;
    border: none !important;
    position: relative !important;
}

/* 계정 메뉴 버튼 내부 텍스트 및 드롭다운 아이콘 숨김 */
#header.oer .btn-dropdown-user-menu .xn-header-member-btn-text,
#header.oer .btn-dropdown-user-menu span,
#header.oer .btn-dropdown-user-menu>span,
#header.oer .btn-dropdown-user-menu i,
#header.oer .btn-dropdown-user-menu>i {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
}

/* 계정 메뉴 버튼 - 유저 아이콘 추가 (언어 아이콘과 같은 크기) */
#header.oer .btn-dropdown-user-menu::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 계정 메뉴 버튼 호버 효과 - 언어 아이콘과 동일 */
#header.oer .btn-dropdown-user-menu:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: background-color 0.2s ease !important;
}


/* ============================================
   비주얼 섹션
   ============================================ */
#content #visual {
    background: none !important;
    height: 720px !important;
    min-height: 720px !important;
    position: relative !important;
    overflow: hidden !important;
}

#visual.oer-custom {
    width: 100%;
    height: 720px;
    min-height: 720px;
    position: relative;
    overflow: hidden;
}

/* 슬라이더 컨테이너 높이 조정 - 비주얼 섹션의 고정 높이에 맞춤 */
#visual.oer-custom .xn-widget-slider-container {
    height: 720px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
}

#visual.oer-custom .xn-widget-slider-container>div {
    height: 100% !important;
    width: 100% !important;
}

#visual.oer-custom .xn-widget-slider-container .carousel {
    height: 100% !important;
    width: 100% !important;
}

#visual.oer-custom .xn-widget-slider-container .carousel-inner {
    height: 720px !important;
    width: 100% !important;
}

#visual.oer-custom .xn-widget-slider-container .carousel-item {
    height: 720px !important;
    width: 100% !important;
    position: relative !important;
}

#visual.oer-custom .xn-widget-slider-container .xnws-img {
    height: 100% !important;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    object-fit: cover !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* 슬라이더 이미지 태그 직접 스타일 */
#visual.oer-custom .xn-widget-slider-container img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* 배경 이미지가 있는 경우 */
#visual.oer-custom .xn-widget-slider-container .xnws-img[style*="background-image"] {
    height: 100% !important;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

#visual.oer-custom .content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

#visual.oer-custom .content-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

#visual.oer-custom .content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 672px;
}

#visual.oer-custom .subtitle {
    color: #d0d0d0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

#visual.oer-custom .title {
    color: #ffffff;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

#visual.oer-custom .button-wrapper {
    padding-top: 16px;
}

#visual.oer-custom .course-button {
    background-color: #c6d9ff;
    color: #333333;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 1023px) {
    #visual.oer-custom .title {
        font-size: 60px;
    }
}

@media (max-width: 767px) {
    #visual.oer-custom .content-container {
        padding: 0 20px;
    }

    #visual.oer-custom .content {
        gap: 16px;
        max-width: 100%;
    }

    #visual.oer-custom .subtitle {
        font-size: 14px;
    }

    #visual.oer-custom .title {
        font-size: 32px;
    }

    #visual.oer-custom .button-wrapper {
        padding-top: 12px;
    }

    #visual.oer-custom .course-button {
        padding: 12px 24px;
        font-size: 14px;
        gap: 6px;
        margin: auto;
    }
}

#visual.oer-custom .course-button:hover {
    background-color: #b0c9ff;
}

#visual.oer-custom .arrow {
    font-size: 20px;
}

#visual.oer-custom .pagination-wrapper {
    padding-top: 32px;
    display: flex;
    align-items: center;
}

#visual.oer-custom .carousel-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    bottom: 160px;
    left: 17%;
    transform: none;
    right: unset;
}

#visual.oer-custom .carousel-indicators li {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

#visual.oer-custom .carousel-indicators li.active {
    background-color: #ffffff;
    width: 165px;
    height: 2px;
    border-radius: 0;
    position: relative;
}

@media (max-width: 1023px) {
    #visual.oer-custom .carousel-indicators {
        bottom: 120px;
    }

    #visual.oer-custom .carousel-indicators li.active {
        width: 96px;
    }
}

@media (max-width: 767px) {
    #visual.oer-custom .arrow {
        font-size: 16px;
    }

    #visual.oer-custom .pagination-wrapper {
        padding-top: 24px;
    }

    #visual.oer-custom .carousel-indicators {
        gap: 6px;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
    }

    #visual.oer-custom .carousel-indicators li {
        width: 8px;
        height: 8px;
    }

    #visual.oer-custom .carousel-indicators li.active {
        width: 80px;
    }
}

/* 모바일에서 비주얼 높이 조정 */
@media (max-width: 767px) {
    #content #visual {
        height: 400px !important;
        min-height: 400px !important;
    }

    #visual.oer-custom {
        height: 400px;
        min-height: 400px;
    }

    #visual.oer-custom .xn-widget-slider-container {
        height: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #visual.oer-custom .xn-widget-slider-container>div {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .carousel {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .carousel-inner {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .carousel-item {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .xnws-img {
        height: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #visual.oer-custom .xn-widget-slider-container img {
        height: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    #content #visual {
        height: 280px !important;
        min-height: 280px !important;
    }

    #visual.oer-custom {
        height: 280px;
        min-height: 280px;
    }

    #visual.oer-custom .xn-widget-slider-container {
        height: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #visual.oer-custom .xn-widget-slider-container>div {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .carousel {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .carousel-inner {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .carousel-item {
        height: 100% !important;
        min-height: 100% !important;
    }

    #visual.oer-custom .xn-widget-slider-container .xnws-img {
        height: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #visual.oer-custom .xn-widget-slider-container img {
        height: 100% !important;
        min-height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #visual.oer-custom .title {
        font-size: 28px;
    }

    #visual.oer-custom .subtitle {
        font-size: 13px;
    }

    #visual.oer-custom .course-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    #visual.oer-custom .carousel-indicators {
        bottom: 24px;
        gap: 4px;
    }

    #visual.oer-custom .carousel-indicators li {
        width: 6px;
        height: 6px;
    }

    #visual.oer-custom .carousel-indicators li.active {
        width: 60px;
    }
}

/* ============================================
   인기 검색어 태그 섹션
   ============================================ */
.oer-popular-tags {
    /* background-color: var(--oer-primary-blue); */
    padding: 40px 0;
}

.oer-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.oer-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.oer-tag {
    color: var(--oer-text-white);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
    font-family: 'Pretendard', 'S-Core Dream', sans-serif;
    border-radius: 35px;
    border: 1px solid #d9d9d9;
    font-size: 16px;
}

.oer-tag:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   주제 분류별 모아보기
   ============================================ */
.oer-categories {
    background-color: var(--oer-text-white);
    padding: 40px 0;
}

.oer-section-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--oer-text-dark);
    margin: 0 0 40px 0;
}

.oer-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.oer-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
    background-color: transparent;
}

.oer-category-item:hover {
    transform: translateY(-4px);
}

.oer-category-icon {
    width: 107px;
    height: 80px;
    background-color: #FFE5CC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oer-category-label {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--oer-text-dark);
    text-align: center;
}

/* ============================================
   위젯 공통 스타일
   ============================================ */
/* 위젯 컨테이너 border 제거 */
.xncwi-container {
    border: 0 !important;
}

/* ============================================
   위젯 타이틀 영역 (통일된 스타일) - 모든 위젯에 강제 적용
   ============================================ */
/* 위젯 타이틀 컨테이너 - 콘텐츠, 강좌, MOOC, 게시판 (더보기 버튼이 있는 위젯) */
.xnbw-top-container,
.xncw-top-container,
.xnocw-top-container,
.xnocsw-top-container,
.xnomw-top-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

/* 위젯 타이틀 래퍼 - 콘텐츠, 강좌, MOOC, 게시판 */
.xnbw-title-wrap,
.xncw-title-wrap,
.xnocw-title-wrap,
.xnocsw-title-wrap,
.xnomw-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
    text-align: left !important;
}

/* 서브 카탈로그 위젯 타이틀 래퍼 (더보기 버튼 없음) */
.xnsw-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
}

/* 위젯 타이틀 (메인 타이틀) - 통일된 스타일 강제 적용 */
.xnbw-title,
.xncw-title,
.xnocw-title,
.xnocsw-title,
.xnomw-title,
.xnsw-title {
    font-family: 'Pretendard', 'S-Core Dream', sans-serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: var(--oer-text-dark) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;
    display: block !important;
}

/* 위젯 서브타이틀 - 통일된 스타일 강제 적용 */
.xnbw-sub-title,
.xncw-sub-title,
.xnocw-sub-title,
.xnocsw-sub-title,
.xnomw-sub-title,
.xnsw-sub-title {
    font-family: 'Pretendard', 'S-Core Dream', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #696969 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;
    display: block !important;
}

/* 더보기 버튼 - 통일된 스타일 */
.xnbw-more,
.xncw-more {
    font-family: 'Pretendard', 'S-Core Dream', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: var(--oer-primary-blue) !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.xnbw-more:hover,
.xncw-more:hover {
    text-decoration: underline !important;
    color: var(--oer-primary-blue) !important;
}

.xncw-more-text {
    display: inline-block !important;
}

/* ============================================
   콘텐츠 리스트 위젯 (OER Contents) - 카드형
   ============================================ */
.oer-content-list {
    padding: 40px 0;
}

/* OER Contents 위젯 배경색 제거 */
.oer_contents {
    background: none !important;
}

/* 위젯 타이틀 컨테이너 통일 (flex-direction만 추가) */
.oer-content-list .xnocw-top-container,
.oer-course-list .xnocsw-top-container,
.oer-mooc-list .xnomw-top-container,
.oer-notice-board .xnbw-top-container {
    flex-direction: column;
}

.xn-widget-container.board_v2 .xnbw-category-wrap {
    margin: 0 !important;
}

/* ============================================
   위젯 카드 통일 스타일 (콘텐츠, 강좌, MOOC)
   ============================================ */
/* 위젯 아이템 컨테이너 - 4열 그리드, 통일된 간격 */
.oer-content-list .xnocw-items-container {
    width: 100% !important;
}

.oer-content-list .xnocw-item-container-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 0 !important;
    width: 100% !important;
}

/* 위젯 카드 아이템 - 통일된 스타일 (플렉스 기반 4열) */
.oer-content-list .xnocw-widget-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    align-content: stretch !important;
    flex-wrap: nowrap !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 calc(25% - 15px) !important;
    /* 4열 배치, gap 고려 */
    width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--oer-text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.oer-content-list .xnocw-widget-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.oer-content-list .xnocw-widget-item:hover .xnoc-widget-metatdata-title {
    color: var(--oer-primary-blue);
}

/* 썸네일 영역 - 카드 상단, 16:9 비율 통일 */
.oer-content-list .xnocw-widget-thumbnail {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    /* 16:9 비율 */
    background-color: #000;
    overflow: hidden;
    flex-shrink: 0 !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.oer-content-list .xnocw-widget-thumbnail:before {
    display: none !important;
}

.oer-content-list .xnocw-widget-thumbnail:after {
    display: none !important;
}

.oer-content-list .xnocw-widget-thumbnail img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    display: block !important;
}

.oer-content-list .xnocw-widget-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 15px;
    font-weight: 500;
    min-width: 28px;
    text-align: center;
}

/* 메타데이터 영역 - 카드 하단, 통일된 패딩 */
.oer-content-list .xnocw-widget-metadata {
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.oer-content-list .xnoc-widget-metatdata-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--oer-text-dark);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    min-height: 44px;
    white-space: normal !important;
}

.oer-content-list .xnoc-widget-metatdata-middle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #838383;
    flex-wrap: wrap;
    margin: 2px 0 5px;
}

.oer-content-list .xnoc-widget-metatdata-type {
    padding: 2px 6px;
    border: 1px solid #ABABAB;
    border-radius: 3px;
    font-size: 11px;
    line-height: 12px;
    white-space: nowrap;
    color: #838383;
    margin: 2px 5px 0 0;
}

.oer-content-list .xnoc-widget-metatdata-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #838383;
    flex: 1;
    min-width: 0;
    margin-top: 2px;
}

.oer-content-list .xnoc-widget-metatdata-wrap .split {
    display: inline-block;
    width: 1px;
    height: 11px;
    background-color: #BCBCBC;
    margin: 0 4px;
    flex-shrink: 0;
    border-left: 1px solid #BCBCBC;
    vertical-align: top;
}

.oer-content-list .xnoc-widget-metatdata-wrap>span {
    max-width: calc(50% - 5px);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oer-content-list .xnoc-widget-metatdata-author,
.oer-content-list .xnoc-widget-metatdata-category {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oer-content-list .xnoc-widget-metatdata-tags {
    font-size: 12px;
    color: #838383;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 4px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

/* ============================================
   강좌 리스트 위젯 (OER Course) - 카드형
   ============================================ */
.oer-course-list {
    background-color: var(--oer-text-white);
    padding: 40px 0;
}


/* OER Course 위젯 컨테이너 */
.xnocsw-items-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.xnocsw-items-btn-wrap {
    flex-shrink: 0;
}

.xnocsw-items-prev-btn,
.xnocsw-items-next-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--oer-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 플레이리스트 오버레이 (오른쪽 37.5%) */
.xnocw-widget-playlist-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 37.5%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 15px;
    color: #fff;
}

.xnocw-widget-playlist-overlay:after {
    content: '';
    display: block;
    width: 100%;
    height: 27px;
    background-size: auto 27px;
}

.xnocw-widget-playlist-count {
    display: block;
    margin-bottom: 4px;
}

/* 메타데이터 라벨 (썸네일 위에 표시) */
.xnocsw-widget-metadata-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #065784;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.xnocsw-widget-metadata-label .xnocsw-widget-metadata-type {
    color: white;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

/* 메타데이터 영역 - 카드 하단 */
.xnocsw-widget-metadata {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.xnocsw-widget-metatdata-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--oer-text-dark);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
}

.xnocsw-widget-metatdata-author {
    font-size: 14px;
    color: #838383;
    line-height: 1.4;
}

.xnocsw-widget-metatdata-category {
    font-size: 14px;
    color: #838383;
    line-height: 1.4;
}

.xnocsw-widget-metatdata-regdate {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
    line-height: 1.4;
}

/* ============================================
   MOOC 리스트 위젯 (OER MOOC)
   ============================================ */
.oer-mooc-list {
    background-color: var(--oer-text-white);
    padding: 40px 0;
}


/* OER MOOC 위젯 컨테이너 */
.xnomw-items-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.xnomw-items-btn-wrap {
    flex-shrink: 0;
}

.xnomw-items-prev-btn,
.xnomw-items-next-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--oer-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}


.xnomw-widget-metadata-label {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.xnomw-widget-metadata-type {
    background-color: #065784;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.xnomw-widget-cerfitication {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--oer-text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.xnomw-widget-cerfitication i {
    display: inline-block;
    width: 27px;
    height: 36px;
    background-image: url('certificate-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: top;
}

.xnomw-widget-metatdata-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--oer-text-dark);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
}

.xnomw-widget-metatdata-author,
.xnomw-widget-metatdata-category {
    font-size: 14px;
    color: #838383;
    line-height: 1.4;
}

.xnomw-widget-metatdata-learning-period {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
    line-height: 1.4;
}

/* ============================================
   공지사항 및 이용안내
   ============================================ */
.oer-notice-board {
    background-color: var(--oer-text-white);
    padding: 40px 0;
}

/* 게시판 위젯 컨테이너 패딩 제거 */
.oer-notice-board .xn-widget-container.board_v2 {
    padding: 0 !important;
}


.oer-notice-board-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
}

.oer-notice-section,
.oer-board-section {
    background-color: var(--oer-text-white);
    flex: 1 1 calc(50% - 20px) !important;
    /* 2열 배치, gap 40px 고려 */
    min-width: 0;
}

/* 공지사항/이용안내 위젯 스타일 */
.xnbw-board-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xnbw-board-post-list li {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}

.xnbw-board-post-list li:last-child {
    border-bottom: none;
}

.xnbw-board-post-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--oer-text-dark);
    font-size: 14px;
}

.xnbw-board-post-list .post-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xnbw-board-post-list .post-date {
    color: #838383;
    font-size: 13px;
    margin-left: 16px;
    flex-shrink: 0;
}

/* ============================================
   서브 카탈로그
   ============================================ */
.oer-sub-catalog {
    background-color: var(--oer-text-white);
    padding: 40px 0;
}

/* 서브 카탈로그 위젯 타이틀 래퍼 */
.oer-sub-catalog .xnsw-title-wrap {
    margin-bottom: 24px !important;
    width: 100% !important;
    padding: 0 !important;
}


/* 서브 카탈로그 위젯을 주제 분류별 모아보기와 같은 스타일로 */
.oer-sub-catalog .xnbw-items-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

.oer-sub-catalog .xnbw-items-btn-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.oer-sub-catalog .xnbw-items-prev-btn {
    left: -40px;
}

.oer-sub-catalog .xnbw-items-next-btn {
    right: -40px;
}

.oer-sub-catalog .xnbw-item-container-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.oer-sub-catalog .xnbw-item-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* padding: 20px; */
    border-radius: 8px;
    transition: transform 0.2s;
    cursor: pointer;
    background-color: transparent;
}

.oer-sub-catalog .xnbw-item-container:hover {
    transform: translateY(-4px);
}

/* 서브 카탈로그 아이템 - 주제 분류별 모아보기와 동일한 스타일 */
.oer-sub-catalog .xnsw-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
    background-color: transparent;
}

.oer-sub-catalog .xnsw-item:hover {
    transform: translateY(-4px);
}

.oer-sub-catalog .xnsw-item-background {
    width: 107px;
    height: 80px;
    background-color: #FFE5CC !important;
    /* 연노랑색 */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: none !important;
    /* 이미지 제거 */
}

.oer-sub-catalog .xnsw-item-background img {
    display: none !important;
    /* 이미지 숨김 */
}

.oer-sub-catalog .xnsw-item-title,
.oer-sub-catalog .xnsw-item-title-text,
.oer-sub-catalog .xnsw-item-title-text-inner {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    /* font-size: 14px; */
    height: unset;
    color: var(--oer-text-white);
    text-align: center;
}

.xnsw-item .xnsw-item-title .xnsw-item-title-text {
    display: block;
    padding: 0 !important;
    height: unset !important;
}

.oer-sub-catalog .xnsw-item-title-text-inner {
    display: block;
}

/* ============================================
   푸터 (Footer)
   ============================================ */
#footer.oer-footer {
    background-color: var(--oer-footer-bg);
    color: var(--oer-text-white);
    font-family: 'Pretendard', 'S-Core Dream', sans-serif;
}

.oer-footer-main {
    padding: 40px 0;
}

.oer-footer-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.oer-footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.oer-footer-logo {
    height: 42px;
}

.oer-footer-logo img {
    height: 42px;
    width: auto;
}

.oer-footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oer-footer-links-top {
    display: flex;
    gap: 20px;
}

.oer-footer-links-top a {
    color: var(--oer-text-white);
    text-decoration: none;
    font-size: 14px;
}

.oer-footer-links-top a:hover {
    text-decoration: underline;
}

.oer-footer-address {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--oer-text-gray);
    line-height: 1.6;
    margin: 0;
}

.oer-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.oer-scroll-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    font-size: 13px;
}

.oer-scroll-top-icon {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border-radius: 4px;
}

.oer-footer-border {
    height: 1px;
    background-color: var(--oer-border-gray);
    width: 100%;
}

.oer-footer-bottom {
    padding: 0;
}

.oer-footer-bottom .oer-footer-container {
    padding: 13px 20px;
    align-items: center;
}

.oer-footer-sns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.oer-sns-icon {
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.oer-sns-instagram {
    width: 21px;
    height: 18.836px;
}

.oer-sns-facebook {
    width: 19.99px;
    height: 19.986px;
}

.oer-sns-youtube {
    width: 20px;
    height: 20px;
}

.oer-footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.oer-footer-links a {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--oer-text-gray);
    text-decoration: none;
}

.oer-footer-links a:hover {
    text-decoration: underline;
}

.oer-footer-family-site {
    background-color: #4a5154;
    height: 48px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 178px;
    cursor: pointer;
    position: relative;
}

.oer-fs-btn {
    font-family: 'S-Core Dream', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.oer-fs-btn .material-icons-sharp {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.oer-footer-family-site.active .oer-fs-btn .material-icons-sharp {
    transform: rotate(45deg);
}

.oer-fs-list {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #4a5154;
    min-width: 178px;
    padding: 8px 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-bottom: 4px;
}

.oer-footer-family-site.active .oer-fs-list {
    display: block;
}

.oer-fs-list a {
    display: block;
    padding: 8px 13px;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.oer-fs-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 1280px) {
    .oer-container {
        padding: 0 20px;
    }

    #header.oer .navbar-static-top .container {
        padding: 0 20px;
    }

    /* 1280px 이하에서 햄버거 버튼 표시 */
    #header.oer .navbar-static-top .container .navbar-header > div.float-left:first-of-type {
        display: block;
    }

    /* 햄버거 버튼 아이콘 색상 - 흰색 */
    #header.oer .navbar-static-top .container .navbar-header > div.float-left:first-of-type .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 20px;
        height: 20px;
    }

    /* 햄버거 버튼 스타일 */
    #header.oer .navbar-static-top .container .navbar-header > div.float-left:first-of-type .navbar-toggler {
        display: block;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 4px 8px;
        background-color: transparent;
        border-radius: 4px;
        cursor: pointer;
    }

    .oer-categories-grid,
    .oer-sub-catalog .xnbw-item-container-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .oer-content-list .xnocw-widget-item,
    .xnocsw-widget-item,
    .xnomw-widget-item {
        flex: 0 0 calc(50% - 10px) !important;
        /* 2열 배치 */
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }

    /* 공지사항/이용안내 2열 유지 */
    .oer-notice-board-flex {
        gap: 30px !important;
    }

    .oer-notice-section,
    .oer-board-section {
        flex: 1 1 calc(50% - 15px) !important;
    }
}

@media (max-width: 992px) {

    /* 헤더 메뉴 간격 조정 */
    .oer-header-menu {
        gap: 24px;
    }

    .oer-menu-item>a {
        font-size: 18px;
    }

    /* 헤더 높이 조정 */
    #header.oer {
        min-height: 80px;
    }

    #header.oer .navbar-static-top .container {
        height: 80px;
    }

    /* 로고 크기 조정 */
    .oer-header-logo {
        height: 36px;
    }

    .oer-header-logo-image {
        height: 36px;
        max-width: 135px;
    }
}

@media (max-width: 768px) {

    /* oer-top-bar 반응형 */
    .oer-top-bar-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .oer-top-bar .left-content,
    .oer-top-bar .right-content {
        width: 100%;
        justify-content: flex-start;
    }

    .oer-top-bar .right-content {
        justify-content: flex-end;
    }

    /* 헤더 반응형 */
    #header.oer {
        min-height: auto;
    }

    #header.oer .navbar-static-top {
        min-height: auto;
    }

    #header.oer.navbar-static-top .container {
        height: 60px !important;
        padding: 10px 16px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* navbar-header 스타일 - 플랫폼 헤더와 동일 (반응형) */
    #header.oer .navbar-static-top .container .navbar-header {
        height: 60px !important;
        /* display: block; - 플랫폼 헤더와 동일하게 주석 처리 */
    }

    /* 햄버거 버튼 표시 - 모바일에서만 (플랫폼 헤더와 동일) */
    #header.oer .navbar-static-top .container .navbar-header > div.float-left:first-of-type {
        display: block;
    }

    /* 햄버거 버튼 스타일 - 플랫폼 헤더와 동일 */
    #header.oer .navbar-light .navbar-toggler {
        background-color: #f0f0f0;
        border-radius: 0.25rem;
        height: 40px;
        width: 40px;
        padding: 0;
    }

    /* 로고 영역 */
    #header.oer.navbar-static-top .container .navbar-header .xn-main-catalog-header-logo-wrap {
        flex-shrink: 0;
        order: 2;
        margin-left: 12px;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    #header.oer.navbar-static-top .container .navbar-header .oer-header-logo {
        height: 32px;
    }

    #header.oer.navbar-static-top .container .navbar-header .oer-header-logo-image {
        height: 32px;
        max-width: 120px;
    }

    /* 메뉴 영역 - 모바일에서 기본적으로 숨김 (navbar-hidden 클래스가 있을 때) */
    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse.navbar-hidden {
        display: none;
    }

    /* 모바일 메뉴 표시 (햄버거 클릭 시 - navbar-hidden 클래스가 제거되었을 때) */
    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse:not(.navbar-hidden) {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--oer-primary-blue);
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* 모바일 메뉴 내부 스타일 - 세로로 표시 */
    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse:not(.navbar-hidden) .xn-header-menu-wrapper {
        float: none;
        width: 100%;
    }

    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse:not(.navbar-hidden) .xn-header-menu {
        display: block;
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }

    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse:not(.navbar-hidden) .xn-header-menu li {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse:not(.navbar-hidden) .xn-header-menu li a {
        height: auto;
        font-size: 16px;
        justify-content: flex-start;
        padding: 8px 0;
    }

    #header.oer.navbar-static-top .container .xn-main-menu-wrap .desktop.navbar-collapse:not(.navbar-hidden) .xn-header-menu li .oer-header-submenu {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        margin-top: 8px;
        margin-left: 16px;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
    }

    /* 메뉴 래퍼 */
    #header.oer.navbar-static-top .container .xn-main-menu-wrap {
        width: 100%;
        order: 3;
        margin-top: 0;
    }

    /* 버튼 영역 - 모바일에서 숨김 (oer-top-bar에 있으므로) */
    #header.oer.navbar-static-top .container .xn-main-menu-wrap .pull-right {
        display: none;
    }

    /* 버튼 그룹 */
    #header.oer .xn-header-member-btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        /* 버튼 간격 증가 */
        margin: 0 !important;
        vertical-align: middle !important;
        align-items: center !important;
    }

    #header.oer .xn-header-member-btn-group .btn,
    #header.oer .xn-header-member-btn-group a.btn-regist-content-menu {
        font-size: 11px !important;
        padding: 5px 8px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        height: auto !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #header.oer .xn-header-member-btn-group .xn-common-title {
        display: none !important;
    }

    /* 콘텐츠 등록 버튼 반응형에서도 보이게 */
    #header.oer .xn-header-member-btn-group .btn-regist-content-menu,
    #header.oer .xn-header-member-btn-group a.btn-regist-content-menu {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        min-width: fit-content !important;
    }

    /* 반응형에서도 아이콘 정렬 개선 */
    #header.oer .xn-header-member-btn-group .xn-plus-icon {
        margin: 0 !important;
        width: 14px !important;
        height: 14px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1 !important;
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    /* 로그인/회원가입 버튼 반응형 스타일 */
    #header.oer .btn-login,
    #header.oer .btn-join {
        font-size: 11px !important;
        padding: 5px 10px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
        gap: 6px !important;
        border-radius: 4px !important;
        margin: 0 6px 0 0 !important;
    }

    /* 회원가입 버튼 반응형 - 콘텐츠 등록과 동일 */
    #header.oer .btn-join {
        background-color: #4A90E2 !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    #header.oer .btn-join:hover {
        background-color: #357ABD !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }

    /* 로그인 버튼 반응형 - 강좌 등록과 동일 */
    #header.oer .btn-login,
    #header.oer .btn-login.xn-common-navy-btn {
        background-color: #ffffff !important;
        color: #0C2A7F !important;
        border: 1px solid #0C2A7F !important;
        position: relative !important;
        /* position: absolute 충돌 해결 */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    #header.oer .btn-login:hover,
    #header.oer .btn-login.xn-common-navy-btn:hover {
        background-color: #ECF1FF !important;
        color: #0C2A7F !important;
        border-color: #0C2A7F !important;
    }

    /* 반응형에서도 마지막 버튼은 오른쪽 마진 제거 */
    #header.oer .xn-header-member-btn-group .btn:last-child,
    #header.oer .xn-header-member-btn-group a.btn-regist-content-menu:last-child {
        margin-right: 0 !important;
    }

    /* 사용자 드롭다운 버튼 */
    #header.oer .btn-dropdown-user-menu {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        border: none !important;
    }

    /* 반응형에서도 계정 메뉴 텍스트 및 드롭다운 아이콘 숨김 */
    #header.oer .btn-dropdown-user-menu .xn-header-member-btn-text,
    #header.oer .btn-dropdown-user-menu span,
    #header.oer .btn-dropdown-user-menu i {
        display: none !important;
    }

    /* 반응형에서도 유저 아이콘 호버 효과 */
    #header.oer .btn-dropdown-user-menu:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    #header.oer .xn-header-member-btn-text {
        font-size: 11px !important;
        max-width: 70px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    /* 언어 선택 드롭다운 */
    #header.oer .change-locale-wrap {
        margin-left: 6px !important;
    }

    /* 드롭다운 메뉴 위치 조정 및 표시 설정 */
    #header.oer .xn-v2-user-dropdown {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0 !important;
        left: auto !important;
        min-width: 200px !important;
        max-width: 300px;
        z-index: 1001 !important;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 0;
        overflow: hidden;
        /* 기본 상태에서는 숨김 (custom.css의 기본 스타일과 일치) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* 드롭다운 메뉴 표시 - Bootstrap dropdown이 활성화될 때 */
    #header.oer .xn-header-member-btn-group.show .xn-v2-user-dropdown,
    #header.oer .xn-header-member-btn-group.active .xn-v2-user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    #header.oer .xn-header-member-btn-group[aria-expanded="true"] .xn-v2-user-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    #header.oer .xn-header-create-course-dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }

    /* 버튼 그룹 내부 요소 정렬 */
    #header.oer .xn-header-member-btn-group>* {
        vertical-align: middle !important;
    }

    /* 헤더 전체 레이아웃 */
    #header.oer .navbar-header {
        align-items: center !important;
    }

    /* 카탈로그 반응형 */
    .oer-categories-grid,
    .oer-sub-catalog .xnbw-item-container-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* 위젯 아이템 2열 */
    .oer-content-list .xnocw-widget-item,
    .xnocsw-widget-item,
    .xnomw-widget-item {
        flex: 0 0 calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }

    /* 공지사항/이용안내 1열 */
    .oer-notice-board-flex {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .oer-notice-section,
    .oer-board-section {
        flex: 1 1 100% !important;
        width: 100%;
    }

    /* 푸터 반응형 */
    .oer-footer-main {
        padding: 30px 0;
    }

    .oer-footer-container {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .oer-footer-left {
        width: 100%;
        gap: 16px;
    }

    .oer-footer-right {
        align-items: flex-start;
        width: 100%;
    }

    .oer-footer-bottom {
        padding: 16px 0;
    }

    .oer-footer-bottom .oer-footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0 20px;
    }

    .oer-footer-sns {
        order: 1;
        width: 100%;
        justify-content: flex-start;
    }

    .oer-footer-links {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .oer-footer-family-site {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    /* 섹션 패딩 조정 */
    .oer-content-list,
    .oer-course-list,
    .oer-mooc-list,
    .oer-notice-board,
    .oer-sub-catalog {
        padding: 30px 0;
    }

    /* 위젯 타이틀 크기 */
    .oer-section-title,
    .xnbw-title,
    .xncw-title,
    .xnocw-title,
    .xnocsw-title,
    .xnomw-title,
    .xnsw-title {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {

    /* 헤더 더 작은 화면 - 플랫폼 헤더와 동일 */
    #header.oer .navbar-static-top .container {
        height: 60px !important;
        padding: 8px 12px !important;
    }

    #header.oer .navbar-static-top .container .navbar-header {
        height: 60px !important;
    }

    /* 햄버거 버튼 스타일 - 플랫폼 헤더와 동일 */
    #header.oer .navbar-light .navbar-toggler {
        width: 40px;
        height: 40px;
    }

    .oer-header-logo {
        height: 28px !important;
    }

    .oer-header-logo-image {
        height: 28px !important;
        max-width: 100px !important;
    }

    /* 버튼 더 작게 */
    #header.oer .xn-header-member-btn-group .btn,
    /* 더 작은 화면에서 버튼 스타일 */
    #header.oer .btn-login,
    #header.oer .btn-join {
        font-size: 10px !important;
        padding: 4px 8px !important;
        line-height: 1 !important;
        gap: 4px !important;
    }

    #header.oer .btn-dropdown-user-menu {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    #header.oer .xn-header-member-btn-text {
        max-width: 50px !important;
        font-size: 10px !important;
    }

    .xn-main-menu-wrap .pull-right {
        gap: 4px !important;
    }

    #header.oer .xn-header-member-btn-group {
        gap: 8px !important;
        /* 작은 화면에서도 간격 유지 */
    }

    .xn-main-menu-wrap .pull-right {
        gap: 8px !important;
        /* 작은 화면에서도 간격 유지 */
    }

    #header.oer .change-locale-wrap {
        margin-left: 4px !important;
    }

    /* 카탈로그 1열 */
    .oer-categories-grid,
    .oer-sub-catalog .xnbw-item-container-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .oer-content-list .xnocw-widget-item,
    .xnocsw-widget-item,
    .xnomw-widget-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 위젯 타이틀 */
    .oer-section-title,
    .xnbw-title,
    .xncw-title,
    .xnocw-title,
    .xnocsw-title,
    .xnomw-title,
    .xnsw-title {
        font-size: 24px !important;
    }

    .xnbw-sub-title,
    .xncw-sub-title,
    .xnocw-sub-title,
    .xnocsw-sub-title,
    .xnomw-sub-title,
    .xnsw-sub-title {
        font-size: 14px !important;
    }

    /* 썸네일 크기 */
    .xnocw-widget-thumbnail,
    .xnocsw-widget-thumbnail,
    .xnomw-widget-thumbnail {
        width: 100px;
        height: 56px;
    }

    /* 섹션 패딩 더 작게 */
    .oer-content-list,
    .oer-course-list,
    .oer-mooc-list,
    .oer-notice-board,
    .oer-sub-catalog {
        padding: 24px 0;
    }

    /* 푸터 폰트 크기 */
    .oer-footer-address {
        font-size: 12px;
    }

    .oer-footer-links a {
        font-size: 12px;
    }

    .oer-footer-links-top a {
        font-size: 12px;
    }

    /* 컨테이너 패딩 */
    .oer-container {
        padding: 0 16px;
    }

    /* 강좌/MOOC 위젯 버튼 숨김 또는 작게 */
    .xnocsw-items-prev-btn,
    .xnocsw-items-next-btn,
    .xnomw-items-prev-btn,
    .xnomw-items-next-btn {
        display: none;
    }
    .xnocsw-items-container,
    .xnomw-items-container {
        gap: 10px;
    }
}

/* 600px 이하에서 narrow-screen 언어 변경 버튼 숨김 */
@media (max-width: 600px) {
    #header.oer .xn-common-white-gray-btn.xn-translate_language-icon.site.xn-translate_language-narrow-screen,
    #header.oer .xn-translate_language-narrow-screen {
        display: none !important;
    }
}
