/*
Theme Name: OrthodoxHildesheim
Theme URI: https://example.com/
Author: Roman A.
Author URI: https://example.com/
Description: Адаптивная тема для православного прихода, использует Bootstrap 5.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orthodoxhildesheim
Tags: bootstrap, адаптивная, православие, русская
*/ 

/* === Кастомные шрифты === */
@font-face {
    font-family: 'Luminari';
    src: url('assets/fonts/Luminari.woff2') format('woff2'),
         url('assets/fonts/Luminari.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/fonts/Gilroy-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/fonts/Gilroy-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


body {
    background: url('assets/images/background.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Gilroy', Arial, sans-serif;
    color: #070558;
    overflow-x: hidden;

}

h2 {
    font-size: 1.375rem;
    font-weight: 600;
}

.html {
    overflow-x: hidden;
}

.luminari-font {
    font-family: 'Luminari', sans-serif;
}


.title-site-small {
    font-family: 'Raleway', sans-serif;
    color: #070558;
}


/* карусель */

.carousel-item img {
    filter: brightness(0.5); 
}

.title-site {
    font-family: 'Luminari', sans-serif;
    /*font-size: 2.8rem;
    font-weight: 600; */
    color: #ffc130;
}

/* end карусель */




/* offcanvas */
.offcanvas-top-link {
    color: white;
}

.offcanvas-top-link a {
    color: white;
    text-decoration: none;
}

.offcanvas-top-link a:hover {
    color: white;
    text-decoration: underline;
}

/* offcanvs with id="offcanvasTop" */
#offcanvasTop .offcanvas-header {
    height: 60px;
    background: url('assets/images/icons/patternbuttoncalendar.svg') repeat-x center center;
    background-color: #070558;
}



/* end offcanvas */




.navbar-custom {
    background-color: #1d388b;
    /*border-radius: 7px 7px 0px 0px;*/
    
}

.dropdown-menu-navbar-bg {
    background-color: #1d388b;
}

.dropdown-menu-navbar-bg .dropdown-item {
    background-color: #1d388b;
    color: #fff;
}

.dropdown-menu-navbar-bg .dropdown-item:hover,
.dropdown-menu-navbar-bg .dropdown-item:focus,
.dropdown-menu-navbar-bg .dropdown-item.active {
    background-color: #2546a6 !important;
    color: #fff !important;
}


.pattern-header-bg {
    height: 45px;
    background: url('assets/images/icons/patternheader.svg') repeat-x center center;
    background-size: auto 45px;
}




.bg-topbar {
    background: #070558;
    min-height: 56px;
    z-index: 1041;
}
.mt-topbar {
    margin-top: 38px;
}
.blocktop {
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    height: 38px;
}
.blocktop a {
    color: #fff;
    text-decoration: none;
}
.blocktop a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .mt-topbar {
        margin-top: 0;
    }
} 

.main-header-container {
    margin-top: 56px; /* 38px (topbar) + 56px (navbar) */
}
@media (max-width: 991.98px) {
    .main-header-container {
        margin-top: 80px; /* Увеличенный отступ для мобильных устройств */
    }
}

/* Дополнительные отступы для очень маленьких экранов */
@media (max-width: 575.98px) {
    .main-header-container {
        margin-top: 90px; /* Еще больший отступ для XS экранов */
    }
} 

@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .navbar-nav .dropdown .dropdown-toggle::after {
    transform: rotate(180deg);
  }
} 

@media (max-width: 991.98px) {
  .main-header-container .position-relative {
    min-height: 180px;
  }
} 

.bg-topbar .btn, .bg-topbar .btn:focus, .bg-topbar .btn:active {
    background: transparent !important;
    border: none;
    box-shadow: none;
    color: #fff;
}


.card-custom{
    background: url(assets/images/icons/patternigumen.svg) center bottom, linear-gradient(270deg, rgb(8, 7, 87) 61.98%, #1e3a8e 100%), rgb(35, 35, 35);
    background-position-x: center, 0%, 0%;
    background-position-y: bottom, 0%, 0%;
    border-radius: .25rem;
}


.flag {
    width: 70px;
    height: 137px;
    display: block;
    position: relative;
    background: url(assets/images/icons/flag-calendar.svg);
    background-size: 70px;
    background-repeat: no-repeat;
}

.dateblock {
    width: 70px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #070558;
    position: absolute;
    top: 12px;
    left: 50%;
    right: 50%;
    margin-left: -35px;
}

.dateblock span {
    font-weight: bold;
    font-size: 40px;
    line-height: 47px;
    text-align: center;
    color: #070558;
    display: block;
}

.dateblock .day_week {
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: #070558;
    display: block;
}


.card-custom{
    background: url(assets/images/icons/patternigumen.svg) center bottom, linear-gradient(270deg, rgb(8, 7, 87) 61.98%, #1e3a8e 100%), rgb(35, 35, 35);
    background-position-x: center, 0%, 0%;
    background-position-y: bottom, 0%, 0%;
}


.orthodox_kreuz{
	width: 19px;
    height: 25px;
    display: inline-block;
    position: relative;
    background: url(assets/images/icons/orthodox_kreuz.svg);
    background-size: 19px;
    background-repeat: no-repeat;
}


.liturgy-bg {
    background: url(assets/images/icons/bgcalendar.png), #FFFFFF;
    /* height: 100%; ubral kogda delal shortcode dlja raspisanija */
}


.icon-link {
    display: inline-block;
    margin-right: 9px;
    margin-bottom: 5px;
  }

/* footer */

footer {
    background-color: #070558;
    
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}


.img-brightness-50 {
    filter: brightness(0.7); 
}

/* стили для md, lg, xl, xxl  для блока с новостями 4 миниатюры*/
@media (min-width: 768px) {
  
    .round-first-img{
        border-top-left-radius: .5rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: .5rem;
    }

    .round-four-img{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: .5rem;
        border-bottom-left-radius: 0;
    }

    .round-three-img{
        border-top-left-radius: 0;
        border-top-right-radius: .5rem;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

}

/* только md */
@media (min-width: 768px) and (max-width: 991.98px) {
    .round-all{
        border-radius: 0;
    }
    .round-first-img{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .round-four-img{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .round-three-img{
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

   
}

/* Стили для xs и sm */
@media (max-width: 767.98px) {
    
    .round-all{
        border-radius: .5rem;
    }
    .round-first-img{
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        border-bottom-right-radius: .5rem;
        border-bottom-left-radius: .5rem;
    }

    .round-four-img{
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        border-bottom-right-radius: .5rem;
        border-bottom-left-radius: .5rem;
    }

    .round-three-img{
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        border-bottom-right-radius: .5rem;
        border-bottom-left-radius: .5rem;
    }
  }
  


/* Новые стили для элементов новостей */


.news-item-img {
    filter: brightness(0.5);
}

.news-item-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.news-item-title {
    color: #fff;
}

.news-item-excerpt {
    color: #fff;
}

/* === Стили для страницы 404 === */
.error-404-content {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-404-content .display-1 {
    font-size: 6rem;
    font-weight: 700;
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404-content .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-404-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.error-404-content .btn {
    transition: all 0.3s ease;
}

.error-404-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для страницы 404 */
@media (max-width: 767.98px) {
    .error-404-content .display-1 {
        font-size: 4rem;
    }
    
    .error-404-content {
        min-height: 50vh;
        padding: 2rem 0;
    }
}

@media (max-width: 575.98px) {
    .error-404-content .display-1 {
        font-size: 3rem;
    }
    
    .error-404-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.colored-ul{
    list-style: none;
    padding-left: 0;
}

.colored-ul li{
    position: relative;
    padding-left: 24px; /* Отступ для маркера */
    margin-bottom: 8px;
}

.colored-ul li:before{
    content: '';
    background-image: url(assets/images/icons/circlehover.svg);
    background-size: 9px;
    background-repeat: no-repeat;
    width: 9px;
    height: 9px;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 8px;
}

.btn-custom {
    background: url(assets/images/icons/patternbuttoncalendar.svg), linear-gradient(180deg, #FFE79A 0%, #FFC130 100%);
    border-color: #ffc130;
    color: #070558;
    font-family: inherit;
    font-style: normal;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    display: inline-block;
    box-shadow: inset 0px -2px 0px #eab12f;
}

.btn-custom:hover {
    background: url(assets/images/icons/patternbuttoncalendar.svg), linear-gradient(0deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), linear-gradient(180deg, #FFE79A 0%, #FFC130 100%);
    border-color: #ffc130; 
    color: #070558;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.btn-custom a {
    background: url(assets/images/icons/patternbuttoncalendar.svg), linear-gradient(180deg, #FFE79A 0%, #FFC130 100%);
    box-shadow: inset 0px -2px 0px #eab12f;
    font-family: inherit;
    font-style: normal;
    font-weight: bold;
    color: #070558;
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    display: inline-block;
}

.btn-custom a:hover {
    background: url(assets/images/icons/patternbuttoncalendar.svg), linear-gradient(0deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), linear-gradient(180deg, #FFE79A 0%, #FFC130 100%);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

/* === Кнопка "Наверх" === */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: url(assets/images/icons/patternbuttoncalendar.svg), linear-gradient(180deg, #FFE79A 0%, #FFC130 100%);
    color: #070558;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    opacity: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: inset 0px -2px 0px #eab12f, 0 4px 12px rgba(255, 193, 48, 0.3);
}

.scroll-to-top-btn:hover {
    background: url(assets/images/icons/patternbuttoncalendar.svg), linear-gradient(0deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)), linear-gradient(180deg, #FFE79A 0%, #FFC130 100%);
    transform: translateY(-2px);
    box-shadow: inset 0px -2px 0px #eab12f, 0 6px 16px rgba(255, 193, 48, 0.4);
}

.scroll-to-top-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 48, 0.3);
}

.scroll-to-top-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767.98px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top-btn i {
        font-size: 1rem;
    }
}

/* Скрываем кнопку на больших экранах (lg и xl) */
@media (min-width: 992px) {
    .scroll-to-top-btn {
        display: none !important;
    }
}


.card-rel-posts{
    background: url(assets/images/icons/patternigumen.svg) center bottom, linear-gradient(270deg, rgb(8, 7, 87) 61.98%, #1e3a8e 100%), rgb(35, 35, 35);
    background-position-x: center, 0%, 0%;
    background-position-y: bottom, 0%, 0%;
}

/* Стили для ссылок в блоке похожих постов */
.card-rel-posts a,
.card-rel-posts a:link,
.card-rel-posts a:visited {
    color: #fff !important;
    text-decoration: none;
}

.card-rel-posts a:hover,
.card-rel-posts a:focus {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Стили для списка похожих постов */
.card-rel-posts .colored-ul {
    list-style: none;
    padding-left: 0;
}

.card-rel-posts .colored-ul li {
    position: relative;
    padding-left: 24px; /* Отступ для маркера */
    margin-bottom: 8px;
}

.card-rel-posts .colored-ul li:before {
    content: '';
    background-image: url(assets/images/icons/circlehover.svg);
    background-size: 9px;
    background-repeat: no-repeat;
    width: 9px;
    height: 9px;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 7px;
}

/* Дополнительные стили для ссылок похожих постов */
.related-post-link {
    color: #fff !important;
    text-decoration: none !important;
}

.related-post-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Дополнительные стили для ссылок похожих страниц */
.related-page-link {
    color: #fff !important;
    text-decoration: none !important;
}

.related-page-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
