.box-wrapper{
    display: flex;
    margin-top: 30px;
    margin-bottom: 120px;
    gap: 1rem;
    width: 100%;
}

.box-wrapper .box{
    width: 50%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.first{
    margin-top: 240px;
}
.box-img{
    /*width: 632px;*/
    /*height: 404px;*/
    aspect-ratio: 158/101;
    border-radius: 32px 32px 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.box-content{
    display: flex;
    /*height: 150px;*/
    padding: 32px 32px 48px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /*align-self: stretch;*/
    width: 100%;
    border-radius: 0 0 32px 32px;
    background: var(--color-grey-50);
    height: 100%;
    align-self: stretch;
}
.box-wrapper .date{
    color: var(--color-grey-400);
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 25.5px */
}
.box-wrapper .title{
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 36px */
    color: var(--color-grey-900)

}

/*.box-wrapper .box:first-child .title{*/
/*    color: var(--color-primary-500);*/
/*}*/
/*.box-wrapper .box:last-child .title{*/
/*    color: var(--color-grey-900)*/
/*}*/



/* 테이블 */
.table-body{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    border-top: 2px solid var(--color-grey-900);
}

.table-body .tr {
    height: 243px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-grey-100);
    padding: 24px 0;
    cursor: pointer;
    gap: 10px;
}

.table-body .img{
    /*width: 100%;*/
    max-width: 308px;
    max-height: 195px;
    /*background-color: #717B84;*/
    /*border-radius: 15px;*/
    /*background-size: 100% 100%;*/
    /*background-repeat: no-repeat;*/
    /*background-position: center;*/


    width: 100%;
    aspect-ratio: 308 / 195;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
}

.table-body{
    color: var(--color-grey-900);
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 25.5px */
}
.table-body .tr > div:nth-child(1){
    width: 30%;
    align-content: center;
}
.table-body .tr > div:nth-child(2){
    width: 15%;
    font-size: 17px;
}
.table-body .tr > div:nth-child(3){
    width: 40%;
    font-size: 24px;
    font-weight: 700;
    line-height: 150%; /* 36px */
}
.table-body .tr > div:nth-child(4){
    width: 15%;
    color: var(--color-grey-400);
    text-align: right;
    font-size: 17px;
    font-weight: 500;
}
.section.table{
    margin-bottom: 160px;
}


.ir-search {
    display: flex;
    max-width: 416px;
    width: 100%;
    padding: 17px 32px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 200px;
    background: var(--color-grey-50);
    margin-bottom: 48px;
    margin-left: auto;
    box-sizing: border-box;
}

.ir-sidebar{
    display: flex;
    width: 60%;
}
.ir-search-wrapper{
    width: 40%;
}
.ir-sidebar .item {
    color: var(--color-grey-300);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-top: 16px;
    text-decoration-line: none;
    display: flex;
}
.ir-sidebar .item:not(:last-child){
    margin-right: 32px;
}
.ir-sidebar .item.active{
    color: var(--color-grey-900);
}
.table-body .tr:hover .title,
.box-wrapper .box:hover .title{
    color: var(--color-primary-500) !important;
}
.table .item .count{
    padding: 2px 12px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--color-background-50);
    text-align: center;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 25.5px */
    margin-left: 6px;
    margin-top: 2px;
    height: fit-content;
    background: var(--color-grey-300);
}
.ir-sidebar .item[data-type="all"].active .count{
    background: var(--color-grey-900);
}

body.drawer-open {
    overflow: hidden;
}

/* 640px 아래부터 패딩 */
@media (max-width: 639px) {
    .box-wrapper{
        position: relative !important;
    }

    .box-wrapper .box {
        width: 100% !important;
    }

    .box-wrapper .title {
        font-size: 18px !important;
    }

    .box-wrapper .date {
        font-size: 15px !important;
    }

    .section.table .d-flex.j-between {
        display: block !important;
    }

    .ir-sidebar .item {
        font-size: 20px !important;
    }
    .ir-sidebar{
        width: 100%;
        margin-bottom: 40px;
    }
    .ir-sidebar .item:not(:last-child){
        margin-right: 16px;
    }
    /* 기존 사용했던 코드 */
    /*.table-body .tr > div:nth-child(2) {*/
    /*    display: none !important;*/
    /*}*/
    /*.table-body .tr > div:nth-child(3) {*/
    /*    font-size: 14px !important;*/
    /*}*/
    /*.table-body .tr > div:nth-child(4){*/
    /*    font-size: 14px !important;*/
    /*}*/
    /*.table-body .tr{*/
    /*    height: 136px !important;*/
    /*}*/
    /*.table-body .img{*/
    /*    border-radius: 8px !important;*/
    /*}*/
    /* 기존 사용했던 코드 */

    .table-body .tr {
        display: grid !important;
        grid-template-columns: 4% 38% 1fr;  /* 좌 여백 / 이미지 / 텍스트 영역 */
        grid-template-rows: auto auto;      /* 제목 / 날짜 */
        column-gap: 12px;
        padding: 24px 0;                    /* 위·아래 24px → 피그마 기준 */
        align-items: start;
        height: auto !important;            /* 기존 높이 초기화 */
    }

    .table-body .tr > div:nth-child(1) {
        grid-column: 2;     /* 좌측 4% 지나고 두 번째 칸 */
        grid-row: 1 / span 2; /* 위/아래 2줄 전체 차지 */
        width: 100% !important;
    }

    .table-body .img {
        width: 100%;                /* grid 칸 너비에 맞춤 */
        max-width: 136px;           /* 피그마 최대치 보호 */
        aspect-ratio: 136 / 88;     /* 비율 기반 고정 */
        border-radius: 8px !important;
        object-fit: cover;
    }

    .table-body .tr > div:nth-child(2) {
        display: none !important;
    }

    .table-body .tr > div:nth-child(3) {
        grid-column: 3;   /* 텍스트 영역 */
        grid-row: 1;      /* 첫 번째 줄 = 제목 */
        font-size: 14px !important;
        font-weight: 600;
        line-height: 150%;
        color: var(--color-grey-900);
        width: 100%;
        word-break: break-word;
    }

    .table-body .tr > div:nth-child(4) {
        grid-column: 3; /* 제목과 같은 column */
        grid-row: 2; /* 두 번째 줄 = 날짜 */
        font-size: 14px !important;
        font-weight: 500;
        line-height: 150%;
        color: var(--color-grey-400);
        text-align: left !important;
        margin-top: 8px; /* 제목과 날짜 간 간격 */
    }

    .swiper-pagination-bullet,
    .swiper-pagination-bullet-active {
        width: 8px !important;
        height: 8px !important;
        border-radius: 0 !important; /* 네모 형태 */
    }

    /* 비활성 bullet */
    .swiper-pagination-bullet {
        background: #0B1C2C !important;
        opacity: 0.2 !important;
    }

    /* 활성 bullet */
    .swiper-pagination-bullet-active {
        background: #0B1C2C !important;
        opacity: 1 !important;
    }

    .ir-search-wrapper{
        width: 100%
    }

    .swiper-pagination{
        position: absolute !important;
        bottom: -8% !important;
    }
}
