/* Общи настройки */
:root {
/*    --green-dark: #004d40;
    --green-mid: #00796b;*/
    --accent: #26a69a;
    --bg: #f9f9f9;
    --card: #ffffff;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: #222;
    line-height: 1.6;
}

header {
    /*background: var(--green-dark);*/
    color: #3c0202;
    text-align: center;
    padding: 2rem 1rem;
}

    header h1 {
        margin: 0;
        font-size: 2rem;
    }

    header .tagline {
        margin-top: .3rem;
        font-style: italic;
    }

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
    margin: 1rem 0 0;
}

nav li {
    margin: 0;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

    nav a:hover {
        color: #000;
    }

/* Основен контейнер: две колони */
.main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Лява колона: хронология */
.left-col {
    flex: 1 1 48%;
    background: var(--card);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 260px;
}

    .left-col h2 {
        color: var(--green-dark);
        margin-top: 0;
        text-align: left;
    }

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 70vh;
    overflow: auto;
}

    .timeline-list li {
        padding: 0.8rem 0.6rem;
        border-left: 4px solid var(--green-dark);
        margin-bottom: 1rem;
        position: relative;
        cursor: pointer;
    }

        .timeline-list li:focus {
            outline: 2px dashed var(--accent);
            outline-offset: 4px;
        }

.school-year {
    font-weight: 700;
    color: var(--green-mid);
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: #e0f2f1;
    border-left: 5px solid var(--accent);
    border-radius: 4px;
    margin-right: 0.5rem;
}

.timeline-text {
    display: inline;
}

/* Дясна колона: preview изображение */
.right-col {
    flex: 0 0 48%;
    background: var(--card);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
}

.preview {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

    .preview img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        transition: opacity .25s ease, transform .25s ease;
        display: block;
    }

    .preview .caption {
        margin-top: .5rem;
        font-size: .95rem;
        color: #444;
    }

/* Отзивчивост: на малки екрани колоните се стекват */
@media (max-width:820px) {
    .main {
        flex-direction: column;
        padding: 0 1rem;
    }

    .left-col, .right-col {
        flex: unset;
        width: 100%;
    }

    .timeline-list {
        max-height: 50vh;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 0px;
    margin-bottom: 5px;
    background-color: rgba(0,0,0,0);
    color: #420606;
    margin-top: 2rem;
}

nav {
    margin-bottom: 20px;
}

    nav a {
        margin-right: 15px;
        text-decoration: none;
        color: #333;
    }

        nav a.active {
            font-weight: bold;
            text-decoration: underline;
        }

a:link {
    color: #444;
}

a:visited {
    color: #444;
}


.profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
}

    .profiles li {
        width: 180px;
        text-align: center;
    }

    .profiles img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.3;
        object-fit: cover;
        border-radius: 8px;
    }

.symbol {
    width: 200px;
    margin-right: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ==== CARD SHARED STYLE ==== */
.card {
    background: #fff;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    
    height: 450px;
    overflow-y: auto;
}

    /* ==== TITLES STYLE ==== */
    .card h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        font-weight: 700;
        text-align: center;
        letter-spacing: 0.5px;
    }

/* ==== PATRON CARD ==== */
.patron {
    display: flex;
    flex-direction: column;
}

    .patron .patron-img {
        width: 100%;
        height:auto;
        flex: 1;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
        height: 35%;
    }

    .patron p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: justify;
        overflow-y: auto;
        background: rgba(255,255,255,0.1);
    }

/* ==== HYMN CARDS ==== */
.hymn {
    display: flex;
    flex-direction: column;
}

    .hymn p {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.25rem;
        color: #000;
        line-height: 1.6;
        text-align: justify;
        column-count: 1;
        column-gap: 24px;
        /* So text stretches within the card */
        flex: 1;
    }

/* ==== BOTTOM CARDS ==== */
.logo img {
    width: 100%;
    object-fit: contain;
    margin-top: 10px;
    height: 260px;
}

.map iframe {
    width: 100%;
    height: 250px;
    border: none;
    margin-top: 10px;
}

.contact p {
    font-size: 1rem;
    margin-bottom: 6px;
}

/* ==== RESPONSIVE ADAPTATION ==== */
@media (max-width: 900px) {
    .hymn p {
        column-count: 1;
    }
}

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

/* Достъпност: скрито заглавие ако е необходимо */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}



