﻿/* =========================================================
   🕊️ СТОРІНКА "ПРО ХРАМ" — узгоджена з головним стилем
   ========================================================= */

/* 🔹 Базовий стиль сторінки */
.about-page {
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    background: #fafafa;
    padding-top: var(--header-h); /* щоб контент не ліз під шапку */
}


/* =========================================================
   СЕКЦІЇ
   ========================================================= */
.section {
    padding: 80px 0;
}

    .section.light {
        background: #f8f9fa;
    }

    .section.bg-gradient {
        background: linear-gradient(180deg,#f5f5ff 0%,#fafafa 100%);
    }

/* =========================================================
   ТЕКСТОВИЙ БЛОК
   ========================================================= */
.container.narrow {
    max-width: 900px;
    margin: auto;
    text-align: justify;
}

/* =========================================================
   👥 ДУХОВЕНСТВО (адаптивні картки без обрізання фото)
   ========================================================= */
.grid.clergy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    justify-content: center;
    align-items: start;
    padding: 0 10px;
}

    /* Картка */
    .grid.clergy .card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        padding: 24px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        /* Фото у повний ріст, без crop */
        .grid.clergy .card img {
            width: 100%;
            height: auto;
            max-height: 520px; /* обмежує висоту, але не обрізає */
            object-fit: contain; /* ✅ не ріже зображення */
            background: radial-gradient(circle, #fff 70%, #f5f5f5 100%);
            border-radius: 12px;
            margin-bottom: 16px;
            display: block;
        }

        /* Заголовок */
        .grid.clergy .card h5 {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 6px;
            color: #0d2242;
        }

        /* Текст */
        .grid.clergy .card p {
            font-size: 0.95rem;
            color: #444;
            line-height: 1.4;
        }

        /* Ховер */
        .grid.clergy .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

/* =========================================================
   📱 АДАПТИВНІСТЬ
   ========================================================= */
@media (max-width: 1200px) {
    .grid.clergy {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 28px;
    }

        .grid.clergy .card img {
            max-height: 440px;
        }
}

@media (max-width: 768px) {
    .grid.clergy {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

        .grid.clergy .card {
            padding: 18px;
        }

            .grid.clergy .card img {
                max-height: 360px;
            }
}

@media (max-width: 480px) {
    .grid.clergy {
        grid-template-columns: 1fr;
    }

        .grid.clergy .card img {
            max-height: 300px;
        }
}






/* =========================================================
   📅 РОЗКЛАД БОГОСЛУЖІНЬ
   ========================================================= */
.table-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

    .table-wrapper table {
        width: 90%;
        max-width: 900px;
        background: #fff;
        border-collapse: collapse;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    }

    .table-wrapper th, .table-wrapper td {
        padding: 14px 18px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .table-wrapper thead th {
        background: #f8f9ff;
        font-weight: 600;
    }

    .table-wrapper tr:hover {
        background: #f9f9ff;
        transition: .3s;
    }

/* =========================================================
   🎞️ ГАЛЕРЕЯ-КАРУСЕЛЬ (стабільна + плавний fade)
   ========================================================= */
.carousel {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Фіксує “підкидання” при fade */
.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item,
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-fade .active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transform: none;
}

/* Зображення */
.carousel-item img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: radial-gradient(circle, #ffffff 60%, #f3f3f5 100%);
    border-radius: 12px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Стрілки */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(13, 34, 66, 0.9); /* темно-синій, як шапка сайту */
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background-size: 55%;
    background-position: center;
    background-repeat: no-repeat;
    transition: all .3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Стрілки вбудовані через SVG (білий колір усередині синього круга) */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11 1L3 8l8 7V1z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M5 1l8 7-8 7V1z'/%3e%3c/svg%3e");
}

    .carousel-control-prev-icon:hover,
    .carousel-control-next-icon:hover {
        background-color: #0d2242; /* чистий синій при наведенні */
        transform: scale(1.1);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    }

/* Індикатори */
.carousel-indicators [data-bs-target] {
    background-color: #bbb; /* нейтрально-сірі, без салатового */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: .6;
    transition: all .3s ease;
}

.carousel-indicators .active {
    background-color: #caa648; /* благородний золотистий */
    opacity: 1;
    transform: scale(1.3);
}

/* Адаптивність */
@media (max-width: 768px) {
    .carousel-item img {
        max-height: 45vh;
    }
}


