.box-mypage .main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.box-mypage .main-title p:first-child {
    font-size: 20px;
}

.box-mypage .main-title p:last-child {
    font-size: 14px;
    font-weight: 500;
}

.box-mypage .mypage-nav {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.box-mypage .mypage-nav .item {
    background-color: #fff;
    padding: 5px 30px;
    border: 1px solid #000;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.box-mypage .mypage-nav .item:after {
    content: "";
    width: 10px;
    height: 10px;
    background-image: url("../images/arrowdown.svg");
    background-repeat: no-repeat;
    background-size: 6px;
    background-position: center center;
}

.box-mypage .mypage-section {
    width: 100%;
    text-align: left;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin: 130px;
}

.box-mypage .mypage-section .title {
    font-size: 30px;
}

.box-mypage .mypage-section .title::before {
    content: "●";
    margin-right: 5px;
}

.box-mypage .mypage-section .txt-red {
    font-size: 20px;
}

.box-mypage #purchasedCourses .cuorse-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 20px;
}

.box-mypage #purchasedCourses .cuorse-container .grey-button {
    width: 100%;
    line-height: 60px;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    padding: 0 20px;
    display: inline-block;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-mypage #lectures .category-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-mypage #lectures .category-title::after {
    content: "";
    width: 10px;
    height: 10px;
    background-image: url("../images/arrowdown.svg");
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: center center;
}

.box-mypage #lectures .category-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}

.box-mypage #lectures .category-container .item {
    height: 50px;
    background-color: #fff;
    padding: 10px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 5px;
}

.box-mypage #lectures .category-container .item p {
    width: 95%;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-mypage #history .history-container .tab {
    width: auto;
    font-size: 20px;
    background-color: #ddd;
    padding: 5px 20px;
    display: inline-block;
    cursor: pointer;
}

.box-mypage #history .history-container .tab:first-child {
    border-radius: 10px 0 0 0;
    margin-left: 30px;
}

.box-mypage #history .history-container .tab:nth-child(3) {
    border-radius: 0 10px 0 0;
}

.box-mypage #history .history-container .tab:has(input:checked) {
    background-color: #fff;
}

.box-mypage #history .history-container .tab input {
    display: none;
}

.box-mypage #history .history-container br {
    content: "";
    width: 100%;
}

.box-mypage #history .history-container .tab-content {
    width: 100%;
    background-color: #fff;
    padding: 50px;
    display: none;
}

.box-mypage
    #history
    .history-container
    .tab:nth-child(1):has(input:checked)
    ~ #tab-content-1,
.box-mypage
    #history
    .history-container
    .tab:nth-child(2):has(input:checked)
    ~ #tab-content-2,
.box-mypage
    #history
    .history-container
    .tab:nth-child(3):has(input:checked)
    ~ #tab-content-3 {
    display: block;
}

.box-mypage #history .history-container .tab-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
}

.box-mypage #history .history-container .tab-content table thead th {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    background-color: #444;
}

.box-mypage
    #history
    .history-container
    .tab-content
    table
    thead
    th:first-child {
    width: 60%;
}

.box-mypage
    #history
    .history-container
    .tab-content
    table
    thead
    th:nth-child(2),
.box-mypage
    #history
    .history-container
    .tab-content
    table
    thead
    th:nth-child(3) {
    width: 20%;
}

.box-mypage #history .history-container .tab-content table tbody tr.error td {
    background-color: #fff0f0;
}

.box-mypage #history .history-container .tab-content table tbody td {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: 500;
    background-color: #f4f4f4;
}

.box-mypage
    #history
    .history-container
    .tab-content
    table
    tbody
    td:first-child {
    padding-left: 20px;
}

.box-mypage
    #history
    .history-container
    .tab-content
    table
    tbody
    td:nth-child(2),
.box-mypage
    #history
    .history-container
    .tab-content
    table
    tbody
    td:nth-child(3) {
    text-align: center;
    vertical-align: middle;
}

.box-mypage #paymentHistory .grey-button,
.box-mypage #result .grey-button {
    text-align: left;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-mypage #paymentHistory .grey-button.arrow-right::after {
    width: 9px;
    height: 9px;
    background-size: 9px;
}

.box-mypage #registrationInformation .information-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 10px;
}

.box-mypage #registrationInformation .information-container .grey-button {
    width: 100%;
    text-align: left;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-mypage
    #registrationInformation
    .information-container
    .grey-button.arrow-right::after {
    width: 9px;
    height: 9px;
    background-size: 9px;
}

@media all and (max-width: 768px) {
    .box-mypage .main-title p {
        font-size: 20px;
    }

    .box-mypage .mypage-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .box-mypage .mypage-nav .item {
        padding: 0 20px;
        gap: 0;
    }

    .box-mypage .mypage-section {
        padding: 0 20px;
        margin-top: 30px;
        gap: 10px;
        scroll-margin: 105px;
    }

    .box-mypage .mypage-section .title {
        font-size: 20px;
    }

    .box-mypage .mypage-section .txt-red {
        font-size: 16px;
    }

    .box-mypage #purchasedCourses .cuorse-container {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .box-mypage #purchasedCourses .cuorse-container .grey-button {
        line-height: 40px;
        font-size: 12px;
    }

    .box-mypage #lectures .category-title {
        display: none;
    }

    .box-mypage #lectures .category-container {
        background-color: #eee;
        padding: 20px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
    }

    .box-mypage #lectures .category-container .item {
        line-height: 30px;
        padding: 5px;
    }

    .box-mypage #history {
        padding: 0;
    }

    .box-mypage #history .title {
        padding: 0 20px;
    }

    .box-mypage #history .history-container .tab p {
        font-size: 12px;
    }

    .box-mypage #history .history-container .tab:first-child {
        margin-left: 25px;
    }

    .box-mypage #history .history-container .tab-content {
        padding: 20px;
    }

    .box-mypage #history .history-container .tab-content table thead th {
        height: 20px;
        line-height: 20px;
        font-size: 11px;
    }

    .box-mypage #history .history-container .tab-content table tbody td {
        line-height: unset;
        font-size: 12px;
    }

    .box-mypage
        #history
        .history-container
        .tab-content
        table
        tbody
        td:first-child {
        padding-left: 10px;
    }

    .box-mypage #paymentHistory .grey-button {
        font-size: 12px;
        padding: 0 10px;
    }

    .box-mypage #paymentHistory .grey-button.arrow-right::after {
        background-size: 6px;
    }

    .box-mypage #registrationInformation .information-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .box-mypage #registrationInformation .information-container .grey-button {
        font-size: 11px;
        padding: 0 5px;
    }

    .box-mypage
        #registrationInformation
        .information-container
        .grey-button.arrow-right::after {
        background-size: 6px;
    }
}

html {
    scroll-behavior: smooth;
}

.box-mypage .mypage-section {
    width: 100%;
    text-align: left;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 130px;
}

header .dropdown-content li p {
    padding: 10px;
    border-bottom: 1px solid #8aa6b4;
    cursor: pointer;
}

header .dropdown-content li p:hover {
    opacity: 0.3;
}

#learning {
    scroll-margin-top: 130px;
}
