@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
    --white: #ffffff;
    --black: #000000;
    --border: #e5e5ec;
    --card: #f7f7fb;
    --card-focus: #ebf0fa;
    --text: #505050;
    --hover: #4874d1;
    --a-focus: #e26851;
    --auth: #767676;
    --toggle: #f5f5f5;
}
* {
    font-family: Pretendard, sans-serif !important;
    box-sizing: border-box;
}
body {
    min-width: fit-content;
    height: 100dvh;
    /* min-width: 375px; */
}
header {
    display: flex;
    background-color: var(--white);
    margin: 28px 40px;
}
.header__logo {
    margin-right: 72px;
}
.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}
.header__nav {
    display: flex;
    gap: 56px;
}
.header__link {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}
.header__link:focus {
    color: var(--a-focus);
    font-weight: 700;
}
.header__actions {
    margin-left: auto;
}
.header__auth {
    display: flex;
    gap: 46px;
}
.header__button {
    background-color: inherit;
    border: none;
    color: var(--auth);
}
.header .dropdown-toggle {
    background-color: var(--toggle);
    border: 0;
    border-radius: 16px;
    padding: 6px 16px;
}
.hamburger {
    display: none;
}

/* banner */
.banner {
    background: linear-gradient(270.54deg, #1f3c7a -9.98%, #4874d1 75.95%);
    height: 128px;
    display: flex;
    justify-content: center;
}
.banner__content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.banner__text {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}
.banner__title {
    font-size: 24px;
    margin: 0;
}
.banner__description {
    font-size: 14px;
    margin: 8px 0 0 0;
}
.banner__image {
    position: absolute;
    right: 0;
    transform: translateX(100%);
}

/* filter-button */
.filter-buttons {
    margin-top: 28px;
}
.button__container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.filter-buttons button {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 400;
}
.filter-buttons .active {
    background-color: var(--black);
    color: var(--white);
    outline: none;
    font-weight: 600;
}

/* content */
.contents {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background-color: var(--white);
}
.content__item.hidden {
    display: none;
}
.content__item {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.content__title {
    margin-left: 16px;
    font-size: 20px;
    font-weight: 600;
}
.content__card__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    margin-top: 10px;
}
.content__card {
    background-color: var(--card);
    border: 1px solid var(--card);
    border-radius: 16px;
    padding: 0 24px;
}
.content__card:has(.content__card__bottom:hover) {
    background-color: var(--card-focus);
    border: 1px solid var(--hover);
    transition: all 0.3s ease-out;
}
.content__card__top {
    display: flex;
    justify-content: space-between;
    padding: 28px 0 23px;
}
.content__card__top-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 8px;
}
.content__card__top-left > h6 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}
.content__card__bottom {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 16px;
    padding: 10px 16px;
    cursor: pointer;
    margin-bottom: 16px;
}
.content__card__bottom > p {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    flex-grow: 1;
}
.content__card__bottom > img {
    padding: 4px 6px;
}

.content__card__bottom:hover {
    background-color: var(--hover);
    color: var(--white);
    transition: all 0.2s ease-out;
}

.content__card__bottom:hover > p {
    flex-grow: 0;
    margin-left: auto;
    transition: all 0.2s ease-out;
}
.content__card__bottom:hover > img {
    margin-left: 4px;
    margin-right: auto;
    content: url('assets/icon/right_arrow_hover.svg');
    transition: all 0.2s ease-out;
}

/* mobile - 479px */
@media screen and (max-width: 479px) {
    .header__nav,
    .header__auth,
    .banner__image {
        display: none;
    }
    .header {
        margin: 16px 20px;
    }
    .hamburger {
        display: block;
    }
    /* banner */
    .banner {
        height: 180px;
    }
    .banner__description {
        text-align: center;
    }
    .banner__description .line-break::after {
        content: '\A';
        white-space: pre;
    }
    /* content */
    .contents {
        margin-left: 20px;
        margin-right: 20px;
    }
    .content__title {
        margin: 0 auto;
    }
    .content__card__container {
        display: flex;
        flex-direction: column;
    }
}

/* tablet - 1000px */
@media screen and (min-width: 480px) and (max-width: 1200px) {
    .header__nav,
    .header__auth,
    .banner__image {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .content__card__container {
        margin-left: 20px;
        margin-right: 20px;
    }
    .content__title {
        margin-left: 26px;
    }
}
