/* 
---------------------------------------------
                  Sub0401
--------------------------------------------- 
*/

/* cont1 */
.cont1 {
    background: url("../../img/news/news-cont-bg01.png") center/cover no-repeat;
}

.cont1 .cont-header {
    gap: 40px;
}

.cont1 .headline {
    color: var(--primary);
    line-height: 1.4;
}

.cont1 .headline strong {
    font-weight: 800;
}

.cont1 .desc {
    color: #9C9C9C;
}

@media (max-width:1280px) {
    .cont1 .cont-header {
        gap: 20px;
    }
}

@media (max-width:768px) {
    .cont1 .cont-header {
        gap: 10px;
    }
}

/* cont2 */
.news-toolbar {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* filter */
.news-filter {
    display: flex;
    gap: 32px;
}

.news-filter .tab {
    position: relative;
    padding: 20px 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #9E9E9E;
    font-size: var(--font-2xl);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .06s ease;
}

.news-filter .tab:hover,
.news-filter .tab:focus-visible {
    color: var(--primary);
    background: #fafbff;
    border-color: #e6e9f5;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .05);
}

.news-filter .tab.active {
    border: 1px solid #333;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08)
}

/* search */
.news-search {
    padding: 12px 20px 12px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #9F9F9F;
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.news-search:hover,
.news-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.news-search input {
    padding: 4px 0;
    color: #333;
    font-size: var(--font-lg);
    font-weight: 600;
}

.news-search input::placeholder {
    color: #9F9F9F;
}

.news-search .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: transform .06s ease, filter .15s ease, background-color .15s ease;
}

.news-search .btn-icon .icon {
    display: block;
    width: 27px;
    height: 25px;
    background: #3F3F3F;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath fill='black' d='M25.552 27.221 15.608 17.276a9.98 9.98 0 0 1-2.731 1.535 10.4 10.4 0 0 1-3.194.554c-2.706 0-4.996-.937-6.871-2.811C.937 14.68 0 12.39 0 9.685 0 6.98.937 4.689 2.811 2.813 4.685.938 6.974 0 9.68 0c2.706 0 4.996.937 6.872 2.812 1.875 1.874 2.813 4.165 2.813 6.871 0 1.131-.19 2.211-.57 3.24-.38 1.03-.886 1.925-1.519 2.686l9.945 9.944-1.67 1.669ZM9.682 16.99c2.04 0 3.767-.708 5.183-2.124 1.416-1.416 2.124-3.144 2.124-5.184 0-2.04-.708-3.768-2.124-5.184C13.45 3.083 11.723 2.375 9.682 2.375 7.642 2.375 5.914 3.083 4.499 4.499 3.083 5.914 2.375 7.642 2.375 9.682c0 2.04.708 3.768 2.124 5.184 1.416 1.416 3.144 2.124 5.184 2.124Z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath fill='black' d='M25.552 27.221 15.608 17.276a9.98 9.98 0 0 1-2.731 1.535 10.4 10.4 0 0 1-3.194.554c-2.706 0-4.996-.937-6.871-2.811C.937 14.68 0 12.39 0 9.685 0 6.98.937 4.689 2.811 2.813 4.685.938 6.974 0 9.68 0c2.706 0 4.996.937 6.872 2.812 1.875 1.874 2.813 4.165 2.813 6.871 0 1.131-.19 2.211-.57 3.24-.38 1.03-.886 1.925-1.519 2.686l9.945 9.944-1.67 1.669ZM9.682 16.99c2.04 0 3.767-.708 5.183-2.124 1.416-1.416 2.124-3.144 2.124-5.184 0-2.04-.708-3.768-2.124-5.184C13.45 3.083 11.723 2.375 9.682 2.375 7.642 2.375 5.914 3.083 4.499 4.499 3.083 5.914 2.375 7.642 2.375 9.682c0 2.04.708 3.768 2.124 5.184 1.416 1.416 3.144 2.124 5.184 2.124Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-search:hover .btn-icon .icon {
    background: var(--primary);
}

.cont2 .container {
    padding-top: 50px;
}

@media (max-width:1280px) {
    .news-toolbar {
        gap: 24px;
    }

    .news-filter {
        gap: 20px;
    }

    .news-filter .tab {
        padding: 16px 24px;
        font-size: var(--font-xl);
        border-radius: 10px;
    }

    .news-search {
        padding: 10px 18px 10px 24px;
    }
}

@media (max-width:1024px) {

    .cont2 .container {
        padding-top: 0;
        padding-bottom: 100px;
    }

    .news-toolbar {
        gap: 20px;
    }

    .news-filter {
        gap: 10px;
    }

    .news-filter .tab {
        padding: 14px;
        font-size: var(--font-lg);
    }

    .news-search {
        padding: 10px 16px 10px 20px;
    }

    .news-search .btn-icon {
        width: 34px;
        height: 34px;
    }

    .news-search .btn-icon .icon {
        width: 24px;
        height: 22px;
    }

    .news-search input {
        font-size: var(--font-md);
    }
}

@media (max-width:768px) {
    .cont2 .container {
        padding-bottom: 70px;
    }

    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .news-filter {
        padding-bottom: 2px;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .news-filter .tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 12px 16px;
        border-radius: 9px;
    }

    .news-search {
        width: 100%;
        padding: 10px 14px 10px 18px;
    }

    .news-search input {
        flex: 1;
        min-width: 0;
        font-size: 16px;
    }

    .news-search .btn-icon {
        width: 34px;
        height: 34px;
    }

    .news-search .btn-icon .icon {
        width: 22px;
        height: 20px;
    }
}

@media (max-width:480px) {
    .news-toolbar {
        gap: 12px;
    }

    .news-filter {
        gap: 8px;
        scroll-snap-type: x mandatory;
    }

    .news-filter .tab {
        padding: 10px 14px;
        font-size: var(--font-base);
        border-radius: 8px;
    }

    .news-search {
        padding: 6px 12px 6px 14px;
        border-radius: 10px;
    }

    .news-search .btn-icon {
        width: 30px;
        height: 30px;
    }

    .news-search .btn-icon .icon {
        width: 20px;
        height: 18px;
    }
}

/* news */
.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    row-gap: 100px;
}

.thumb {
    border-radius: 12px;
    overflow: hidden;
}

.thumb img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
    transition: transform .4s ease;
}

.card a:hover .thumb img {
    transform: scale(1.08)
}

.category {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: #606060;
    font-size: var(--font-2xl);
    font-weight: 600;
    transition: color .4s ease;
}

.category>span {
    display: inline-block;
    color: #606060;
    font-size: var(--font-2xl);
    font-weight: 600;
    line-height: 1.2;
}

.category>span+span::before {
    content: "•";
    color: #9E9E9E;
    margin: 0 8px;
}

.card a:hover .category {
    color: #4a4a4a;
}

.title {
    margin: 8px 0 10px;
    font-size: var(--font-2xl);
    font-weight: 700;
    line-height: 1.4;
    transition: color .4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card a:hover .title {
    color: var(--primary);
}

.meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #868686;
    font-size: var(--font-lg);
    font-weight: 600;
}

.meta time {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.meta time::after {
    content: "";
    display: inline-flex;
    width: 2.5px;
    height: 18px;
    background: #868686;
    border-radius: 4px;
    vertical-align: middle;
}

.meta .views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.meta .views .icon {
    width: 20px;
    height: 20px;
    background: #868686;
    display: inline-block;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M2 10s3.5-5.5 8-5.5 8 5.5 8 5.5-3.5 5.5-8 5.5-8-5.5-8-5.5Z' stroke='black' stroke-width='1.8'/><circle cx='10' cy='10' r='2.8' stroke='black' stroke-width='1.8'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M2 10s3.5-5.5 8-5.5 8 5.5 8 5.5-3.5 5.5-8 5.5-8-5.5-8-5.5Z' stroke='black' stroke-width='1.8'/><circle cx='10' cy='10' r='2.8' stroke='black' stroke-width='1.8'/></svg>") center/contain no-repeat
}

.more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px
}

.btn-outline {
    margin-bottom: 50px;
}

/* spinner */
.more-spinner {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, var(--primary) 0 300deg, rgba(9, 106, 217, .18) 300deg 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
    animation: moreSpin .8s linear infinite, morePulse 1.6s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes moreSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes morePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(9, 106, 217, 0));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(9, 106, 217, .35));
    }
}

@media (prefers-reduced-motion: reduce) {
    .more-spinner {
        animation: none;
    }
}

.news-empty {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 140px 16px;
    border-radius: 10px;
    color: #6B7280;
    font-size: var(--font-lg);
    text-align: center;
}

@media (max-width:1280px) {
    .news-cards {
        gap: 32px;
        row-gap: 80px;
    }

    .category,
    .category>span {
        font-size: var(--font-xl);
    }

    .title {
        font-size: var(--font-xl);
    }

    .meta {
        font-size: var(--font-md);
    }

    .meta time::after {
        height: 16px;
        width: 2px;
    }

    .btn-outline {
        margin-bottom: 44px;
    }

    .more-spinner {
        width: 30px;
        height: 30px;
    }
}

@media (max-width:1024px) {
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        row-gap: 72px;
    }

    .thumb {
        border-radius: 12px;
    }

    .title {
        font-size: var(--font-lg);
    }

    .category,
    .category>span {
        font-size: var(--font-lg);
    }

    .news-empty {
        padding: 110px 16px;
        font-size: var(--font-md);
    }

    .thumb img {
        height: 250px;
    }
}

@media (max-width:768px) {
    .news-cards {
        gap: 22px;
        row-gap: 40px;
    }

    .thumb {
        border-radius: 12px;
    }

    .thumb img {
        aspect-ratio: 16/10;
        object-fit: cover;
    }

    .category {
        margin-top: 15px;
    }

    .category,
    .category>span {
        font-size: var(--font-base);
    }

    .category>span+span::before {
        margin: 0 5px;
    }

    .title {
        font-size: var(--font-md);
        margin: 5px 0 7px;
    }

    .meta {
        font-size: var(--font-base);
        gap: 8px;
    }

    .meta time::after {
        height: 14px;
        width: 2px;
    }

    .meta .views .icon {
        width: 18px;
        height: 18px;
    }

    .more {
        margin-top: 40px;
    }

    .btn-outline {
        margin-bottom: 28px;
    }

    .more-spinner {
        width: 28px;
        height: 28px;
    }

    .news-empty {
        padding: 90px 12px;
    }

    .thumb img {
        height: 200px;
    }
}

@media (max-width:480px) {
    .news-cards {
        gap: 16px;
        row-gap: 28px;
    }

    .thumb {
        border-radius: 10px;
    }

    .category,
    .category>span {
        font-size: var(--font-sm);
    }

    .title {
        font-size: var(--font-base);
        margin: 4px 0 6px;
    }

    .meta {
        font-size: var(--font-sm);
        gap: 6px;
    }

    .meta time::after {
        height: 12px;
        width: 2px;
    }

    .meta .views .icon {
        width: 16px;
        height: 16px;
    }

    .btn-outline {
        margin-bottom: 20px;
    }

    .more-spinner {
        width: 26px;
        height: 26px;
    }

    .news-empty {
        padding: 72px 10px;
        font-size: var(--font-base);
    }

    .thumb img {
        height: 150px;
    }
}
