:root {
    --color-bg: #f3f3f3;
    --color-surface: #f1d566;
    --color-primary: #8d2047;
    --color-text: #49697b;
    --color-text-dark: #2d3c45;
    --color-border: #7d96a3;
    --container-width: 1200px;
    --section-spacing: 5rem;
    --radius: 8px;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ========================= */
/* PAGE BACKGROUNDS */
/* ========================= */

/* HOME */
.page-home {
    background: white;
}

/* INFORMATII + CALENDAR */
.page-informatii,
.page-calendar,
.page-parteneri,
.page-subiecte,
.page-arhiva,
.page-rezultate,
.page-tematica,
.page-regulament,
.page-galerie {
    background-image: url("/static/images/5b83e9_336411a129bc423c9164d2d859a8a0be~mv2.avif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-surse {
    background-image: url("/static/images/5b83e9_336411a129bc423c9164d2d859a8a0be~mv2.avif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ========================= */

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.section {
    padding: var(--section-spacing) 0;
}

/* ========================= */
/* HEADER */
/* ========================= */

.site-header {
    background: var(--color-surface);
    padding: 1.5rem 0 1rem;
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.main-nav a {
    color: #3f6f7a;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-badge {
    max-width: 340px;
    margin-left: 2rem;
}

/* ========================= */
/* ABOUT */
/* ========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.about-image img {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.button-outline {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    margin-top: 1rem;
    transition: var(--transition);
}

.button-outline:hover {
    background: white;
}

/* ========================= */
/* ORGANIZER */
/* ========================= */

.organizer-section {
    text-align: center;
}

.organizer-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.organizer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.organizer-logo img {
    max-width: 180px;
}

.organizer-note {
    font-size: 1.15rem;
}

.organizer-note a {
    color: #b23232;
    text-decoration: underline;
}

/* ========================= */
/* CALENDAR / INFORMATIONS BOX */
/* ========================= */

.calendar-section {
    padding: 3rem 0;
}

/* containerul alb din mijloc */
.calendar-wrapper {
    width: min(100% - 2rem, 900px);
    margin: 0 auto;
    background: white;
    border: 2px solid #e26b5b;
    padding: 2rem;
}

/* imaginile una sub alta */
.calendar-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.parteneri-section {
    padding: 3rem 0;
}

.parteneri-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.parteneri-images img {
    width: 100%;
    max-width: 650px;
    display: block;
    margin: 0 auto;
}

.parteneri-images img + img {
    margin-top: -5px;
}

/* fiecare imagine */
.calendar-images img {
    display: block;
    margin: 0 auto;   /* 👈 asta le centrează */
    width: 100%;
    max-width: 650px;

    background: white;
    padding: 10px;
    border: 1px solid #ddd;
}

.calendar-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: #8d2047; /* culoarea ta primary */
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* ========================= */
/* SUBIECTE */
/* ========================= */

.subiecte-section {
    padding: 2.5rem 0 1rem;
}

.subiecte-wrapper {
    width: min(100% - 2rem, 900px);
    margin: 0 auto;
}

.subiecte-content-box {
    background: white;
    border: 2px solid #e26b5b;
    padding: 1.75rem 2rem;
}

.subiecte-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8d2047;
    margin: 0 0 1rem;
    letter-spacing: 1px;
}

.subiecte-content-box h2 {
    text-align: center;
    color: #8d2047;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.5rem;
}

.subiecte-content-box p,
.subiecte-content-box li {
    color: #2f4f4f;
    line-height: 1.6;
    font-size: 1.2rem;
}

.subiecte-content-box ol {
    margin: 0.4rem 0 0;
    padding-left: 1.4rem;
}

.subiecte-download-section {
    padding: 0 0 2rem;
    text-align: center;
}

.subiecte-download-text {
    margin: 0 auto 1.25rem;
    width: min(100%, 900px);
    background: white;
    border: 2px solid #e26b5b;
    color: #2f4f4f;
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0.7rem 1rem;
}

.subiecte-download-button {
    display: inline-block;
    background: #6f2b2b;
    color: #ffffff;
    letter-spacing: 1.6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1.6rem;
    transition: var(--transition);
}

.subiecte-download-button:hover {
    background: #8d2047;
}

/* ========================= */
/* TEMATICA */
/* ========================= */

.tematica-section {
    padding: 2.5rem 0 1.5rem;
}

.tematica-wrapper {
    width: min(100% - 2rem, 960px);
    margin: 0 auto;
}

.tematica-content-box {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #e26b5b;
    padding: 1.5rem;
}

.tematica-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8d2047;
    margin: 0 0 0.75rem;
    letter-spacing: 1px;
}

.tematica-description {
    text-align: center;
    color: #2f4f4f;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.tematica-viewer-shell {
    background: #f4f0e8;
    border: 1px solid #d8cfc1;
    padding: 0.75rem;
}

.tematica-pdf-viewer {
    display: block;
    width: 100%;
    height: 950px;
    border: 0;
    background: white;
}

.tematica-download-section {
    padding: 1rem 0 0;
    text-align: center;
}

.tematica-download-button {
    display: inline-block;
    background: #6f2b2b;
    color: #ffffff;
    letter-spacing: 1.6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1.6rem;
    transition: var(--transition);
}

.tematica-download-button:hover {
    background: #8d2047;
}

/* ========================= */
/* REGULAMENT */
/* ========================= */

.regulament-section {
    padding: 2.5rem 0 1.5rem;
}

.regulament-wrapper {
    width: min(100% - 2rem, 960px);
    margin: 0 auto;
}

.regulament-content-box {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #e26b5b;
    padding: 1.5rem;
}

.regulament-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    color: #8d2047;
    margin: 0 0 0.75rem;
    letter-spacing: 1px;
}

.regulament-description {
    text-align: center;
    color: #2f4f4f;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.regulament-viewer-shell {
    background: #f4f0e8;
    border: 1px solid #d8cfc1;
    padding: 0.75rem;
}

.regulament-pdf-viewer {
    display: block;
    width: 100%;
    height: 950px;
    border: 0;
    background: white;
}

.regulament-download-section {
    padding: 1rem 0 0;
    text-align: center;
}

.regulament-download-button {
    display: inline-block;
    background: #6f2b2b;
    color: #ffffff;
    letter-spacing: 1.6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 1.6rem;
    transition: var(--transition);
}

.regulament-download-button:hover {
    background: #8d2047;
}

/* ========================= */
/* GALERIE */
/* ========================= */

.galerie-section {
    padding: 2.5rem 0 1.5rem;
}

.galerie-wrapper {
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
}

.galerie-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8d2047;
    margin: 0 0 1.5rem;
    letter-spacing: 1px;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.galerie-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(141, 32, 71, 0.55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ========================= */
/* ARHIVA */
/* ========================= */

.arhiva-section {
    padding: 2.5rem 0 1.5rem;
}

.arhiva-wrapper {
    width: min(100% - 2rem, 980px);
    margin: 0 auto;
}

.arhiva-content-box {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #e26b5b;
    padding: 1.5rem;
}

.arhiva-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.arhiva-folder-icon {
    display: none;
}

.arhiva-folder-row-icon {
    flex: 0 0 auto;
    color: #5a6b74;
    background: transparent !important;
    border: none !important;
    width: 28px;
    height: 28px;
}

.arhiva-title {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8d2047;
    letter-spacing: 1px;
}

.arhiva-description,
.arhiva-empty-state,
.arhiva-empty-folder {
    margin: 0;
    color: #2f4f4f;
    font-size: 1.05rem;
    line-height: 1.5;
}

.arhiva-accordion {
    display: grid;
    gap: 0.85rem;
}

.arhiva-folder {
    border: 1px solid rgba(125, 150, 163, 0.45);
    background: #fffdf8;
}

.arhiva-folder-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
}

.arhiva-folder-summary::-webkit-details-marker {
    display: none;
}

.arhiva-folder-summary-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.arhiva-folder-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3c45;
}

.arhiva-folder-meta {
    color: #49697b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.arhiva-documents {
    border-top: 1px solid rgba(125, 150, 163, 0.35);
    padding: 0.35rem 1rem 0.8rem;
}

.arhiva-document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.15rem;
    border-bottom: 1px solid rgba(125, 150, 163, 0.25);
    transition: var(--transition);
}

.arhiva-document:last-child {
    border-bottom: 0;
}

.arhiva-document:hover {
    color: #8d2047;
}

.arhiva-document-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.arhiva-pdf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    background: #b23232;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.arhiva-document-title {
    color: #2d3c45;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.arhiva-document-action {
    color: #8d2047;
    font-weight: 700;
    white-space: nowrap;
}

/* Subfoldere în arhiva publică */

.arhiva-subfolder {
    margin: 0.4rem 0;
    border: 1px solid rgba(125, 150, 163, 0.3);
    background: #f7f3ec;
}

.arhiva-subfolder-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    list-style: none;
}

.arhiva-subfolder-summary::-webkit-details-marker {
    display: none;
}

.arhiva-subfolder-summary-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.arhiva-subfolder-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3c45;
}

.arhiva-subfolder-icon {
    width: 22px;
    height: 22px;
    color: #7a8f9a;
}

.arhiva-subdocuments {
    border-top: 1px solid rgba(125, 150, 163, 0.25);
    padding: 0.2rem 0.8rem 0.5rem 2.2rem;
}

.arhiva-subfolder--deep {
    margin-left: 0.5rem;
    background: #f2ede4;
}

.arhiva-subdocuments--deep {
    padding-left: 2.8rem;
}

/* ========================= */
/* REZULTATE */
/* ========================= */

.rez-section {
    padding: 2.5rem 0 1.5rem;
}

.rez-wrapper {
    width: min(100% - 2rem, 980px);
    margin: 0 auto;
}

.rez-content-box {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #e26b5b;
    padding: 1.5rem;
}

.rez-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rez-title {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8d2047;
    letter-spacing: 1px;
}

.rez-description,
.rez-empty-state,
.rez-empty {
    margin: 0;
    color: #2f4f4f;
    font-size: 1.05rem;
    line-height: 1.5;
}

.rez-empty {
    padding: 0.6rem 1rem;
}

.rez-accordion {
    display: grid;
    gap: 0.85rem;
}

/* Year level */
.rez-year {
    border: 1px solid rgba(125, 150, 163, 0.45);
    background: #fffdf8;
}

.rez-year-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
}

.rez-year-summary::-webkit-details-marker {
    display: none;
}

/* Judet level */
.rez-judete {
    border-top: 1px solid rgba(125, 150, 163, 0.35);
    padding: 0.5rem 1rem 0.8rem;
    display: grid;
    gap: 0.5rem;
}

.rez-judet {
    border: 1px solid rgba(125, 150, 163, 0.3);
    background: #f9f7f2;
}

.rez-judet-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
}

.rez-judet-summary::-webkit-details-marker {
    display: none;
}

/* Etapa level */
.rez-etape {
    border-top: 1px solid rgba(125, 150, 163, 0.25);
    padding: 0.4rem 1rem 0.6rem;
    display: grid;
    gap: 0.4rem;
}

.rez-etapa {
    border: 1px solid rgba(125, 150, 163, 0.25);
    background: #f4f2ee;
}

.rez-etapa-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    list-style: none;
}

.rez-etapa-summary::-webkit-details-marker {
    display: none;
}

/* Shared summary parts */
.rez-summary-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rez-row-icon {
    flex: 0 0 auto;
    color: #5a6b74;
    background: transparent !important;
    border: none !important;
    width: 26px;
    height: 26px;
}

.rez-row-icon--sub {
    width: 22px;
    height: 22px;
    color: #6b7f88;
}

.rez-row-icon--etapa {
    width: 20px;
    height: 20px;
    color: #7d8f96;
}

.rez-folder-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3c45;
}

.rez-judet-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3c45;
}

.rez-etapa-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3c45;
}

.rez-folder-meta {
    color: #49697b;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Documents inside etapa */
.rez-documents {
    border-top: 1px solid rgba(125, 150, 163, 0.25);
    padding: 0.3rem 0.9rem 0.7rem;
}

.rez-document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.1rem;
    border-bottom: 1px solid rgba(125, 150, 163, 0.2);
    transition: var(--transition);
}

.rez-document:last-child {
    border-bottom: 0;
}

.rez-document:hover {
    color: #8d2047;
}

.rez-document-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.rez-pdf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    background: #b23232;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.rez-document-title {
    color: #2d3c45;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.rez-document-action {
    color: #8d2047;
    font-weight: 700;
    white-space: nowrap;
}

/* ========================= */
/* SURSE */
/* ========================= */

.surse-section {
    padding: 2.5rem 0 1.5rem;
}

.surse-wrapper {
    width: min(100% - 2rem, 980px);
    margin: 0 auto;
}

.surse-content-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e26b5b;
    padding: 1.5rem;
}

.surse-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.surse-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8d2047;
    letter-spacing: 1px;
}

.surse-accordion {
    display: grid;
    gap: 0.85rem;
}

.surse-group {
    border-top: 2px solid #e26b5b;
}

.surse-group:last-child {
    border-bottom: 2px solid #e26b5b;
}

.surse-group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    list-style: none;
}

.surse-group-summary::-webkit-details-marker {
    display: none;
}

.surse-group-title {
    color: #7a2c2c;
    font-size: 1.05rem;
    font-weight: 500;
}

.surse-group-icon {
    width: 12px;
    height: 12px;
    border-right: 1.8px solid #7a2c2c;
    border-bottom: 1.8px solid #7a2c2c;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.surse-group[open] .surse-group-icon {
    transform: rotate(-135deg);
}

.surse-group-content {
    padding: 0 0 1.4rem;
}

.surse-topic + .surse-topic {
    margin-top: 1.5rem;
}

.surse-topic-title {
    margin: 0 0 0.7rem;
    color: #2d3c45;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.surse-links {
    display: grid;
    gap: 0.7rem;
}

.surse-link-card {
    display: block;
    border: 1px solid rgba(125, 150, 163, 0.35);
    background: #fffdf8;
    padding: 0.9rem 1rem;
    transition: var(--transition);
}

.surse-link-card:hover {
    border-color: rgba(141, 32, 71, 0.45);
    background: #fff8f5;
}

.surse-link-host {
    display: block;
    margin-bottom: 0.3rem;
    color: #7b8c95;
    font-size: 0.82rem;
}

.surse-link-url {
    display: block;
    color: #2d3c45;
    font-size: 0.98rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.surse-placeholder {
    margin: 0;
    color: #49697b;
    font-size: 1rem;
    line-height: 1.5;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
    background: var(--color-surface);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 1.5rem;
}

.footer-left {
    color: #3f6f7a;
    justify-self: stretch;
    text-align: left;
    padding-left: 0;
}

.footer-left p {
    margin: 0;
}

.footer-contact {
    justify-self: center;
    text-align: center;
    color: var(--color-primary);
}

.footer-spacer {
    justify-self: end;
}

.footer-contact h3,
.footer-contact p {
    margin: 0.25rem 0;
}

.footer-contact a {
    color: var(--color-primary);
}

/* ========================= */
/* CONTENT BOX (existing) */
/* ========================= */

.content-box {
    max-width: 800px;
    margin: 50px auto;
    background: #f5f5f5;
    padding: 40px;
    border: 2px solid #c45a5a;
    border-radius: 5px;
}

.content-box h1, 
.content-box h2, 
.content-box h3 {
    text-align: center;
    color: #7a2c2c;
    margin-bottom: 20px;
}

.content-box p, 
.content-box li {
    color: #2f4f4f;
    line-height: 1.6;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-background img {
        height: 420px;
    }

    .hero-badge {
        max-width: 240px;
        margin-left: 1rem;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        justify-self: auto;
    }

    .calendar-wrapper {
        padding: 1.5rem;
    }

    .subiecte-content-box {
        padding: 1.3rem 1.1rem;
    }

    .subiecte-content-box p,
    .subiecte-content-box li {
        font-size: 1.05rem;
    }

    .tematica-content-box {
        padding: 1rem;
    }

    .tematica-pdf-viewer {
        height: 70vh;
        min-height: 500px;
    }

    .regulament-content-box {
        padding: 1rem;
    }

    .regulament-pdf-viewer {
        height: 70vh;
        min-height: 500px;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .arhiva-content-box {
        padding: 1.2rem 1rem;
    }

    .arhiva-header {
        align-items: flex-start;
    }

    .arhiva-folder-summary,
    .arhiva-document {
        flex-direction: column;
        align-items: flex-start;
    }

    .rez-content-box {
        padding: 1.2rem 1rem;
    }

    .rez-year-summary,
    .rez-judet-summary,
    .rez-etapa-summary,
    .rez-document {
        flex-direction: column;
        align-items: flex-start;
    }

    .surse-content-box {
        padding: 1.2rem 1rem;
    }

    .surse-group-summary {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .galerie-grid {
        grid-template-columns: 1fr;
    }

    .arhiva-header {
        flex-direction: column;
    }
}
