@import "main.css";

/* =========================================================
       WELCOME SECTION
========================================================= */

.welcome {
    height: 100dvh;
    background-image: url("../images/welcome-bg.webp");
    background-position: center;
    background-size: cover;
}

.welcome .contents {
    width: 100% !important;
    height: 100%;
    backdrop-filter: blur(5px);
    padding: 100px 8% 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.welcome .texts {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 45px;
}

.welcome .texts h2 {
    font-size: 2.8rem;
}

.welcome .texts p {
    font-size: 1.2rem;
    font-weight: 600;
}

.welcome .texts ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
    margin-bottom: 20px;
}

.welcome .texts ul li {
    position: relative;
    padding-right: 20px;
    font-size: 1.1rem;
}

.welcome .texts ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary-700);
    border-radius: 50%;
    outline: 1px solid var(--color-secondary-500);
    outline-offset: 2px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.welcome .texts .buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}

.welcome .texts .buttons a {
    border-radius: 8px;
    font-size: 1.1rem;
}

.welcome .texts .buttons a:first-child {
    padding: 8px 35px;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
    box-shadow: var(--btn-primary-shadow);
    transition: all .2s ease;
}

.welcome .texts .buttons a:first-child:hover {
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    transition: all .2s ease;
}

.welcome .texts .buttons a:first-child:active {
    background-color: var(--btn-primary-active-bg);
}

.welcome .texts .buttons a:last-child {
    padding: 8px 15px;
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
    transition: all .2s ease;
}

.welcome .texts .buttons a:last-child:hover {
    background-color: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
    transition: all .2s ease;
}

.welcome .texts .buttons a:last-child:active {
    background-color: var(--color-primary-300);
}

.welcome .image {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome .image img {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border: 3px solid var(--color-primary-700);
    border-radius: 12px;
}

/* =========================================================
       SLIDER SECTION
========================================================= */

.slider-section {
    padding: 50px 10%;
}

.slider-section .js-slider {
    direction: rtl;
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
}

.slider-section .js-slider__viewport {
    overflow: hidden;
    width: 100%;
}

.slider-section .js-slider__track {
    display: flex;
    transition: transform 350ms ease;
    will-change: transform;
}

.slider-section .js-slider__slide {
    flex: 0 0 100%;
    position: relative;
}

.slider-section .js-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-section .js-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: #111;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
}

.slider-section .js-slider__arrow:hover { background: rgba(255, 255, 255, 0.92); }

.slider-section .js-slider__arrow--prev { left: 12px; }
.slider-section .js-slider__arrow--next { right: 12px; }

.slider-section .js-slider__arrow--prev::after { content: '❯'; }
.slider-section .js-slider__arrow--next::after { content: '❮'; }

.slider-section .js-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 3;
}

.slider-section .js-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.slider-section .js-slider__dot.is-active {
    width: 18px;
    background: rgba(255, 255, 255, 0.95);
}

.posters {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    padding: 50px 0;
}

.posters img {
    width: 20%;
    border-radius: 12px;
    border: 3px solid var(--border-active);
}

/* =========================================================
       TOP STUDENTS SECTION
========================================================= */

.top-students {
    width: 100%;
    padding: 50px 10%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.top-students .header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.top-students .header img {
    transform: rotateY(180deg);
    width: 80px;
}

.top-students .header h2 {
    font-size: 1.5rem;
}

.top-students .header a {
    margin-right: auto;
}

.top-students ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 30px;
    position: relative;
}

.top-students ul::before {
    content: "";
    width: 80px;
    height: 80px;
    border-top: 2px solid var(--color-primary-200);
    border-right: 2px solid var(--color-primary-200);
    position: absolute;
    top: 0;
    right: 0;
}


.top-students ul::after {
    content: "";
    width: 500px;
    height: 200px;
    border-bottom: 2px solid var(--color-primary-200);
    border-left: 2px solid var(--color-primary-200);
    position: absolute;
    bottom: 0;
    left: 0;
}

.top-students ul li {
    width: calc(100% / 4 - 20px);
    /*height: 250px;*/
    padding-bottom: 20px;
    background-color: var(--bg-box);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
}

.top-students ul li img {
    width: 100%;
    aspect-ratio: 16/9;
}

.top-students ul li h3 {
    font-size: 1.3rem;
}

.top-students ul li p {
    font-size: .9rem;
}

/* =========================================================
       ABOUT SECTION
========================================================= */

.about-section {
    width: 100%;
    height: 700px;
    background-image: url("../images/about-section.webp");
    background-position: center;
    background-size: cover;
}

.about-section .contents {
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    padding: 50px 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 50px;
}

.about-section .video {
    width: 50%;
}

.about-section .video video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
}

.about-section .texts {
    width: 50%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.about-section .texts h2,
.about-section .texts h2 span {
    font-size: 2rem;
    font-family: var(--font-black), serif;
}

.about-section .texts h2 span {
    position: relative;
}

.about-section .texts h2 span::before {
    content: "";
    width: 105%;
    height: 60%;
    background-color: var(--color-primary-200);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: skewX(-5deg) translateX(-50%);
    z-index: -1;
}

.about-section .texts p {
    line-height: 2;
    text-align: justify;
}

.about-section .texts a {
    width: fit-content;
    padding: 8px 15px;
    background-color: var(--btn-outline-bg);
    color: var(--btn-outline-text);
    border: 1px solid var(--btn-outline-border);
    border-radius: 8px;
    margin-top: 30px;
    transition: all .2s ease-in-out;
}

.about-section .texts a:hover {
    background-color: var(--btn-outline-active-bg);
    color: var(--btn-outline-hover-text);
    border-color: var(--btn-outline-hover-border);
    transition: all .2s ease-in-out;
}

/* =========================================================
       SERVICES SECTION
========================================================= */

.services {
    width: 100%;
    padding: 50px 20%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.services .service {
    width: calc(100% / 4 - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-box);
    border: 1px solid var(--color-primary-300);
    border-radius: 12px;
    row-gap: 20px;
}

.services .service .icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-primary-100);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.services .service .icon img {
    width: 65%;
}

.services .service h4 {
    font-family: var(--font-regular), serif;
    font-weight: 600;
    color: var(--text-secondary);
}

/* =========================================================
       ACHIEVEMENTS SECTION
========================================================= */

.achievements {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding: 50px 5%;
}

.achievements > img {
    width: 60%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transform: rotateY(180deg) translateY(-50%);
    border-radius: 50%;
    border: 2px solid var(--border-active);
    outline: 2px solid var(--border-active);
    outline-offset: 4px;
    position: absolute;
    top: 50%;
    right: -200px;
    z-index: -1;
}

.achievements .contents {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    transform: translateX(100px);
}

.achievements .contents h2 {
    font-size: 2rem;
}

.achievements .contents > p {
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
}

.achievements .contents .reports {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
}

.achievements .contents .reports .report-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-box);
    padding: 10px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
}

.achievements .contents .reports .report-box:nth-child(odd) {
    flex-direction: row-reverse;
}

.achievements .contents .reports .report-box img {
    width: 180px;
}

.achievements .contents .reports .report-box .texts {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
}

.achievements .contents .reports .report-box .texts h3 {
    font-size: 1.3rem;
    font-family: var(--font-regular), serif;
    font-weight: 600;
}

.achievements .contents .reports .report-box .texts .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}

.achievements .contents .reports .report-box .texts p {
    font-size: 1.8rem;
    font-family: var(--font-black), serif;
}

/* =========================================================
       GROUPS SECTION
========================================================= */

.groups-section {
    background-image: url("../images/groups.webp");
    background-size: cover;
    background-position: center;
}

.groups-section .contents {
    backdrop-filter: blur(2px);
    padding: 50px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 40px;
}

.groups-section .title {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.groups-section .title h2 {
    font-size: 2rem;
}

.groups-section .title .line {
    width: 42%;
    height: 2px;
    background-color: var(--border-default);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    border-radius: 2px 0 0 2px;
}

.groups-section .title .line::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--border-default);
    position: absolute;
    top: 50%;
    transform: rotate(45deg) translateY(-70%);
}

.groups-section .title .line::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--border-default);
    position: absolute;
    top: 50%;
    transform: rotate(45deg) translateY(-70%);
}

.groups-section .title .line-left {
    left: 0;
}

.groups-section .title .line::before {
    left: 98%;
}

.groups-section .title .line::after {
    left: 94%;
}

.groups-section .title .line-right {
    right: 0;
    transform: translateY(-50%) rotateY(180deg);
}

.groups-section .groups {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 50px;
}

.groups-section .groups .group-box {
    width: calc(100% / 3 - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(0deg, var(--color-primary-100), var(--color-primary-200));
    padding: 40px;
    border-radius: 12px;
    row-gap: 20px;
    box-shadow: var(--shadow-card);
}

.groups-section .groups .group-box .icon {
    width: 80px;
    height: 80px;
    background-color: var(--btn-disabled-bg);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-section .groups .group-box .icon img {
    width: 60%;
}

.groups-section .groups .group-box h3 {
    font-size: 1.5rem;
}

.groups-section .groups .group-box a {
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
    box-shadow: var(--btn-primary-shadow);
    transition: all .2s ease-in-out;
}

.groups-section .groups .group-box a:hover {
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    transition: all .2s ease-in-out;
}

/* =========================================================
       RESPONSIVE
========================================================= */

@media only screen and (width < 1280px) {
    .welcome .contents {
        padding: 120px 3% 50px;
    }

    .top-students {
        padding: 50px 3%;
    }

    .about-section .texts h2,
    .about-section .texts h2 span {
        font-size: 1.5rem;
    }

    .services {
        padding: 50px 10%;
    }

    .achievements .contents {
        width: 50%;
    }

    .achievements .contents .reports .report-box img {
        width: 150px;
    }

    .groups-section .contents {
        padding: 50px 5%;
    }

    .groups-section .title .line {
        width: 40%;
    }

    .groups-section .groups {
        row-gap: 30px;
    }

    .groups-section .groups .group-box {
        width: calc(100% / 3 - 20px);
    }
}

@media only screen and (width < 885px) {
    .welcome {
        height: fit-content;
    }

    .welcome .contents {
        flex-direction: column;
        align-items: center;
    }

    .welcome .texts {
        width: 100%;
        align-items: center;
        row-gap: 30px;
        margin-bottom: 40px;
    }

    .welcome .texts ul {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        column-gap: 10px;
    }

    .welcome .texts ul li {
        background-color: var(--color-primary-500);
        text-align: center;
        padding: 8px 15px;
        border-radius: 8px;
        color: var(--color-primary-50);
    }

    .welcome .texts ul li::before {
        display: none;
    }

    .welcome .image {
        width: 100%;
    }

    .slider-section .js-slider__arrow--next,
    .slider-section .js-slider__arrow--prev {
        display: none;
    }

    .posters {
        flex-wrap: wrap;
        gap: 20px;
    }

    .posters img {
        width: 40%;
    }

    .top-students ul {
        flex-wrap: wrap;
        gap: 30px;
    }

    .top-students ul li {
        width: calc(100% / 2 - 20px);
    }

    .about-section {
        height: fit-content;
    }

    .about-section .contents {
        flex-direction: column-reverse;
        row-gap: 40px;
    }

    .about-section .texts,
    .about-section .video {
        width: 100%;
    }

    .services {
        flex-wrap: wrap;
        padding: 50px 20%;
        gap: 30px;
    }

    .services .service {
        width: calc(100% / 2 - 20px);
    }

    .achievements > img {
        display: none;
    }

    .achievements {
        flex-direction: column;
        align-items: center;
        padding: 50px 3%;
    }

    .achievements .contents {
        width: 98%;
        transform: none;
    }

    .achievements .contents .reports {
        flex-direction: row;
        column-gap: 10px;
    }

    .achievements .contents .reports .report-box {
        width: calc(100% / 3 - 10px);
        flex-direction: column !important;
        padding: 15px;
        row-gap: 20px;
    }

    .achievements .contents .reports .report-box img {
        width: 100px;
    }

    .achievements .contents .reports .report-box .texts {
        width: 100%;
        row-gap: 10px;
    }

    .achievements .contents .reports .report-box .texts h3  {
        font-size: 1.2rem;
    }

    .achievements .contents .reports .report-box .texts p {
        font-size: 1.5rem;
    }

    .groups-section .title .line {
        display: none;
    }

    .groups-section .groups {
        row-gap: 10px;
    }

    .groups-section .groups .group-box {
        width: calc(100% / 3 - 10px);
        padding: 20px;
    }

    .groups-section .groups .group-box h3 {
        font-size: 1.4rem;
    }
}

@media only screen and (width < 640px) {
    .welcome .texts h2 {
        font-size: 2.2rem;
    }

    .welcome .texts p {
        font-size: 1rem;
    }

    .welcome .texts ul {
        flex-wrap: wrap;
    }

    .welcome .texts ul li {
        font-size: 1rem;
    }

    .slider-section {
        padding: 30px 3%;
    }

    .top-students .header img {
        width: 60px;
    }

    .top-students .header h2 {
        font-size: 1.3rem;
    }

    .top-students .header a {
        font-size: .9rem;
    }

    .top-students ul::after {
        width: 200px;
    }

    .top-students ul {
        flex-direction: column;
        align-items: center;
    }

    .top-students ul li {
        width: 100%;
    }

    .about-section .texts h2,
    .about-section .texts h2 span {
        font-size: 1.25rem;
    }

    .about-section .texts h2 span::before {
        top: 10px;
    }

    .about-section .texts p {
        font-size: .9rem;
    }

    .services {
        flex-wrap: wrap;
        padding: 50px 10%;
        gap: 30px;
    }

    .achievements {
        padding: 50px 5%;
    }

    .achievements .contents .reports {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .achievements .contents .reports .report-box {
        width: 45%;
    }

    .groups-section .title h2 {
        position: relative;
        padding-bottom: 20px;
    }

    .groups-section .title h2::after {
        content: "";
        width: 150%;
        height: 3px;
        background-color: var(--border-default);
        position: absolute;
        bottom: 0;
        left: 50%;
        border-radius: 50%;
        transform: translateX(-50%);
    }

    .groups-section .groups {
        gap: 20px;
        justify-content: center;
    }

    .groups-section .groups .group-box {
        width: calc(100% / 2 - 20px);
    }
}

@media only screen and (width < 480px) {
    .services {
        flex-direction: column;
        padding: 50px 5%;
        gap: 30px;
    }

    .services .service {
        width: 80%;
        flex-direction: row;
    }

    .services .service h4 {
        font-size: 1.3rem;
        margin-inline: auto;
    }

    .achievements {
        padding: 50px 5%;
    }

    .achievements .contents .reports {
        flex-direction: column;
        row-gap: 20px;
    }

    .achievements .contents .reports .report-box {
        width: 100%;
        flex-direction: row !important;
    }

    .achievements .contents .reports .report-box:nth-child(odd) {
        flex-direction: row-reverse !important;
    }

    .groups-section .groups {
        flex-direction: column;
        align-items: center;
    }

    .groups-section .groups .group-box {
        width: 80%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .groups-section .groups .group-box h3 {
        margin-inline: auto;
    }
}

@media only screen and (width < 383px) {
    .welcome .texts ul {
        flex-direction: column;
        align-items: center;
    }

    .welcome .texts ul li {
        width: 220px;
    }

    .top-students .header img {
        width: 50px;
    }

    .top-students .header h2 {
        font-size: 1.1rem;
    }

    .top-students .header a {
        font-size: .8rem;
    }

    .about-section .texts h2,
    .about-section .texts h2 span {
        font-size: 1.2rem;
    }

    .about-section .texts p {
        font-size: .8rem;
    }

    .services .service {
        width: 85%;
    }

    .services .service h4 {
        font-size: 1.1rem;
    }

    .groups-section .groups .group-box {
        width: 85%;
    }
}

@media only screen and (width < 345px) {
    .welcome .texts {
        row-gap: 20px;
    }

    .welcome .texts h2 {
        font-size: 2rem;
    }

    .welcome .texts p {
        font-size: .9rem;
    }

    .welcome .texts ul li {
        width: 200px;
        font-size: .9rem;
    }

    .welcome .texts .buttons a {
        font-size: 1rem;
    }

    .about-section .texts h2,
    .about-section .texts h2 span {
        font-size: 1rem;
    }

    .about-section .texts p {
        font-size: .8rem;
    }

    .services .service {
        width: 90%;
    }

    .services .service h4 {
        font-size: 1.1rem;
    }

    .groups-section .groups .group-box {
        width: 90%;
    }
}
