/* Hero fluid: fundal pana la margine, patru carduri in fluxul normal. */
.public-page .public-main--landing {
    width: 100%;
    padding-top: 0;
}

.public-main--landing > .public-section {
    width: min(calc(100% - 28px), 1440px);
    margin-inline: auto;
}

.public-main--landing .public-hero.public-hero--concept {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: clip;
    overflow-anchor: none;
}

.public-main--landing .public-hero--concept::before { inset: 0; }
.public-main--landing .public-hero--concept::after { left: 0; bottom: 0; width: min(610px, 100%); transform: none; }
.public-main--landing .public-hero--concept .hero-concept__copy {
    align-self: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 48px 24px 36px;
}
.public-main--landing .hero-concept__title { max-width: 100%; }
.public-main--landing .hero-concept__title-tail { text-wrap: wrap; }

.public-page .public-hero--concept .hero-edugov {
    position: relative;
    isolation: isolate;
    container-type: normal;
    display: grid;
    align-items: center;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    margin: 0;
    overflow: clip;
    border-radius: 0;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    color: #0d1d43;
}
.public-page .hero-edugov *, .public-page .hero-edugov *::before, .public-page .hero-edugov *::after { box-sizing: border-box; }
.public-page .hero-edugov p, .public-page .hero-edugov h2 { margin: 0; }
.public-page .hero-edugov .eg-backdrop-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%), linear-gradient(180deg, transparent, #000 9%, #000 70%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 24%), linear-gradient(180deg, transparent, #000 9%, #000 70%, transparent);
    mask-composite: intersect;
}
.public-page .hero-edugov .eg-backdrop { position: absolute; top: 0; right: 0; width: auto; min-width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: right center; }
.public-page .hero-edugov .eg-scene { min-width: 0; padding: 48px 24px 32px; }
.public-page .hero-edugov .eg-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; width: 100%; max-width: 680px; margin-inline: auto; }
/* Referinta invizibila pastreaza randul la dimensiunea cardului deschis. */
.public-page .hero-edugov .eg-document-slot { display: grid; min-width: 0; align-items: start; }
.public-page .hero-edugov .eg-document-slot > .eg-card { grid-area: 1 / 1; }
.public-page .hero-edugov .eg-card-size-reference { visibility: hidden; pointer-events: none; user-select: none; }
.public-page .hero-edugov .eg-card {
    --eg-accent: #2563eb;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px;
    border: 1px solid #ffffffed;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffffff5, #f8fbffe8);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 5px #1b3d6910, 0 18px 38px -18px #29589c55, inset 0 0 0 1px #d9e6fa55;
    text-decoration: none;
    color: #142441;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.public-page .hero-edugov .eg-card::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 100% 0%, #d4e6ff70, transparent 65%); opacity: .5; pointer-events: none; transition: opacity .24s ease; }
.public-page .hero-edugov .eg-card:focus-within { border-color: #9bbcf4; box-shadow: 0 4px 8px #1b3d6910, 0 22px 40px -18px #29589c60; }
.public-page .hero-edugov .eg-card-link:focus-visible, .public-page .hero-edugov summary:focus-visible, .public-page .hero-edugov a.eg-text-link:focus-visible, .public-page .hero-edugov .eg-step-tab:focus-visible, .public-page .hero-edugov .eg-step-panel:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.public-page .hero-edugov .eg-card-heading { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 14px; }
.public-page .hero-edugov .eg-card h2 { min-width: 0; color: #142441; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.3px; overflow-wrap: anywhere; }
.public-page .hero-edugov .eg-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.public-page .hero-edugov .eg-card-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 42px; color: var(--eg-accent); background: linear-gradient(145deg, #f0f6ff, #dceaff); border: 1px solid #ffffffc9; box-shadow: 0 3px 7px #387ad00c; border-radius: 12px; transition: transform .24s ease; }
.public-page .hero-edugov .eg-card-icon-primary { color: #fff; background: linear-gradient(145deg, #4c8cff, #1760ed 70%); border-color: #6197ff; box-shadow: 0 5px 12px #2563eb26, inset 0 1px 0 #ffffff40; }
.public-page .hero-edugov .eg-round-link { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; border: 1px solid #dfe9f7; background: #ffffff8f; color: var(--eg-accent); font-size: 19px; transition: transform .24s ease, background .24s ease, color .24s ease; }
.public-page .hero-edugov .eg-projects-card { min-height: 224px; }
.public-page .hero-edugov .eg-projects-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-bottom: 15px; }
.public-page .hero-edugov .eg-big-number { color: #162e55; font-size: 48px; font-weight: 650; line-height: 1; letter-spacing: -2px; margin-bottom: 8px; }
.public-page .hero-edugov .eg-muted { color: #536985; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.public-page .hero-edugov .eg-folder-illustration { flex: 0 0 auto; width: 94px; height: auto; filter: drop-shadow(0 10px 9px #2561b324); transform: rotate(-5deg); transition: transform .3s ease, filter .3s ease; }
.public-page .hero-edugov .eg-text-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid #dce6f28c; color: #165dcc; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.public-page .hero-edugov .eg-text-link > span { flex-shrink: 0; font-size: 19px; line-height: 1; transition: transform .24s ease; }
.public-page .hero-edugov a.eg-text-link:hover { color: #003c9c; text-decoration: underline; text-underline-offset: 4px; }
.public-page .hero-edugov .eg-small-label { margin-left: auto; color: #617899; font-size: 10px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; }
.public-page .hero-edugov .eg-steps-card { min-height: 224px; }
.public-page .hero-edugov .eg-steps-card .eg-card-heading { margin-bottom: 16px; }
.public-page .hero-edugov .eg-step-tabs { position: relative; display: flex; justify-content: space-between; gap: 6px; margin-bottom: 16px; }
.public-page .hero-edugov .eg-step-tabs::before { content: ''; position: absolute; top: 21px; left: 22px; right: 22px; border-top: 1px solid #d1e0f6; z-index: -1; }
.public-page .hero-edugov .eg-step-tab { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font: 600 12px Arial, sans-serif; color: #5b7395; background: #f0f5fd; border: 4px solid #f8fbff; border-radius: 50%; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.public-page .hero-edugov .eg-step-tab:hover { color: #1356ca; background: #dceafe; }
.public-page .hero-edugov .eg-step-tab[aria-selected="true"] { color: #fff; background: #2563eb; box-shadow: 0 4px 10px #2563eb25; }
.public-page .hero-edugov .eg-step-panels { display: grid; }
.public-page .hero-edugov .eg-step-panel { border-radius: 6px; padding-bottom: 12px; }
.public-page .hero-edugov .eg-step-panel h3 { margin: 0 0 7px; color: #183152; font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: -.2px; }
.public-page .hero-edugov .eg-step-panel p { color: #536985; font-size: 13px; line-height: 1.65; }
/* Panourile inactive rezerva spatiu fara a fi expuse cititoarelor de ecran. */
.public-page .hero-edugov .eg-steps-enhanced .eg-step-panel { grid-area: 1 / 1; padding-bottom: 0; }
.public-page .hero-edugov .eg-steps-enhanced .eg-step-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.public-page .hero-edugov .eg-step-tabs[hidden] { display: none; }
.public-page .hero-edugov .eg-request-card { --eg-accent: #138270; min-height: 194px; }
.public-page .hero-edugov .eg-request-card .eg-card-icon { background: linear-gradient(145deg, #edfaf5, #d6f0e7); }
.public-page .hero-edugov .eg-request-card::before { background: radial-gradient(ellipse at 100% 0%, #d1f1e680, transparent 65%); }
.public-page .hero-edugov .eg-request-card > .eg-muted { margin-bottom: 13px; }
.public-page .hero-edugov .eg-status-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 8px; padding: 4px 8px; border: 1px solid #c9eadd; border-radius: 6px; color: #14664e; background: #eaf8f1; font-size: 10px; line-height: 1.4; }
.public-page .hero-edugov .eg-status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #23a77f; }
.public-page .hero-edugov .eg-documents-card { --eg-accent: #6362d4; min-height: 194px; }
.public-page .hero-edugov .eg-documents-card .eg-card-icon { background: linear-gradient(145deg, #f2f1ff, #e3e4ff); }
.public-page .hero-edugov .eg-documents-card::before { background: radial-gradient(ellipse at 100% 0%, #e4dfff80, transparent 65%); }
.public-page .hero-edugov summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; border-radius: 7px; list-style: none; cursor: pointer; color: #536985; font-size: 13px; line-height: 1.45; }
.public-page .hero-edugov summary::-webkit-details-marker { display: none; }
.public-page .hero-edugov summary:hover { color: #433bbb; }
.public-page .hero-edugov .eg-detail-toggle { display: grid; place-items: center; flex: 0 0 24px; height: 24px; margin-left: auto; border-radius: 50%; color: #6461c9; background: #eeedff; font-size: 18px; font-weight: 400; transition: transform .2s ease, background .2s ease; }
.public-page .hero-edugov details[open] > summary .eg-detail-toggle { transform: rotate(45deg); background: #dedcff; }
.public-page .hero-edugov .eg-document-detail { margin-bottom: 14px; }
.public-page .hero-edugov .eg-document-detail p { padding: 0 0 4px; color: #536985; font-size: 13px; line-height: 1.65; }
.public-page .hero-edugov .eg-community-signature { display: block; width: min(260px, 75%); height: auto; margin: 34px 0 0 auto; }

@media (min-width: 601px) {
    .public-main--landing > .public-section { width: min(calc(100% - 48px), 1440px); }
    .public-main--landing .public-hero--concept .hero-concept__copy { padding: 52px 48px 34px; }
    .public-page .hero-edugov .eg-scene { padding: 80px 48px 48px; }
    .public-page .hero-edugov .eg-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .public-page .hero-edugov .eg-projects-card { margin-top: 36px; }

}

@media (min-width: 1120px) {
    .public-main--landing .public-hero.public-hero--concept { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 690px; }
    .public-main--landing .public-hero--concept .hero-concept__copy { padding: 58px clamp(24px, 2vw, 48px) 58px clamp(40px, 4.166667vw, 112px); }
    .public-main--landing .public-hero--concept .hero-concept__title { font-size: clamp(3rem, 4.2vw, 5.5rem); }
    .public-page .hero-edugov .eg-scene { padding: 132px clamp(28px, 7vw, 180px) 60px clamp(18px, 1.5vw, 40px); }
    .public-page .hero-edugov .eg-dashboard { margin-inline: 0 auto; gap: 20px; }
    .public-page .hero-edugov .eg-community-signature { margin-top: 44px; }
}

@media (min-width: 1120px) and (max-width: 1439px) {
    .public-page .hero-edugov .eg-scene { padding-right: 32px; padding-left: 14px; }
    .public-page .hero-edugov .eg-card { padding: 18px; }
    .public-page .hero-edugov .eg-card-heading { gap: 8px; }
    .public-page .hero-edugov .eg-folder-illustration { width: 72px; }
}

@media (min-width: 1700px) {
    .public-main--landing .public-hero.public-hero--concept { min-height: 750px; }
    .public-page .hero-edugov .eg-scene { padding-top: 166px; padding-bottom: 66px; }
    .public-page .hero-edugov .eg-dashboard { gap: 24px; }
}

@media (hover: hover) and (pointer: fine) {
    .public-page .hero-edugov .eg-card:hover { transform: translateY(-5px); border-color: #b8cff0; box-shadow: 0 3px 6px #1b3d6910, 0 24px 38px -16px #29589c50; }
    .public-page .hero-edugov .eg-card:hover::before { opacity: 1; }
    .public-page .hero-edugov .eg-card:hover .eg-card-icon { transform: translateY(-2px) rotate(-4deg); }
    .public-page .hero-edugov .eg-card-link:hover .eg-round-link { transform: rotate(45deg); background: var(--eg-accent); color: #fff; border-color: transparent; }
    .public-page .hero-edugov .eg-projects-card:hover .eg-folder-illustration { transform: translateY(-5px) rotate(2deg); filter: drop-shadow(0 14px 11px #2561b330); }
    .public-page .hero-edugov .eg-card-link:hover .eg-text-link > span, .public-page .hero-edugov a.eg-text-link:hover > span { transform: translateX(4px); }
}
.public-page .hero-edugov .eg-card-link:active { transform: translateY(-1px) scale(.99); }

@media (prefers-reduced-motion: no-preference) {
    .public-page .hero-edugov[data-animation-state="complete"] .eg-dashboard { animation: eg-reveal .55s ease-out both; }
    .public-page .hero-edugov .eg-steps-enhanced .eg-step-panel:not([hidden]), .public-page .hero-edugov .eg-document-detail[open] p { animation: eg-detail-reveal .22s ease-out both; }
    @keyframes eg-reveal { from { opacity: .55; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    @keyframes eg-detail-reveal { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    .public-page .hero-edugov *, .public-page .hero-edugov *::before { transition: none !important; animation: none !important; }
    .public-page .hero-edugov .eg-card:hover, .public-page .hero-edugov .eg-card:active, .public-page .hero-edugov .eg-card:hover .eg-card-icon, .public-page .hero-edugov .eg-card:hover .eg-round-link, .public-page .hero-edugov .eg-projects-card:hover .eg-folder-illustration, .public-page .hero-edugov .eg-text-link > span { transform: none; }
}
