@charset "utf-8";

/* ==========================================
   Subpage Breadcrumb
   ========================================== */
.sub-breadcrumb {
    margin-top: var(--header-height);
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    height: 50px;
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    border-right: 1px solid #eaeaea;
    border-left: 1px solid #eaeaea;
}

.home-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sub-breadcrumb .divider {
    display: none;
}

.sub-breadcrumb .dropdown {
    height: 100%;
    border-right: 1px solid #eaeaea; 
}

.sub-breadcrumb .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 140px;
    height: 100%;
    padding: 0 20px;
    font-size: 14px;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================
   Subpage Main Layout
   ========================================== */
.sub-main {
    padding-top: var(--header-height);
    background-color: #ffffff;
    min-height: 950px;
}

/* ==========================================
   Location Bar
   ========================================== */
.location-bar {background-color: #f8f9fa;}
.location-bar .container { max-width: 1500px; margin: 0 auto; padding: 0 16px;}
.location-bar .inner { display: flex; align-items: center; height: 56px;}
.location-bar .home { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-right: 1px solid #e1e1e1; border-left: 1px solid #e1e1e1;}
.location-bar .home svg, .location-bar .home img { width: 22px; height: 22px; fill: var(--text-main); object-fit: contain; }
.location-bar .loc-dropdown { position: relative; border-right: 1px solid #E8E8E8; height: 56px;}
.location-bar .loc-dropdown .btn-loc { height: 100%; padding: 0 45px 0 25px; border: none; font-size: 15px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; background-color: transparent; position: relative;}
.location-bar .loc-dropdown .btn-loc::after { content: ''; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: url('/static/jointips/resources/images/layout/down_ico.png') no-repeat center; background-size: contain; }
.location-bar .loc-dropdown .btn-loc:hover {background-color: #fafafa;}
.location-bar .loc-menu{display:none;position:absolute;left:0;top:56px;min-width:180px;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid #E8E8E8;border-top:none;z-index:50;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.location-bar .loc-dropdown.open .loc-menu{display:block}
.location-bar .loc-menu li>a,.location-bar .loc-menu li>span{display:block;padding:10px 25px;font-size:14px;color:#313131;text-decoration:none;white-space:nowrap}
.location-bar .loc-menu li>a:hover{background:#fafafa}
.location-bar .loc-menu li.active>span{color:var(--primary);font-weight:500}
.location-bar.is-path .btn-loc { background: none; padding-right: 25px; }
.location-bar.is-path .btn-loc::after { display: none; }

.sub-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0px 16px 120px;
}

.sub-container-lnb {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 16px 120px;
    display: flex;
}

/* ==========================================
   LNB (Left Navigation Bar)
   ========================================== */
.lnb { width: 300px; flex-shrink: 0; margin-right: 60px; border-radius: 0 0 12px 12px;}
.lnb-title { background: linear-gradient(135deg, #188b6c 0%, #459f88 100%); color: #fff; padding: 45px 20px; border-radius: 12px; margin-bottom: 26px; position: relative; overflow: hidden; }
.lnb-title h2 { font-size: 22px; font-weight: 600; position: relative; z-index: 2;}
/* ==========================================
   Decoration squares in LNB title
   ========================================== */
.lnb-title .icon-box {position: absolute; right: 30px; bottom: 10px; opacity: 0.3; pointer-events: none;}
.lnb-title .icon-box span {display: block; width: 80px; height: 110px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 94'%3E%3Cpath d='M 2,62 L 32,62 L 32,32 L 62,32 L 62,2 L 92,2 L 92,92 L 2,92 Z' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M 32,62 L 32,92 M 62,32 L 62,92 M 32,62 L 92,62 M 62,32 L 92,32' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;}


.lnb-list { list-style: none; padding: 0; margin: 0; }
.lnb-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px; font-size: 18px; color: #666; font-weight: 500; transition: all 0.3s; border-radius: 8px; margin:8px 0;}
.lnb-list > li > a::after {content: ''; display: block; width: 8px; height: 8px; border-top: 2px solid #999; border-right: 2px solid #999; transform: rotate(45deg); transition: all 0.3s;}
.lnb-list > li.active > a,.lnb-list > li > a:hover {color: var(--primary); font-weight: 600; background: #F9F9FB;}
.lnb-list > li.active > a::after,.lnb-list > li > a:hover::after {border-color: var(--primary);}

/* ==========================================
   LNB 3depth Styling
   ========================================== */
.lnb-depth3 {
    list-style: none;
    padding: 10px 0 10px 0px;
    margin: 0;
    margin-left: 20px;
    display: none;
    border-bottom: 1px dashed #bdbdbd;
}

.lnb-list > li.has-depth3.open .lnb-depth3 {
    display: block;
    animation: slideDownMenu 0.3s ease-out forwards;
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lnb-depth3 li {
    position: relative;
    margin: 8px 0;
}

.lnb-depth3 li a {
    display: block;
    padding: 6px 0;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.lnb-depth3 li.active a {
    color: var(--primary);
    font-weight: 500;
}

.lnb-list > li.has-depth3 > a::after {
    transition: transform 0.3s ease;
}

.lnb-list > li.has-depth3.open > a::after {
    transform: rotate(135deg);
}

.sub-content { flex: 1; min-width: 0; }


/* ==========================================
   Subpage Common Layout Mobile Styles
   ========================================== */
@media (max-width: 768px) {
    /* ==========================================
       Subpage Main Layout Mobile Styles
       ========================================== */
    .sub-container-lnb {
        padding: 24px 16px 80px;
    }
    .sub-container{
        padding:0
    }

    .sub-main {
        padding-top: 70px;
        min-height: 100%;
    }

    /* ==========================================
       Location Bar Mobile Styles
       ========================================== */
    .location-bar .inner {
        height: 48px;
        padding:0;
    }
    .location-bar .home {
        width: 48px;
        height: 48px;
    }
    .location-bar .home svg,
    .location-bar .home img {
        width: 20px;
        height: 20px;
    }
    .location-bar .loc-dropdown {
        height: 48px;
    }
    .location-bar .loc-dropdown .btn-loc {
        padding: 0 30px 0 15px;
        font-size: 12px;
    }
    .location-bar .loc-dropdown .btn-loc::after {
        right: 12px;
        width: 12px;
        height: 12px;
    }
    .location-bar .loc-menu {
        top: 48px;
        min-width: 140px;
    }
    .location-bar .loc-menu li > a,
    .location-bar .loc-menu li > span {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ==========================================
   Join Steps
   ========================================== */
.join-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    width: 140px;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #d4d4d4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.step.active .step-num {
    background-color: var(--primary);
}

.step p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.step.active p {
    color: var(--text-main);
    font-weight: 600;
}

.step-line {
    width: 80px;
    height: 1px;
    background-color: #d4d4d4;
    margin: 0 -20px;
    margin-top: 22px; /* Centers vertically with the 44px circles */
    z-index: 1;
}

/* ==========================================
   Terms Form
   ========================================== */
.terms-section {
    margin-bottom: 40px;
}

.terms-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.terms-box {
    background-color: #f8f9fa;
    padding: 26px 20px;
    border-radius: 4px;
    font-size: 15px;
    color: #515151;
    height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
}

.terms-box p {
    font-weight: 400;
    color: #555;
    line-height: 1.65;
    margin-bottom: 14px;
}

.terms-box p:last-child {
    margin-bottom: 0;
}

.terms-box strong {
    font-weight: 700;
    color: #111;
    font-size: 15px;
    display: inline-block;
    margin-bottom: 2px;
}

.terms-box.no-scroll {
    height: auto;
    overflow-y: visible;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background-color: #f9f9f9;
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   Custom Checkbox
   ========================================== */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 1px solid #d4d4d4;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    font-size: 15px;
    color: #333;
}

.label-text.font-bold {
    font-weight: 600;
    font-size: 16px;
}

.terms-divider {
    height: 1px;
    background-color: #eaeaea;
    margin: 40px 0;
}

.terms-all {
    padding-bottom: 30px;
}

/* ==========================================
   Completed Step
   ========================================== */
.step.completed .step-num {
    background-color: var(--primary);
}
.step.completed p {
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================
   Form Section
   ========================================== */
.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
}

.form-table {
    border-top: 2px solid var(--text-main);
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 60px;
}

.form-row {
    display: flex;
    border-bottom: 1px solid #eaeaea;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    width: 180px;
    background-color: #fff;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.form-input {
    flex: 1;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.input-text {
    width: 100%;
    max-width: 300px;
    height: 44px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    color: var(--text-main);
}

.input-text:focus {
    border-color: var(--primary);
}

.select-custom {
    padding: 0 30px 0 12px;
    font-size: 14px;
    background: #fff url('/static/jointips/resources/images/layout/down_ico.png') no-repeat right 10px center / 16px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
}

.input-with-btn {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}

.btn-check {
    height: 44px;
    padding: 0 20px;
    background-color: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-check:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

@media screen and (max-width:768px){
    .form-input{align-items: flex-start;}
}

/* ==========================================
   Radio Buttons
   ========================================== */
.radio-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.custom-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-radio:hover input ~ .radio-mark {
    border-color: var(--primary);
}

.custom-radio input:checked ~ .radio-mark {
    border-color: var(--primary);
}

.radio-mark:after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    display: none;
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

.radio-text {
    font-size: 14px;
    color: #333;
}

/* ==========================================
   Form Actions
   ========================================== */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-prev-step {
    width: 120px;
    height: 50px;
    background-color: #313131;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-prev-step:hover {
    background-color: #111;
}

.btn-submit-step {
    width: 140px;
    height: 50px;
    background-color: var(--primary);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-step:hover {
    background-color: #014942;
}

/* ==========================================
   New Form Elements
   ========================================== */
.required {
    color: #e11d48;
    margin-right: 4px;
}

.input-readonly {
    background-color: #f8f9fa;
    color: #888;
    pointer-events: none;
}

.input-with-text {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.input-desc {
    font-size: 14px;
    color: #888;
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    padding: 0;
}

.auth-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.auth-inputs {
    display: flex;
    gap: 8px;
    max-width: 500px;
}

.btn-auth-send {
    height: 44px;
    padding: 0 16px;
    background-color: #6b6b6b;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}


.btn-auth-check {
    height: 44px;
    padding: 0 16px;
    background-color: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-auth-check:hover {
    background-color: #f8f9fa;
}

.auth-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ==========================================
   Responsive adjust
   ========================================== */
@media (max-width: 768px) {
    .sub-breadcrumb {
        margin-top: 80px;
    }
    
    
    .join-steps {
        gap: 0;
        margin-bottom: 40px;
    }
    
    .step {
        width: 100px;
    }
    
    .step-line {
        width: 30px;
        margin: 0 -15px;
        margin-top: 22px;
    }
    
    .sub-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
    }
    
    .form-label {
        width: 100%;
        padding: 15px 0 5px;
    }
    
    .form-input {
        padding: 5px 0 15px;
        flex-direction: column;
    }
    
    .input-text {
        max-width: 100%;
    }
    
    .input-with-btn {
        max-width: 100%;
    }
    
    .auth-inputs {
        flex-direction: column;
    }
}

/* ==========================================
   Join Completion Page
   ========================================== */
.join-complete-wrap {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    margin-top: 40px;
}

.join-complete-icon {
    width: 90px;
    height: 90px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 30px;
}

.join-complete-icon svg {
    width: 44px;
    height: 44px;
}

.join-complete-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.join-complete-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ==========================================
   Event Board Header Card
   ========================================== */
.event-board-header {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.board-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-tabs {
    background-color: #F6F6F6;
    padding: 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 2px;
}

.event-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: #555555;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.event-tab-btn svg,
.event-tab-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.event-tab-btn:hover {
    color: #111;
}

.event-tab-btn.active {
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.btn-create-program {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: var(--alternative);
    align-items: center;
    padding: 8px 16px;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-create-program img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-create-program:hover {
    background-color: #555555;
}

.board-header-divider {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 14px 0;
}

.board-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tab-filter-btn {
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    background-color: #F6F6F6;
    font-size: 15px;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-filter-btn:hover {
    background-color: #eaeaea;
}

.tab-filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.event-sorts {
    display: flex;
    gap: 8px;
}

.event-sort-select {
    padding: 10px 24px 10px 12px;
    border: 1px solid #d4d4d4 ;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #666666;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('/static/jointips/resources/images/layout/down_ico.png');
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 16px;
}

/* ==========================================
   Event Grid List
   ========================================== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.event-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
}

.event-card:hover {
    border: 1px solid var(--primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.event-card .event-img {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.event-card .event-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.event-card:hover .event-poster {
    transform: scale(1.04);
}

.event-card .event-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
    z-index: 5;
    background-color: var(--primary);
}

/* ==========================================
   Color variations for poster badges
   ========================================== */
.badge-purple { background-color: #8b5cf6; }
.badge-red { background-color: #ef4444; }
.badge-blue { background-color: #3b82f6; }
.badge-dark { background-color: #1f2937; }
.badge-yellow { background-color: #f59e0b; }

.event-card .event-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card .event-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 16px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card:hover .event-title {
    color: var(--primary);
}

.event-card-info {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-card-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-muted);
}

.event-card-info li svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}

.event-card-info li img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.event-card-btn {
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    border: none;
    background-color: #edf5f3;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.event-card-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}




/* ==========================================
   Event Calendar View
   ========================================== */
.calendar-wrap {
    border: 1px solid #eee;
    border-radius: 16px;
    background-color: #fff;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.calendar-nav-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e1e1e1;
    border-radius: 50%;
    background-color: #fff;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.calendar-nav-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-nav-arrow img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid #eee;
    text-align: center;
}

.calendar-table th:first-child,
.calendar-table td:first-child .calendar-date-num {
    color: #ef4444; /* Sunday */
}

.calendar-table th:last-child,
.calendar-table td:last-child .calendar-date-num {
    color: #3b82f6; /* Saturday */
}

.calendar-table td {
    height: 120px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 10px;
    vertical-align: top;
}

.calendar-table tr td:last-child {
    border-right: none;
}

.calendar-date-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: inline-block;
    margin-bottom: 6px;
}

.calendar-day-event {
    display: block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    line-height: 1.3;
}

.calendar-table td.today {
    background-color: #edf5f3;
}

.calendar-table td.today .calendar-date-num {
    color: var(--primary);
}

.day-event-blue {
    background-color: #fff;
    color: #0891b2;
}

.day-event-red {
    background-color: #fff;
    color: var(--primary);
}

/* ==========================================
   Event List below Calendar
   ========================================== */
.calendar-list-section {
    margin-top: 50px;
}

.calendar-list-header {
    margin-bottom: 20px;
}

.calendar-list-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-list-container {
    border-top: 2px solid var(--text-main);
    border-bottom: 1px solid #eee;
}

.calendar-list-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    text-decoration: none;
}

.calendar-list-row:last-child {
    border-bottom: none;
}

.calendar-list-row:hover {
    background-color: #fcfdfe;
}

.calendar-row-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-row-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    text-align: center;
}

.badge-blue {
    background-color: var(--secondary);
}

.badge-red {
    background-color: var(--primary);
}

.calendar-row-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    background-color: #f3f4f6;
    color: #6b7280;
    text-align: center;
}

.calendar-row-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
    line-height: 1.45;
    word-break: keep-all;
}

.calendar-list-row:hover .calendar-row-title {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================
   Event Detail Section
   ========================================== */
.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    padding-bottom: 16px;
    margin-bottom: 4px;
    width: 100%;
    border-bottom: 1px solid #eaeaea;
    transition: color 0.2s ease;
}

.btn-back-list:hover {
    color: var(--primary);
}

.btn-back-list .arrow {
    font-size: 20px;
    display: inline-block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn-back-list:hover .arrow {
    transform: translateX(-4px);
}

.event-detail-wrap {
    background-color: #fff;
    padding: 0;
}

.post-detail-meta.event-meta {
    justify-content: flex-end;
    margin-bottom: 24px;
    padding-top:10px;
}

.btn-edit-detail {
    padding: 6px 12px;
    border: 1px solid #e1e1e1;
    background-color: #fff;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-detail:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
}

.event-detail-poster {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.event-detail-poster img {
    width: 100%;
    height: auto;
    max-height: 506px;
    /* min-height: 506px; */
    display: block;
    object-fit: cover;
}

.event-detail-info {
    display: flex;
    flex-direction: column;
}

.detail-badge-wrap {
    margin-bottom: 12px;
}

.detail-badge {
    display: inline-flex;
    padding: 5px 12px;
    background-color: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
}

.detail-badge.badge-networking {
    background-color: var(--primary);
    color: #fff;
}

.event-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 14px;
    word-break: keep-all;
}

.event-detail-table {
    padding: 16px 0;
    margin-bottom: 30px;
}

.event-detail-row {
    display: flex;
    padding: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.event-detail-label {
    width: 120px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.event-detail-val {
    color: var(--text-main);
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-google-cal {
    padding: 4px 8px;
    font-size: 12px;
    color: #666;
    border: 1px solid #d4d4d4;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-google-cal:hover {
    background-color: #eee;
    color: #333;
}

.event-detail-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.btn-participate-program {
    padding: 16px 48px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-participate-program:hover {
    background-color: #014942;
}

.event-detail-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

.event-detail-tabs-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.event-detail-body {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    min-height: 200px;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    border: 1px solid #eee;
}

@media (max-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-detail-poster {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
    
    .event-board-header {
        padding: 12px 14px;
    }
    
    .board-header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .event-tabs {
        width: 100%;
        display: flex;
    }
    
    .event-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
    }
    
    .btn-create-program {
        justify-content: center;
        width: 100%;
    }
    
    .board-header-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .news-top-panel{
        flex-direction: column;
        gap: 16px;
    }
    
    .news-banner-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-filters {
        gap: 8px;
    }
    
    .tab-filter-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .event-sorts {
        width: 100%;
    }
    
    .event-sort-select {
        flex: 1;
    }
    
    .calendar-wrap {
        padding: 15px 10px;
        margin-top: 20px;
        border-radius: 12px;
    }

    .calendar-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .calendar-table td {
        height: 75px;
        padding: 6px;
    }

    .calendar-date-num {
        margin-bottom: 2px;
        font-size: 13px;
    }

    .calendar-day-event {
        display: block;
        font-size: 0 !important;
        height: 8px;
        margin-top: 4px;
        padding: 0 !important;
        border-radius: 4px;
        border: none !important;
        box-shadow: none !important;
    }

    .calendar-day-event .dot {
        display: none !important;
    }

    .day-event-blue {
       display: none;
    }

    .day-event-red {
        display: none;
    }
}


/* ==========================================
   Join Completion Page
   ========================================== */
.join-complete-wrap {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    margin-top: 40px;
}

.join-complete-icon {
    width: 90px;
    height: 90px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 30px;
}

.join-complete-icon svg {
    width: 44px;
    height: 44px;
}

.join-complete-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.join-complete-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}



/* ==========================================
   Notice Detail Styles
   ========================================== */
.notice-detail-header {
    border-top: 2px solid var(--primary);
    padding-top: 24px;
    margin-top: 10px;
}

.notice-detail-header .notice-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin-bottom: 16px;
}

.attachment-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    margin-top: 16px;
}

.attachment-box .lbl {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.attachment-box .file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;
}

.attachment-box .file-link:hover {
    text-decoration: underline;
}

.attachment-box .file-icon {
    width: 16px;
    height: 16px;
    fill: #ef4444; /* red icon for PDF */
}

.notice-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    padding: 40px 10px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
    min-height: 160px;
}

.notice-prev-next {
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.notice-prev-next .row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}

.notice-prev-next .row:last-child {
    border-bottom: none;
}

.notice-prev-next .lbl {
    width: 100px;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

.notice-prev-next .link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.notice-prev-next .link:hover {
    color: var(--primary);
}

.notice-prev-next .no-link {
    color: #999;
}

.notice-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-list-pink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 46px;
    background-color: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px; /* Changed from 20px to 4px to make it rectangular */
    transition: background-color 0.2s;
}

.btn-list-pink:hover {
    background-color: #c0144d; /* Hover effect */
}

/* ==========================================
   News List Styles
   ========================================== */
.news-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 30px;
}

.news-banner-card {
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

.news-list-container {
    border-top: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.news-list-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 22px 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background-color 0.2s;
}

.news-list-row:hover {
    background-color: #fcfdfe;
}

.news-row-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-row-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    color: var(--primary);
    width: fit-content;
    line-height: 1;
}

.news-row-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
}

.news-list-row:hover .news-row-title {
    color: var(--primary);
}

.news-row-date {
    font-size: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* ==========================================
   Community Board Tabs & Layout Style
   ========================================== */

/* ==========================================
   Top Tab Navigation
   ========================================== */
.board-tabs {
    background-color: #F6F6F6;
    padding: 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 2px;
    margin-bottom: 35px;
}

.board-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: #555555;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.board-tab-btn svg,
.board-tab-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.board-tab-btn svg {
    fill: currentColor;
    transition: fill 0.3s;
}

.board-tab-btn:hover {
    color: #111;
}

.board-tab-btn.active {
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   Sub-title & Header panel
   ========================================== */
.board-header-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.board-header-title-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.board-header-title-box .sub-title {
    margin-bottom: 0;
}

.board-header-title-box .desc {
    font-size: 15px;
    color: var(--text-muted);
}

.btn-write-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    height: 40px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-write-post img,
.btn-write-post svg {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}


/* ==========================================
   Split Layout
   ========================================== */
.board-split-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.board-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================
   Card Style
   ========================================== */
.board-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.board-card:hover {
    border: 1px solid var(--primary);
}

.board-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.board-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1;
}

.card-badge.badge-info {
    background-color: #E6F1FF;;
    color: #3D8EFF;
}

.card-badge.badge-collab {
    background-color: #FFF1E4;
    color: #EF8525;
}

.card-badge.badge-promo {
    background-color: #FFE6E7;
    color: #D04248;
}



.card-badge.badge-qna {
    background-color: #F1E8FF;
    color: #8741F9;
}

.board-card-author {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

.board-card-date {
    font-size: 13px;
    color: #999999;
}

.board-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.board-card:hover .board-card-title {
    color: var(--primary);
}

.board-card-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    font-size: 13px;
    color: #999999;
}

.board-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.board-card-stat svg,
.board-card-stat img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.board-card-stat svg {
    fill: currentColor;
}

/* ==========================================
   Sidebar Styling
   ========================================== */
.board-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}
.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid var(--light);
    border-radius: 4px;
    flex-shrink: 0;
} 

.trending-item:nth-child(-n+3) .trending-rank {
    background-color: var(--primary);
    color: #fff;
    border: none;
}

.trending-title {
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.trending-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.widget-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.category-tag-box span:first-child::after {
    content: ' /';
}

.category-tag-box.cat-info {
    background-color: #E6F1FF;
    color: #3D8EFF;
}

.category-tag-box.cat-collab {
    background-color: #FFF1E4;
    color: #EF8525;
}

.category-tag-box.cat-promo {
    background-color: #FFE6E7;
    color: #D04248;
}

.category-tag-box.cat-qna {
    background-color: #F1E8FF;
    color: #8741F9;
}

.category-tag-box.cat-green {
    background-color: #E2F7EE;
    color: #00B06B;
}

.post-detail-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.post-detail-header {
    margin-bottom: 20px;
}

.post-detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.post-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888888;
}

.post-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0 4px;
}

.post-detail-meta .meta-lbl {
    display: inline-flex;
    align-items: center;
}

.post-detail-meta .meta-lbl::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: #D9D9D9;
    margin: 0 4px;
}

.post-detail-meta img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.post-detail-body {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.5;
    padding: 30px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.post-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.btn-action-gray {
    padding: 8px 16px;
    font-size: 13px;
    color: #666666;
    background-color: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-gray:hover {
    border-color: #888888;
    color: #333333;
}

.btn-action-red {
    padding: 8px 16px;
    font-size: 13px;
    color: #ffffff;
    background-color: #ef4444;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-action-red:hover {
    background-color: #dc2626;
}

/* ==========================================
   Q&A Answer Card
   ========================================== */
.qna-answer-card {
    background-color: #F8F9FA;
    border: 1px solid #eaeaea;
    border-left: 4px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
    padding: 26px 30px;
    margin-top: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.qna-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eaeaea;
}

.qna-answer-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.qna-answer-author svg {
    flex-shrink: 0;
}

.qna-answer-date {
    font-size: 13px;
    color: #888888;
}

.qna-answer-body {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ==========================================
   Comment Area
   ========================================== */
.comments-container {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.comments-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.comments-title-row svg,
.comments-title-row img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.comments-title-row svg {
    fill: var(--primary);
}

.comment-input-box {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.comment-input-box textarea {
    flex-grow: 1;
    height: 60px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    outline: none;
    resize: none;
}

.btn-comment-submit {
    width: 80px;
    height: 60px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-comment-submit:hover {
    background-color: #c0144d;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item.reply-item {
    padding-left: 48px;
    position: relative;
}

.comment-item.reply-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 12px;
    height: 16px;
    border-left: 2px solid #eaeaea;
    border-bottom: 2px solid #eaeaea;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    background-image: url('/static/jointips/resources/images/layout/user_ico.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    flex-shrink: 0;
}

.comment-content-box {
    flex-grow: 1;
}

.comment-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.comment-date {
    font-size: 12px;
    color: #999999;
}

.comment-body {
    font-size: 14px;
    color: #444444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.btn-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    background-color: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comment-action:hover {
    background-color: #f9f9f9;
    border-color: #bbbbbb;
    color: #333333;
}

.btn-comment-action svg,
.btn-comment-action img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-comment-action svg {
    fill: currentColor;
}


/* ==========================================
   Community Message Box Styles
   ========================================== */

.message-box-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 30px;
}

.message-sidebar {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
}

.message-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #444444;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.message-menu-item:last-child {
    border-bottom: none;
}

.message-menu-item:hover {
    background-color: #fcfdfe;
    color: var(--primary);
}

.message-menu-item.active {
    background-color: #1f2937;
    color: #ffffff;
}

.message-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--primary);
    border-radius: 10px;
    line-height: 1;
}

.message-list-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
}

.message-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background-color 0.2s;
    background-color: #ffffff;
}

.message-list-item:last-child {
    border-bottom: none;
}

.message-list-item:hover {
    background-color: #fcfdfe;
}

.message-list-item.unread {
    background-color: #F8F9FA;
}

.message-list-item.unread:hover {
    background-color: #f3f4f6;
}

.message-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.message-status-dot {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    z-index: 2;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    background-image: url('../img/user_ico.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

.message-content-col {
    flex-grow: 1;
    min-width: 0;
}

.message-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-sender {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.message-date {
    font-size: 14px;
    color: #999999;
}

.message-preview {
    font-size: 16px;
    color: #555555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   Message Detail Styling
   ========================================== */
.message-detail-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    margin-top:20px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.message-detail-header {
    margin-bottom: 24px;
}

.message-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.message-detail-time {
    font-size: 13px;
    color: #888888;
    margin-bottom: 16px;
}

.message-participants {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #555555;
}

.message-participants span strong {
    color: #111111;
    display: inline-flex;
    align-items: center;
}

.message-participants span strong::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: #D9D9D9;
    margin: 0 8px;
}

.message-detail-body {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    padding: 30px 0;
    border-top: 1px solid #f3f4f6;
    min-height: 120px;
}

.message-detail-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

/* ==========================================
   Message Write Form Styling
   ========================================== */
.message-write-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.message-form-group {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    margin-bottom: 20px;
}

.message-form-group.align-start {
    align-items: start;
}

.message-form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.message-form-group label .required {
    color: var(--primary);
    margin-left: 2px;
}

.message-form-control {
    width: 100%;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.message-form-control:focus {
    border-color: var(--primary);
}

.message-form-control.textarea {
    height: 200px;
    resize: none;
    font-family: inherit;
}

.message-notice-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f9f9fb;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 24px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #666666;
}

.message-notice-box svg {
    width: 16px;
    height: 16px;
    fill: #888888;
    flex-shrink: 0;
}

.message-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.message-form-actions .btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    background-color: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.message-form-actions .btn-cancel:hover {
    background-color: #f9f9f9;
    border-color: #bbbbbb;
    color: #333333;
}

.message-form-actions .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.message-form-actions .btn-submit:hover {
    background-color: #c0144d;
    border-color: #c0144d;
}

@media (max-width: 768px) {


    .message-box-layout {
        grid-template-columns: 1fr;
    }
    .message-form-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* ==========================================
       Board Tabs Mobile Style
       ========================================== */
    .board-tabs {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 24px;
    }
    .board-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 6px;
        font-size: 14px;
        gap: 4px;
    }
    .board-tab-btn svg,
    .board-tab-btn img {
        width: 16px;
        height: 16px;
    }

    /* ==========================================
       Board Header Mobile Style
       ========================================== */
    .board-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 20px;
    }
    .board-header-row .btn-write-post {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* ==========================================
       Board Filters Mobile Style
       ========================================== */
    .tab-filter-btn {
        padding: 8px 12px;
        font-size: 14px;
    }



    /* ==========================================
       Message List Mobile Style
       ========================================== */
    .message-list-item {
        padding: 16px 12px;
        gap: 10px;
    }
    .message-meta-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .message-date {
        font-size: 12px;
    }
    .message-preview {
        font-size: 14px;
    }

    /* ==========================================
       Post Detail Mobile Styles
       ========================================== */
    .post-detail-card {
        padding: 24px 20px;
    }
    .post-detail-title {
        font-size: 20px;
    }
    .post-detail-body {
        padding: 24px 0;
        font-size: 15px;
    }
    .post-detail-meta {
        font-size: 12px;
        gap: 8px;
    }

    /* ==========================================
       Notice Detail Mobile Styles
       ========================================== */
    .notice-detail-header {
        padding-top: 16px;
    }
    .notice-detail-header .notice-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .attachment-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
        margin-bottom: 24px;
        margin-top: 12px;
    }
    .attachment-box .lbl {
        font-size: 13px;
    }
    .attachment-box .file-link {
        font-size: 13px;
        word-break: break-all;
    }
    .notice-content {
        padding: 24px 0;
        font-size: 15px;
        margin-bottom: 24px;
        min-height: auto;
    }
    .notice-prev-next .row {
        padding: 12px 10px;
        align-items: flex-start;
    }
    .notice-prev-next .lbl {
        width: 65px;
        font-size: 13px;
    }
    .notice-prev-next .link,
    .notice-prev-next .no-link {
        font-size: 14px;
        flex: 1;
        min-width: 0;
        word-break: break-all;
    }
    .notice-actions {
        margin-top: 24px;
    }
    .qna-answer-card {
        padding: 20px;
        margin-top: 24px;
    }
    .qna-answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-bottom: 10px;
    }
    .qna-answer-author {
        font-size: 15px;
    }
    .qna-answer-date {
        align-self: flex-end;
        font-size: 12px;
    }
    .qna-answer-body {
        font-size: 14px;
    }
}

/* ==========================================
   FAQ Accordion Styles
   ========================================== */
.faq-section {
    margin-bottom: 60px;
}

.faq-list {
    border-top: 2px solid var(--text-main);
    border-bottom: 1px solid #eaeaea;
}

.faq-item {
    border-bottom: 1px solid #eaeaea;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #fbfbfc;
}

.faq-q-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-q-text span {
    color: var(--primary);
    font-weight: 700;
}

.faq-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #888;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
}

.faq-answer-inner {
    padding: 24px 30px;
    display: flex;
    gap: 12px;
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

.faq-a-prefix {
    color: var(--primary);
    font-weight: 700;
}

.faq-a-content {
    flex: 1;
}

/* ==========================================
   Q&A Badges
   ========================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:6px 8px;
    font-size: 14px;
    border-radius: 4px;
    color: #ffffff;
    line-height: 1;
}

.badge-status.waiting {
    background-color: #ececec;
    color: #313131;
}

.badge-status.completed {
    background-color: #edf5f3;
    color: var(--primary);
}

/* ==========================================
   Q&A Modal Overlay & Form Styles
   ========================================== */
.qna-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qna-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.qna-modal-card {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 30px;
    box-sizing: border-box;
}

.qna-modal-overlay.open .qna-modal-card {
    transform: translateY(0);
}

.qna-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.qna-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-modal-close:hover {
    color: var(--text-main);
}

.qna-modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.qna-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.qna-form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.qna-form-group label .required {
    color: var(--primary);
    margin-left: 2px;
}

.qna-form-control {
    width: 100%;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.qna-form-control:focus {
    border-color: var(--primary);
}

select.qna-form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('/static/jointips/resources/images/layout/down_ico.png');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.qna-form-control.textarea {
    height: 120px;
    resize: none;
    font-family: inherit;
}

.qna-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qna-radio-group {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 6px 0;
}

.qna-radio-group .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #444444;
    cursor: pointer;
}

.qna-radio-group .radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    outline: none;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.qna-radio-group .radio-label input[type="radio"]:checked {
    border-color: var(--primary);
    background-color: #ffffff;
}

.qna-radio-group .radio-label input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
}

.qna-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.btn-qna-cancel {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    background-color: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qna-submit {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.qna-write-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .qna-modal-card {
        max-width: 95%;
        padding: 20px;
        margin: 20px;
    }
    .qna-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================
   Sinmungo Page Styles
   ========================================== */
.sinmungo-info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}
.sinmungo-info-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.sinmungo-info-box p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.sinmungo-channel-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.sinmungo-channel-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sinmungo-channel-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.sinmungo-channel-card .tag {
    display: inline-flex;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.sinmungo-channel-card .tag.tag-general { background-color: #edf5f3; color: #00956E; }
.sinmungo-channel-card .tag.tag-corruption { background-color: #FFEBEB; color: #E33838; }
.sinmungo-channel-card .tag.tag-unfair { background-color: #FBF6E8; color: #E48024; }
.sinmungo-channel-card .tag.tag-unfair-act { background-color: #DEEBFE; color: #2E73D2; }

.sinmungo-channel-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -2%;
}
.sinmungo-channel-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
    width: 100%;
    border-bottom: 1px solid var(--light);
    padding-bottom: 8px;
}
.sinmungo-channel-card .btn-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.sinmungo-channel-card .btn-link:hover {
    color: var(--primary);
}

/* ==========================================
   Steps section
   ========================================== */
.sinmungo-step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
}
.sinmungo-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 10px;
    word-break: keep-all;
}
.sinmungo-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10px;
    width: 1px;
    height: 80%;
    background-color: #eaeaea;
}
.sinmungo-step-item .sinmungo-step-num {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    background-color: #f1f5f9;
    border-radius: 20px;
    padding: 4px 12px;
}
.sinmungo-step-item .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.sinmungo-step-item h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.sinmungo-step-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   Usage cards
   ========================================== */
.sinmungo-usage-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.sinmungo-usage-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.sinmungo-usage-card .icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #edf5f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.sinmungo-usage-card .icon-wrap svg,
.sinmungo-usage-card .icon-wrap img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.sinmungo-usage-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.sinmungo-usage-card .lbl {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 6px;
}
.sinmungo-usage-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}
.sinmungo-usage-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.sinmungo-usage-card .btn-action {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 14px;
    color: #ffffff;
    background-color: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-top: auto;
    align-self: flex-start;
}
.sinmungo-usage-card .btn-action:hover {
    background-color: #014249;
}

/* ==========================================
   Callout banner
   ========================================== */
.sinmungo-qna-callout {
    background-color: #f9f9fb;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}
.sinmungo-qna-callout .text-wrap {
    flex-grow: 1;
}
.sinmungo-qna-callout h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.sinmungo-qna-callout p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.sinmungo-qna-callout .btn-qna-go {
    background-color: var(--normal);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.sinmungo-qna-callout .btn-qna-go:hover {
    background-color: #111827;
}

/* ==========================================
   Notes section
   ========================================== */
.sinmungo-notes {
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
    margin-bottom: 50px;
}
.sinmungo-notes h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}
.sinmungo-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sinmungo-notes ul li {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    padding-left: 14px;
}
.sinmungo-notes ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #999999;
}

/* ==========================================
   Redirect warning box inside modal
   ========================================== */
#redirectTextContent{
    font-size: 16px;
    color: var(--text-main);
}

.redirect-warning-box {
    background-color: #FFF0F2;
    border: 1px solid #FFD1D7;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}
.redirect-warning-box svg {
    color: #D9384A;
    flex-shrink: 0;
    margin-top: 2px;
}
.redirect-warning-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .sinmungo-channel-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .sinmungo-step-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .sinmungo-step-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .sinmungo-channel-list {
        grid-template-columns: 1fr;
    }
    .sinmungo-step-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sinmungo-usage-list {
        grid-template-columns: 1fr;
    }
    .sinmungo-usage-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .sinmungo-qna-callout {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .sinmungo-qna-callout .btn-qna-go {
        text-align: center;
    }
}

/* ==========================================
   Login Page Styles
   ========================================== */
.login-body {
    background-color: #fcfcfc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.login-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    box-sizing: border-box;
}
.login-logo {
    margin-bottom: 30px;
    text-align: center;
}
.login-logo img {
    height: 80px;
    object-fit: contain;
}
.login-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 50px 40px;
    box-sizing: border-box;
}
.login-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
}
.login-input-group {
    margin-bottom: 16px;
}
.login-input {
    width: 100%;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.login-input::placeholder {
    color: #b3b3b3;
}
.login-input:focus {
    border-color: var(--primary);
}
.login-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
}
.save-id-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.save-id-lbl input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    outline: none;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.save-id-lbl input[type="checkbox"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}
.save-id-lbl input[type="checkbox"]:checked::after {
    content: '✓';
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}
.find-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.find-links a {
    color: #666666;
    text-decoration: none;
}
.find-links a:hover {
    color: var(--primary);
}
.find-links .divider {
    color: #eaeaea;
}
.btn-login-submit {
    width: 100%;
    height: 46px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.login-join-link {
    text-align: center;
    font-size: 14px;
    color: #666666;
}
.login-join-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.login-join-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-container{
        padding: 50px 10px;
    }

    .login-logo img {
        height: 70px;
    }
}

/* ==========================================
   Q&A / Sinmungo Helper Style
   ========================================== */
.qna-form-helper-text {
    font-size: 13px;
    color: #777777;
    margin-top: 6px;
    line-height: 1.5;
}

.help-block{font-size: 14px;}

/* ==========================================
   File Upload Style
   ========================================== */
.qna-file-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qna-file-upload-desc {
    font-size: 14px;
    color: #666666;
}
.qna-file-upload-input {
    width: 100%;
    max-width: 400px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}

.qna-file-upload-input::-webkit-file-upload-button,
.qna-file-upload-input::file-selector-button {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ccc;
    background: #fafafa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
    margin-right: 10px;
}
.qna-file-upload-input::-webkit-file-upload-button:hover,
.qna-file-upload-input::file-selector-button:hover {
    background: #f1f1f1;
    border-color: #bbb;
}



/* ==========================================
   Reservation System Styling
   ========================================== */

/* ==========================================
   1. Filter Box
   ========================================== */
.res-filter-card {
    background-color: #F8F9FA;;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.res-filter-top {
    margin-bottom: 20px;
}
.res-filter-top .res-filter-group {
    max-width: 216px;
}
@media (max-width: 768px) {
    .res-filter-top .res-filter-group {
        max-width: 100%;
    }
}
.res-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr auto;
    gap: 16px;
    align-items: flex-end;
}
.res-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.res-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}
.res-filter-control {
    height: 44px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    background-color: #fff;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    color:var(--text-muted)
}
select.res-filter-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background-image: url('/static/jointips/resources/images/layout/down_ico.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
    color:var(--text-muted)
}
select.res-filter-control::-ms-expand {
    display: none;
}
.res-right-controls .search-select {
    height: 40px;
    padding: 0 30px 0 16px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('/static/jointips/resources/images/layout/down_ico.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}
.res-right-controls .search-select::-ms-expand {
    display: none;
}
.res-filter-control:focus {
    border-color: var(--primary);
}
.res-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.res-date-range span {
    color: #888;
    flex-shrink: 0;
}
.res-filter-actions {
    display: flex;
    gap: 8px;
}
.btn-res-search {
    height: 44px;
    padding: 0 24px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
}
.btn-res-search:hover {
    background-color: #014249;
}
.btn-res-reset {
    height: 44px;
    padding: 0 20px;
    background-color: #fff;
    color: #666;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-res-reset:hover {
    background-color: #f1f5f9;
}

/* ==========================================
   2. Top actions (Tabs & reservation buttons)
   ========================================== */
.res-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
}
.res-view-tabs {
    display: flex;
    background-color: #f6f6f6;
    padding: 8px;
    border-radius: 6px;
}
.res-view-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #555555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.res-view-tab:hover {
    color: #111;
}
.res-view-tab.active {
    background-color: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.res-view-tab img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.res-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.res-list-info {
    font-size: 14px;
    color: #666;
}
.res-list-info span {
    color: var(--text-main);
    font-weight: 600;
}
.btn-res-apply {
    height: 40px;
    padding: 0 20px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-res-apply:hover {
    background-color: #014249;
}

@media (max-width: 768px) {
    .res-right-controls{
        flex-direction: column;
        align-items: flex-start;

    }
    .res-view-tabs{
        width: 100%;
    }
    .res-view-tab{
        width: 100%;
        justify-content: center;
        
    }
}

/* ==========================================
   3. Status Badge
   ========================================== */
.badge-status.confirm {
    background-color: #F0FDE7;
    color: #449D00;
}
.badge-status.wait {
    background-color: #E6F1FF;
    color: #3b82f6;
}
.badge-status.cancel {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================
   4. Calendar View styling
   ========================================== */
.res-calendar-container {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.res-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid #eaeaea;
}
.btn-cal-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: background-color 0.2s;
}
.btn-cal-nav:hover {
    background-color: #f8f9fa;
}
.cal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-strong);
}
.res-calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}
.res-calendar-grid-header div {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}
.res-calendar-grid-header div:first-child { color: var(--primary); }
.res-calendar-grid-header div:last-child { color: #3b82f6; }

.res-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(110px, auto);
}
.cal-day-cell {
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.2s;
    min-height: 110px;
}
.cal-day-cell:nth-child(7n) {
    border-right: none;
}
.cal-day-cell.other-month {
    background-color: #fbfcfd;
}
.cal-day-cell.other-month .day-number {
    color: #ccc;
}
.cal-day-cell:hover {
    background-color: #edf5f3;
}
.cal-day-cell.selected {
    background-color: #edf5f3;
}
.day-number {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}
.cal-day-cell:nth-child(7n+1) .day-number { color: var(--primary); }
.cal-day-cell:nth-child(7n) .day-number { color: #3b82f6; }

.cal-day-cell.other-month:nth-child(7n+1) .day-number { color: #fda4af; }
.cal-day-cell.other-month:nth-child(7n) .day-number { color: #93c5fd; }

.cal-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    align-items: flex-start;
}
.cal-event-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    padding: 2px 6px;
    border-radius: 12px;
    background-color: #f1f5f9;
}
.cal-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3b82f6;
}
.cal-event-dot.full {
    background-color: var(--primary);
}
.cal-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
    color: #666;
    background-color: #fcfcfc;
}
.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cal-legend-dot.avail {
    background-color: #3b82f6;
}
.cal-legend-dot.empty {
    background-color: #9ca3af;
}
.cal-legend-dot.full {
    background-color: var(--primary);
}

/* ==========================================
   5. Daily Schedule Timeline Under Calendar
   ========================================== */
.daily-schedule-section {
    margin-top: 40px;
}
.daily-schedule-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-strong);
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 12px;
}
.timeline-container {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.timeline-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid #eaeaea;
    border-radius: 6px;
}
.timeline-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    table-layout: fixed;
}
.timeline-table th, .timeline-table td {
    padding: 12px;
    border: 1px solid #eaeaea;
    font-size: 14px;
    text-align: center;
}
.timeline-table th {
    background-color: #f8f9fa;
    color: var(--text-muted);
}
.timeline-space-name {
    width: 140px;
    font-weight: 600;
    color: var(--text-main);
    background-color: #fcfcfc;
}
.timeline-time-col {
    position: relative;
    padding: 0 !important;
    height: 48px;
    background-color: #fcfcfc;
}
.timeline-time-grid {
    display: flex;
    width: 100%;
    height: 100%;
}
.timeline-grid-cell {
    flex: 1;
    border-right: 1px solid #eaeaea;
    height: 100%;
}
.timeline-grid-cell:last-child {
    border-right: none;
}
.timeline-bar-wrap {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    right: 0;
}
.timeline-reserved-bar {
    position: absolute;
    height: 100%;
    background-color: #edf5f3;
    border: 1px solid var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
}

/* ==========================================
   6. Reservation Write (Form) styling
   ========================================== */
.res-rules-box {
    border-radius: 8px;
    padding: 24px;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}
.res-rules-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.res-rules-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.res-rules-box li {
    font-size: 14px;
    line-height: 1.8;
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}
.res-rules-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ==========================================
   7. Time Slot Picker in reservation form
   ========================================== */
.res-time-select-area {
    padding: 24px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    width: 100%;
}
.res-time-placeholder {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}
.res-time-picker-wrap {
    display: none; /* Shown dynamically via JS */
}
.res-time-picker-wrap.active {
    display: block;
}
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.time-slot-btn {
    height: 44px;
    border: 1px solid #d4d4d4;
    background-color: #fff;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.time-slot-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #edf5f3;
}
.time-slot-btn.selected {
    background-color: var(--primary);
    color: #fff !important;
    border-color: var(--primary) !important;
}
.time-slot-btn:disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    text-decoration: line-through;
}
.time-picker-legend {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}
.time-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.time-legend-box {
    width: 16px;
    height: 16px;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
}
.time-legend-box.avail { background-color: #fff; }
.time-legend-box.sel { background-color: var(--primary); border-color: var(--primary); }
.time-legend-box.unavail { background-color: #f1f5f9; border-color: #e2e8f0; }

.time-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    border-top: 1px solid #eaeaea;
    padding-top: 16px;
}
.time-summary #selectedHours, #remainingHours {
    color: var(--primary);
}
.time-summary .summary-item {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.time-summary .summary-item:first-child {
    padding-right: 12px;
}
.time-summary .summary-item:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: var(--light);
}

@media (max-width: 1200px) {
    .res-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .res-filter-grid .res-filter-group:nth-child(3) {
        grid-column: span 2;
    }
    .res-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
    .time-slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .res-filter-grid {
        grid-template-columns: 1fr;
    }
    .res-filter-grid .res-filter-group:nth-child(3) {
        grid-column: span 1;
    }
    .res-filter-actions {
        grid-column: span 1;
        width: 100%;
        justify-content: flex-end;
    }
    .time-slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cal-day-cell {
        min-height: 80px;
    }
    .cal-events {
        display: flex;
        margin-top: 4px;
        width: 100%;
        align-items: center;
    }
    .cal-event-badge {
        font-size: 9px;
        padding: 1px 3px;
        gap: 3px;
        width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cal-event-dot {
        width: 4px;
        height: 4px;
    }
}



/* ==========================================
   Reservation Form Custom Layout (town_reservation_write.html)
   ========================================== */
#reservationForm .form-table {
    border-top: 2px solid var(--text-main);
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
    background-color: #fff;
}

#reservationForm .res-time-select-area {
    width: 100%;
}

#reservationForm input[type="date"] {
    max-width: 300px; /* Keep date picker a reasonable width */
}

/* ==========================================
   Reservation Confirm Modal Custom Styles
   ========================================== */
#resConfirmModal .confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

#resConfirmModal .confirm-table tr {
    border-bottom: 1px solid #eaeaea;
}

#resConfirmModal .confirm-table th {
    text-align: left;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

#resConfirmModal .confirm-table td {
    padding: 14px 0;
    font-size: 15px;
    color: #111;
}

#resConfirmModal .confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

#resConfirmModal .btn-confirm-submit {
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* ==========================================
   Reservation Calendar Table Override
   ========================================== */
.calendar-table td.cal-day-cell {
    display: table-cell;
    height: 120px;
    min-height: auto;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 12px;
    cursor: pointer;
    vertical-align: top;
    position: relative;
    background-color: #fff;
    transition: background-color 0.2s;
}

.calendar-table td.cal-day-cell:last-child {
    border-right: none;
}

.calendar-table td.cal-day-cell:hover {
    background-color: #edf5f3;
}

.calendar-table td.cal-day-cell.selected {
    background-color: #edf5f3;
}

.calendar-table td.other-month {
    background-color: #fbfcfd;
}

.calendar-table td.other-month .calendar-date-num {
    color: #ccc !important;
}

.calendar-table td.cal-day-cell .cal-events {
    margin-top: 8px;
}

@media (max-width:768px){
    .calendar-table td.cal-day-cell{
        height: 90px;
    }
    #reservationForm input[type="date"]{
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================
   Integrated Search Results Styles
   ========================================== */
.search-result-top-info {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    margin-top: 30px;
    color: #333;
    margin-bottom: 25px;
}
.search-result-top-info span {
    color: var(--primary);
    font-weight: 700;
}
.search-bar-inline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    width: 100%;
}
.search-bar-inline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}
.search-bar-inline-title span {
    color: var(--primary);
}
.search-bar-inline-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
}
.search-bar-inline-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 20px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    outline: none;
}
.search-bar-inline-input::placeholder {
    color: #999;
}
.search-bar-inline-submit {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-bar-inline-submit svg {
    stroke: var(--primary);
}
.search-bar-inline-reset {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}
.search-bar-inline-reset:hover {
    color: #333;
}
.search-result-tabs-container {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
}
.search-result-tab-btn {
    flex: 1;
    text-align: center;
    padding: 24px 12px;
    font-size: 18px;
    color: var(--text-muted);
    background-color: #fff;
    border: none;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-result-tab-btn:last-child {
    border-right: none;
}
.search-result-tab-btn.active,
.search-result-tab-btn:hover {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.search-result-count-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}
.search-result-count-label span {
    color: var(--primary);
}
.search-result-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}
.search-result-item {
    padding: 18px 0;
    border-bottom: 1px solid #eaeaea;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}
.search-result-item-title a {
    color: inherit;
    text-decoration: none;
}
.search-result-item-title a:hover {
    color: var(--primary);
}
.search-result-item-content {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* ==========================================
   Residency Application (town_apply.html) Styles
   ========================================== */
.apply-list {
    border-top: 2px solid var(--primary);
    margin-bottom: 40px;
    margin-top: 20px;
}
.apply-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #eaeaea;
}
.apply-info-box {
    flex: 1;
    min-width: 0;
}
.apply-arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    margin-left: 20px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.apply-arrow-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.apply-arrow-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s ease;
}
.apply-arrow-btn:hover svg {
    transform: translateX(2px);
}

.apply-item-top {
    margin-bottom: 10px;
}
.apply-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
}
.apply-badge.recruiting {
    background-color: #edf5f3;
    color: var(--primary);
}
.apply-badge.closed {
    background-color: #f3f4f6;
    color: var(--text-muted);
}
.apply-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}
.apply-item-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}
.apply-item-title a:hover {
    color: var(--primary);
}
.apply-item-meta {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================
   TIPS TEAM & Partners (team_list.html, partner_list.html) Styles
   ========================================== */
.tabs-container {
    display: flex;
    border-bottom: 2px solid #eef2f6;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background-color: #F5F5F5;
    border: 1px solid #d9d9d9;
}
.tab-btn:hover {
    color: #333;
}
.tab-btn.active {
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: #fff;
    border-bottom-color: #fff;
}

/* 필터 폼 영역 */
.filter-section {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 30px;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.filter-row:last-of-type {
    margin-bottom: 0;
}
.filter-label {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    width: 120px;
    position: relative;
    padding-left: 14px;
    margin-top: 5px;
    flex-shrink: 0;
}
.filter-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
}
.filter-opt {
  height: 32px;
  padding: 0 14px;
  background-color: #f5f6f7;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-alternative);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-opt:hover {
    border-color: #cbd5e1;
    color: #334155;
}
.filter-opt.active {
    color: var(--primary);
    font-weight: 600;
    background: #edf5f3;
    border-color: var(--primary);
}

/* 검색 바 영역 */
.board-search-box.search-bar-center {
    justify-content: center;
    margin: 30px 0 40px;
    gap: 8px;
}
.board-search-box .search-input-wrap input.search-input-wide {
    width: 320px;
}
.board-search-box .btn-search-reset {
    height: 45px;
    padding: 0 16px;
    background-color: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.board-search-box .btn-search-reset:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

/* 카드 그리드 영역 */
.partners-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px 0;
}
.partner-card-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #DDD;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partner-card-item .logo-area {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px;
    background-color: #F8F8F8;
    position: relative;
    margin: 16px 16px 0 16px;
    border-radius: 6px;
}
.partner-card-item .logo-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.partner-card-item .logo-area img:not([src]),
.partner-card-item .logo-area img[src=""] {
    opacity: 0;
}

.partner-card-item .logo-area img[src]:not([src=""]) + ::before,
.partner-card-item .logo-area img:not([src=""]) ~ ::before {
    display: none;
}

.partner-card-item .info-area {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.partner-card-item .name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}
.partner-card-item .category {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
}
.partner-card-item .tags-row {
    display: flex;
    gap: 6px;
    margin-top: auto;
}
.partner-card-item .tag {
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
}
.tag.green {
    background-color: #D4EAEE;
    color: #11404A;
}
.tag.blue {
    background-color: #D4E2EE;
    color: #235B8B;
}
.tag.pink {
    background-color: #edf5f3;
    color: var(--primary);
}
.tag.violet {
    background-color: #E2D4EE;
    color: #4A113D;
}
.tag.yellow {
    background-color: #f8f5d6;
    color: #7D5E06;
}
.tag.orange {
    background-color: #ffeac7;
    color: #a9802d;
}

/* 반응형 대응 */
@media (max-width: 1200px) {
    .partners-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 991px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .filter-label {
        width: auto;
        padding-left: 10px;
    }
}
@media (max-width: 768px) {
    .partners-card-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .search-input-wrap {
        width: 100%;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================
   Custom Stepper & Checklist Styles
   ========================================== */
.stepper-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.stepper-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
}

.proposal-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.proposal-stepper .step-item {
    padding: 12px 24px;
    background-color: #f3f4f6;
    border-radius: 4px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.proposal-stepper .step-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.proposal-stepper .step-arrow {
    width: 16px;
    height: 16px;
    background: url('/static/jointips/resources/images/layout/right_ico.png') no-repeat center;
    background-size: contain;
}

/* Checklist Box */
.checklist-section {
    background-color: #fff;
    margin-bottom: 40px;
}

.checklist-warning-title {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 15px;
}

/* Checklist Table */
.checklist-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.checklist-table th {
    background-color: #fdf8f9;
    color: var(--text-strong);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.checklist-table td {
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    text-align: left;
}

.checklist-table tr:last-child td {
    border-bottom: none;
}

.checklist-table td.num-col {
    text-align: center;
    font-weight: 500;
    color: #4b5563;
}

.checklist-table td .sub-desc {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}

.checklist-agree-box {
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 14px 24px;
    margin-bottom: 35px;
}

/* Form Table Card */
.form-table-card {
    background-color: #fff;
    margin-bottom: 30px;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* File Upload */
.file-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.btn-file-select {
    height: 40px;
    padding: 0 18px;
    background-color: var(--text-muted);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}


/* Zipcode inputs layout */
.zipcode-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-dark {
    height: 44px;
    padding: 0 20px;
    background-color: var(--text-main);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-dark:hover {
    background-color: #1e3a66;
}

.form-info-msg {
    text-align: right;
    font-size: 13px;
    color: #4b5563;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* ==========================================
   Proposal Submission Complete Page
   ========================================== */
#submit-complete-wrap {
    display: none;
    padding: 80px 20px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-align: center;
    margin-top: 20px;
}

.complete-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.submit-complete-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.submit-complete-title .highlight {
    color: var(--primary);
}

.submit-complete-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.submit-complete-desc .emphasis {
    font-weight: 600;
    color: #333;
}

.complete-info-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.complete-info-grid .info-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
}

.complete-info-grid .info-card .info-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.complete-info-grid .info-card .info-val {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.complete-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.complete-actions .btn-home {
    width: 180px;
    height: 50px;
    background-color: var(--primary);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.complete-actions .btn-home:hover {
    background-color: #c0144d;
}

.complete-actions .btn-partners {
    width: 180px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.complete-actions .btn-partners:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

/* ==========================================
   Operator Detail Page Styles
   ========================================== */
/* 목록으로 버튼 */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-back:hover {
    color: #000;
}
.btn-back::before {
    content: '←';
    font-size: 16px;
    font-weight: bold;
}

/* 카드 공통 스타일 */
.detail-card {
    background-color: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 0 9.6px 0 rgba(0, 0, 0, 0.10);
}

.detail-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
}

/* 요약 카드 */
.summary-card {
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 9.6px 0 rgba(0, 0, 0, 0.13);
    flex-wrap: wrap;
}
.summary-card .logo-box {
    width: 160px;
    height: 100px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8F8F8;
    flex-shrink: 0;
    overflow: hidden;
    padding: 10px;
}
.summary-card .logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.summary-card .info-box {
    flex: 1;
}
.summary-card .info-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.summary-card .brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}
.summary-card .brand-desc {
    font-size: 14px;
    color: #666;
    margin-right: 4px;
}
.summary-card .badge {
    background-color: #D4E2EE;
    color: #235B8B;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: -0.3px;
}
.summary-card .btn-group {
    display: flex;
    gap: 10px;
}
.summary-card .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #CCC;
    background-color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.summary-card .btn-action:hover {
    background-color: #f8f9fa;
    border-color: #999;
    color: #111;
}

/* 운영사 소개 카드 */
.intro-card .intro-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    word-break: keep-all;
}

/* 기본정보 & 투자현황 (2단 구성) */
.info-row {
    display: flex;
    gap: 24px;
}
.info-row .info-col {
    flex: 1;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table tr {
    border-bottom: 1px solid #F0F0F0;
}
.info-table tr:last-child {
    border-bottom: none;
}
.info-table th, .info-table td {
    padding: 14px 0;
    font-size: 16px;
    text-align: left;
}
.info-table th {
    font-weight: 500;
    color: var(--text-muted);
    width: 130px;
}
.info-table td {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

/* 주요 투자 분야 카드 */
.invest-sector-card .invest-sector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.invest-sector-card .invest-sector-item {
    background-color: #FFF6F9;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    height: 36px;
    padding: 6px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.invest-sector-card .invest-sector-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* 주요 포트폴리오 카드 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.portfolio-item {
    background-color: #F8F8F8;
    border-radius: 6px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
}
.portfolio-item .port-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}
.portfolio-item .port-desc {
    font-size: 13px;
    color: #666;
}

/* 반응형 대응 */
@media (max-width: 991px) {
    .info-row {
        flex-direction: column;
        gap: 24px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .summary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .summary-card .logo-box {
        width: 140px;
        height: 100px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Startup Detail Page Styles
   ========================================== */
.btn-back.has-svg::before {
    display: none;
}
.btn-back svg {
    transition: transform 0.2s;
}
.btn-back:hover svg {
    transform: translateX(-3px);
}

.summary-card .info-box .comp-name {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}
.summary-card .info-box .comp-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.summary-card .info-box .tags-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.summary-card .info-box .tag {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
}
.tag.blue {
    background-color: #D4E2EE;
    color: #235B8B;
}
.tag.pink {
    background-color: var(--primary-bg, #FFF6F9);
    color: var(--primary);
}
.btn-homepage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-homepage:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

/* 기술 키워드 카드 */
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.keyword-item {
    background-color: var(--primary-bg);
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    height: 36px;
    padding: 6px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* ==========================================
   Integrated Search Results Categorized Styles
   ========================================== */
.search-category-section {
    margin-top: 40px;
    margin-bottom: 20px;
}
.search-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--primary);
    padding: 14px 0;
}
.search-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-category-title h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin: 0;
}
.search-category-title .count {
    font-size: 16px;
    color: var(--text-muted);
}
.search-category-title .count span {
    color: var(--primary);
}
.btn-more-search {
    width: 32px;
    height: 32px;
    border: 1px solid #E5E7EB;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}
.btn-more-search img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}
.btn-more-search:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

/* 회원탈퇴 유의사항 박스 */
.withdraw-caution-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0 34px 0;
    text-align: left;
}
.withdraw-caution-box .caution-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}
.withdraw-caution-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.withdraw-caution-box ul li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
}
.withdraw-caution-box ul li:last-child {
    margin-bottom: 0;
}
.withdraw-caution-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}
.withdraw-caution-box ul li ul {
    margin-top: 6px;
    margin-left: 10px;
}
.withdraw-caution-box ul li ul li {
    font-size: 14px;
    margin-bottom: 4px;
    padding-left: 12px;
}
.withdraw-caution-box ul li ul li::before {
    content: '-';
    left: 0;
}
.withdraw-agree-wrap {
    margin: 24px 0;
}

/* ==========================================
   TIPS Business Introduction Styles
   ========================================== */

.intro-title-row {
    margin-bottom: 30px;
}

.intro-title-row .sub-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 12px;
}

.intro-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-strong, #111);
    line-height: 1.45;
    margin-top:30px;
}

.intro-desc {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 12px 0 30px 0;
}

.intro-banner-wrap {
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 0 100px 0px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.intro-banner-img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-banner-wrap:hover .intro-banner-img {
    transform: scale(1.02);
}

/* 왜 민간 주도인가? Box */
.why-private-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 40px;
}

.why-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.why-icon-box svg {
    width: 26px;
    height: 26px;
}

.why-content-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.why-content-box p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Three Cards Grid */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.about-card-item {
    background-color: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.about-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.card-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-text {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}


/* TIPS Timeline */
.about-history-section {
    margin-top: 60px;
}

.about-timeline {
    position: relative;
    margin: 14px auto 0 auto;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 26px 10px;
    border-bottom: 1px solid #eaeaea;
}

.timeline-year {
    width: 150px;
    flex-shrink: 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.timeline-content {
    flex: 1;
}

.timeline-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main, #111);
    margin: 0 0 6px 0;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-muted, #666);
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .intro-banner-img {
        height: 220px;
    }
    
    .why-private-panel {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    

    /* Responsive Title Styles */
    .intro-title-row {
        margin-bottom: 20px;
    }
    
    .intro-title-row .sub-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .intro-subtitle {
        font-size: 22px;
        line-height: 1.35;
    }


    /* Responsive Timeline Styles */
    .about-timeline {
        margin-top: 30px;
    }
    .timeline-item {
        padding: 18px 0;
    }
    .timeline-year {
        width: 90px;
        font-size: 22px;
    }
    .timeline-content h5 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .timeline-content p {
        font-size: 13px;
    }
}

/* Support Center - Contact Inquiry Styles */
.contact-section {
    margin-top: 40px;
}

.contact-block {
    margin-bottom: 40px;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main, #111);
    margin-bottom: 15px;
}

.contact-box {
    background-color: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f9f9f9;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contact-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main, #333);
}

.contact-divider {
    font-size: 14px;
    color: #E2E8F0;
}

.contact-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong, #111);
}

@media (max-width: 768px) {
    .contact-box {
        padding: 20px;
        gap: 15px;
    }
    .contact-row {
        gap: 10px;
    }
    .contact-label, .contact-number {
        font-size: 14px;
    }
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    .contact-icon img {
        width: 15px;
        height: 15px;
    }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    animation: slideUpFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }


/* ==========================================
   TIPS Support Details & Procedures Page
   ========================================== */

.process-section {
    margin-bottom: 80px;
}

.section-mid-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-strong, #111);
    margin:20px 0;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #111;
}

.section-mid-title.noborder,
.section-mid-title.no-border,
.section-mid-title-noborder {
    border-bottom: none;
    padding-bottom: 0;
}

/* Section 1: Diamond Flowchart */
.process-flow-wrap {
    background-color: transparent;
    border: none;
    padding: 40px 0;
    box-shadow: none;
}

.diamond-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.diamond-row.justify-center {
    justify-content: center;
}

.diamond-item {
    width: 180px;
    height: 180px;
    background-color: #fff;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    border-radius: 24px;
}

.diamond-item:hover {
    transform: rotate(45deg) scale(1.05);
}

.diamond-item.border-pink {
    border: 14px solid transparent;
    background-image: linear-gradient(#fafffe), linear-gradient(135deg, #4eb79f 0%, #78cfba 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}


.diamond-item.border-blue {
    border: 14px solid transparent;
    background-image: linear-gradient(#F4FDFF), linear-gradient(135deg, #DEF5FA 0%, #A7DEE9 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}


.diamond-content {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.diamond-content .num {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.diamond-content .num.pink {
    color: var(--primary);
}

.diamond-content .label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    word-break: keep-all;
    transform: rotateX(0.2deg);
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.flow-arrow svg {
    width: 100%;
    height: 16px;
}

.flow-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    color: #444;
    margin: 20px 0;
}

/* Section 2: Step-by-Step Flow */
.detail-step-flow {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.detail-step-flow.mt-30 {
    margin-top: 50px;
}

/* Horizontal connecting line running behind icons */
.detail-step-flow::before {
    content: '';
    position: absolute;
    left: 80px;
    right: 80px;
    top: 99px; /* Center of 100px icon-box (24px header + 25px margin + 50px) */
    height: 2px;
    background-color: #E2E8F0;
    z-index: 1;
}

.process-step-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.process-step-item {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.process-step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 24px;
    margin-bottom: 25px;
}

.process-step-header .num {
    font-size: 22px;
    font-weight: 600;
}

.process-step-header .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.process-step-icon-box {
    width: 100px;
    height: 100px;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.process-step-icon-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.process-step-divider {
    width: 100%;
    height: 1px;
    background-color: #E2E8F0;
    margin-bottom: 20px;
}

.process-step-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.process-step-details.align-left {
    align-items: flex-start;
    padding-left: 15%;
}

.process-step-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.process-step-row.align-start {
    align-items: flex-start;
    justify-content: flex-start;
}

.process-step-row .text {
    font-size: 16px;
    color: var(--text-main, #333);
    word-break: keep-all;
    text-align: left;
}

.process-step-text-only {
    font-size: 16px;
    color: var(--text-main, #333);
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}

.process-step-text-block {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: var(--text-main, #333);
    line-height: 1.4;
    text-align: left;
}

.process-step-text-block div {
    word-break: keep-all;
}

.process-badge-pink {
    background-color: #edf5f3;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.process-step-flow-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    margin-top: 83px; /* Align with center of the 100px icon-box */
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.process-step-flow-arrow svg {
    width: 14px;
    height: 14px;
}

/* Investment Terms Panel */
.investment-terms-panel {
    display: flex;
    align-items: center;
    background-color: #F8F9FA;
    border-radius: 8px;
    padding: 20px 30px;
    margin-top: 40px;
    gap: 24px;
    border: 1px solid #f1f5f9;
}

.investment-terms-panel .term-title {
    font-size: 16px;
    font-weight: 700;
    color: #DA1C5C;
    margin-right: 16px;
    flex-shrink: 0;
}

.investment-terms-panel .term-items {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.investment-terms-panel .term-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.investment-terms-panel .badge-blue {
    background-color: #59B2C9;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.investment-terms-panel .badge-pink {
    background-color: #DA1C5C;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.investment-terms-panel .term-text {
    font-size: 16px;
    color: var(--text-main, #333);
}

/* Section 3: Apply Info Cards Grid */
.process-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.process-info-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.process-info-card:hover {
    border-color: var(--primary, #da1c5c);
}

.process-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.process-info-icon {
    width: 44px;
    height: 44px;
    background-color: #edf5f3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-info-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.process-info-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.process-info-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.process-info-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-info-body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.process-info-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary, #da1c5c);
}

.process-info-body li:last-child {
    margin-bottom: 0;
}

.process-info-body .process-info-footnote {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
    line-height: 1.5;
    position: relative;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .detail-step-flow {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .detail-step-flow::before {
        display: none;
    }
    
    .process-step-item {
        width: 100%;
        max-width: 320px;
    }
    
    .process-step-flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 1024px) {
    .process-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .investment-terms-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .investment-terms-panel .term-title {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .investment-terms-panel .term-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .investment-terms-panel .term-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .process-flow-wrap {
        padding: 40px 20px;
    }
    
    .diamond-row {
        flex-direction: column;
        gap: 40px;
        margin: 20px 0;
    }
    
    .diamond-item {
        width: 150px;
        height: 150px;
    }
    
    .diamond-item.border-pink {
        border-width: 10px;
    }
    
    .diamond-item.border-blue {
        border-width: 10px;
    }
    
    .diamond-content .num {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .diamond-content .label {
        font-size: 16px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        width: 40px;
        height: 40px;
    }
    
    .flow-plus {
        margin: 20px 0;
    }
    
    .process-step-item {
        width: 100%;
        max-width: 320px;
    }
    
    .process-step-details.align-left {
        padding-left: 20%;
    }
}

/* --- Town Status (Tab 3) Card Styles --- */
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.status-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

.status-card-header {
    padding: 30px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-card.type-1 .status-card-header {
    background-color: #fff0f4;
}

.status-card.type-2 .status-card-header {
    background-color: #EDF1F9;
}

.status-card.type-3 .status-card-header {
    background-color: #F2FBFE;
}

.status-badge {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    display: inline-block;
    color: #fff;
}

.status-card.type-1 .status-badge {
    background-color: #DA1C5C;
}

.status-card.type-2 .status-badge {
    background-color: #5A7ED7;
}

.status-card.type-3 .status-badge {
    background-color: var(--secondary);
}

.status-card .status-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.status-card-body {
    padding: 24px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-card .status-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: keep-all;
}

.status-divider {
    width: 80%;
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 20px;
}

.status-card .status-num {
    font-size: 40px;
    font-weight: 800;
    color: #DA1C5C;
    line-height: 1;
}

/* --- Town Apply Info (Tab 4) Table & Flow --- */
.apply-guide-section {
    margin-top: 20px;
}

.apply-guide-section .apply-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.apply-guide-section .apply-section-desc {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 20px;
}

.apply-info-table {
    width: 100%;
    border-top: 1px solid #dbdbdb;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.apply-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.apply-info-table th {
    width: 180px;
    background-color: #F9FAFB;
    text-align: left;
    padding: 24px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    vertical-align: middle;
}

.apply-info-table td {
    padding: 24px 20px;
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    vertical-align: middle;
}

.apply-process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #edf5f3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.step-icon-box img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.process-step:hover .step-icon-box {
    border-color: #DA1C5C;
}

.step-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-weight: 300;
}

.process-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.apply-submit-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.apply-submit-btn {
    display: inline-block;
    background-color: #DA1C5C;
    color: #fff;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

* ==========================================
   TIPS Town Move-in Application Guide
   ========================================== */
.town-tab-nav {
    display: flex;
    background-color: #F3F4F6;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 40px;
}

.town-tab-btn {
    flex: 1;
    height: 54px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}


.town-tab-btn.active {
    background-color: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 600;
}

.town-tab-content {
    display: none;
    animation: fadeInTab 0.4s ease-out forwards;
}

.town-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.town-intro-desc {
    font-size: 18px;
    line-height: 28px;
    color: var(--alternative);
    margin-bottom: 30px;
    font-weight: 400;
    word-break: keep-all;
}

.town-intro-highlight {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 30px;
    word-break: keep-all;
}

.town-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.town-stat-card {
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.town-stat-card .num {
    font-size: 32px;
    font-weight: 700;
    color: #DA1C5C;
    text-align: left;
    line-height: 1;
}

.town-stat-card .label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    margin-top: 20px;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .town-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .town-tab-nav {
        height: auto;
    }
    .town-tab-btn {
        width: 100%;
        height: 48px;
        font-size: 16px;
        border-bottom: 1px solid #E5E7EB;
    }
    .town-tab-btn:last-child {
        border-bottom: none;
    }

    .town-intro-desc {
        font-size: 14px;
    }
    .town-intro-highlight {
        font-size: 15px;
    }
    .town-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .town-stat-card {
        padding: 20px;
        min-height: 100px;
    }
}

/* --- Town Space (Space Overview) Styles --- */
.town-space-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.town-space-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.town-map-box {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .town-space-top {
        flex-direction: column;
    }
    .town-map-box {
        width: 100%;
    }
    .town-building-table {
        width: 100%;
    }
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .apply-info-table th {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    .apply-info-table th {
        width: 100%;
        display: block;
        padding: 12px 20px;
    }
    .apply-info-table td {
        display: block;
        padding: 12px 20px 24px 20px;
    }
}

/* ==========================================
   Facility Rental Guide Styling
   ========================================== */
.town-tab-content {
    display: none;
}
.town-tab-content.active {
    display: block;
}

/* Bullet list */
.town-bullet-list {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 16px;
    list-style: none;
    padding-left: 0;
}
.town-bullet-list.mb-40 {
    margin-bottom: 40px;
}
.town-bullet-list li {
    margin-bottom: 8px;
    padding-left: 1.15em;
    text-indent: -0.8em;
    margin-left: 10px;
}
.town-bullet-list ul {
    padding-left: 20px;
    margin-top: 5px;
    list-style-type: circle;
}
.town-bullet-list ul li {
    margin-bottom: 4px;
    padding-left: 0.9em;
    text-indent: -0.8em;
    margin-left: 10px;
}
.town-bullet-list li.alert-text {
    color: #ef4444;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 8px;
}
.town-bullet-list li.alert-text-no-margin {
    color: #ef4444;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Alert list */
.town-bullet-list.alert-list {
    margin-top: 15px;
    line-height: 1.7;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
}
.town-bullet-list.alert-list li {
    margin-bottom: 4px;
}

/* Note list / standard list with 14px font */
.town-bullet-list.note-list {
    margin-top: 20px;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 14px;
}
.town-bullet-list.note-list li {
    margin-bottom: 4px;
}

.town-sub-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    margin-top: 30px;
    margin-bottom: 10px;
}

.table-unit {
    display: block;
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Rental Table Matrix Styling */
.apply-info-table.rental-table {
    text-align: center;
    width: 100%;
}
.apply-info-table.rental-table thead tr {
    background-color: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}
.apply-info-table.rental-table th {
    font-weight: 700;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    padding: 15px;
    width: auto; /* override default 180px */
}
.apply-info-table.rental-table thead tr:last-child th {
    padding: 10px;
    font-size: 14px;
}
.apply-info-table.rental-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}
.apply-info-table.rental-table td {
    padding: 15px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}
.apply-info-table.rental-table td:last-child,
.apply-info-table.rental-table th:last-child {
    border-right: none;
}
.apply-info-table.rental-table td span.time-slot {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}
.apply-info-table.rental-table td strong.price-value {
    font-size: 18px;
    color: var(--text-strong);
}
.apply-info-table.rental-table td strong.price-value.highlight {
    color: var(--primary);
}
.apply-info-table.rental-table td strong.price-value.sm {
    font-size: 16px;
}
.apply-info-table.rental-table td.full-provide {
    color: var(--primary);
    font-weight: 600;
}

/* Button & Description Paragraph styling */
.town-tab-content p:not([class]) {
    line-height: 1.5;
    color: var(--text-main);
    font-size: 16px;
}
.town-btn-wrap {
    margin-top: 40px;
    text-align: center;
}
.town-btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.town-btn-primary:hover {
    background-color: #014249;
}

/* Helper Utilities */
.mt-40 {
    margin-top: 40px !important;
}
.mb-15 {
    margin-bottom: 15px !important;
}
.apply-info-table.rental-table td.row-header {
    font-weight: 700;
    background-color: #fafafa;
}

/* Rental Badge Title & Image Box Styles */
.rental-badge-title {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 20px;
}
.rental-img-box {
    margin-bottom: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fcfdfe;
}
.rental-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Side-by-side flex layout for images */
.rental-img-flex-box {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}
.rental-img-flex-box .rental-img-box {
    flex: 1;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .rental-img-flex-box {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================
   TIPS Town Move-in Application Guide
   ========================================== */
.town-tab-nav {
    display: flex;
    background-color: #F3F4F6;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 40px;
}

.town-tab-btn.active {
    background-color: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 600;
}

.town-tab-content {
    display: none;
    animation: fadeInTab 0.4s ease-out forwards;
}

.town-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Sinmungo List Ellipsis styling
   ========================================== */
.sinmungo-section .board-table td.title-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sinmungo-section .board-table td.title-cell a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* IR Form Specific Styling */
.ir-registration-container {
    width: 100%;
    margin-top: 10px;
}

/* Guide Banner */
.ir-guide-banner {
    background: linear-gradient(135deg, rgba(218, 28, 92, 0.05) 0%, rgba(102, 183, 199, 0.05) 100%);
    border: 1px solid rgba(218, 28, 92, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ir-guide-banner .icon {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.ir-guide-banner .desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.ir-guide-banner .desc strong {
    color: var(--text-strong);
}

/* Top Brand Summary Card (Editable) - Deprecated, using Table instead */

/* Premium Logo Uploader in Table */
.ir-logo-upload-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.ir-logo-upload-box:hover {
    border-color: var(--primary);
    background-color: rgba(218, 28, 92, 0.02);
}

.ir-logo-upload-box.has-image {
    border-style: solid;
    border-color: #e5e7eb;
    background-color: #ffffff;
}

.ir-logo-upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.ir-logo-upload-box .upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 8px;
}

.ir-logo-upload-box .upload-placeholder svg {
    width: 24px;
    height: 24px;
    color: #9ca3af;
    transition: color 0.3s;
}

.ir-logo-upload-box:hover .upload-placeholder svg {
    color: var(--primary);
}

.ir-logo-upload-box .upload-placeholder span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

.ir-logo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    padding: 6px;
}

.ir-logo-upload-box .btn-remove-logo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    z-index: 10;
    transition: background 0.2s;
}

.ir-logo-upload-box .btn-remove-logo:hover {
    background: rgba(219, 39, 119, 0.9);
}

/* Unified Info Table Styles */
.ir-info-table-wrap {
    overflow: auto;
    border-top: 1px solid var(--text-main);
    margin-bottom: 20px;
    background-color: #ffffff;
    width: 100%;
}

.ir-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ir-info-table th {
    background-color: #f8f9fa;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    vertical-align: middle;
    padding: 16px 20px;
    border-bottom: 1px solid #e7e7e7;
    width: 150px;
    box-sizing: border-box;
}

.ir-info-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e7e7e7;
    background-color: #ffffff;
    vertical-align: middle;
    box-sizing: border-box;
}

.ir-info-table .ir-input-control {
    width: 100%;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
    background-color: #ffffff;
}

.ir-info-table .ir-input-control:focus {
    border-color: var(--primary);
}

/* Readonly Fields in Table */
.ir-info-table .readonly-field {
    background-color: #f9fafb;
    color: var(--text-muted);
    border: 1px solid #e5e7eb;
    pointer-events: none;
    cursor: default;
}

/* Fields Grid */
.ir-grid-section {
    margin-bottom: 40px;
}

.ir-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ir-field-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-status.readonly {
    background-color: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.badge-status.editable {
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

/* Readonly Content Styles */
.ir-readonly-value {
    font-size: 16px;
    color: #4b5563;
    font-weight: 500;
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.ir-readonly-value.badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

/* Editable Input Styles */
.ir-input-control {
    width: 100%;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
    background-color: #ffffff;
}

.ir-input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 28, 92, 0.08);
}

/* Dynamic Bullet List for Business content */
.bullet-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bullet-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.bullet-icon {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.btn-action-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

/* Business Model Textareas */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.bm-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1.5px solid rgba(218, 28, 92, 0.1);
    padding-bottom: 8px;
    margin: 0;
}

.bm-textarea {
    width: 100%;
    height: 140px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: all 0.3s;
}

.bm-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 28, 92, 0.08);
}

/* Key Achievements (주요성과) Section styling */
.achievement-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.ach-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ach-stat-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ach-stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.ach-stat-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ach-stat-input-group input {
    width: 80px;
    text-align: right;
}

.ach-stat-input-group span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Patent/Thesis Details Layout */
.patent-grid {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.patent-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.patent-field label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Business Achievements Dynamic List */
.ach-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    background-color: #ffffff;
}

.ach-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ach-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.ach-table th.center-align {
    text-align: center;
}

.ach-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
    vertical-align: middle;
}

.ach-table tr:last-child td {
    border-bottom: none;
}

/* Card-like Inputs inside Achievements Table */
.ach-table .award-input-control {
    width: 100%;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.ach-table .award-input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 28, 92, 0.05);
}

.ach-table .award-year {
    text-align: center;
}

/* Delete button cross style */
.ach-table .btn-remove-award {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.ach-table .btn-remove-award:hover {
    color: #ef4444;
    background-color: #fef2f2;
}

/* Product / Service section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

.product-card .btn-delete-card {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card .btn-delete-card:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

.product-flex-box {
    display: flex;
    gap: 20px;
}

.product-img-uploader {
    width: 120px;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    position: relative;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    flex-shrink: 0;
}

.product-img-uploader:hover {
    border-color: var(--primary);
    background-color: rgba(218, 28, 92, 0.01);
}

.product-img-uploader input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.product-img-uploader .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 4px;
}

.product-img-uploader .placeholder svg {
    width: 22px;
    height: 22px;
    color: #9ca3af;
}

.product-img-uploader .placeholder span {
    font-size: 11px;
    color: #6b7280;
}

.product-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.product-info-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-desc-textarea {
    width: 100%;
    height: 64px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-main);
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: all 0.3s;
}

.product-desc-textarea:focus {
    border-color: var(--primary);
}

.btn-add-card-placeholder {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    height: 215px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-add-card-placeholder:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(218, 28, 92, 0.01);
    transform: scale(1.01);
}

.btn-add-card-placeholder svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

/* Modal Summary Table styling */
.confirm-summary-box {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #f9fafb;
}

.confirm-summary-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .bm-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ir-info-table {
        min-width: 750px;
    }
    .ir-logo-upload-box {
        width: 90px;
        height: 90px;
    }
}

/* Refactored Classes from Inline Styles */
.board-header-title-box {
    margin-bottom: 24px;
}
.form-section-title {
    margin-bottom: 15px;
}

/* Logo Upload UI */
.logo-preview-container {
    width: 70px;
    height: 70px;
    background-color: #f1f3f5;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.logo-default-icon {
    width: 32px;
    height: 32px;
}
.logo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.btn-change-photo {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.hidden-file-input {
    display: none;
}

/* Readonly details tag text */
.field-readonly-tag {
    color: #6b7280;
    font-weight: 500;
}

/* Project name readonly */
.ir-project-name-readonly {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0;
    min-height: auto;
    line-height: 1.5;
}

/* Business bullet container spacing */
.bullet-list-container {
    margin-bottom: 10px;
}

/* Achievements input groups */
.ach-stat-input-group {
    justify-content: flex-start;
    gap: 8px;
}
.ach-input-num {
    width: 120px;
}
.ach-input-unit {
    font-weight: 500;
    color: #4b5563;
}

/* Awards table headers */
.awards-header-wrap {
    margin-top: 30px;
    margin-bottom: 15px;
}
#awardsTable {
    border-top: none;
}
#awardsTable thead {
    display: table-header-group;
}
.ir-info-table thead th {
    width: auto;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    background-color: #f8f9fa;
    padding: 14px 12px;
    border-bottom: 1px solid #e7e7e7;
    box-sizing: border-box;
}
#awardsTable td {
    border-bottom: 1px solid #f1f3f5;
    padding: 12px 10px;
}
.award-input-control {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
    background-color: #ffffff;
    box-sizing: border-box;
}
.award-input-control:focus {
    border-color: var(--primary);
}
.award-year {
    text-align: center;
}
.btn-remove-award {
    background: none;
    border: none;
    color: #babcbe;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 1;
}
.btn-remove-award:hover {
    color: #ef4444;
}

/* Product table custom elements */
.product-img-uploader-table {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}
.product-uploader-placeholder {
    padding: 4px;
}
.product-uploader-span {
    font-size: 10px;
    display: block;
    margin-top: 2px;
    color: #6b7280;
}
.product-img-preview-table {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.product-textarea-table {
    width: 100%;
    height: 80px;
    padding: 10px 12px;
    resize: none;
    box-sizing: border-box;
}
.btn-delete-product-row {
    font-size: 20px;
    line-height: 1;
}

/*file-upload-btn*/
#file-upload-button{
    padding: 7px 16px;
    border: 1px solid #ccc;
    background: #fafafa;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================
   Tenant Application (입주신청) Styling
   ========================================== */
.apply-search-box {
    background-color: #F8F9FA;
    border-radius: 8px;
    padding: 24px 30px;
    margin-bottom: 30px;
}

.apply-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.apply-search-form .search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apply-search-form .search-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.town-search-select {
    width: 200px;
    height: 44px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-muted);
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 16px center;
    background-size: 12px auto;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.town-search-select:focus {
    border-color: var(--primary);
}

.date-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.town-search-date {
    width: 170px;
    height: 44px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-muted);
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.town-search-date:focus {
    border-color: var(--primary);
}

.date-separator {
    color: #888;
    font-size: 16px;
    font-weight: 500;
}

.apply-search-form .search-buttons {
    display: flex;
    gap: 8px;
    align-self: flex-end;
}

.btn-search-pink {
    height: 44px;
    padding: 0 28px;
    background-color: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-search-pink:hover {
    background-color: #014249;
}

.btn-search-pink:active {
    transform: scale(0.98);
}

.btn-search-reset {
    height: 44px;
    padding: 0 24px;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-search-reset:hover {
    background-color: #f1f5f9;
    border-color: #bbb;
}

/* Badge Apply Status */
.badge-apply-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
}

.badge-apply-status.ing {
    background-color: #edf5f3;
    color: var(--primary);
}

.badge-apply-status.end {
    background-color: #f3f4f6;
    color: var(--text-muted);
}

/* Selection Counter */
.select-count-info {
    font-size: 14px;
    color: #4B5563;
    font-weight: 500;
    margin-bottom: 12px;
}

.select-count-info span {
    font-weight: 700;
    color: #111827;
}

/* Detail view Table */
.apply-detail-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 40px;
}

.apply-detail-table th {
    width: 140px;
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    padding: 16px 24px;
    font-size: 16px;
    text-align: left;
    vertical-align: middle;
    font-weight: 500;
}

.apply-detail-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    font-size: 16px;
    color: #374151;
    vertical-align: middle;
}

.apply-detail-table td:last-child,
.apply-detail-table th:last-child {
    border-right: none;
}

.apply-detail-table td .file-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.apply-detail-table td .file-item:last-child {
    margin-bottom: 0;
}

.apply-detail-table td .file-item:hover {
    text-decoration: underline;
}

.apply-detail-table td .file-item img {
    width: 18px;
    height: 18px;
}

/* Action buttons in Detail View */
.btn-list-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--text-muted);
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.btn-list-white:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.btn-apply-pink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.btn-apply-pink:hover {
    background-color: #014249;
}

.btn-apply-pink:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .apply-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .town-search-select, 
    .town-search-date {
        width: 100%;
    }
    
    
    .apply-search-form .search-buttons {
        align-self: stretch;
        margin-top: 8px;
    }
    
    .apply-search-form .search-buttons button {
        flex: 1;
    }
    
    .apply-detail-table th, 
    .apply-detail-table td {
        padding: 12px 16px;
    }
}

/* Board Table for Tenant Application */
.town-apply-table th:nth-child(1) { width: 130px; text-align: center; }  
.town-apply-table th:nth-child(2) { text-align: center; }               
.town-apply-table th:nth-child(3) { width: 250px; text-align: center; }  
.town-apply-table th:nth-child(4) { width: 150px; text-align: center; }

.town-apply-table td:nth-child(1) { text-align: center; }
.town-apply-table td:nth-child(2) { text-align: center; }
.town-apply-table td:nth-child(3),
.town-apply-table td.title-cell {
    text-align: left;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}
.town-apply-table td:nth-child(4) { text-align: center; }
.town-apply-table td:nth-child(5) { text-align: center; }

@media (max-width: 768px) {
    .board-table-responsive {
        overflow-x: auto !important;
    }
    .town-apply-table {
        min-width: 800px;
    }
    .board-search-box .search-input-wrap input.search-input-wide {
    width: 100%;
}
}

.file-list{
    display: flex;
    flex-direction: column;
}

/* ==========================================
   TIPS Town Intro Page (town_intro.html) Custom Styles
   ========================================== */

.intro-main-title{
    font-size: 28px;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #111;
}

/* Tab Contents switching toggle */
.town-tab-content {
    display: none;
}

.town-tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease-in-out;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floor Guide Building selector Cards */
.building-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .building-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .building-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-main-title{
        font-size: 20px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .building-card-grid {
        grid-template-columns: 1fr;
    }
}

.building-card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.building-card-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-color: #ccc;
}

.building-card-item.active {
    border: 1.5px solid var(--primary, #DA1C5C);
    background-color: #edf5f3; /* Light pink background matching the image */
    box-shadow: none;
}

.building-card-item .bld-code {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f1f3f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.2s;
}

.building-card-item.active .bld-code {
    background-color: #ffffff; /* White circular badge */
    color: var(--primary, #DA1C5C); /* Pink text inside the white circle */
}

.building-card-item .bld-info {
    min-width: 0;
}

.building-card-item .bld-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.building-card-item.active .bld-name {
    color: #333333; /* Text remains dark gray/black as in the image */
}

.building-card-item .bld-address {
    font-size: 14px;
    color: #777777; /* Slightly darker and bigger address text */
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floor Detail tabs */
.floor-tab-btn {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.floor-tab-btn:hover {
    background-color: #f1f3f5;
    border-color: #bbb;
}

.floor-tab-btn.active {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
    font-weight: 600;
}

/* Tenant list grid */

.status-bld-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
}

.tenant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .tenant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tenant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tenant-grid {
        grid-template-columns: 1fr;
    }
}

.tenant-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 30px 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tenant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.tenant-card .logo-placeholder {
    height: 80px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.tenant-card .company-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tenant-card .logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tenant-card .tenant-info {
    text-align: left;
}

.tenant-card .meta-item {
    font-size: 15px;
    margin: 6px 0;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
}

.tenant-card .meta-item .label {
    color: #888;
    font-weight: 500;
}

.tenant-card .meta-item .val {
    color: var(--text-main);
}

/* Admission Guide Process and booking shortcuts responsiveness */
@media (max-width: 768px) {
    .booking-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .town-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .town-banner-wrap {
        height: 200px !important;
    }
}

/* Floor Guide Layout Drawing Uniform Aspect Ratio & High Contrast Styling */
.layout-drawing-container {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Maintain cohesive rectangular ratio */
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .layout-drawing-container {
        aspect-ratio: 4 / 3; /* More square aspect ratio on tablet/mobile screens */
        padding: 15px;
    }
}

#floorDrawingImg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Prevent scale distortion, preserve drawing scale ratio */
    display: none;
    image-rendering: -webkit-optimize-contrast; /* Sharp rendering for floor plan text */
}

/* Town Intro Page Specific Section Title */
.town-intro-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main); /* Light gray horizontal line */
    padding-bottom: 14px;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: left;
}

/* Section Mid Title Custom styling (Underline header) */
.section-mid-title {
    font-size: 22px;
    font-weight: 600;
    color: #111111;
    border-bottom: 1px solid var((--text-main)); /* Light gray horizontal line */
    padding-bottom: 14px;
    margin-top: 40px;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: left;
}

.town-tab-content > div > .section-mid-title:first-child,
.town-tab-content > .section-mid-title:first-child,
.town-tab-content > div > div > .section-mid-title:first-child {
    margin-top: 0;
}

/* Town Introduction Slogan Description text style */
.town-tab-content .town-intro-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--alternative);
    margin-bottom: 25px;
}

/* Guide details bullet list ( Cyan bullets ) */
.guide-detail-group {
    margin-bottom: 25px;
    padding-left: 20px;
    position: relative;
}

.guide-detail-group h5 {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 8px 0;
    position: relative;
}

.guide-detail-group h5::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary); 
}

.guide-detail-group p {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Flow diagram customization */
.town-guide-section .apply-process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    background-color: #ffffff;
    padding: 16px 0;
    overflow-x: auto;
}

.town-guide-section .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 90px;
}

.town-guide-section .process-step .step-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #edf5f3;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.town-guide-section .process-step .step-icon-box img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.town-guide-section .process-step .step-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
}

.town-guide-section .process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.town-guide-section .process-arrow img {
    max-width: 16px;
    height: auto;
}

/* Mobile & Tablet Stepper Responsiveness - Compact 5-Step Single Screen Fit */
@media (max-width: 992px) {
    .town-guide-section .apply-process-flow,
    .apply-process-flow {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
        padding: 16px 0;
        margin: 20px 0;
        background-color: #ffffff;
        border: none;
        border-radius: 0;
        gap: 2px;
    }

    .town-guide-section .process-step,
    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex: 1 1 0%;
        min-width: 0;
        gap: 6px;
    }

    .town-guide-section .process-step .step-icon-box,
    .process-step .step-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: #edf5f3;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .town-guide-section .process-step .step-icon-box img,
    .process-step .step-icon-box img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .town-guide-section .process-step .step-name,
    .process-step .step-name {
        font-size: 11.5px;
        font-weight: 600;
        color: #111111;
        text-align: center;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.25;
        margin-top: 2px;
    }

    .town-guide-section .process-arrow,
    .process-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        transform: none;
        margin-top: 18px;
        padding: 0 1px;
        flex: 0 0 auto;
    }

    .town-guide-section .process-arrow img,
    .process-arrow img,
    .town-guide-section .process-arrow svg,
    .process-arrow svg {
        width: 10px;
        height: 10px;
        max-width: 10px;
    }
}


/* Booking inline styling */
/* Booking Premium Card Grid */
.booking-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.booking-premium-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.booking-premium-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.booking-premium-card .card-icon-box {
    width: 60px;
    height: 60px;
    background-color: #edf5f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    transition: all 0.3s ease;
}



.booking-premium-card .card-icon-box svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.booking-premium-card h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.booking-premium-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 25px 0;
    min-height: 72px; /* standard height to align buttons */
}

.booking-premium-card .booking-cta-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #F8F9FA;
    color: #313131;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #e1e1e1;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booking-premium-card .booking-cta-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.booking-premium-card:hover .booking-cta-btn {
    background-color: var(--primary, #DA1C5C);
    color: #ffffff;
    border-color: var(--primary, #DA1C5C);
}

.booking-premium-card:hover .booking-cta-btn svg {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .booking-premium-grid {
        gap: 15px;
    }
    .booking-premium-card {
        padding: 25px 20px;
    }
    .booking-premium-card h5 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .booking-premium-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .booking-premium-card p {
        min-height: auto;
    }
}

/* Building Detail Block styling */
.building-detail-block {
    margin-top: 40px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    background-color: #fafafa;
}

.building-detail-block .detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.building-detail-block .detail-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #edf5f3;
    color: var(--primary, #DA1C5C); /* Hot pink text color */
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.building-detail-block .detail-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.building-detail-block .floor-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Admission Guide Intro block styling */
.apply-section-desc {
    font-size: 20px;
    color: var(--primary, #DA1C5C);
    font-weight: 600;
    margin-bottom: 8px;
}

.apply-section-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Support Program Section styling */
.support-program-section {
    margin-top: 80px;
    margin-bottom: 50px;
}

.support-program-section .section-title {
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

.support-program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-program-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.support-program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.support-program-card .card-icon {
    width: 70px;
    height: 70px;
    background-color: #FAFAFA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #DA1C5C;
    transition: all 0.3s ease;
}

.support-program-card:hover .card-icon {
    background-color: var(--primary);
    color: #ffffff;
}

.support-program-card .card-icon svg,
.support-program-card .card-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.support-program-card:hover .card-icon img {
    filter: brightness(0) invert(1);
}

.support-program-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 8px 0;
}

.support-program-card .card-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.support-program-card .card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 992px) {
    .support-program-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .support-program-card {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .support-program-grid {
        grid-template-columns: 1fr;
    }
}

/* Town Intro Features Section (2-column layout) */
.town-intro-features {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin: 80px 0;
    align-items: stretch;
}

.town-intro-features .features-image-box {
    width: 100%;
    height: 100%;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.town-intro-features .features-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.town-intro-features .features-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.town-intro-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.town-intro-features .feature-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #edf5f3; /* Very soft pink matching mockup */
    color: var(--primary); /* Pink text matching mockup */
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.town-intro-features .feature-text {
    flex: 1;
}

.town-intro-features .feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.town-intro-features .feature-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* Responsiveness */
@media (max-width: 992px) {
    .town-intro-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .town-intro-features .features-image-box {
        height: 280px;
        min-height: auto;
    }
    
    .town-intro-features .features-list {
        gap: 24px;
        padding: 0;
    }

    .town-intro-features .feature-title{
        font-size: 18px;
    }
}

/* Town Intro Contact/Address Section - Clean Modern Table Style */
.town-intro-contact {
    margin-top: 60px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.town-intro-contact .contact-row {
    display: flex;
    padding: 30px 10px;
    border-bottom: 1px solid #eaeaea;
}

.town-intro-contact .contact-row:last-child {
    border-bottom: none;
}

.town-intro-contact .contact-header {
    display: flex;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
    gap: 16px;
}

.town-intro-contact .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    color: #333333;
    flex-shrink: 0;
}

.town-intro-contact .contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.town-intro-contact .contact-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main, #333333);
}

.town-intro-contact .contact-value {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Address grid layout */
.town-intro-contact .address-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.town-intro-contact .address-grid li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-muted, #666666);
    line-height: 1.5;
}

.town-intro-contact .bld-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 22px;
    background-color: #FFF0F3;
    color: var(--primary, #DA1C5C);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}

.town-intro-contact .bld-name {
    font-weight: 600;
    color: var(--text-main, #333333);
    min-width: 110px;
}

.town-intro-contact .bld-addr {
    word-break: keep-all;
    color: var(--text-muted, #666666);
}

/* Phone / Inquiry layout */
.town-intro-contact .inquiry-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.town-intro-contact .inquiry-title {
    font-size: 16px;
}

.town-intro-contact .inquiry-tel {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary, #DA1C5C);
    text-decoration: none;
    transition: color 0.2s ease;
}

.town-intro-contact .inquiry-tel:hover {
    color: #b51245;
}

.intro-sub-title{
    font-size: 28px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .town-intro-contact .contact-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        gap: 15px;
    }
    
    .town-intro-contact .contact-header {
        width: 100%;
        gap: 12px;
    }
    
    .town-intro-contact .contact-icon {
        width: 32px;
        height: 32px;
    }
    
    .town-intro-contact .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .town-intro-contact .contact-label {
        font-size: 16px;
    }
    
    .town-intro-contact .contact-value {
        width: 100%;
        padding-left: 0;
    }
    
    .town-intro-contact .address-grid li {
        font-size: 14.5px;
        /* flex-wrap: wrap; */
        gap: 6px;
    }
    
    .town-intro-contact .bld-name {
        /* min-width: auto; */
    }
    
    .town-intro-contact .bld-addr {
        width: 100%;
        padding-left: 47px;
        margin-top: -2px;
    }
    
    .town-intro-contact .inquiry-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .town-intro-contact .inquiry-tel {
        font-size: 16px;
        padding-left: 0;
    }

    .intro-sub-title{
        font-size: 20px;
    }
}

.btn-container{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.back-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 50px;
    background-color: #575757;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.back-btn:hover{
    background-color: #313131;
}

/* Pohang Guide Tab Custom Styling */
.pohang-guide-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    margin-top: 10px;
}
.pohang-guide-group {
    margin-bottom: 35px;
}
.pohang-guide-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 12px;
}
.pohang-guide-subtitle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary, #66B7C7);
    margin-right: 10px;
    flex-shrink: 0;
}
.pohang-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pohang-guide-list > li {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 8px;
    word-break: keep-all;
}
.pohang-guide-sublist {
    list-style: none;
    padding-left: 20px;
    margin-top: 6px;
    margin-bottom: 10px;
}
.pohang-guide-sublist > li {
    position: relative;
    padding-left: 12px;
    font-size: 15px;
    color: #666666;
    margin-bottom: 6px;
}
.pohang-guide-sublist > li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #666666;
}

/* Pohang Table */
.pohang-table-wrap {
    margin: 20px 0 25px 0;
    overflow-x: auto;
}
.pohang-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: center;
    background-color: #ffffff;
    min-width: 650px;
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #EAEAEA;
}
.pohang-guide-table th {
    background-color: #F9f9fb;
    color: #333333;
    font-weight: 500;
    padding: 16px 12px;
    border-bottom: 1px solid #EAEAEA;
    border-right: 1px solid #EAEAEA;
}
.pohang-guide-table th:last-child {
    border-right: none;
}
.pohang-guide-table td {
    padding: 18px 12px;
    color: #444444;
    font-weight: 400;
    border-bottom: 1px solid #EAEAEA;
    border-right: 1px solid #EAEAEA;
}
.pohang-guide-table td:last-child {
    border-right: none;
}
.pohang-guide-table tr:last-child td {
    border-bottom: none;
}


/* Space Cards Grid Styling (used in Daejeon town intro) */
.space-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 50px;
}

.space-card {
    background: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}


.space-card .space-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.space-card .space-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.space-card:hover .space-img img {
    transform: scale(1.06);
}

.space-card .space-info {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.space-card .space-title {
    font-size: 18px;
    font-weight: 600;
    color:var(--text-main);
    margin-bottom: 10px;
}

.space-card .space-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    word-break: keep-all;
}

/* Responsive media queries */
@media (max-width: 1024px) {
    .space-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 768px) {
    .space-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .space-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared Town Guide Custom Styling */
.pohang-guide-title, .town-guide-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    margin-top: 10px;
}
.pohang-guide-group, .town-guide-group {
    margin-bottom: 35px;
}
.pohang-guide-subtitle, .town-guide-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 12px;
}
.pohang-guide-subtitle::before, .town-guide-subtitle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary, #66B7C7);
    margin-right: 10px;
    flex-shrink: 0;
}
.pohang-guide-list, .town-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pohang-guide-list > li, .town-guide-list > li {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 8px;
    word-break: keep-all;
}
.pohang-guide-sublist, .town-guide-sublist {
    list-style: none;
    padding-left: 20px;
    margin-top: 6px;
    margin-bottom: 10px;
}
.pohang-guide-sublist > li, .town-guide-sublist > li {
    position: relative;
    padding-left: 12px;
    font-size: 15px;
    color: #666666;
    margin-bottom: 6px;
}
.pohang-guide-sublist > li::before, .town-guide-sublist > li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #666666;
}

/* Shared Town Table */
.pohang-table-wrap, .town-table-wrap {
    margin: 20px 0 25px 0;
    overflow-x: auto;
}
.pohang-guide-table, .town-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    text-align: center;
    background-color: #ffffff;
    min-width: 650px;
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #EAEAEA;
}
.pohang-guide-table th, .town-guide-table th {
    background-color: #F9F9FB;
    color: #333333;
    font-weight: 500;
    padding: 16px 12px;
    border-bottom: 1px solid #EAEAEA;
    border-right: 1px solid #EAEAEA;
}
.pohang-guide-table th:last-child, .town-guide-table th:last-child {
    border-right: none;
}
.pohang-guide-table td, .town-guide-table td {
    padding: 18px 12px;
    color: #444444;
    font-weight: 400;
    border-bottom: 1px solid #EAEAEA;
    border-right: 1px solid #EAEAEA;
}
.pohang-guide-table td:last-child, .town-guide-table td:last-child {
    border-right: none;
}
.pohang-guide-table tr:last-child td, .town-guide-table tr:last-child td {
    border-bottom: none;
}

/* Space Cards Grid Styling (used in Daejeon town intro) */
.space-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 50px;
}

.space-card {
    background: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}


.space-card .space-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.space-card .space-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.space-card:hover .space-img img {
    transform: scale(1.06);
}

.space-card .space-info {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.space-card .space-title {
    font-size: 18px;
    font-weight: 600;
    color:var(--text-main);
    margin-bottom: 10px;
}

.space-card .space-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    word-break: keep-all;
}

/* Responsive media queries */
@media (max-width: 1024px) {
    .space-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 768px) {
    .space-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .space-grid {
        grid-template-columns: 1fr;
    }
}

/* Daejeon Floor Guide drawing container override to show larger drawings */
.daejeon-drawing-container {
    aspect-ratio: auto !important; /* Remove aspect-ratio constraint */
    min-height: 500px;
    padding: 40px 20px !important;
    display: block !important; /* Allow natural image block layout */
}

.daejeon-drawing-container #floorDrawingImg {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important; /* Allow the height to grow naturally */
    display: block;
    margin: 0 auto;
}

/* File Download Buttons Style */
.download-buttons-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.download-btn {
    flex: 1;
    min-width: 240px;
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.download-btn:hover {
    border-color: #DA1C5C;
}

.download-btn .btn-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.download-btn .btn-label {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

.download-btn .btn-title {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
}

.download-btn .btn-icon-box {
    width: 38px;
    height: 38px;
    background-color: #edf5f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Tenant Grid Collapsible Mobile Styling */
@media (max-width: 768px) {
    .tenant-grid.is-collapsed .tenant-card:nth-child(n+5) {
        display: none !important;
    }
}

.btn-tenant-more-wrap {
    text-align: center;
    margin-top: 24px;
    display: none;
}

@media (max-width: 768px) {
    .btn-tenant-more-wrap {
        display: flex;
        justify-content: center;
    }
}

.btn-tenant-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    padding: 13px 24px;
    background-color: #edf5f3;
    color: var(--primary);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}


.btn-tenant-more svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    transition: transform 0.25s ease;
}

.btn-tenant-more.is-expanded svg {
    transform: rotate(180deg);
}
