/* ==========================================================
   INFORMATOR PARAFIALNY
   zedowice.pl
   ========================================================== */


/* ----------------------------------------------------------
   ZMIENNE
   ---------------------------------------------------------- */

.parish-guide {
    --pg-primary: #0F334E;
    --pg-background: #FAF9F7;
    --pg-white: #FFFFFF;
    --pg-text: #303438;
    --pg-muted: #70777C;
    --pg-border: #E7E4DF;

    color: var(--pg-text);
    font-size: 16px;
    line-height: 1.65;
}


/* ----------------------------------------------------------
   NAGŁÓWEK
   ---------------------------------------------------------- */

.guide-header {
    max-width: 900px;
    margin: 0 0 60px;
}

.guide-label {
    display: inline-block;
    margin: 0 0 12px;

    color: var(--pg-primary);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.parish-guide .guide-header h1 {
    margin: 0 0 18px;

    color: var(--pg-primary);

    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.15;
}

.guide-header p {
    max-width: 750px;
    margin: 0;

    color: var(--pg-muted);

    font-size: 17px;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   SEKCJE
   ---------------------------------------------------------- */

.guide-section {
    margin: 0 0 65px;
}

.parish-guide .guide-section > h2 {
    position: relative;

    margin: 0 0 27px;
    padding: 0 0 14px;

    color: var(--pg-primary);

    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

.parish-guide .guide-section > h2::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 42px;
    height: 2px;

    background: var(--pg-primary);
}


/* ==========================================================
   KAFLE KALENDARZOWE
   ========================================================== */

.parish-events {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* ----------------------------------------------------------
   POJEDYNCZY KAFEL
   ---------------------------------------------------------- */

.parish-event {
    display: flex;
    align-items: stretch;

    min-height: 105px;

    background: var(--pg-white);

    border: 1px solid var(--pg-border);
    border-radius: 8px;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.parish-event:hover {
    transform: translateY(-2px);

    border-color: rgba(15, 51, 78, .18);

    box-shadow:
        0 10px 30px rgba(15, 51, 78, .08);
}


/* ----------------------------------------------------------
   DATA
   ---------------------------------------------------------- */

.event-date {
    flex: 0 0 90px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 10px 7px;

    background: var(--pg-primary);

    color: #FFFFFF;

    text-align: center;
}

.event-day {
    display: block;

    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;

    margin-top: 7px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 1.6px;

    opacity: .75;
}


/* Tekst zamiast konkretnej daty */

.event-date-text span {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;

    letter-spacing: .8px;

    text-transform: uppercase;
}


/* ----------------------------------------------------------
   TREŚĆ KAFELKA
   ---------------------------------------------------------- */

.event-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 18px 22px;
}

.parish-guide .event-content h3 {
    margin: 0 0 4px;

    color: var(--pg-primary);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.parish-guide .event-content p {
    margin: 0;

    color: var(--pg-muted);

    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================
   INFORMACJE / NABOŻEŃSTWA
   ========================================================== */

.guide-information {
    padding: 38px;

    background: var(--pg-background);

    border-radius: 10px;
}

.guide-list {
    background: var(--pg-white);

    border: 1px solid var(--pg-border);
    border-radius: 8px;

    overflow: hidden;
}


/* ----------------------------------------------------------
   WIERSZ INFORMACYJNY
   ---------------------------------------------------------- */

.guide-row {
    display: grid;

    grid-template-columns:
        minmax(190px, 32%)
        minmax(0, 1fr);

    gap: 30px;

    padding: 20px 24px;

    border-bottom: 1px solid var(--pg-border);
}

.guide-row:last-child {
    border-bottom: 0;
}

.guide-row-title {
    color: var(--pg-primary);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.guide-row-content {
    color: var(--pg-muted);

    font-size: 15px;
    line-height: 1.65;
}

.guide-row-content strong {
    color: var(--pg-text);
    font-weight: 600;
}


/* ----------------------------------------------------------
   GODZINY NABOŻEŃSTW
   ---------------------------------------------------------- */

.guide-hours {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.guide-hours span {
    display: inline-block;

    padding: 5px 10px;

    background: var(--pg-background);

    border-radius: 4px;

    font-size: 13px;
}

.guide-hours b {
    color: var(--pg-primary);
}


/* ==========================================================
   ODPUSTY
   ========================================================== */

.guide-feasts {
    padding: 40px;

    background: var(--pg-primary);

    border-radius: 10px;
}

.guide-label-light {
    color: rgba(255, 255, 255, .60);
}

.parish-guide .guide-feasts > h2 {
    color: #FFFFFF;
}

.parish-guide .guide-feasts > h2::after {
    background: rgba(255, 255, 255, .50);
}

.feast-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.parish-guide .guide-feasts .feast-item {
    color: #FFFFFF;
}

.feast-item {
    padding: 25px;

    background: rgba(255, 255, 255, .07);

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 7px;
}

.feast-item span {
    display: block;

    margin-bottom: 7px;

    color: rgba(255, 255, 255, .65);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.feast-item strong {
    display: block;

    color: #FFFFFF;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .guide-information {
        padding: 30px;
    }

    .guide-row {
        grid-template-columns:
            minmax(160px, 35%)
            minmax(0, 1fr);

        gap: 22px;
    }

}


/* ==========================================================
   TELEFON
   ========================================================== */

@media (max-width: 767px) {

    .guide-header {
        margin-bottom: 45px;
    }

    .parish-guide .guide-header h1 {
        font-size: 30px;
    }

    .guide-header p {
        font-size: 16px;
    }


    /* Sekcje */

    .guide-section {
        margin-bottom: 48px;
    }

    .parish-guide .guide-section > h2 {
        margin-bottom: 22px;

        font-size: 22px;
    }


    /* Kalendarz */

    .parish-events {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .parish-event {
        min-height: 92px;
    }

    .event-date {
        flex-basis: 78px;
    }

    .event-day {
        font-size: 25px;
    }

    .event-month {
        font-size: 10px;
    }

    .event-date-text span {
        font-size: 9px;
    }

    .event-content {
        padding: 15px 17px;
    }

    .parish-guide .event-content h3 {
        font-size: 16px;
    }


    /* Informacje */

    .guide-information {
        padding: 25px 18px;
    }

    .guide-row {
        grid-template-columns: 1fr;

        gap: 5px;

        padding: 17px 16px;
    }

    .guide-row-title {
        font-size: 15px;
    }

    .guide-row-content {
        font-size: 14px;
    }


    /* Odpusty */

    .guide-feasts {
        padding: 30px 20px;
    }

    .feast-grid {
        grid-template-columns: 1fr;
    }

    .feast-item {
        padding: 21px;
    }

}


/* ==========================================================
   BARDZO MAŁE TELEFONY
   ========================================================== */

@media (max-width: 380px) {

    .event-date {
        flex-basis: 70px;
    }

    .event-day {
        font-size: 23px;
    }

    .event-content {
        padding: 14px;
    }

}

.parish-guide .guide-section-description {
    margin-bottom: 24px;
}

.parish-guide .event-date-text span,
.parish-guide .event-content {
    overflow-wrap: anywhere;
}
