/* ================================================
   EXHIBITIONS SECTION - KARTY VYCENTROVANÉ, TEXT PŘES CELOU ŠÍŘKU
   ================================================ */

:root {
    /* Černá škála - zachováno */
    --black: #000000;
    --dark: #0d0d0d;
    --charcoal: #111111;
    --gray: #1a1a1a;
    --medium-gray: #222222;
    --light-gray: #333333;
    --text-gray: #cccccc;
    --text-light: #eeeeee;
    --white: #ffffff;
    --accent: #444444;
    --accent-light: #666666;
    
    /* Typografie - POUZE Times New Roman a Calibri */
    --font-primary: 'Times New Roman', Times, serif;
    --font-secondary: 'Calibri', 'Candara', 'Segoe UI', 'Optima', Arial, sans-serif;
    
    /* Rozestupy */
    --spacing-xl: 60px;
    --spacing-lg: 40px;
    --spacing-md: 30px;
    --spacing-sm: 25px;
    --spacing-xs: 20px;
    --spacing-xxs: 15px;
    
    /* Ostatní */
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --transition-speed: 0.3s;
}

/* ZÁKLADNÍ STYLY - s Times New Roman a Calibri */
body {
    font-family: var(--font-secondary);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
}

h1 {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}

p {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.has-text-align-center {
    text-align: center;
}

/* HLAVNÍ OBSAH - větší okraje od krajů */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    background: var(--black);
}

/* EXHIBITIONS SECTION */
.exhibitions-section {
    padding: 4rem 0;
}

/* HEADER - H1 a podnadpis */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header h1 {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    color: var(--text-gray);
    letter-spacing: 0.02em;
    font-weight: 300;
    margin-top: 0;
}

/* ===== ZMĚNA: EXHIBITIONS GRID - 2 sloupce vedle sebe ===== */
.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Změněno z 3 na 2 */
    gap: 2rem;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* EXHIBITION BOX - text na střed */
.box-exhibition {
    position: relative;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    background: var(--dark);
    border-radius: var(--border-radius);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    height: 100%;
    text-align: center;
    width: 100%;
}

.box-exhibition:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Exhibition Year - v rámečku vpravo nahoře */
.exhibition-year {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 10;
    white-space: nowrap;
}

/* Název výstavy - přes celou šířku */
.box-exhibition h3 {
    font-family: var(--font-primary);
    color: var(--white);
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.3;
    width: 100%;
    font-size: 1.2rem; /* Zmenšeno pro delší texty */
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* Místo konání - první popisek */
.box-exhibition p {
    font-family: var(--font-secondary);
    color: var(--text-gray);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Druhý a další popisky - s odsazením */
.box-exhibition p + p {
    margin-top: 0.5rem;
}

/* ================================================
   RESPONSIVE - TABLET (do 1024px)
   ================================================ */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 2.5rem;
    }
    
    /* Na tabletu pořád 2 sloupce */
    .exhibitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .box-exhibition h3 {
        font-size: 1.15rem;
    }
}

/* ================================================
   RESPONSIVE - MOBIL (do 768px)
   ================================================ */
@media (max-width: 768px) {
    .main-content {
        padding: 0 2rem;
    }
    
    .exhibitions-section {
        padding: 2.5rem 0;
    }
    
    /* Na mobilu 1 sloupec */
    .exhibitions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .box-exhibition {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        min-height: 200px;
    }
    
    .exhibition-year {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.85rem;
        padding: 0.3rem 0.9rem;
    }
    
    .box-exhibition h3 {
        font-size: 1.4rem;
        white-space: normal;
    }
    
    .box-exhibition p {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .box-exhibition p + p {
        margin-top: 0.3rem;
    }
    
    .section-header h1 {
        font-size: 2.8rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
}

/* ================================================
   RESPONSIVE - MALÝ MOBIL (do 480px)
   ================================================ */
@media (max-width: 480px) {
    .main-content {
        padding: 0 1.5rem;
    }
    
    .exhibitions-grid {
        gap: 1.2rem;
    }
    
    .box-exhibition {
        padding: 1.8rem 1.2rem 1.2rem 1.2rem;
        min-height: 180px;
    }
    
    .exhibition-year {
        top: 1.2rem;
        right: 1.2rem;
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }
    
    .box-exhibition h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .box-exhibition p {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* ================================================
   RESPONSIVE - VELKÝ TABLET (1025px - 1200px)
   ================================================ */
@media (min-width: 1025px) and (max-width: 1200px) {
    .main-content {
        padding: 0 3rem;
    }
    
    .exhibitions-grid {
        gap: 1.8rem;
    }
    
    .box-exhibition {
        padding: 2.2rem 1.2rem 1.8rem 1.2rem;
    }
    
    .box-exhibition h3 {
        font-size: 1.15rem;
    }
}

/* ================================================
   RESPONSIVE - VELKÉ OBRAZOVKY (nad 1600px)
   ================================================ */
@media (min-width: 1600px) {
    .main-content {
        max-width: 1600px;
        padding: 0 4rem;
    }
    
    .exhibitions-grid {
        gap: 2.2rem;
    }
    
    .box-exhibition {
        min-height: 240px;
    }
    
    .box-exhibition h3 {
        font-size: 1.3rem;
    }
}

/* ================================================
   ZACHOVÁNÍ PŮVODNÍCH STYLŮ PRO ACHIEVEMENTS
   ================================================ */
.achievements-section .bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.box-achievement {
    position: relative;
    padding: 2.5rem 1.8rem 2rem 1.8rem;
    background: var(--dark);
    border-radius: var(--border-radius);
    min-height: 240px;
}

.achievement-year {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
}

@media (max-width: 1024px) {
    .achievements-section .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .achievements-section .bento-container {
        grid-template-columns: 1fr;
    }
}