@charset "euc-kr";

:root {
    --main: #f15605;
    --sub: #0d2484;
}

#msy_content_detail {
    padding: 0;
    margin: 40px auto;
}

/* ÁöÀç±Ç ÃÑÇÕ Ä«¿îÅÍ ¼½¼Ç */
#total_counter {
    width: 100%;
    min-height: 120px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 10px;
    text-align: center;
}

#total_counter > section {
    background-color: #f9f9f9;
    border: 1px solid #ececec;
    padding: 50px 30px 30px;
    position: relative;
}

#total_counter > section::before {
    content: attr(title);
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    font-weight: 800;
    font-size: 20px;
    color: var(--sub);
}

#total_counter > section > p {
    line-height: 30px;
    padding: 0;
    margin: 0;
}

#total_counter > section > p::after {
    content: " °Ç";
    font-weight: 600;
    font-size: 20px;
    color: #626262;
}

#total_counter > section > p::before {
    content: attr(data-cnt);
    color: var(--main);
    font-weight: 800;
    font-size: 30px;
}
#total_counter > section::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 0;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    width: 100%;
}
#total_counter > #patent_cnt::after {
    content: "(Æ¯Çãµî·Ï " attr(data-reg) "°Ç / Æ¯ÇãÃâ¿ø " attr(data-app) "°Ç / PCT Ãâ¿ø " attr(data-pct) "°Ç)";
}
#total_counter > #software_cnt::after {
    content: "(ÀúÀÛ±Ç µî·Ï " attr(data-program) "°Ç / GS ÀÎÁõ " attr(data-gs) "°Ç)";
}
#total_counter > #brand_cnt::after {
    content: "(»óÇ¥ " attr(data-trademark) "°Ç / µðÀÚÀÎ " attr(data-design) "°Ç)";
}

/* ÁöÀç±Ç ºÐ·ù ¼±ÅÃ ¼½¼Ç */
#section_group {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

#section_group input[type="radio"] {
    display: none;
}

#section_group input[type="radio"] + label {
    padding: 10px 25px;
    font-size: 16px;
    width: 150px;
    color: #888;
    background: #f4f4f4;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-weight: 600;
}

#section_group input[type="radio"] + label:hover {
    background: #e9e9e9;
    color: #333;
}

#section_group input[type="radio"]:checked + label {
    background: var(--main);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(241, 86, 5, 0.2);
}

/* ÁöÀç±Ç ³»¿ë ¸®½ºÆ® ¼½¼Ç */

#content_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.ip_item {
    user-select: none;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.2s;
}

.ip_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ip_item .type_tag {
    min-width: 150px;
    font-size: 20px;
    font-weight: bold;
    color: #0056b3;
}

.ip_item .info_box {
    flex: 1;
}

.ip_item .info_box .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.ip_item .info_box .sub_info {
    font-size: 14px;
    color: #888;
}

.ip_item .date {
    font-size: 14px;
    color: #666;
    margin-left: 20px;
}

#load_more_btn {
    width: 50%;
    padding: 15px;
    margin-top: 30px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 20px;
    border-radius: 15px;
}

#load_more_btn:hover {
    background-color: #f5f1ef;
}

@media all and (max-width: 959px) {
    #total_counter {
        grid-template-columns: repeat(2, 1fr);
    }
    #total_counter > section {
        width: 100%;
        box-sizing: border-box;
    }
}

@media all and (max-width: 499px) {
    #total_counter {
        grid-template-columns: repeat(1, 1fr);
    }
    #section_group {
        flex-wrap: wrap;
    }
    #section_group input[type="radio"] + label {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        width: 48%;
        justify-content: center;
    }
    .ip_item {
        display: inline-block;
    }
    .ip_item .type_tag {
        -webkit-line-clamp: 1;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        text-align: left;
        margin-bottom: 15px;
    }
    .ip_item .info_box {
        text-align: left;
    }
    .ip_item .date {
        text-align: right;
    }
}
@media all and (max-width: 389px) {
    #section_group input[type="radio"] + label {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   ÁöÀç±Ç Ä«¿îÅÍ ¹ÝÀÀÇü º¸Á¤
   - Æ¯Çã ¹× PCT »ó¼¼ ¹®±¸°¡ Á¼Àº È­¸é¿¡¼­ ±úÁö´Â Çö»ó ¹æÁö
========================================================= */
@media all and (max-width: 959px) {
    #total_counter > section {
        min-height: 120px;
        padding: 48px 18px 34px;
    }

    #total_counter > section::after {
        left: 50%;
        right: auto;
        bottom: 12px;
        width: calc(100% - 24px);
        transform: translateX(-50%);

        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
        word-break: keep-all;
    }

    #total_counter > #patent_cnt::after {
        content: "(Æ¯Çãµî·Ï " attr(data-reg) "°Ç / Æ¯ÇãÃâ¿ø " attr(data-app) "°Ç / PCT Ãâ¿ø " attr(data-pct) "°Ç)";
    }
}
@media all and (max-width: 640px) {
    #total_counter > section {
        min-height: 118px;
        padding: 48px 16px 36px;
    }

    #total_counter > section::before {
        font-size: 19px;
    }

    #total_counter > section > p::before {
        font-size: 30px;
    }

    #total_counter > section > p::after {
        font-size: 18px;
    }

    #total_counter > section::after {
        bottom: 10px;
        width: calc(100% - 28px);
        font-size: 11px;
        line-height: 1.45;
        white-space: normal;
        word-break: keep-all;
    }

    #total_counter > #patent_cnt::after {
        content: "Æ¯Çãµî·Ï " attr(data-reg) "°Ç ¡¤ Æ¯ÇãÃâ¿ø " attr(data-app) "°Ç ¡¤ PCT " attr(data-pct) "°Ç";
    }

    #total_counter > #software_cnt::after {
        content: "ÀúÀÛ±Ç µî·Ï " attr(data-program) "°Ç ¡¤ GS ÀÎÁõ " attr(data-gs) "°Ç";
    }

    #total_counter > #brand_cnt::after {
        content: "»óÇ¥ " attr(data-trademark) "°Ç ¡¤ µðÀÚÀÎ " attr(data-design) "°Ç";
    }
}
