/* ==========================================
   LAYOUT SYSTEM (v1 CLEAN FINAL)
========================================== */

/* =========================
   CONTAINER
========================= */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   SECTION SPACING
========================= */

.section {
    padding: 3rem 0;
}

/* =========================
   HEADER (CENTERED)
========================= */

.header-centered {
    text-align: center;
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* =========================
   ACTIONS
========================= */

.actions-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* =========================
   SPLIT LAYOUT
========================= */

.layout-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1000px) {
    .layout-split {
        grid-template-columns: 1fr;
    }
}

/* =========================
   STACK
========================= */

.stack-lg {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* =========================
   MEDIA
========================= */

.media-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
   DIVIDER (GLOBAL)
========================= */

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--divider-color);
    max-width: 160px;
}

.section-divider span {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--divider-text);
}

/* =========================
   SITE CONTENT FIX
========================= */

.site-content {
    flex: 1;
    padding-bottom: 20px;
}

/* ==========================================
   DASHBOARD LAYOUT (REUSABLE)
========================================== */

.layout-dashboard {
    --sidebar-width: 220px;
    --layout-gap: 3.25rem;

    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    column-gap: var(--layout-gap);
    align-items: start;
    position: relative;
}

/* divider */
.layout-dashboard::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(var(--sidebar-width) + (var(--layout-gap) / 2));
    width: 1px;
    background: var(--divider-color);
}

/* sidebar */
.layout-dashboard-sidebar {
    position: sticky;
    top: 120px;
}

/* ==========================================
   SECTION CONTENT SPACING
========================================== */

.text-muted + .grid-exhibitions {
    margin-top: 1rem;
}

/* ==========================================
   SECTION TITLE TIGHT SPACING
========================================== */

.section-title {
    margin-bottom: 0.2rem;
}

/* Добави това в layout.css */

.layout-centered {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-main); /* Твоето #f6f4f1 */
}

.card-system {
    width: 100%;
    max-width: var(--container-narrow); /* Твоите 1120px или по-тясно - 640px е по-добре за форми */
    max-width: 640px;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}


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

@media (max-width: 1100px) {
    .layout-dashboard {
        grid-template-columns: 1fr;
    }

    .layout-dashboard::after {
        display: none;
    }

    .layout-dashboard-sidebar {
        position: static;
    }
}