/* Commons */
.section-title {
    margin-top: 5%;
    margin-bottom: 5%;
    text-align: center;
    font-size: 5vw;
}
.under-line {
    text-decoration: underline;
}


/* Main Section */
#main {
    padding-top: 5%;
    padding-bottom: 3%;
    background-image: url(./Images/Main-Background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; 
    color: white;
}

.main-title-text {
    font-size: 4vw;
    text-align: center;
}

.main-title-text2 {
    color: var(--main-color);
}

.main-description {
    padding: 30px;
    font-size: 2.5vw;
    text-align: center;
}

.main-link-container {
    width: 70vw;
    margin-left: 15vw;
    display: flex;
    margin-top: 2%;
    justify-content: space-around;
}

.main-link-container a {
    text-decoration: none;
}

.main-link-item {
    width: 12.5vw;
    text-align: center;
    border-radius: 25px;
    border-width: 2px;
    border-style: solid;
    border-color: white;
}

.main-link-item:hover {
    animation-name: color;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.main-link-item:not(:hover) {
    animation-name: color-rev;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes color {
    0% {
        background-color: transparent;
    }

    100% {
        background-color: var(--main-color);
    }
}
@keyframes color-rev {
    0% {
        background-color: var(--main-color);
    }

    100% {
        background-color: transparent;
    }
}

.main-link-item p {
    font-size: 1vw;
    padding-top: 15px;
    padding-bottom: 15px;
    font-weight: 900;
    color: white;
}


/* Stats Section*/

#stats {
    padding-bottom: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(255, 255, 255);
    background-image: url(./Images/Acceptance-Background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; 
}

.stats-title {
    text-align: center;
    font-size: 5vw;
    margin-top: 5vw;
    margin-bottom: 1vw;
}

.stats-subtitle {
    font-size: 1.5vw;
    text-align: center;
}

.stats-container {
    margin-top: 3vw;
    display: flex;
    width: 70vw;
    justify-content: space-around;
}

.stats-item {
    text-align: center;
}

.stats-item-title {
    font-size: 10vw;
    font-weight: bolder;
}

.stats-item-line {
    width: 100%;
    height: 3px;
    background-color: rgb(255, 255, 255);
    margin-bottom: 1.5vw;
}

.stats-item-para {
    font-size: 2vw;
}

/* Why EduGate Section */

#why {
    margin-bottom: 10vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 31vw;
}

.why-title {
    margin-top: 8vw;
}

.why-container {
    display: flex;
    justify-content: space-around;
    padding: 0 2vw;
}

.why-element {
    display: flex;
    flex-direction: column;
    width: 30vw;
    border-radius: 25px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(72, 72, 72);
    padding-top: 2vw;
    padding-bottom: 2vw;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    animation-name: color-why-rev;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.why-element:hover {
    animation-name: color-why;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.why-element-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6vw;
}

.why-element-para {
    padding: 0 20px;
    font-size: 1.1vw;
}

@keyframes color-why {
    0% {
        background-color: transparent;
        color: black;
        border-color: black;
    }

    100% {
        background-color: var(--main-color);
        color: white;
        border-color: rgb(170, 170, 170);
    }
}
@keyframes color-why-rev {
    0% {
        background-color: var(--main-color);
        color: white;
        border-color: rgb(170, 170, 170);
    }

    100% {
        background-color: transparent;
        color: black;
        border-color: black;
    }
}

/* Review Section */
#review {
    background-color: #003157;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 100px;
}

.review-title {
    color: white;
    margin-top: 0;
    padding-top: 5vw;
}

.review-collection {
    display: flex;
    justify-content: space-around;
}

.review-box {
    position: relative;
    border: solid 1px rgb(182, 181, 181);
    background-color: white;
    border-radius: 10px;
    padding: 2vw;
    width: 20vw;
}

.review-box-title {
    margin-bottom: 1vw;
    font-size: 1.5vw;
}

.review-box-sub {
    font-size: 1.2vw;
}

.review-box-content {
    font-size: 1vw;
    font-style: italic;
}

.review-box:nth-of-type(1) img,
.review-box:nth-of-type(2) img {
    position: absolute;
    top: 1vw;
    right: 1.3vw;
    width: 4vw;
}

.review-box:nth-of-type(3) img,
.review-box:nth-of-type(4) img {
    position: absolute;
    top: 1vw;
    right: 0.1vw;
    width: 4vw;
}

/* popup */
.popup-title {
    font-size: calc(14px + 0.8vw);
    font-weight: 600;
    text-align: left;
    margin-bottom: 1.5vw;
    color: #333;
    line-height: 1.4;
}

.popup-para {
    text-align: left;
    font-size: calc(12px + 0.4vw);
    line-height: 1.6;
    color: #444;
    margin-bottom: 2vw;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    width: fit-content;
    max-width: 85vw;
    max-height: 75vh;
    padding: 0;
    background-color: white;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-content a {
    display: block;
    line-height: 0;
}

.popup-img {
    max-width: 85vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* 닫기 버튼 스타일 */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #333;
}