@charset "utf-8";
/* =========================================================
    공통 푸터 (웅진스킬원 공통 Footer)
    - 원본: skillone/assets_skillone/css/main.css (Footer)
    - 모든 규칙을 #footer.footer--skillone 범위로 한정
      → 기존 Udemy footer(main.html 등, id="footer" class="footer")에는 영향 없음
    - 기존 common.css 의 #footer 규칙 중 겹치는 부분은 이 범위 안에서만 초기화
    - id="footer", #go-top(Top 버튼)은 topbtn.js 에서 사용하므로 유지
    - 적용 페이지: include/html_foot.php 사용 페이지 (자료실 목록·상세, 검색, 약관, 개인정보 처리방침)
    - 원복 시: html_head.php / reference_view.html 의 footer.css 링크 제거 + html_foot.php 복원
========================================================= */

/* =========================
    Footer
========================= */
#footer.footer--skillone { position: relative; padding: 60px 0; background: #222; color: #fff; font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", sans-serif; font-size: 1.6rem; line-height: 1.5; letter-spacing: -0.03em; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; box-sizing: border-box; }
/* ※ 글자 간격/폰트 렌더링을 skillone 사이트와 동일하게 맞춤 (16px 기준 -0.03em = -0.48px) */
#footer.footer--skillone *, #footer.footer--skillone *::before, #footer.footer--skillone *::after { box-sizing: border-box; }
#footer.footer--skillone p { margin: 0; padding: 0; }
#footer.footer--skillone a, #footer.footer--skillone a:hover, #footer.footer--skillone a:focus, #footer.footer--skillone a:active { color: inherit; text-decoration: none; }

#footer.footer--skillone .inner { width: min(100% - 48px, 1400px); margin: 0 auto; }

#footer.footer--skillone .footer__top .logo { margin: 0; line-height: 0; }
#footer.footer--skillone .footer__top .logo img { height: 28px; max-width: none; vertical-align: top; }

/* 기존 #footer .footer__info (오른쪽 정렬 · 세로 flex) 초기화 */
#footer.footer--skillone .footer__info { display: block; margin: 40px 0 30px; text-align: left; }
/* bootstrap .row (flex-wrap, 좌우 -15px 마진) 초기화 */
#footer.footer--skillone .footer__info .row { display: flex; flex-wrap: nowrap; align-items: center; margin: 8px 0 0; }
#footer.footer--skillone .footer__info .row:first-of-type { margin: 0 0 16px; }
#footer.footer--skillone .footer__info .row:first-of-type p { font-weight: 700; }
#footer.footer--skillone .footer__info .row p { font-size: 1.6rem; }
#footer.footer--skillone .footer__info .row p:not(:last-child)::after { content: ''; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background-color: #fff; }

#footer.footer--skillone .footer__links { display: flex; font-size: 1.4rem; font-weight: 700; color: rgba(255,255,255,0.7); }
#footer.footer--skillone .footer__links p:not(:last-child)::after { content: ''; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background-color: rgba(255,255,255,0.7); }

#footer.footer--skillone .footer__terms { margin-top: 10px; }
#footer.footer--skillone .footer__terms p { font-size: 1.2rem; font-weight: 300; opacity: 0.7; }

/* =========================
    Tablet (~1024px)
========================= */
@media (max-width: 1024px) {
    #footer.footer--skillone .inner { width: calc(100% - 80px); }
}

/* =========================
    Mobile (~768px)
========================= */
@media (max-width: 768px) {
    #footer.footer--skillone { padding: 40px 0; }
    #footer.footer--skillone .inner { width: calc(100% - 40px); }
    #footer.footer--skillone .footer__top .logo img { height: 24px; }
    #footer.footer--skillone .footer__info .row p { font-size: 1.2rem; }
    #footer.footer--skillone .footer__info .row:nth-child(2) { display: block; }
    #footer.footer--skillone .footer__info .row:nth-child(2) p:first-child { margin-bottom: 8px; }
    #footer.footer--skillone .footer__info .row:nth-child(2) p::after { display: none; }
    #footer.footer--skillone .footer__info .row:nth-child(3) { display: block; }
    #footer.footer--skillone .footer__info .row:nth-child(3) p:first-child { margin-bottom: 8px; }
    #footer.footer--skillone .footer__info .row:nth-child(3) p::after { display: none; }
    #footer.footer--skillone .footer__links { font-size: 1.2rem; }
}
