/* ==========================================================================
   BIE UPDATE STYLESHEET (update.css)
   Navazuje na stávající design šablony BIE (#1a459c, #f04923, #303e42)
   Pozn.: html má font-size: 10px (1rem = 10px)
   ========================================================================== */

/* --- 1. BIE Around the World podstránka --- */

.around-the-world-page .text-center {
    text-align: center;
}

.around-the-world-page .atw-lead {
    max-width: 680px;
    text-align: center;
    margin: 0 auto 2.5rem auto;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #303e42;
}

/* Sekce úvodu a statistik */
.atw-intro-section {
    padding: 5rem 0 4rem 0;
}

.atw-stats {
    margin-top: 5rem;
    background: #1a459c17;
    border-radius: 6px;
    padding: 3rem 3.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
}

.atw-stats__title {
    font-family: "Unbounded-Bold", sans-serif;
    font-size: 1.6rem;
    color: #1a459c;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

.atw-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    text-align: center;
}

.atw-stats__item strong {
    display: block;
    font-family: "Unbounded-Bold", sans-serif;
    font-size: 2.8rem;
    color: #1a459c;
    line-height: 1.2;
}

.atw-stats__item span {
    font-size: 1.4rem;
    color: #303e42;
}

@media only screen and (min-width: 1015px) {
    .atw-stats {
        flex-direction: row;
        padding: 3.2rem 4.5rem;
    }

    .atw-stats__title {
        text-align: left;
        max-width: 240px;
        flex-shrink: 0;
    }

    .atw-stats__item strong {
        font-size: 3.2rem;
    }
}

@media only screen and (max-width: 575px) {
    .atw-stats__grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

/* Sekce Featured Stories */
.atw-featured-section {
    padding: 4rem 0 6rem 0;
}

/* Sekce Archivu (stejné světle modré pozadí jako .reference--page / .registrace) */
.atw-archive-section {
    background-color: #1a459c17;
    padding: 6rem 0 7rem 0;
}

/* Sekce Share Your Story */
.atw-share-section {
    padding: 6rem 0 7rem 0;
}

/* Grid karet (3 sloupce na desktopu jako ._grid-reference) */
.atw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media only screen and (min-width: 767px) {
    .atw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 1015px) {
    .atw-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Karta příběhu (vychází z .ref-box) */
.atw-card {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(26, 69, 156, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.atw-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 10px 22px -4px rgba(26, 69, 156, 0.18);
}

/* Klikací štítky pro rychlé filtrování (Country, Category, Year) */
.atw-filter-trigger {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: color 150ms ease;
}

.atw-filter-trigger:hover,
.atw-filter-trigger:focus {
    color: #f04923;
    text-decoration: underline;
}

.atw-card__banner .atw-filter-trigger:hover,
.atw-card__banner .atw-filter-trigger:focus {
    color: #fff;
    text-decoration: underline;
}

/* Horní pruh u Featured karet (výchozí modrý vzor nebo nahraná fotka) */
.atw-card__banner {
    position: relative;
    overflow: hidden;
    background: #1a459c;
    background-image: linear-gradient(135deg, rgba(26, 69, 156, 0.92) 0%, #1a459c 100%), url("../img/pattern-bie-white.svg");
    background-size: 120%;
    color: #fff;
    padding: 2.2rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 160px;
}

.atw-card__banner--has-image {
    background-image: none;
}

.atw-card__banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 350ms ease;
}

.atw-card:hover .atw-card__banner-img {
    transform: scale(1.04);
}

.atw-card__banner--has-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(16, 35, 74, 0.45) 0%, rgba(16, 35, 74, 0.78) 100%);
    z-index: 1;
    pointer-events: none;
}

.atw-card__banner-cat {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.atw-card__banner-country {
    position: relative;
    z-index: 2;
    font-family: "Unbounded-Bold", sans-serif;
    font-size: 2.4rem;
    color: #fff;
    line-height: 1.2;
    margin-top: 0.8rem;
}

.atw-card__body {
    padding: 2.6rem 2.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.atw-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.atw-card__tag {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a459c;
    letter-spacing: 0.03em;
}

.atw-card__year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a9a9a9;
    white-space: nowrap;
}

.atw-card__title {
    font-size: 1.7rem;
    line-height: 1.35;
    margin: 0 0 1.2rem 0;
    color: #303e42;
}

.atw-card__summary {
    font-size: 1.4rem;
    line-height: 1.55;
    color: #303e42;
    padding-bottom: 1.8rem;
    margin: 0;
}

.atw-card__footer {
    margin-top: auto;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(48, 62, 66, 0.08);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
}

.atw-card__link.btn.btn--link {
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.atw-card__link.btn.btn--link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Filtrační lišta (vzhled jako .registrace-formular fieldset) */
.atw-filters {
    background: #fff;
    padding: 2.4rem 2.8rem;
    border-radius: 6px;
    box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 2rem;
}

@media only screen and (min-width: 767px) {
    .atw-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 1015px) {
    .atw-filters {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.atw-filters__field label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a459c;
    margin-bottom: 2.5rem;
}

.atw-filters__field input,
.atw-filters__field select {
    width: 100%;
    height: 4.4rem;
    padding: 0 1.4rem;
    font-family: "WorkSans", sans-serif;
    font-size: 1.4rem;
    color: #303e42;
    background: #fff;
    border: 1px solid #d5dce6;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 200ms ease;
}

.atw-filters__field input:focus,
.atw-filters__field select:focus {
    border-color: #1a459c;
}

.atw-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.2rem 0 1rem 0;
    font-size: 1.4rem;
    color: #303e42;
}

.atw-clear-btn.btn.btn--link {
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.atw-empty {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.atw-empty p {
    padding-bottom: 0;
    font-size: 1.6rem;
}

.atw-more-wrap {
    margin-top: 4rem;
}

/* --- 2. BIE Participating Schools podstránka --- */

@media only screen and (min-width: 1015px) {
    .atw-filters.atw-filters--3 {
        grid-template-columns: 1.6fr 1fr 0.9fr;
    }
}

.ps-table-wrap {
    background: #fff;
    border-radius: 6px;
    box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(26, 69, 156, 0.08);
    overflow: hidden;
    margin-top: 1.5rem;
}

.ps-table-head,
.ps-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.ps-table-head {
    background: #1a459c;
    color: #fff;
    padding: 1.6rem 2.4rem;
    font-family: "Unbounded-Bold", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ps-row {
    padding: 1.6rem 2.4rem;
    border-bottom: 1px solid rgba(26, 69, 156, 0.08);
    transition: background-color 150ms ease;
}

.ps-row:last-child {
    border-bottom: none;
}

.ps-row:hover {
    background-color: rgba(26, 69, 156, 0.03);
}

.ps-row__school {
    font-size: 1.5rem;
    font-weight: 700;
    color: #303e42;
    line-height: 1.4;
}

.ps-row__city {
    font-size: 1.4rem;
    color: #506779;
    line-height: 1.4;
}

.ps-row__country {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a459c;
    line-height: 1.4;
}

@media only screen and (max-width: 766px) {
    .ps-table-head {
        display: none;
    }

    .ps-row {
        display: block;
        padding: 1.8rem 2rem;
    }

    .ps-row__school {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .ps-row__city,
    .ps-row__country {
        font-size: 1.3rem;
        margin-top: 0.3rem;
    }

    .ps-row__city::before {
        content: "City: ";
        font-weight: 700;
        color: #8c9baa;
        text-transform: uppercase;
        font-size: 1.1rem;
    }

    .ps-row__country::before {
        content: "Country: ";
        font-weight: 700;
        color: #8c9baa;
        text-transform: uppercase;
        font-size: 1.1rem;
    }
}

