﻿.priest-list {
    border: 1px;
    border-style: solid;
    border-color: #bbb;
    position: relative;
}

.priest-content {
    position: relative;
    border: 1px;
    border-style: solid;
    border-color: #bbb;
}

.priest-list-content {
    position: relative;
    margin: 0 0 1em 0;
    border: 1px solid #eee9e9;
    border-radius: 20px 10px 0 0;
    overflow: hidden;
}

.priest-list-content-heading {
    text-align: center;
    padding: 5px 5px 5px 5px;
    height: 80px;
    background: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2em;
    font-weight:500
}

.priest-list-content-heading a {
    color: #4d4d4d;
    text-decoration: none
}

.priest-list-content-heading a:hover {
    color: #bbb;
}

.priest-list-content-inner {
    max-height: 250px;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-top: 133%; /* 4 / 3 ~ 133% cho tỷ lệ đứng */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.priest-list-content-inner a p:hover {
    color: #bbb;
}

.priest-list-content-inner:hover {
    box-shadow: 0 0 5px #000;
    filter: brightness(1.1) saturate(1.2) contrast(1.1);
}

.priest-list-content-inner img {
    object-position: 100% 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.priest-list-content-inner img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.topnav-priest {
    overflow: hidden;
}

.topnav-priest a {
    float: left;
    color: #c90917;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    font-size: 1.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.topnav-priest h4 {
    float: left;
    color: #c90917;
    margin: 0px 10px 5px 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.2em;
}

.topnav-priest h4 {
    float: left;
    color: #c90917;
    /*padding: 10px 10px 10px 10px;*/
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
}

.topnav-priest a:hover {
    color: #bbb;
}

#priest-list {
    margin: 15px 0 10px 0;
}

.priest-list {
    margin: 15px 0 0 0;  
    position: relative;
    background: #fff;
    box-shadow: 0 0 4px #eee9e9, 0 15px 15px #f1e3e0 inset;
}

.modal-priest-photo {
    width: 100%;
    min-height: 300px; /* thêm chiều cao cố định */
    overflow: hidden;
    text-align: center;
    position: relative;
    margin:1em 0 0 0
}

.modal-priest-photo img {
    width: auto;
    height: 300px;
    object-fit: contain; /* Không cắt hình, giữ tỷ lệ */
    border-radius: 12px; /* Bo góc của chính ảnh */
    border: 1px solid #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-priest {
    max-width: 700px;
    min-width: 600px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    margin: 0;
/*    box-shadow: 0 5px 15px rgba(0,0,0,0.3);*/
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 6px #eee9e9, 0 0px 6px rgba(0,0,0,0.3) inset;
}

.modal-priest-name {
    font-weight: 600;
    font-size:1.1em;
    margin:1em 0 0 0;
    text-align:center;
}

.modal-priest-info p {
    margin: 1em 0 0 0;
    font-size: 16px;
}

.modal-priest-info p a{    
    text-decoration:none;
    color:#4d4d4d
}

.topnav-priest-search {   
    margin: 0 0 5px 0;
}

.priest-search {
    margin: 1em 0 0 0;
    background: #f8f8f8;
}

.priest-search-inner {
    margin: 0;
}

.priest-inner-list {
    border: 1px;
    border-style: solid;
    border-color: #bbb;
    margin-bottom: 20px;
}

.priest-inner-list h5 {
    color: #4d4d4d;
    padding: 10px 0px 10px 0;
    text-transform: uppercase;
}

.priest-list-heading {
    font-size: 14px;
    font-weight: 400;
    color: #4d4d4d;
    text-transform: uppercase;
    padding: 10px 0 10px 0;
    background: #dfdfdf;
}

.priest-list-result {
    margin-bottom: 20px;
}

.topnav-priest-search {
    overflow: hidden;
    background: #f8f8f8;
}

.search-group {
    display: flex;
    gap: 10px; 
    width: 100%;
    margin: 15px 1em 0px 0;
    justify-content: flex-end
}

.search-group button {
    height: 34px; 
    line-height: 20px;
    max-width: 120px;
}

/* Mobile */
@media (max-width: 767px) {
    .priest-search-inner {
        float: none !important;
        text-align: left;
    }
    
    .topnav-priest-search input.form-control {
        width: 100% !important;
        max-width: 280px;
        margin: 0 10px 0 10px;
    }

    .search-btn button {
        width: 70%;
        max-width: 100px;
    }
}
