@charset "UTF-8"; 

/* ========================================================================= */
/* 0. 외부 폰트 로드 */
/* ========================================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');


/* ========================================================================= */
/* 1. CSS Reset */
/* ========================================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.6;
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
ol, ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
input[type=text], 
input[type=button], 
input[type=submit], 
input[type=checkbox],
button {
    cursor: pointer;
    outline: none;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.2s ease;
}
input[type=text]:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
* {
    box-sizing: border-box; 
}


/* ========================================================================= */
/* 2. Common Layout & Utility */
/* ========================================================================= */

:root {
    --primary-color: #ff6b35;
    --primary-hover: #e85a2b;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e8e8e8;
    --background-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

.inner {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
.innerWrap {
    width: 1132px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
.flexcontainer {
    /* display: flex 제거 - 각 섹션에서 개별 적용 */
    align-items: center;
}
.orange {
    color: var(--primary-color);
}
.grayline {
    border-bottom: 1px solid var(--border-color);
}


/* ========================================================================= */
/* 3. Header & Navigation */
/* ========================================================================= */

#header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    
    padding-top: 20px;
    height: 90px;
    
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    position: sticky; 
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff8f6b 100%);
}

#gnb {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    height: 100%;
    gap: 40px;
}

/* 로고 */
#gnb h1 {
    flex-shrink: 0; 
    display: flex;
    align-items: center;
    height: 100%;
}
#gnb h1 a {
    display: flex;
    align-items: center;
}
#gnb h1 img {
    height: 36px;
    width: auto;
}

/* 메인 내비게이션 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

#gnb .sub {
    font-size: 15px;
    font-weight: 500;
    color: #b0b0b0;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
}

#gnb .sub::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#gnb .sub:hover {
    color: #ffffff;
    background-color: rgba(255, 107, 53, 0.15);
}

#gnb .sub:hover::after {
    transform: scaleX(1);
}

#gnb .sub.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(255, 107, 53, 0.2);
}

#gnb .sub.active::after {
    transform: scaleX(1);
}

/* 로그인/프로필 영역 */
.login-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; 
    flex-shrink: 0;
}

.login-content > a:first-child {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.login-content > a:first-child:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.login-content > a:first-child img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.login-content > a:first-child i {
    font-style: normal;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 일반 링크 */
.login-content > a {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.login-content > a:hover {
    color: #ffffff;
    background-color: rgba(255, 107, 53, 0.15);
}

/* 회원가입 버튼 */
.login-content > a[href*="join.php"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f6b 100%);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.login-content > a[href*="join.php"]:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #ff7a52 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* 드롭다운 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    font-size: 14px;
    font-weight: 500;
    color: #b0b0b0;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropbtn:hover {
    color: #ffffff;
    background-color: rgba(255, 107, 53, 0.15);
}

.dropbtn i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-content {
    visibility: hidden; 
    opacity: 0;
    transform: translateY(8px); 
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; 

    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background-color: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 107, 53, 0.06);
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg); 
}


/* ========================================================================= */
/* 4. Footer Style */
/* ========================================================================= */

footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #e0e0e0;
    padding-top: 60px; 
    font-size: 14px;
    border-top: 1px solid #2a2a2a;
    margin-top: 80px;
}

/* Top 버튼 */
#myBtn {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f6b 100%);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#myBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

#myBtn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* 푸터 중간 영역 */
.footerMiddle {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2a2a2a;
}

.bottomLogo img {
    height: auto;
    width: 160px;
    margin-bottom: 16px;
}

.bottomLogo p {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sns {
    display: flex;
    gap: 12px;
}

.sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2a2a;
    transition: all 0.3s ease;
}

.sns a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sns img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* 회사 정보 */
.companyInfo .info-list {
    display: block;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

.companyInfo .info-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.companyInfo .info-list span {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 12px;
    min-width: 80px;
    flex-shrink: 0;
}

/* 고객센터 */
.agencyORyoutuber p {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.agencyORyoutuber strong {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
}

.agencyORyoutuber strong span {
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.agencyORyoutuber strong img {
    width: 100%;
    height: 100%;
}

.agencyORyoutuber ul.hours li {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.agencyORyoutuber small {
    display: block;
    margin-top: 12px;
    color: #888;
    font-size: 12px;
}

/* 광고 문의 */
.addcontact {
    text-align: right;
}

.addcontact p {
    font-size: 15px;
    margin-bottom: 6px;
    color: #fff;
}

.addcontact p b {
    color: var(--primary-color);
}

.addcontact .now {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}

.addcontact .submit_btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f6b 100%);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 24px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.addcontact .submit_btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #ff7a52 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.addcontact .submit_btn em.icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.addcontact .submit_btn img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

.addcontact .submit_btn i {
    margin-left: 8px;
}

/* 푸터 하단 */
.footerBottom {
    padding: 24px 0;
}

.footerBottom .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.footerBottom p {
    color: #888;
}

.footerBottom .links a {
    color: #999;
    margin-left: 24px;
    transition: color 0.2s ease;
}

.footerBottom .links a:hover {
    color: var(--primary-color);
}


/* ========================================================================= */
/* 5. Responsive Media Query */
/* ========================================================================= */

@media screen and (max-width: 1200px) {
    .footerMiddle {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media screen and (max-width: 767px) {
    
    .inner, .innerWrap {
        padding: 0 16px;
    }

    /* 헤더 */
    #header {
        height: auto;
        padding: 12px 0;
        position: static;
    }

    #gnb {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    #gnb h1 img {
        height: 28px;
    }

    /* 메인 내비 숨김 */
    #gnb .sub {
        display: none;
    }
    
    /* 로그인 영역 */
    .login-content {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid #2a2a2a;
    }
    
    .login-content > a,
    .dropbtn {
        font-size: 13px;
        padding: 6px 10px;
    }

    .login-content > a[href*="join.php"] {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 푸터 */
    footer {
        padding-top: 40px;
        margin-top: 60px;
    }

    .footerMiddle {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .bottomLogo img {
        width: 120px;
    }

    .companyInfo,
    .agencyORyoutuber,
    .addcontact {
        padding-top: 24px;
        border-top: 1px solid #2a2a2a;
    }

    .addcontact {
        text-align: left;
    }

    .addcontact .submit_btn {
        width: 100%;
    }
    
    .footerBottom .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footerBottom .links a {
        margin-left: 0;
        margin-right: 16px;
    }

    #myBtn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    #myBtn img {
        width: 20px;
        height: 20px;
    }
}