/* Custom Header Styles */
.skip_to_container {display:none;}
.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0 20px;
    height: 74px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo { height: 50px; }

.custom-nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1100;
}
.custom-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.custom-nav li {
    margin-left: 30px;
    position: relative;
}
.custom-nav a, .custom-nav a:hover {
    text-decoration: none;
    color: #1f432b;
    font-size: 18px;
    font-weight: 800;
    display: inline-block;
    opacity: 1;
    visibility: visible;
    font-family: 'NanumSquare', sans-serif;
}

.custom-nav li.active > a {
    color: #004d9c;
    font-weight: 800;
}

/* Mobile Menu Button - simplified */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.mobile-menu-btn i {
    color: #324d9e;
}
@media (max-width: 991px) {
    .custom-nav { 
        display: flex; /* Use flex for alignment */
        position: fixed; /* Fixed for side menu */
        top: 52px;
        right: -160px; /* Hidden off-screen */
        left: auto;
        width: 150px;
        height: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 20px 0;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-end;
        transition: right 0.3s ease-in-out; /* Smooth transition */
        z-index: 9000;
    }
    .custom-nav.active {
        right: 0; /* Slide in */
    }
    .custom-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .custom-nav li {
        margin: 0;
        width: 100%;
    }
    .custom-nav a {
        display: block;
        padding: 10px 20px;
        width: 100%;
        text-align: right; /* Align text to right */
    }
    .custom-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }
    .custom-nav li:hover .dropdown-menu {
        display: none; /* Let JS handle or kept hidden for simplicity? Better to allow click/hover if possible, but hover doesn't work well on mobile. 
        For now, let's just make it simple block flow. */
        display: block;
    }
    .mobile-menu-btn { display: block; }
}
/* Main Hero Style */
#main-img {
    width: 100%;
    text-align: center;
    overflow: hidden;
    position: relative;
}
#main-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.top-mg {
    width:100%;
}
    /* Reset & Base */
    * { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; padding: 0; }
    a { text-decoration: none; color: #007bff; }
    a:hover { text-decoration: underline; }
    #hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}

    /* 팝업레이어 */
    #hd_pop {z-index:1000;position:relative;margin:0 auto;height:0}
    #hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
    .hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff;}
    .hd_pops img{max-width:100%}
    .hd_pops_con {}
    .hd_pops_footer {padding: 0;background:#000;color:#fff;text-align:left;position:relative;}
    .hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
    .hd_pops_footer button {padding: 10px;border:0;color:#fff}
    .hd_pops_footer .hd_pops_reject{background:#000;text-align:left}
    .hd_pops_footer .hd_pops_close{background:#393939;position:absolute;top:0;right:0}

    .sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
    .pc-only {display:block}
    .mobile-only {display:none}

    #wrapper {margin-top: 73px;}
    .content-wrapper {
        max-width: 1110px;
        margin: 60px auto 0;
        padding: 0 15px;
    }

    /* Section & Titles */
    .main-title {
        text-align: center;
        margin-bottom: 40px;
    }
    .main-title img.ico_army {
        display: block;
        margin: 0 auto 15px;
        width: 60px;
    }
    .main-title h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #1f432b;
        margin: 0;
    }
    .txt-prize {
        font-weight: 600; 
        font-size: 34px; 
        color: #1f432b;
        display: block;
        margin-top: 10px;
    }

    /* Grid Layout for Content Rows */
    .info-row {
        display: flex;
        flex-wrap: wrap;
        margin-top: 40px;
        align-items: flex-start;
    }
    .info-label {
        flex: 0 0 160px;
        font-size: 1.5rem;
        font-weight: 700;
        color: #1f432b;
        padding-right: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .info-label::after {
        content: "";
        display: block;
        width: 4px;
        height: 24px;
        background-color: #1f432b;
    }
    .info-content {
        flex: 1;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #333;
        word-break: keep-all;
    }

    .info-content span {
        display: inline-block;
        padding: 0;
        line-height: 0;
        margin: 0;
        font-weight: 600;

    }
    .info-content.schedule > span{
        width: 100px;
    }
    .info-content span:after {
        content: '';
        display: inline-block;
        width: 100%;
    }
    .info-content-pad {
        padding: 0 20px;
    }
    #return-to-top i { top:8px !important; left: 1px !important}

    /* Typography utils */
    .bold { font-weight: 800; font-size: 1.2rem ;}
    .sub-cont { color: #313133; }
    .sub-cont p { font-size: 15px; color: #666; margin-top: 5px; }
    .info-content p {font-size: 0.9rem}
    /* Exclude Standard Box */
    .exclude-standard {
        border: 1px solid #e3e3e3;
        padding: 20px 0 20px 20px;
        font-size: 15px;
        background: #f9f9f9;
        margin-top: 15px;
    }
    .exclude-standard > ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .exclude-standard > ul > li {line-height: 26px; word-break: keep-all; padding-left: 15px; text-indent: -15px; margin-bottom: 5px;}
    .exclude-standard > span {font-weight: 600; font-size:16px;text-decoration: underline; display:block; margin-bottom:10px;}
    .sub_bold {
        font-size: 1.1rem;
        font-weight: 800;
        word-break: keep-all;
    }
    .mt-2 {margin-top: 0.2rem;}
    /* Benefits Box */
    .benefit-box {
        padding: 30px 60px 10px 60px;
        font-size: 1.1rem;
        font-weight: 800;
        color: #396131;
        background: #fff;
        border-radius: 10px;
        margin: 20px auto;
        border: 3px solid #396131;
        display: inline-block;
        text-align: left;
    }
    .benefit-box span {font-size:16px; font-weight: 400; color: #555;}
    .benefit-box ul {padding:0;margin:0;list-style:none;}
    .benefit-box ul li {width: 100%; margin-bottom:15px; line-height: 1.5; position: relative; padding-left: 20px; word-break: keep-all;}
    .benefit-box ul li:before {
        content: "";
        display: inline-block;
        position: absolute;
        left: 0;
        top: 8px;
        width: 10px;
        height: 10px;
        background: #1f432b;
    }
     
    /* Lists */
    ul.blue-tit li, ul.gray-tit li {
        word-break: keep-all;
        position: relative;
        padding-left: 10px;
        margin-bottom: 8px;
        line-height: 1.6;
        list-style: none;
        text-indent: 0;
        font-size: 16px;
    }
    ul.blue-tit li:before {
        content: "•";
        color: #1f432b;
        position: absolute;
        left: 0;
        font-weight: bold;
    }
    ul.gray-tit li:before {
        content: "-";
        color: #888;
        position: absolute;
        left: 0;
    }
    
    .info-list {
        padding: 0;
        margin: 5px 0 0 0;
        list-style: none;
    }
    .info-list li {
        position: relative;
        padding-left: 0px;
        font-size: 1rem;
        margin-bottom: 3px;
        line-height: 1.5;
    }
    /*
    .info-list li::before {
        content: "※";
        position: absolute;
        left: 0;
        top: 0;
    }*/

    /* Prize Grid */
    .prize-grid {
        display: flex;
        flex-wrap: wrap;
        margin: 40px auto;
        gap: 30px;
        justify-content: center;
    }
    .prize-grid > div {
        flex: 0 0 calc(19% - 20px);
        max-width: calc(19% - 20px);
        text-align: center;
    }
    .prize-grid img {
        width: 100% !important;
        max-width: 200px;
        height: auto;
    }

    /* Contact Grid */
    .contact-wrap { display:flex; justify-content:center; margin-top:30px; }
    .contact-grid { display:grid; grid-template-columns: auto auto; gap:20px 40px; align-items:center; }
    .square-tit { 
        display: inline-block; 
        font-weight: 800;
    }

    /* Misc Utils */
    .text-center { text-align: center; }
    .mt-3 { margin-top: 1rem; }
    .mt-5 { margin-top: 3rem; }
    .mb-5 { margin-bottom: 3rem; }
    
    /* Refactored Inline Styles */
    .mt-100 { margin-top: 100px; }
    .mt-140 { margin-top: 140px; }
    .mt-15 { margin-top: 15px; }
    .mt-10 { margin-top: 10px; }
    .w-100 { width: 100%; }
    .text-blue { color: blue; }
    .text-gray { color: #535353; }
    .text-right { text-align: right; }
    .flex-center { display: flex; justify-content: center; }
    .keep-all { word-break: keep-all; }
    .max-w-100 { max-width: 100%; }
    .eligibility-box {
        display: inline-block;
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid #dcdcdd;
        font-size: 1rem;
        font-weight: 600;
        word-break: keep-all;
    }
    .eligibility-box--normal { font-weight: 400; }
    .eligibility-indent { padding-left: 7em; font-weight: 400; }
    .info-list--nested {
        margin-top: 0.3em;
        padding-left: 1.5em;
        list-style: none;
    }
    .exclude-standard-desc { margin-top: 5px; font-weight: 600; }
    .benefit-note { color: #5a5a5a; }
    .modal-title { margin-top: 0; }

    /* Modal Styles */
    .custom-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.5);
        align-items: center;
        justify-content: center;
    }
    .custom-modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        max-width: 800px;
        position: relative;
        border-radius: 5px;
    }
    .custom-modal-close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .custom-modal-close:hover,
    .custom-modal-close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    .custom-modal.show {
        display: flex;
    }
    .custom-modal img {
        max-width: 100%;
        height: auto;
    }
    .btn-close-modal {
        padding: 8px 16px; 
        background: #6c757d; 
        color: white; 
        border: none; 
        border-radius: 4px; 
        cursor: pointer;
    }
    
    /* Footer Styles (Moved from tail.new.php) */
    .footer-wrap {
        background-color: #3f5b3b; 
        color: #fff; 
        padding-top: 1.5rem; 
        padding-bottom: 1.5rem; 
        text-align: center; 
        margin-top: 50px;
    }
    .footer-inner {
        max-width: 1200px; 
        margin: 0 auto; 
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
    }
    .scroll-top-btn {
        display:none; 
        position:fixed; 
        bottom:20px; 
        right:20px; 
        background:#000; 
        color:#fff; 
        width:40px; 
        height:40px; 
        text-align:center; 
        line-height:40px; 
        border-radius:50%; 
        z-index:999; 
        text-decoration:none;
    }

    /* Responsive adjustment */
    @media (max-width: 768px) {
      .sub_bold {font-weight: 600;}
      .info-content span {width: 100%; text-align: left;}
      #wrapper {margin-top: 52px;}
      .pc-only {display:none}
      .mobile-only {display:block}
        .info-row {
            flex-direction: column;
        }
        .info-label {
            margin-bottom: 10px;
            font-size: 1.3rem;
        }
        .txt-prize { font-size: 24px; }
        .main-title h2 {font-size: 1.4rem;}
        .main-title {margin-bottom: 10px;}
        .info-row {margin-top: 10px; margin-bottom: 20px;}
        .info-label {flex: 0 0 100%;}
        .info-content {font-size: 0.9rem;}
        .info-label::after {display:none;}
        .bold {font-size: 1.1rem;}

        .contact-grid { grid-template-columns:1fr; text-align:left; gap: 10px 0; }
        .contact-grid > div:nth-child(3) { margin-top: 20px; } 

        .logo {width: auto; height: auto; max-width: 170px;}
        .prize-grid > div {
            flex: 0 0 calc(50% - 15px);
            max-width: calc(50% - 15px);
        }
        .custom-header {height: 52px;}
        .mt-100 {margin-top: 30px;}
        .mt-140 {margin-top: 50px;}
        .sub-cont {font-size: 0.9rem; word-break: keep-all;}
        .benefit-box {padding: 20px 20px 3px 20px; font-size: 0.9rem;}
        .benefit-box span {font-size: 0.9rem;}
        .benefit-box ul li:before {top: 5px;}
        .info-content-pad {padding: 0;}
        .blue-tit.big {padding:0}
        ul.blue-tit li, ul.gray-tit li {padding-left: 20px;  font-size: 0.9rem; word-break: keep-all;}
        ul.gray-tit li {padding-left: 0px; }
        ul.gray-tit li:before {left: -10px;}
        .info-content {letter-spacing: 0px;
        word-spacing: -2px;}
        .info-content > span {display:inline-block; }
        .info-content.schedule > span{
            width: 64px;
            text-align: justify;
        }
        .exclude-standard {font-size: 0.85rem; padding: 30px 10px 10px 10px;}
        .footer-inner {flex-direction: column; font-size: 0.8rem; line-height: 1.2rem;}
        .footer-inner > .text-right {text-align: center;}
    }
