/* =========================================================
   REZULTATE ADMITERE
   IP Colegiul „Iulia Hasdeu” din Cahul
========================================================= */

.rezultate-admitere-page {
    --ra-primary: #154a68;
    --ra-primary-dark: #103b55;
    --ra-primary-soft: #eef5f8;
    --ra-text: #172532;
    --ra-muted: #65737e;
    --ra-border: #dce6ec;
    --ra-surface: #ffffff;
    --ra-surface-soft: #f6f9fb;
    --ra-danger: #bd1e1e;
    --ra-danger-dark: #991919;
    --ra-danger-bg: #fff3f3;
    --ra-danger-border: #efc7c7;

    background: #fff;
    color: var(--ra-text);
}

.rezultate-admitere-page *,
.rezultate-admitere-page *::before,
.rezultate-admitere-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.ra-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 88px 0 96px;
    background: linear-gradient(135deg, #0b3f5c 0%, #0d5b7c 55%, #11779e 100%);
    color: #fff;
}

.ra-hero::before {
    content: "";
    position: absolute;
    top: -145px;
    right: -125px;
    width: 430px;
    height: 430px;
    border-radius: 45px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    z-index: -1;
}

.ra-hero::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -155px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.ra-hero-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ra-hero-copy {
    padding-right: 26px;
}

.ra-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 30px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
}

.ra-hero h1 {
    color: #fff !important;
    max-width: 720px;
    margin: 0 0 22px;
    font-size: 50px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.ra-hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 18px;
    line-height: 1.72;
}

.ra-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.ra-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 205px;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 23px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ra-hero-btn:hover,
.ra-hero-btn:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.ra-hero-btn-primary {
    background: #fff;
    border-color: #fff;
    color: #0d5b7c;
}

.ra-hero-btn-primary:hover,
.ra-hero-btn-primary:focus {
    background: #f3f7fa;
    border-color: #f3f7fa;
    color: #0b3f5c;
}

.ra-hero-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.68);
    color: #fff;
}

.ra-hero-btn-outline:hover,
.ra-hero-btn-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.ra-hero-card {
    max-width: 430px;
    margin-left: auto;
    padding: 34px;
    border-radius: 18px;
    background: #fff;
    color: var(--ra-text);
    box-shadow: 0 22px 50px rgba(5, 29, 43, 0.2);
}

.ra-hero-card-label {
    display: block;
    margin-bottom: 9px;
    color: #0d5b7c;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.75px;
}

.ra-hero-card h2 {
    margin: 0 0 19px;
    color: #334e68;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}

.ra-hero-card-date {
    padding: 18px 20px;
    border-radius: 11px;
    background: #eef6fa;
}

.ra-hero-card-date span {
    display: block;
    margin-bottom: 4px;
    color: #617785;
    font-size: 13px;
    line-height: 1.4;
}

.ra-hero-card-date strong {
    display: block;
    color: #0d4f73;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.ra-hero-card-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
    padding: 13px 14px;
    border-left: 4px solid var(--ra-danger);
    border-radius: 8px;
    background: var(--ra-danger-bg);
}

.ra-hero-warning-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ra-danger);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.ra-hero-card-warning p {
    margin: 0;
    color: #703737;
    font-size: 13px;
    line-height: 1.55;
}

.ra-hero-card-warning strong {
    color: var(--ra-danger-dark);
}

.ra-hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid var(--ra-border);
}

.ra-hero-card-footer span {
    color: #7a8994;
    font-size: 12px;
}

.ra-hero-card-footer strong {
    color: #344b5d;
    font-size: 13px;
    white-space: nowrap;
}


/* =========================================================
   STRUCTURĂ GENERALĂ
========================================================= */

.ra-main {
    padding-top: 48px;
    padding-bottom: 72px;
}

.ra-section {
    margin-bottom: 62px;
}

.ra-important-section,
.ra-results-section {
    scroll-margin-top: 100px;
}

.ra-section:last-child {
    margin-bottom: 0;
}

.ra-section-heading {
    max-width: 900px;
    margin-bottom: 28px;
}

.ra-section-kicker {
    display: block;
    color: var(--ra-primary);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
}

.ra-section-heading h2,
.ra-tur2-header h2 {
    color: var(--ra-text);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 11px;
}

.ra-section-heading p,
.ra-tur2-intro {
    color: var(--ra-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   INFORMAȚII IMPORTANTE
========================================================= */

.ra-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 24px;
}

.ra-info-card {
    background: var(--ra-surface);
    border: 1px solid var(--ra-border);
    border-radius: 16px;
    padding: 30px;
}

.ra-info-card-primary {
    border-top: 4px solid var(--ra-primary);
}

.ra-info-card-secondary {
    background: var(--ra-surface-soft);
}

.ra-card-label {
    color: var(--ra-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.ra-info-card h3 {
    color: var(--ra-text);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 16px;
}

.ra-info-card > p {
    color: var(--ra-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
}


/* TERMEN-LIMITĂ */

.ra-deadline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--ra-primary-soft);
    border-radius: 11px;
    padding: 18px 20px;
    margin: 20px 0;
}

.ra-deadline span {
    color: #627683;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ra-deadline strong {
    color: var(--ra-primary);
    font-size: 22px;
    line-height: 1.2;
}


/* AVERTIZARE ROȘIE */

.ra-danger-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--ra-danger-bg);
    border: 1px solid var(--ra-danger-border);
    border-left: 5px solid var(--ra-danger);
    border-radius: 11px;
    padding: 19px 20px;
    margin-bottom: 24px;
}

.ra-danger-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ra-danger);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.ra-danger-box strong {
    display: block;
    color: var(--ra-danger-dark);
    font-size: 15px;
    margin-bottom: 5px;
}

.ra-danger-box p {
    color: #703737;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 6px;
}

.ra-danger-box p:last-child {
    margin-bottom: 0;
}

.ra-danger-box b {
    color: var(--ra-danger-dark);
}

.ra-danger-consequence {
    font-weight: 600;
}


/* PLATA 50% */

.ra-payment-highlight {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-top: 22px;
    border-top: 1px solid var(--ra-border);
}

.ra-payment-percent {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ra-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.ra-payment-highlight strong {
    display: block;
    color: var(--ra-text);
    font-size: 15px;
    margin-bottom: 4px;
}

.ra-payment-highlight p {
    color: var(--ra-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}


/* TUR II CARD */

.ra-next-round-date {
    background: var(--ra-primary);
    color: #fff;
    border-radius: 11px;
    padding: 20px 22px;
    margin: 22px 0 18px;
}

.ra-next-round-date span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    margin-bottom: 4px;
}

.ra-next-round-date strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
}

.ra-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ra-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ra-inline-link:hover,
.ra-inline-link:focus {
    color: var(--ra-primary-dark);
    text-decoration: none;
}


/* =========================================================
   TURUL II
========================================================= */

.ra-tur2-section {
    background: var(--ra-surface-soft);
    border: 1px solid var(--ra-border);
    border-radius: 16px;
    padding: 32px;
    scroll-margin-top: 100px;
}

.ra-tur2-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 15px;
}

.ra-tur2-header h2 {
    margin-bottom: 0;
}

.ra-date-pill {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 30px;
    color: var(--ra-primary);
    padding: 10px 17px;
    font-size: 14px;
    white-space: nowrap;
}

.ra-tur2-intro {
    max-width: 950px;
    margin-bottom: 22px;
}

.ra-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ra-program-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 10px;
    color: #263746;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.ra-program-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ra-primary-soft);
    color: var(--ra-primary);
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}


/* =========================================================
   TAXA DE STUDII
========================================================= */

.ra-fee-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--ra-primary);
    color: #fff;
    border-radius: 13px;
    padding: 20px 24px;
    margin-bottom: 22px;
}

.ra-fee-summary-value {
    flex: 0 0 auto;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.ra-fee-summary-text strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 3px;
}

.ra-fee-summary-text span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.ra-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ra-border);
    border-radius: 14px;
    background: #fff;
}

.ra-fees-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ra-fees-table thead {
    background: var(--ra-primary);
    color: #fff;
}

.ra-fees-table th {
    color: #fff;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    vertical-align: middle;
}

.ra-fees-table th:last-child {
    border-right: 0;
}

.ra-fees-table th span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 400;
}

.ra-fees-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e3eaee;
    vertical-align: middle;
}

.ra-fees-table tbody tr:nth-child(even) {
    background: #f8fafb;
}

.ra-fees-table tbody tr:last-child td {
    border-bottom: 0;
}

.ra-fee-program {
    color: var(--ra-text);
    font-size: 14px;
    font-weight: 600;
}

.ra-fee-value {
    color: #40515e;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.ra-fee-value span {
    color: #71818d;
    font-size: 13px;
    font-weight: 400;
}

.ra-fee-value-accent {
    color: var(--ra-primary);
    font-size: 16px;
    font-weight: 700;
}

.ra-text-center {
    text-align: center;
}

.ra-note {
    background: var(--ra-surface-soft);
    border-radius: 9px;
    color: var(--ra-muted);
    padding: 14px 17px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.ra-note strong {
    color: var(--ra-text);
}


/* =========================================================
   REZULTATE / PDF
========================================================= */

.ra-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ra-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ra-result-card:hover {
    border-color: #cad9e1;
    box-shadow: 0 8px 24px rgba(20, 55, 75, 0.08);
    transform: translateY(-2px);
}

.ra-result-card-content {
    min-width: 0;
}

.ra-result-label {
    display: block;
    color: #8a969e;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ra-result-card h3 {
    color: var(--ra-text);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.ra-result-actions {
    flex: 0 0 auto;
}

.ra-result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--ra-primary);
    border: 1px solid var(--ra-primary);
    border-radius: 7px;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ra-result-btn:hover,
.ra-result-btn:focus {
    background: var(--ra-primary-dark);
    border-color: var(--ra-primary-dark);
    color: #fff;
    text-decoration: none;
}

.ra-empty-state {
    grid-column: 1 / -1;
    background: var(--ra-surface-soft);
    border: 1px dashed var(--ra-border);
    border-radius: 10px;
    color: var(--ra-muted);
    padding: 28px;
    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .ra-hero h1 {
        font-size: 44px;
    }

    .ra-program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ra-hero {
        padding: 70px 0 82px;
    }

    .ra-hero-row {
        display: block;
    }

    .ra-hero-copy {
        padding-right: 0;
    }

    .ra-hero h1 {
        max-width: 100%;
        font-size: 39px;
    }

    .ra-hero-copy > p {
        max-width: 100%;
    }

    .ra-hero-card {
        max-width: 100%;
        margin-top: 38px;
        margin-left: 0;
    }

    .ra-info-grid {
        grid-template-columns: 1fr;
    }

    .ra-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ra-hero {
        padding: 54px 0 62px;
    }

    .ra-hero h1 {
        margin-bottom: 18px;
        font-size: 31px;
        line-height: 1.18;
        letter-spacing: -0.3px;
    }

    .ra-hero-copy > p {
        font-size: 16px;
        line-height: 1.65;
    }

    .ra-hero-actions {
        display: block;
        margin-top: 27px;
    }

    .ra-hero-btn {
        width: 100%;
        min-width: 100%;
        margin-bottom: 11px;
    }

    .ra-hero-card {
        margin-top: 27px;
        padding: 27px 24px;
    }

    .ra-hero-card-date strong {
        font-size: 23px;
    }

    .ra-main {
        padding-top: 36px;
        padding-bottom: 50px;
    }

    .ra-section {
        margin-bottom: 48px;
    }

    .ra-section-heading h2,
    .ra-tur2-header h2 {
        font-size: 24px;
    }

    .ra-info-card {
        padding: 22px 18px;
    }

    .ra-deadline {
        display: block;
    }

    .ra-deadline strong {
        display: block;
        margin-top: 6px;
        font-size: 20px;
    }

    .ra-danger-box {
        padding: 17px;
    }

    .ra-danger-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .ra-payment-highlight {
        align-items: flex-start;
    }

    .ra-payment-percent {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        font-size: 19px;
    }

    .ra-tur2-section {
        padding: 23px 18px;
    }

    .ra-tur2-header {
        display: block;
    }

    .ra-date-pill {
        display: inline-block;
        margin-top: 13px;
    }

    .ra-program-grid {
        grid-template-columns: 1fr;
    }

    .ra-fee-summary {
        align-items: flex-start;
        padding: 18px;
    }

    .ra-fee-summary-value {
        font-size: 28px;
        padding-right: 15px;
    }

    .ra-fees-table {
        min-width: 760px;
    }

    .ra-result-card {
        display: block;
    }

    .ra-result-actions {
        margin-top: 15px;
    }

    .ra-result-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ra-hero h1 {
        font-size: 27px;
    }

    .ra-eyebrow {
        padding: 7px 13px;
        font-size: 12px;
    }

    .ra-hero-card {
        padding: 23px 19px;
    }

    .ra-hero-card-date {
        padding: 16px;
    }

    .ra-hero-card-footer {
        display: block;
    }

    .ra-hero-card-footer strong {
        display: block;
        margin-top: 4px;
    }

    .ra-danger-box {
        display: block;
    }

    .ra-danger-icon {
        margin-bottom: 11px;
    }

    .ra-payment-highlight {
        display: block;
    }

    .ra-payment-percent {
        margin-bottom: 12px;
    }

    .ra-fee-summary {
        display: block;
    }

    .ra-fee-summary-value {
        display: inline-block;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
        padding: 0 0 10px;
        margin-bottom: 10px;
    }
}
