/* sub1.css - Greeting Page Styles */

/* 1. Sub Wrapper */
.sub_wrapper {
    background-color: #fff;
    min-height: 100vh;
}

/* 2. Sub Hero Banner (Refactored for <img> Gap-less Rendering) */
.sub_hero {
    position: relative;
    width: 100%;
    margin: -1px 0 !important; /* Force overlap to kill gaps */
    padding: 0 !important;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    background: none !important;
}

.sub_hero img {
    width: 100%;
    height: auto !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 3. LNB Breadcrumb (Rounded Design) */
.sub_lnb {
    border-bottom: 1px solid #eee;
    background-color: #fcfcfc;
    position: relative; /* Fixed: Switched from sticky top to relative to kill gap */
    z-index: 900;
    height: 60px; /* Fixed height for perfect vertical centering */
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 5px !important;
    border-top: none !important;
}

.sub_lnb .lnb_inner {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased gap */
}

.sub_lnb .home_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 50%; /* Circle */
    font-size: 16px;
    color: #444;
    transition: 0.3s;
}

.sub_lnb .home_btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.sub_lnb .lnb_item {
    position: relative;
}

.sub_lnb .lnb_btn {
    height: 44px;
    padding: 0 25px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 30px; /* Rounded corners */
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.sub_lnb .lnb_btn:hover {
    border-color: var(--accent-color);
}

.sub_lnb .lnb_btn.color_accent {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(130, 180, 41, 0.05);
}

.sub_lnb .lnb_dropdown {
    position: absolute;
    top: calc(100% + 8px); /* Floating gap */
    left: 0;
    width: auto;
    min-width: 160px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px; /* Matching rounded style */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: none;
    padding: 10px 0;
    overflow: hidden;
}

.sub_lnb .lnb_dropdown.show {
    display: block;
}

.sub_lnb .lnb_dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    transition: 0.2s;
}

.sub_lnb .lnb_dropdown li a:hover,
.sub_lnb .lnb_dropdown li.active a {
    background-color: #f9f9f9;
    color: var(--accent-color);
    font-weight: 700;
}

/* 4. Content Area Layout */
.sub_content_area {
    padding: 80px 0 120px;
}

.sub_content_area .content_inner {
    display: flex;
    gap: 80px;
}

/* Sidebar */
.sub_sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sub_sidebar .side_title_box {
    background: linear-gradient(45deg, var(--accent-color), #6e9a0f);
    padding: 30px 25px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.sub_sidebar .side_title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sub_sidebar .side_menu_list {
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.sub_sidebar .side_menu_list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 16px;
    color: #555;
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
    transition: 0.3s;
}

.sub_sidebar .side_menu_list li:last-child a {
    border-bottom: none;
}

.sub_sidebar .side_menu_list li a i {
    opacity: 0.3;
    transition: 0.3s;
}

.sub_sidebar .side_menu_list li:hover a,
.sub_sidebar .side_menu_list li.active a {
    background-color: #f8faf2;
    color: var(--accent-color);
    font-weight: 700;
}

.sub_sidebar .side_menu_list li:hover a i,
.sub_sidebar .side_menu_list li.active a i {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Main Content */
.sub_main_content {
    flex: 1;
}

.content_header {
    margin-bottom: 50px;
}

.content_header .page_title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}

.content_header .title_bar {
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Highlight Box */
.greeting_top_box {
    margin-bottom: 60px;
}

.greeting_txt_highlight {
    padding-left: 30px;
    border-left: 5px solid #eee;
}

.greeting_txt_highlight .summary_p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.greeting_txt_highlight .highlight_h3 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;
    color: #222;
    word-break: keep-all; /* Prevent awkward breaks */
}

.greeting_txt_highlight .highlight_h3 .point {
    color: var(--accent-color);
}

/* Body Text */
.greeting_body_text {
    font-size: 17px;
    color: #555;
    line-height: 1.9;
    letter-spacing: -0.2px;
    word-break: keep-all;
}

.greeting_body_text p {
    margin-bottom: 35px;
}

/* Signature */
.ceo_signature {
    margin-top: 80px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.ceo_signature .company_name {
    font-size: 16px;
    color: #888;
    margin-bottom: 10px;
}

.ceo_signature .ceo_name {
    font-size: 22px;
    color: #111;
    font-weight: 700;
}

.ceo_signature .ceo_name span {
    font-size: 28px;
    margin-left: 10px;
    font-weight: 900;
}

/* Tablet / Mobile Adjustments */
@media screen and (max-width: 1024px) {
    .sub_content_area .content_inner {
        display: block; /* Change from flex to block */
    }
    .sub_sidebar {
        display: none; /* Hide sidebar (2nd nav) on mobile as requested */
    }
    .sub_main_content {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .sub_content_area {
        padding: 50px 0 100px;
    }
    .content_header .page_title {
        font-size: 28px;
    }
    .greeting_txt_highlight {
        padding-left: 20px;
    }
    .greeting_txt_highlight .summary_p {
        font-size: 15px;
        word-break: keep-all;
    }
    .greeting_txt_highlight .highlight_h3 {
        font-size: 22px;
        line-height: 1.5;
        word-break: keep-all;
        letter-spacing: -0.5px;
    }
    .greeting_body_text {
        font-size: 16px;
        line-height: 1.8;
        word-break: keep-all;
    }
    .sub_lnb .lnb_btn {
        padding: 0 15px;
        font-size: 13px;
    }
    .sub_lnb .home_btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .sub_lnb {
        height: auto;
        padding: 0 0 10px 0; /* Clear top padding to kill mobile gap */
        overflow: visible;
    }
    .lnb_inner {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 5px;
        overflow: visible;
    }
    .sub_lnb .lnb_dropdown {
        z-index: 1000;
    }
}
