@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================================================
   NARAM 홈페이지 - Blog Match (Beige, Navy, Gold)
   ================================================ */

:root {
    --primary: #121F33; /* Deep Navy from Blog Skin */
    --primary-light: #1C2E4A;
    --gold: #C29B57; /* Elegant Gold */
    --gold-light: #DFBC7D;
    --gold-dark: #9C793E;
    --white: #FFFFFF;
    --bg-light: #FCFAF6; /* Warm Ivory/Beige */
    --bg-gray: #F3EFE9;
    --text-main: #333333;
    --text-sub: #666666;
    --text-light: #888888;
    
    --font-en: 'Poppins', sans-serif;
    --font-kr: 'Pretendard', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    
    --shadow-soft: 0 10px 30px rgba(18, 31, 51, 0.05);
    --shadow-hover: 0 15px 40px rgba(194, 155, 87, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 16px;
    --header-height: 90px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body { font-family: var(--font-kr); color: var(--text-main); background: var(--bg-light); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; position: relative; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--primary); }

.sub_tit { display: inline-block; font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--gold-dark); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.center_tit { text-align: center; margin-bottom: 50px; }
.center_tit h2, .center_tit h3 { font-size: 36px; margin-bottom: 16px; font-family: var(--font-serif); }
.center_tit p { font-size: 18px; color: var(--text-sub); }

/* --- Animations --- */
.fade_up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade_left { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.fade_right { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.fade_up.visible, .fade_left.visible, .fade_right.visible { opacity: 1; transform: translate(0, 0); }

/* ================================================
   HEADER (Solid Navy)
   ================================================ */
#hd_wrapper {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--primary);
    border-bottom: 1px solid rgba(194, 155, 87, 0.2);
    transition: var(--transition);
}
#hd_wrapper.scrolled {
    background: rgba(18, 31, 51, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hd_inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.logo_pc { height: 60px; }
.logo_mobile { display: none; height: 48px; }

#gnb { flex: 1; display: flex; justify-content: center; height: 100%; margin: 0 20px; }
.gnb_list { display: flex; gap: 30px; height: 100%; align-items: center; }
.gnb_list > li { position: relative; display: flex; align-items: center; height: 100%; }
.gnb_list > li > a { font-size: 14.5px; font-weight: 500; color: var(--white); padding: 10px 2px; position: relative; white-space: nowrap; letter-spacing: -0.2px; }
.gnb_list > li > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.gnb_list > li:hover > a, .gnb_list > li.active > a { color: var(--gold); }
.gnb_list > li:hover > a::after, .gnb_list > li.active > a::after { width: 100%; }

.gnb_sub { display: none; position: absolute; top: var(--header-height); left: 50%; transform: translateX(-50%); background: var(--white); min-width: 180px; border-radius: 0 0 12px 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.15); padding: 12px 0; overflow: hidden; border-top: 3px solid var(--gold); z-index: 1010; }
.gnb_list > li:hover > .gnb_sub { display: block; }
.gnb_sub li a { display: block; padding: 10px 20px; font-size: 14px; color: var(--text-main); text-align: center; font-weight: 500; }
.gnb_sub li a:hover { color: var(--primary); background: var(--bg-gray); font-weight: 700; }

.hd_right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn_cta_header { background: var(--gold); color: var(--primary) !important; padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.btn_cta_header:hover { background: var(--white); box-shadow: var(--shadow-hover); }
.btn_login_header { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: var(--white); flex-shrink: 0; }
.btn_login_header:hover { border-color: var(--gold); color: var(--gold); }
.mobile_menu_btn { display: none; flex-direction: column; gap: 6px; width: 30px; }
.mobile_menu_btn span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; }

/* ================================================
   HOME / BLOG-MATCHED HERO
   ================================================ */
.skin_hero {
    background: linear-gradient(120deg, #FDFBF8 0%, #F1E5D5 100%);
    padding: calc(var(--header-height) + 80px) 0 80px;
    min-height: 550px; display: flex; align-items: center; border-bottom: 1px solid #EBE3D5;
}
.skin_hero .hero_inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; width: 100%; }
.hero_txt { flex: 1; }
.hero_label { font-family: var(--font-en); font-size: 15px; color: var(--gold-dark); letter-spacing: 4px; display: block; margin-bottom: 20px; font-weight: 600; }
.hero_txt h2 { font-family: var(--font-serif); font-size: 54px; font-weight: 700; color: var(--primary); line-height: 1.35; margin-bottom: 25px; letter-spacing: -1px; }
.hero_txt p { font-size: 20px; color: var(--text-sub); line-height: 1.7; font-weight: 500; }
.hero_img { flex: 0 0 450px; text-align: right; }
.ceo_mock { width: 100%; height: 450px; background: url('../img/logo_icon.png') no-repeat center center; background-size: 30%; background-color: rgba(255,255,255,0.4); border-radius: 24px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px; color: var(--gold-dark); font-weight: 600; border: 2px solid rgba(194, 155, 87, 0.2); }

.hero_btns { display: flex; gap: 15px; margin-top: 40px; }
.btn_line_dark { padding: 16px 36px; border: 2px solid var(--primary); border-radius: 40px; color: var(--primary) !important; font-weight: 700; background: transparent; }
.btn_line_dark:hover { background: var(--primary); color: var(--white) !important; }
.btn_solid { padding: 16px 36px; background: var(--primary); border-radius: 40px; color: var(--white) !important; font-weight: 700; border: 2px solid var(--primary); }
.btn_solid:hover { background: var(--gold); border-color: var(--gold); color: var(--primary) !important; }

/* 4 FEATURE BAR */
.skin_features { background: var(--white); border-bottom: 1px solid #EAEAEA; padding: 40px 0; }
.skin_features .inner { display: flex; justify-content: space-between; align-items: center; }
.feat_item { text-align: center; flex: 1; padding: 0 10px; }
.feat_item i { font-size: 36px; color: var(--gold); margin-bottom: 15px; }
.feat_item h4 { font-family: var(--font-en); font-size: 20px; color: var(--primary); margin-bottom: 5px; font-weight: 700; }
.feat_item p { font-size: 15px; color: var(--text-sub); font-weight: 500; }
.feat_item.hover_up:hover { box-shadow: none !important; background: transparent !important; }
.feat_divider { width: 1px; height: 60px; background: #EAEAEA; }

/* ================================================
   SUB PAGES
   ================================================ */
.sub_page { padding-top: var(--header-height); }
.sub_hero { background: var(--primary); padding: 100px 0 80px; text-align: center; border-bottom: none; }
.sub_hero .sub_label { font-family: var(--font-en); color: var(--gold); letter-spacing: 2px; font-size: 14px; display: block; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; }
.sub_hero h2 { color: var(--white); font-family: var(--font-serif); font-size: 42px; margin-bottom: 15px; }
.sub_hero p { font-size: 18px; color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.sub_content { padding: 80px 0; }
.sub_sec { margin-bottom: 80px; }

/* Components */
.three_columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.column_card { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-soft); text-align: center; border-bottom: 4px solid var(--primary); }
.card_number { font-family: var(--font-en); font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 20px; }
.card_icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.column_card h4 { font-size: 22px; margin-bottom: 10px; font-family: var(--font-serif); }
.card_subtitle { color: var(--gold-dark); font-weight: 600; margin-bottom: 15px; }

/* Footer */
#ft { background: var(--primary); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.ft_top { display: grid; grid-template-columns: 1fr 1.5fr 1fr 0.5fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; }
.logo_ft { height: 80px; }
.ft_info p { margin-bottom: 20px; }
.ft_contact li { margin-bottom: 10px; font-size: 14px; }
.ft_contact i { color: var(--gold); width: 20px; }
.ft_links h4, .ft_social h4 { color: var(--white); font-size: 18px; margin-bottom: 20px; }
.ft_links li { margin-bottom: 10px; }
.ft_links a:hover { color: var(--gold); }
.social_icons { display: flex; gap: 15px; }
.social_icons a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: var(--white); font-size: 18px; }
.social_icons a:hover { background: var(--white); border-color: var(--white); }
.ft_bottom { text-align: center; padding-top: 30px; font-size: 14px; opacity: 0.5; }

/* Mobile CSS overlaps */
@media (max-width: 1024px) {
    .skin_hero .hero_inner { flex-direction: column; text-align: center; }
    .hero_img { flex: 0 0 300px; width: 100%; margin-top: 40px; }
    .hero_btns { justify-content: center; }
    .three_columns { grid-template-columns: repeat(2, 1fr); }
    .ft_top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --header-height: 70px; }
    #gnb, .hd_right { display: none; }
    .mobile_menu_btn { display: flex; }
    .logo_pc { display: none; }
    .logo_mobile { display: block; height: 48px; }
    #hd_h1 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display:flex; align-items:center; }
    
    .hero_txt h2 { font-size: 36px; }
    .skin_features .inner { flex-direction: column; gap: 20px; }
    .feat_divider { width: 100%; height: 1px; margin: 10px 0; }
    .quick_grid, .three_columns { grid-template-columns: 1fr; }
    .ft_top { grid-template-columns: 1fr; gap: 30px; }
}

/* ================================================
   MOBILE NAV (HIDDEN BY DEFAULT)
   ================================================ */
.mobile_backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1001; }
.mobile_backdrop.active { display: block; }

#mobile_nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: var(--white); z-index: 1002; transition: right 0.4s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
#mobile_nav.active { right: 0; }

.mobile_nav_top { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #EAEAEA; }
.mobile_logo { height: 40px; }
.mobile_close { font-size: 30px; color: var(--primary); background: none; border: none; cursor: pointer; line-height: 1; padding: 0 10px; }

.mobile_menu { flex: 1; overflow-y: auto; padding: 20px 0; }
.mobile_menu li { border-bottom: 1px solid #F5F5F5; }
.mobile_menu li a { display: block; padding: 15px 25px; font-size: 16px; font-weight: 500; color: var(--text-main); }
.mobile_menu li a:hover { color: var(--primary); font-weight: 700; background: var(--bg-gray); }

.mobile_nav_btns { padding: 20px; background: var(--bg-gray); display: flex; flex-direction: column; gap: 10px; }
.btn_mobile_cta { display: block; text-align: center; padding: 15px; background: var(--gold); color: var(--primary) !important; font-weight: 700; border-radius: 8px; }
.btn_mobile_login { display: block; text-align: center; padding: 15px; background: var(--primary); color: var(--white) !important; font-weight: 700; border-radius: 8px; }

#mobile_fixed_cta { display: none; }
@media (max-width: 768px) {
    #mobile_fixed_cta { display: block; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--gold); text-align: center; padding: 18px; z-index: 999; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); }
    #mobile_fixed_cta a { color: var(--primary); font-weight: 800; font-size: 16px; display: block; }
    body { padding-bottom: 60px; /* 고정버튼 여백 */ }
}


/* FLASHY RESPONSIVE & CUSTOM CURSOR UPDATES */

.hover_up { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hover_up:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); z-index:10; position:relative; }

.q_list { display:flex; flex-direction:column; gap:15px; margin-top:30px; }
.q_item { display:flex; gap:15px; align-items:flex-start; background:var(--white); padding:20px; border-radius:12px; box-shadow:0 5px 15px rgba(0,0,0,0.03); }
.q_num { flex:0 0 32px; width:32px; height:32px; background:var(--gold); color:var(--white); font-weight:700; display:flex; justify-content:center; align-items:center; border-radius:50%; font-family:var(--font-en); }
.q_text { font-weight:600; color:var(--primary); margin-bottom:5px; font-size:16px; }
.q_sub { font-size:14px; color:var(--text-sub); }

#mobile_fixed_cta a { color:var(--primary); font-weight:800; font-size:16px; display:block; padding:15px; text-decoration:none; }


/* LOGO HOVER EFFECTS */
.logo_pc { transition: transform 0.3s ease, opacity 0.3s ease; }
.logo_pc:hover { transform: scale(1.05); opacity: 0.8; }
.logo_ft { transition: transform 0.3s ease, opacity 0.3s ease; }
.logo_ft:hover { transform: scale(1.05); opacity: 0.8; }






/* CUSTOM JS CURSOR */
body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
.custom-cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.custom-cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
}
body.cursor-hovering .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(0);
}
body.cursor-hovering .custom-cursor-ring {
    width: 54px; height: 54px;
    background-color: rgba(194, 155, 87, 0.15);
    border-color: var(--primary);
}

/* ==================================================
   MOBILE REFINEMENTS (CLEANUP & BEAUTIFY)
   ================================================== */
@media (max-width: 768px) {
    /* Hero Section Fixes */
    .hero_txt, .hero_btns, .hero_img { 
        text-align: center !important; 
        align-items: center !important; 
        justify-content: center !important; 
    }
    .hero_btns { width: 100%; }
    .hero_btns a.btn_solid { width: 100%; box-sizing: border-box; text-align: center; }
    
    .hero_txt h2 { font-size: 32px !important; }
    .hero_txt p { font-size: 15px !important; word-break: keep-all; }
    
    .hero_img { margin-top: 30px !important; padding-bottom: 0 !important; }
    .hero_img > div { max-width: 280px !important; margin: 0 auto; height: 380px !important; border-radius: 140px 140px 20px 20px !important; }

    /* General Layout Padding */
    .sub_hero { padding: 80px 20px 60px !important; }
    .sub_hero h2 { font-size: 32px !important; }
    .sub_sec { margin-bottom: 60px !important; padding: 40px 20px !important; }
    
    .inner { padding-left: 20px !important; padding-right: 20px !important; }
    
    /* Typography Scaling */
    .center_tit h3 { font-size: 26px !important; }
    .center_tit p { font-size: 15px !important; word-break: keep-all; }
    h3 { font-size: 24px !important; }
    h4 { font-size: 20px !important; }
    
    /* Flex wrappers */
    .flex_wrap, .ceo_wrap, .press_wrap {
        flex-direction: column !important;
        text-align: center !important;
    }
    .txt_box { padding-right: 0 !important; margin-bottom: 40px !important; text-align: center; }
    .txt_box a.btn_solid { margin: 20px auto 0 !important; display: block; }
    
    /* Cards */
    .column_card, .program_card, .roadmap_card, .plus_card, .feedback_card {
        padding: 30px 20px !important;
    }
    
    /* CEO Profile */
    .ceo_photo { flex: 0 0 auto !important; width: 100% !important; margin: 0 auto 20px !important; justify-content: center !important; }
    .ceo_photo > div { max-width: 260px; }
    .ceo_txt h3 { font-size: 24px !important; }
    .ceo_txt ul { align-items: center !important; text-align: center !important; }
    
    /* Footer Alignment */
    .ft_top { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 30px !important; }
    .ft_logo { display: flex; justify-content: center; width: 100%; }
    .ft_contact li { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 8px; }
    .ft_links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .ft_links ul li { margin-bottom: 0 !important; }
    .ft_sns { display: flex; justify-content: center !important; gap: 15px; width: 100%; }
    
    /* Fix weird paddings & margins */
    .three_columns { display: flex; flex-direction: column; gap: 20px !important; }
    .q_list { padding: 0 10px; }
    .q_item { flex-direction: column; text-align: center; align-items: center; }
    
    /* Disable JS Cursor on Mobile */
    body.has-custom-cursor, body.has-custom-cursor * { cursor: auto !important; }
    .custom-cursor-dot, .custom-cursor-ring { display: none !important; }
}








#hd_login_msg, #tnb { display: none !important; }

