/* ---- Shared education layout (used by featured_school, application, faq, tutorials) ---- */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.flex-row {
    display: flex;
    flex-direction: row;
}

.edu-head-menu {
    display: none;
}

/* ---- Hero / landing ---- */
.edu-landing .breadcrumb {
    text-align: left;
    gap: 10px;
    padding: 10px 0;
}
.edu-landing .breadcrumb a {
    text-decoration: underline;
    color: var(--text-dim);
}
.edu-landing .breadcrumb a.active {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-opaque);
}
.edu-landing .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 195px 0;
}
.edu-landing .title h1 {
    text-transform: uppercase;
    color: var(--text-opaque);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 2px;
}
.edu-landing .title h3.sub-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dim);
    max-width: 700px;
    letter-spacing: 1.6px;
}
.edu-landing .title p {
    margin: 0;
    max-width: 600px;
    color: var(--text-dim);
}

/* ---- Grey band ---- */
.grey-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Old edu two-column layout (featured_school, faq, application, tutorials) ---- */
.edu-section {
    padding: 20px 80px;
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 1920px;
    width: 100%;
}
.edu-section div.grid-img { width: 50%; }
.edu-section > div > img { width: 100%; }
.edu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
}
.edu-content h2 { font-size: 23px; font-weight: 600; }
.edu-content p { line-height: 26px; }
.edu-content li { line-height: 26px; }
.edu-note-extra,
.edu-note-extra i { color: var(--text-dim); }
.text-underline { text-decoration: underline; }
.text-warning { color: var(--text-error); }

/* ---- Carousel (testimonials) ---- */
.review-carousel-item {
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 250px;
    width: 100vw;
    max-width: 1920px;
    text-wrap: wrap;
}
.review-carousel-item p p:first-child {
    font-style: italic;
    padding: 20px;
    color: var(--text-color);
    background-color: var(--component-dim);
    border-radius: 30px;
}
.carousel {
    margin-top: 30px;
    position: relative;
}
.carousel .outer {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}
.carousel .outer::-webkit-scrollbar { display: none; }
.carousel .content {
    display: inline-flex;
    flex-wrap: nowrap;
    position: relative;
    white-space: nowrap;
}
.carousel ul {
    display: flex;
    height: 12px;
    margin-top: 10px;
    justify-content: center;
    gap: 4px;
}
.carousel ul li {
    display: block;
    width: 12px;
    height: 6px;
    border-radius: 6px;
    margin-left: 2px;
    background-color: var(--text-color);
    transition: all 0.2s linear;
    cursor: pointer;
    opacity: 0.2;
}
.carousel ul li:hover:not(.active) { opacity: 0.8; }
.carousel ul li.active { opacity: 0.95; }

/* ---- Reviews / success (old layout pages) ---- */
#edu-reviews .edu-content, #edu-success .edu-content {
    width: 100%;
    max-width: 1920px;
    text-align: center;
}

/* ---- Free trial footer ---- */
#edu-free-trial { overflow: hidden; }
#edu-free-trial .edu-section { align-items: center; text-align: center; }
#edu-free-trial h1 { font-size: 48px; font-weight: 900; line-height: 59px; text-transform: uppercase; }
#edu-free-trial img { width: 100%; max-width: 1200px; }
#edu-free-trial img.small { display: none; }

/* ---- FAQ page (dedicated, now redirects but kept for other pages) ---- */
#edu-faq .faq { margin-bottom: 100px; }
#edu-faq .edu-content, #edu-application .edu-content { max-width: 900px; width: 100%; }
#edu-faq .edu-content h2 { font-weight: 500; }
#edu-faq .edu-content p { font-size: 18px; }
#edu-faq .wrap { width: 100%; max-width: 900px; }

/* ---- Education index (standard layout) ---- */
#edu-description,
#edu-free,
#edu-upgrade,
#edu-steps-go-get-free,
#edu-featured-school,
#edu-join-us,
#faq {
    padding: 60px 0;
    align-items: stretch;
}
#edu-reviews { padding: 60px 0; }
.wrap.nest .right img { max-width: 100%; }
.discord-logo { width: 150px !important; }
#faq .faq { width: calc(100% - 80px); max-width: 900px; margin-left: auto; margin-right: auto; }
#faq .wrap p { max-width: 900px; }

/* ---- Featured school page ---- */
#edu-feature-middle { padding: 0 0 30px; }
#edu-feature-middle .edu-content, #edu-feature-conclusion .edu-content { width: 100%; }
#edu-feature-conclusion .edu-content h2 { align-self: center; }
#edu-feature-middle .edu-content p, #edu-video-tutorial .edu-content { text-align: center; }
.edu-content h2.featured-title { font-size: 25px; font-weight: 700; }
.featured-grid-img { max-width: 450px; }

/* ---- Tutorial cards ---- */
.edu-card-section {
    width: 100%;
    gap: 10px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.edu-card {
    gap: 10px;
    width: 23%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all .15s ease-in;
}
.edu-card h2 { margin: 4px 0 0 0; font-size: 16px; font-weight: 600; line-height: 28px; }
.edu-card img { width: 100%; }
.edu-card img.logo { width: 50px; border: 3px solid rgba(255, 255, 255, 0.1); border-radius: 50%; }
#edu-tutorial-video .edu-content > p.title { font-size: 22px; font-weight: 500; }
#edu-tutorial-video .edu-card:hover { transform: translateY(-6px); box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 8px; cursor: pointer; }
#edu-tutorial-video .edu-card div { position: relative; top: -20px; }
#edu-tutorial-intro { background: linear-gradient(73.3deg, #8045A6 0%, #8A96D9 100%); }
#edu-tutorial-intro .edu-card { padding: 20px 20px 30px; border: none; border-radius: 20px; background: rgba(255, 255, 255, 0.15); box-shadow: 0px 10px 15px -10px rgba(0, 0, 0, 0.3); align-items: center; }
#edu-tutorial-intro .edu-card img { width: 82px; }
#edu-tutorial-intro .edu-card h3 { font-size: 20px; line-height: 28px; }
#edu-tutorial-intro .edu-card p { font-weight: 500; font-size: 14px; line-height: 26px; color: #ffffff; }
.edu-section ul.tick-list li { padding: 5px 0; align-items: center; font-size: 18px; line-height: 25.5px; }
.edu-section ul.tick-list li .list-icon { width: 20px; margin: 0 10px 0 0; }

/* ---- Application form ---- */
#edu-application .edu-content h2 { font-size: 40px; line-height: 60px; }
#education-application-form-login-overlay {
    top: 0;
    left: 0;
    gap: 30px;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 30px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(transparent 0%, var(--page-color, #0a0f20) 75%);
}
#education-application-form-login-overlay h3 { font-size: 28px; font-weight: 600; text-align: center; }
#education-application-files,
#education-application-form {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.form-container {
    width: 96%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    line-height: 21px;
}
.title-container { align-self: flex-start; }
.title-container div.bold { font-weight: 700; }
.section-title { font-size: 40px; font-weight: 700; line-height: 60px; }
.warning-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    gap: 20px;
}
.warning-container p, .warning-container span { line-height: 22px; }
.warning-container .text-red { color: var(--text-error); }
.full-width { width: 100%; }
.half-width, .text-input.half-width, .select-input.half-width { width: calc(50% - 1rem); }
.form-container .form-item { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 200px; }
.form-container .form-item.full-width { flex-basis: 100%; }
.form-container .form-item.half-width { flex-basis: calc(50% - 20px); flex-grow: 0; }
.form-container .form-actions { flex: 1; display: flex; justify-content: flex-end; align-self: flex-end; gap: 10px; margin-bottom: 125px; }

/* ---- Upload area ---- */
.filesExampleColumns { display: flex; flex-wrap: wrap; gap: 20px; }
.filesExampleColumn { flex-basis: min(50%, 200px); flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.filesExampleColumn div img { width: 20px; }
.filesExampleColumn > div:not(.filesNotAcceptTitle) { display: flex; align-items: flex-start; gap: 10px; }
.filesNotAcceptTitle { display: inline-block; }
.upload-container {
    width: 100%;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.upload-container .upload-area {
    background: var(--component-dim);
    width: 100%;
    min-height: 320px;
    padding: 60px 0;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
}
.upload-container .upload-area img { width: 70px; }
.upload-container .upload-area.dragover { border: 5px dashed rgba(255, 255, 255, 0.2); }
.button.upload-button { background: var(--accent-color); font-size: 13px; }
.button.upload-button > img { width: 20px; }
.file-upload { display: none; }
.upload-progress { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.file-item { display: flex; align-items: center; gap: 20px; }
.file-item .file-item-logo { width: 32px; height: 32px; }
.file-item .file-item-name { font-size: 14px; font-weight: 700; line-height: 20px; width: clamp(50px, 20vw, 400px); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.file-item .file-item-size { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--text-dim); }
.file-item .file-item-progress { display: flex; flex-direction: column; flex: 1; }
.file-item .file-item-progress.completed { visibility: hidden; }
.file-item .progress-bar { height: 8px; border-radius: 30px; background-color: rgba(255, 255, 255, 0.1); position: relative; }
.file-item .progress-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 30px; background-color: var(--accent-color); }
.file-item .progress-bar-text, .file-item .progress-bar-text * { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 700; line-height: 21px; color: var(--text-dim); }
.file-item .progress-percent { width: 5ch; text-align: right; }
.file-item-cancel { padding: 0; cursor: pointer; background: none; border: none; color: inherit; font: inherit; outline: inherit; width: 20px; height: 20px; }
.file-item-cancel img { width: 20px; height: 20px; }
.fileValidationMessages { display: none; flex-direction: column; align-items: center; list-style: initial; }
.fileValidationMessages > li { color: var(--text-error); font-size: 13px; font-weight: 700; }
.fileValidationMessages:invalid { display: flex; }

/* ---- Checkbox / radio / select / text inputs ---- */
.terms-conditions-group { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; width: 100%; }
.terms-conditions-group input[type="checkbox"],
.checkbox-input input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    visibility: visible;
    margin-right: 10px !important;
    cursor: pointer;
    position: relative;
}
.terms-conditions-group input[type="checkbox"]:checked,
.checkbox-input input[type="checkbox"]:checked { border-color: var(--accent-color); background: var(--accent-color); }
.terms-conditions-group input[type="checkbox"]:checked::after,
.checkbox-input input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.hidden { display: none !important; }
.text-input { width: 100%; display: flex; flex-direction: column; }
.text-input *, .select-input *, .checkbox-input * { font-size: 14px; font-style: normal; font-weight: 400; line-height: 22px; }
.text-input-label { gap: 4px; }
.required > label:not(.no-label-present):after { content: "*"; color: var(--text-error); display: inline; }
.text-input .text-input-example { font-size: 12px; }
.text-input-example-bold { font-size: 12px; font-weight: 700; }
input.text-input-element,
textarea.text-input-element {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--component-dim);
    height: 44px;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
}
textarea.text-input-element { height: unset; resize: vertical; }
input.text-input-element:disabled, textarea.text-input-element:disabled { background: transparent; opacity: 0.5; }
input.text-input-element:focus, textarea.text-input-element:focus { border-color: var(--accent-color); }
input.text-input-element::placeholder, textarea.text-input-element::placeholder { color: var(--text-dim); }
.select-input select:focus { border-color: var(--accent-color); }
.text-input.invalid input.text-input-element,
.select-input.invalid .select-input-element { border: 1px solid var(--text-error); background: rgba(232, 69, 69, 0.1); }
.text-input label, .select-input label, .radio-input label { gap: 4px; }
.validation-label { display: none; align-items: center; gap: 4px; margin-top: 2px; }
.validation-message { color: var(--text-error); font-size: 10px; font-weight: 700; }
.invalid > .validation-label { display: flex; }
.radio-input { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.radio-input.required > label::after { content: "*"; color: var(--text-error); display: inline; }
.radio-input input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
}
.radio-input input[type="radio"]:hover { border-color: rgba(255, 255, 255, 0.5); }
.radio-input input[type="radio"]:checked { border-color: var(--accent-color); }
.radio-input input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}
.radio-input input::placeholder { color: var(--text-dim); }
.radio-input .radio-input-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; justify-items: start; }
.radio-input .radio-input-group label { display: flex; white-space: nowrap; align-items: center; gap: 10px; cursor: pointer; }
.radio-input .sub-label, .radio-input .sub-label * { font-size: 12px; display: inline-block; }
.select-input { display: flex; flex-direction: column; width: 100%; }
.select-input select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--component-dim);
    height: 44px;
    font-size: 14px;
    padding: 10px 20px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    color: var(--text-color);
    outline: none;
}
.select-input select:invalid { color: var(--text-dim); }
.checkbox-input-group label { align-items: flex-start; }
.institution-row { display: flex; align-items: flex-end; width: 100%; gap: 30px; }

/* ---- Responsive ---- */
@media only screen and (max-width: 1024px) {
    #head-education { width: max-content; }
    .edu-head { display: none; }
    .edu-head-menu { display: block; }
    .edu-landing .title { padding: 80px 20px 100px; }
    .edu-landing .title h1 { font-size: 64px; }
    .edu-landing .title h3.sub-title { font-size: 25px; font-weight: 600; }
    .edu-section { padding: 20px 40px; }
    .review-carousel-item { padding: 0 40px; }
    #edu-free-trial img { display: none; }
    #edu-free-trial img.small { display: block; width: 100%; }
    #edu-free-trial h1 { font-size: 32px; line-height: 38px; }
    #edu-faq .wrap { width: 100%; }
    .edu-card img.logo { width: 40px; }
}

@media only screen and (max-width: 625px) {
    .edu-landing .title h1 { font-size: 32px; }
    .edu-landing .title h3.sub-title { font-size: 19px; }
    .edu-section { padding: 10px 20px; flex-direction: column; }
    .edu-section > div > img { width: 100%; }
    .edu-content:not(.but) { order: 1; width: 100%; }
    .edu-section div.grid-img { width: 100%; }
    .edu-content h2 { font-size: 19.2px; }
    .carousel { margin-top: 0; }
    .review-carousel-item p p:first-child { background-color: unset; }
    .review-carousel-item p {
        margin: 0;
        padding: 10px 20px 20px;
        color: var(--text-color);
        background-color: var(--component-dim);
        border-radius: 30px;
    }
    #edu-free-trial img.small { display: block; width: 100%; }
    #edu-faq .edu-content, #edu-feature-conclusion .edu-content,
    #edu-video-tutorial .edu-content, #edu-application .edu-content,
    #edu-success .edu-content { order: 0; }
    .edu-card { width: 47%; }
    .edu-card img.logo { width: 60px; }
}

@media only screen and (max-width: 480px) {
    .edu-card { width: 100%; }
}
