/* ============================================================================
   EduPaperHub — Admission Requirements at a Glance
   Scoped styles. Typography is inherited from the global typography system;
   only compact UI labels get small overrides here.
   ============================================================================ */

.eph-adm {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Short explanation under the section heading */
.eph-adm-country {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6B7280;
    margin: -6px 0 20px !important;
}

/* ---------- Degree tabs ---------- */
.eph-adm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #E5E7EB;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.eph-adm-tab {
    appearance: none;
    -webkit-appearance: none;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #374151;
    cursor: pointer;
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 9px 16px !important;
    transition: background .15s ease, color .15s ease;
}

.eph-adm-tab:hover {
    background: #E8EFFB;
    color: #1E40AF;
}

.eph-adm-tab[aria-selected="true"] {
    background: #EFF6FF;
    border-color: #DBEAFE;
    border-bottom-color: #1E40AF;
    color: #1E40AF;
}

.eph-adm-tab:focus-visible {
    outline: 2px solid #0756A4;
    outline-offset: 2px;
}

.eph-adm-panel[hidden] {
    display: none !important;
}

/* ---------- Section subtitles ---------- */
.eph-adm .eph-adm-subtitle {
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #222222;
    margin: 0 0 12px !important;
}

.eph-adm-hint {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #6B7280;
    margin: -6px 0 12px !important;
}

/* ---------- Four basic requirement cards ---------- */
.eph-adm-basic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px !important;
    padding: 0 !important;
}

.eph-adm-basic-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 10px;
    padding: 14px !important;
}

.eph-adm-basic-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #EFF6FF;
    color: #1E40AF;
}

.eph-adm-basic-card h4 {
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #222222;
    margin: 0 0 4px !important;
}

.eph-adm-basic-card p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #4B5563;
    margin: 0 !important;
    overflow-wrap: anywhere;
}

/* ---------- Language test cards ---------- */
.eph-adm-tests {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.eph-adm-test {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 10px !important;
}

.eph-adm-test--ielts    { background: #EAF2FF; border-color: #D7E7FF; }
.eph-adm-test--toefl    { background: #E8F5F0; border-color: #D3EBE0; }
.eph-adm-test--pte      { background: #FFF2E5; border-color: #FBE2C4; }
.eph-adm-test--duolingo { background: #F2ECFF; border-color: #E5DAFF; }

.eph-adm-test-name {
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #374151;
    overflow-wrap: anywhere;
}

.eph-adm-test-score {
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #111827;
    overflow-wrap: anywhere;
}

.eph-adm-test-score.is-unknown,
.eph-adm-test-score.is-exempt {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #4B5563;
}

.eph-adm-status {
    display: inline-block;
    background: rgba(255, 255, 255, .78);
    border-radius: 999px;
    color: #1E40AF;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    padding: 2px 9px !important;
}

.eph-adm-status--optional { color: #0F766E; }
.eph-adm-status--not-specified { color: #6B7280; }
.eph-adm-status--not-required { color: #B45309; }

.eph-adm-test-extra {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: #4B5563;
    overflow-wrap: anywhere;
}

/* ---------- Collapsible documents checklist ---------- */
.eph-adm-docs {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin: 0 0 4px !important;
    overflow: hidden;
}

.eph-adm-docs summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #222222;
    padding: 13px 16px !important;
}

.eph-adm-docs summary::-webkit-details-marker {
    display: none;
}

.eph-adm-docs summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EFF6FF;
    color: #1E40AF;
    font-size: 16px;
    line-height: 1;
}

.eph-adm-docs[open] summary::after {
    content: '\2212';
}

.eph-adm-count {
    background: #F3F4F6;
    border-radius: 999px;
    color: #6B7280;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: auto !important;
    padding: 1px 8px !important;
}

.eph-adm-docs ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0 !important;
    padding: 0 16px 16px !important;
}

.eph-adm-docs li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #374151;
    overflow-wrap: anywhere;
}

.eph-adm-doc-mark {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 3px !important;
    border-radius: 4px;
    background: #E8F5F0;
    position: relative;
}

.eph-adm-doc-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #0F766E;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Additional program requirements ---------- */
.eph-adm-additional {
    background: #F8FAFC;
    border: 1px solid #EEF2F6;
    border-radius: 10px;
    margin: 20px 0 0 !important;
    padding: 16px !important;
}

.eph-adm-additional-row {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #374151;
    padding: 5px 0 !important;
    overflow-wrap: anywhere;
}

.eph-adm-additional-row strong {
    color: #222222;
    font-weight: 600;
}

/* ---------- Guide link / verification date ---------- */
.eph-adm-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    border-top: 1px solid #E5E7EB;
    margin: 22px 0 0 !important;
    padding: 14px 0 0 !important;
}

.eph-adm-guide {
    color: var(--eph-link-color, #0756A4) !important;
    font-family: var(--eph-font-heading, 'Montserrat', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.eph-adm-guide:hover {
    color: #05427C !important;
    text-decoration: underline;
}

.eph-adm-verified {
    color: #6B7280;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .eph-adm-tests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .eph-adm-basic {
        grid-template-columns: 1fr;
    }

    .eph-adm-tabs {
        gap: 6px;
    }

    .eph-adm-tab {
        flex: 1 1 auto;
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .eph-adm-tests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .eph-adm-test {
        padding: 12px 8px !important;
    }

    .eph-adm-test-score {
        font-size: 18px !important;
    }

    .eph-adm-docs ul {
        grid-template-columns: 1fr;
    }
}
