/* #region resetstyles */
* {
    padding: 0px;
    margin: 0px;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
    display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}

ul, ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img, svg {
    max-width: 100%;
    height: auto;
}

address {
font-style: normal;
}

/* Form */

input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

/* #endregion */


/* #region variables */

:root {
    /* colors */
    --accent-color: #e28969;
    --second-color: #c1a0a0;
    --bg-color: #f8f2e7;
    --text-color: #000000;
    
    
    /* font-size */
    --main-font-size: 18px;
    --second-font-size: 14px;
    --third-font-size: 12px;
    --navbar-font-size: 1vw;
    --title-font-size: 32px;
    --subtitle-font-size: 24px;

    /* font-family */
    --main-font-family: 'Manrope', sans-serif;
    --handwritten-font-family: 'Izhitsa', sans-serif;

    @media (max-width: 1280px) {
        --main-font-size: 14px;
        --second-font-size: 12px;
        --third-font-size: 10px;
        --navbar-font-size: 1.3vw;
        --title-font-size: 18px;
        --subtitle-font-size: 16px;
    }

    @media (max-width: 768px) {
        --main-font-size: 16px;
        --second-font-size: 14px;
        --third-font-size: 12px;
        --navbar-font-size: 16px;
        --title-font-size: 28px;
        --subtitle-font-size: 24px;
    }
}

/* #endregion */


/* #region global */

@font-face {
    font-family: "Izhitsa";
    src: url('../fonts/Izhitsa.woff') format('woff');
    font-weight: 1000;
    font-style: normal;
}

@font-face {
    font-family: "Manrope";
    src: url('../fonts/Manrope.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: var(--main-font-family);
    font-size: var(--main-font-size);
}

main {
    background-color: var(--bg-color);
    padding: 20px 140px;
    padding-top: 120px;
    min-height: 100vh;
}

main h1 {
    font-family: var(--handwritten-font-family);
    font-size: var(--title-font-size);
    margin: 0;
    margin-top: 10px;
    padding: 0;
    text-align: center;
    color: var(--accent-color);
}

main p {
    margin-bottom: 5px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 40vw;
    margin: 15px auto;
}

button, .button {
    display: inline-block;
    cursor: pointer;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--main-font-family);
    font-size: var(--main-font-size);
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: var(--second-color);
}

dialog {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 50vw;
    margin: auto;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.2);
    /* backdrop-filter: blur(5px); */
}

ul li {
    list-style: disc;
    margin: 5px 0;
    margin-left: 30px;
}

ul li::marker {
    color: var(--accent-color);
}

hr {
    border: none;
    border-top: 1px solid var(--accent-color);
    margin: 20px 0;
    width: 100%;
}

@media (max-width: 768px) {
    body {
        margin: 0;
    }

    main {
        padding: 20px;
        padding-top: 80px;
    }

    section {
        max-width: 100%;
    }
}

.hide {
    display: none !important;
}

/* #endregion */

/* #region navbar */

.navbar {
    background-color: #ffffffda;
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    z-index: 999;
    border-radius: 10px;
    padding: 0.7vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* #region .navbar.top-color */

.top-color {
    background-color: #ffffff00;
}

.navbar.top-color .submenu {
    background-color: #ffffff70;
}

.navbar.top-color .submenu::after {
    border-color: transparent transparent #ffffff70 transparent;
}

.navbar.top-color::before {
    backdrop-filter: blur(30px);
}

.navbar.top-color li a, .navbar.top-color li h1 {
    color: #2f344b;
}

/* #endregion */

.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: #ffffff00;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.navbar li {
    position: relative;
    list-style: none;
    margin: 0;
    
}

.navbar li a {
    display: block;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    font-size: var(--navbar-font-size);
    font-weight: bolder;
    letter-spacing: 0.1vw;
    cursor: pointer;
    transition: color 0.3s ease;
}

.navbar li a .fa-angle-down {
    transition: transform 0.3s ease;
}

.navbar li a:hover {
    color: var(--accent-color);
}

.navbar .submenu {
    display: flex;
    flex-direction: column;
    position: absolute;
    gap: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffffda;
    min-width: 160px;
    z-index: 998;
    top: 50px;
    font-size: var(--main-font-size);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .submenu::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: #ffffff00;
}

.navbar .submenu::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 20px 8px 20px;
    border-style: solid;
    border-color: transparent transparent #ffffffc5 transparent;
}

#phone-controls {
    display: none;
}

#socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* #region submenu-animations */

@keyframes submenu-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes submenu-fade-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    
}

/* #endregion */

/* #region icons */

nav #vk:hover {
    color: #0077FF;
}

nav #tg:hover {
    color: #24A1DE;
}

nav #maps:hover {
    color: #FF4230;
}

/* #endregion */

@media (max-width: 768px) {
    #phone-controls {
        display: flex;
        justify-content: space-between;
        margin: 0;
        padding: 0;
    }

    .navbar {
        width: 95vw;
        padding: 10px 20px;
    }

    .navbar #menu {
        display: none;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, opacity 0.3s ease;
        opacity: 0;
    }

    .navbar #menu li {
        margin-top: 10px;
    }

    .navbar #menu li a {
        font-size: var(--navbar-font-size);
        text-align: right;
        font-weight: normal;
    }

    .navbar #menu.show {
        display: flex;
        max-height: 229px;
        opacity: 1;
        transition: max-height 0.5s ease, opacity 0.3s ease 0.2s;
    }

    .navbar h1 {
        font-size: 24px;
        color: var(--accent-color);
    }

    #menu #socials a {
        font-size: 20px;
    }

    .navbar .submenu, .navbar.top-color .submenu {
        display: none;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, opacity 0.3s ease;
        opacity: 0;
        background: none;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        padding: 0;
        padding-right: 10px;
        margin-right: 10px;
        border-right: #00000023 1px solid;
    }

    .submenu::before {
        display: none;
    }

    .navbar .submenu.show, .navbar.top-color .submenu.show {
        display: flex;
        max-height: 229px;
        opacity: 1;
        transition: max-height 0.5s ease, opacity 0.3s ease 0.2s;
    }
}

@media (max-width: 1280px) {
    .navbar {
        width: 90vw;
    }
}

/* #endregion */

/* #region image header */

header {
    position: relative;
    overflow: hidden;
}

#particles-js, #sunRaysCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#sunRaysCanvas {
    pointer-events: none;
    z-index: 2;
    background-color: rgba(0,0,0,0);
    mix-blend-mode: plus-lighter;
    opacity: 0.1;
    filter: blur(7px);
}

#header-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

#header-title h1 {
    font-size: 1.75vw;
    font-weight: bolder;
    color: #ffffff;
    font-family: var(--handwritten-font-family);
}

#header-title h2 {
    font-size: 1vw;
    font-weight: bold;
    color: #ffffff;
}

@media (max-width: 768px) {
    header img {
        height: 80vh;
        object-fit: cover;
        object-position: -35vh;
    }

    #header-title h1 {
        font-size: 6vw;
    }

    #header-title h2 {
        font-size: 2.7vw;
    }

    #header-title h1, #header-title h2 {
        color: #2f344b;
        text-shadow: none;
    }

    #header-title {
        top: 20vh;
    }
}

/* #endregion */

/* #region schedule */

#schedule {
    max-width: 30vw;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#schedule-change-week {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 10px 0;
    margin-bottom: 40px;
}

#schedule.schedule-page {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: unset;
}

#schedule.schedule-page .schedule-table, #schedule.schedule-page h2 {
    width: 30vw;
}

#schedule-title, #schedule-date {
    text-align: center;
}

#schedule-date {
    font-size: var(--second-font-size);
}

#schedule div.holiday{
    color: rgb(223, 32, 32) ;
}

#schedule div h1 {
    font-family: var(--handwritten-font-family);
    font-size: calc(var(--title-font-size) - 4px);
    margin: 0;
    padding: 0;
    text-align: center;
}

#schedule div.holiday h1 {
    color: rgb(223, 32, 32);
}

#schedule div h2 {
    font-family: var(--main-font-family);
    font-size: var(--main-font-size);
    margin: 0;
    padding: 0;
    text-align: center;
    margin-bottom: 5px;
}

.schedule-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #00000023;
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: default;
    background: #fffdfd;
}

.schedule-table div {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: left;
    gap: 10px;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 5px 0;
}

.schedule-table div .time {
    width: 5vw;
}

.schedule-table div .service {
    flex: 1;
}

.schedule-table div:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #00000023;
}

.schedule-table div:hover {
    transform: scale(1.01);
}

.schedule-table:hover div:not(:hover) {
    opacity: 0.7;
}

.schedule-table p {
    font-family: var(--main-font-family);
    font-size: var(--main-font-size);
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    #schedule {
        max-width: 100%;
    }

    #schedule.schedule-page {
        flex-direction: column;
    }

    #schedule.schedule-page .schedule-table, #schedule.schedule-page h2 {
        width: 90vw;
        margin: 0 auto;
    }

    .schedule-table div .time {
        width: 15vw;
    }

}

/* #endregion */

/* #region news */

section#news {
    position: relative;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fill, minmax(15vw, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 1055px;
    max-width: 70vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
    min-width: 15vw;
    max-width: 15vw;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.news-card:hover {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
}

.news-card:hover img {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.news-card img {
    height: calc(15vw - 20px);
    object-fit: cover;
    border-radius: 15%;
    transition: box-shadow 0.3s ease;
}

.news-card .news-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-card .news-title .tags-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.news-card .news-title .tags-mini a {
    font-family: var(--main-font-family);
    font-size: var(--third-font-size);
    color: #ffffff;
    background-color: #00000065;
    padding: 2.5px 5px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    margin: 4px;
    margin-left: 0;
}

.news-card .news-title .news-date {
    font-family: var(--main-font-family);
    font-size: var(--third-font-size);
    color: #00000065;
}

#load-more {
    position: relative;
    margin: 10px 0;
    left: 50%;
    transform: translateX(-50%);
}

#news-loading-text {
    position: absolute;
    margin: 10px 0;
    left: 50%;
    transform: translateX(-50%);
    top: 0px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    section#news {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .news-card {
        min-width: 80vw;
        max-width: 80vw;
    }

    .news-card img {
        height: calc(80vw - 20px);
    }
}

/* #endregion */

/* #region news view */

#news-title {
    width: 40vw;
    margin: 0 auto;
}

#news-description {
    font-family: var(--main-font-family);
    font-size: var(--main-font-size);
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

#news-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20vw;
    justify-content: center;
}

#news-tags a {
    font-family: var(--main-font-family);
    font-size: var(--second-font-size);
    color: #ffffff;
    background-color: #00000065;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    margin: 4px;
    margin-left: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#news-tags a:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#news-date {
    font-family: var(--main-font-family);
    font-size: var(--second-font-size);
    color: #000000b7;
    text-align: center;
}

#news-gallery {
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fill, minmax(10vw, 1fr));
    gap: 10px;
    margin: 0 auto;
}

#news-gallery img {
    height: 12vw;
    width: 12vw;
    object-fit: cover;
    border-radius: 15%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

#news-gallery img:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
}

@media (max-width: 768px) {
    #news-title {
        width: 100%;
    }

    #news-tags {
        padding: 10px;
    }
    
    #news-gallery {
        grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr));
    }
    
    #news-gallery img {
        height: 40vw;
        width: 40vw;
    }
}

/* #endregion */

/* #region footer */

footer {
    background-color: #8f604f;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-top: 4px solid #00000041;
}

footer p {
    font-family: var(--handwritten-font-family);
    font-size: var(--main-font-size);
}

/* #endregion */


/* #region index */

#full-schedule-button, #full-news-button {
    margin: 10px auto;
    display: table;
}

#links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 20px auto;
    width: 30vw;
}

#links a {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#links a:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    main.index {
        padding-left: 100px;
        padding-right: 100px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
    }

    main.index section#news {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: stretch;
        width: 100%;
    }

    main.index aside {
        flex: 1;
    }

    main.index div {
        flex: 2;
    }
}

@media (max-width: 768px) {
    #links {
        width: 100vw;
    }
}

/* #endregion */

/* #region history */

#history-section {
    text-align: left;
    margin: 20px auto;
    width: 70%;
    max-width: 900px;
    padding: 0;
}

.history-container {
    min-height: 300px;
    background: rgb(255, 255, 255);
    background-image: radial-gradient(ellipse at top left, rgba(226, 137, 105, 0.788) 0%, rgba(255,255,255,1) 40%);
    background-size: 150% 280px;
    padding: 20px;
    border-radius: 10px;
    background-repeat: no-repeat;
    border-top: rgba(226, 137, 105, 0.788) 4px dashed;
}

.history-year {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffffb6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
}

.history-info {
    margin-top: 30px;
}

.history-info h3 {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.34);
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: bolder;
    margin: 10px 0;
}

.history-gallery {
    margin: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
}

.history-gallery img {
    width: 12vw;
    height: 12vw;
    object-fit: cover;
    border-radius: 15%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.history-gallery img:hover {
    transform: scale(1.01);
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    #history-section {
        margin: 0 0;
        width: 100%;
    }

    .history-container {
        background-size: 200% 280px;
        padding: 5px;
    }

    .history-year {
        font-size: 36px;
        font-weight: bold;
        margin-bottom: 10px;
        color: #ffffffb6;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .history-gallery img {
        width: 30vw;
        height: 30vw;
        object-fit: cover;
        border-radius: 15%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
}

/* #endregion */

/* #region school */

#school {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 20px auto;
    width: 1055px;
    max-width: 70%;
}

#school p {
    width: 100%;
    margin: 10px auto;
}

#school h3 {
    color: var(--accent-color);
    font-weight: bolder;
    font-size: var(--subtitle-font-size);
}

@media (max-width: 768px) {
    #school {
        width: 100%;
        max-width: 100%;
    }
}

/* #endregion */

/* #region contacts */

#contacts-section {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: start;
    text-align: left;
    margin: 20px auto;
}

#contacts-section h2 {
    margin: 10px 0;
    font-size: var(--subtitle-font-size);
}

#contacts-section hr {
    border-top: 1px solid #00000033;
}

#contacts-section a {
    color: #000;
}

#contacts-section .buble {
    background-color: #00000010;
    border-radius: 30px;
    padding: 20px;
    box-sizing: border-box;
    text-decoration: none;
    font-size: calc(var(--subtitle-font-size) * 0.9);
    transition: transform 0.3s ease;
}

#contacts-section .buble i {
    transition: transform 0.3s ease;
}

#contacts-section .phones .buble:hover i {
    transform: rotate(45deg);
}

#contacts-section .email .buble:hover i {
    transform: translateY(-2px);
}

#contacts-section .buble:hover {
    transform: scale(1.03);
}

#contacts-section .phones, #contacts-section .email {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    #contacts-section .phones {
        flex-direction: column;
    }
}

/* #endregion */

/* #region donations */

#donations {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
}

#donations h2 {
    font-size: var(--title-font-size);
    color: var(--accent-color);
    margin-top: 10px;
}

#donations h3 {
    font-size: var(--subtitle-font-size);
    color: var(--accent-color);
    margin-top: 10px;
}

/* #endregion */

/* #region qa */

#qa, #faq {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

#faq h3 {
    color: var(--accent-color);
    font-weight: bolder;
    font-size: var(--subtitle-font-size);
    margin-top: 10px;
}

.faq-answer {
    margin-top: 10px;;
    padding-left: 30px;
}

#faq #faq-list {
    counter-reset: item;
    padding-left: 0;
    margin: 0;
}

#faq #faq-list .faq-item {
    list-style: none;
}

#faq #faq-list .faq-item details summary {
    list-style: none;
    cursor: pointer;
    font-size: var(--title-font-size);
    color: var(--accent-color);
}

#faq #faq-list .faq-item details summary::before {
    display: inline;
    content: counter(item);
    counter-increment: item;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    background: #e289691c;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    margin-right: 0.5em;
    font-size: 0.8em;
    color: #e28969d2;
}

#faq #faq-list .faq-item details summary i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

#faq #faq-list .faq-item details[open] summary i {
    transform: rotate(180deg);
}

#ask-question {
    width: 35vw;
}

#question-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px auto;
    width: 100%;
}

#question-form input[type="text"],
#question-form textarea,
#question-form input[type="email"] {
    width: 100%;
    padding: 15px 10px;
    background-color: #0000000a;
    border-radius: 15px;
    font-size: var(--main-font-size);
    resize: vertical;
}

#question-form input[type="text"] {
    font-weight: bold;
    color: var(--accent-color);
    font-size: var(--subtitle-font-size);
}

#question-form textarea {
    min-height: 100px;
    max-height: 250px;
}

#question-form button {
    width: fit-content;
    align-self: center;
}

#question-form div {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

#questions {
    align-items: start;
}

#questions .question {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 10px;
}

#questions .question h2 {
    font-size: var(--subtitle-font-size);
    font-weight: bold;
    margin: 0;
}

#questions .question .qa-time {
    font-size: var(--third-font-size);
    color: #000000b7;
    margin: 0;
}

#questions .question details {
    width: 100%;
}

#questions .question summary {
    cursor: pointer;
}

#questions .question .answer {
    background-color: rgba(0, 0, 0, 0.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 10px;
}

.qa-button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 768px) {
    #qa, #faq {
        width: 100%;
    }

    #ask-question {
        width: 90vw;
    }
    
    #question-warning {
        width: 90vw;
        max-width: unset;
    }

    /* #question-warning .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    } */
}

/* #endregion */

/* #region clergy */

#clergy {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    width: 60vw;
    max-width: 1000px;
}

#clergy h2 {
    font-size: var(--subtitle-font-size);
    color: var(--accent-color);
    font-weight: bolder;
    margin-top: 10px;
}

#clergy .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#clergy .card:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#clergy .card img {
    width: 20vw;
    height: 20vw;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 768px) {
    #clergy {
        width: 90vw;
    }

    #clergy .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #clergy .card img {
        width: 50vw;
        height: 50vw;
    }
    
}

/* #endregion */


/* #region 404 */

.error-404 h2 {
    text-align: center;
}

.error-404 button {
    display: block;
    margin: 20px auto;
}

/* #endregion */

/* #region admin */

/* #region login */

#login-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 350px;
    margin: 0 auto;
    margin-top: 100px;
}

#login-form.dialog {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    width: 350px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: stretch;
}

.lbg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #00000056;
    z-index: 999;
}

#login-form.dialog h1 {
    font-family: var(--handwritten-font-family);
    font-size: var(--title-font-size);
    color: var(--accent-color);
    text-align: center;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #FFF;
    border-radius: 15px;
    font-size: 16px;
}

#login-dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.26);
    z-index: -1000;
}

/* #endregion */

/* #region dashboard */

#admin-dashboard {
    align-items: start;
    text-align: left;
}

/* #endregion */

/* #region news */

#news-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px auto;
    width: 50vw;
}

#news-form input[type="text"],
#news-form textarea,
#news-form input[type="date"],
#news-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #FFF;
    border-radius: 15px;
    font-size: 16px;
    resize: vertical;
}

#news-form textarea {
    min-height: 300px;
}

#images-preview {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    position: relative;
    min-height: 10vw;
}

#images-preview .image-item {
    width: 12vw;
    height: 12vw;
    background-size: cover;
    background-position: center;
    border-radius: 15%;
    cursor: grab;
    transition: opacity 0.3s ease;
    user-select: none;
    touch-action: none; 
    position: relative;
}

#images-preview .image-item .delete-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgb(224, 43, 43);
    color: #FFF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#images-preview .image-item:hover .delete-button {
    opacity: 1;
}

.news-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.news-card .delete-button {
    background-color: rgb(224, 43, 43);
    transition: filter 0.3s ease;
}

.news-card .approve-button {
    background-color: rgb(34, 151, 34);
    transition: filter 0.3s ease;
}

.news-card .hide-button {
    background-color: rgb(156, 156, 156);
    transition: filter 0.3s ease;
}

.news-card .approve-button:hover,
.news-card .hide-button:hover,
.news-card .delete-button:hover {
    filter: brightness(0.8);
}

#AIFeaturesWindowContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#AIFeaturesTags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#AIFeaturesWindowContent textarea {
    width: 40vw;
    height: 300px;
    resize: none;
}

#upload-news {
    display: block;
    margin: 20px auto;
}

/* #endregion */

/* #region schedule */

#convert-schedule-form,
#add-schedule-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px auto;
    width: 50vw;
}

#convert-schedule-form input[type="file"],
#add-schedule-form input[type="date"],
#add-schedule-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #FFF;
    border-radius: 15px;
    font-size: 16px;
    resize: vertical;
}

#add-schedule-form textarea {
    height: 100vh;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    background-color: #2b2b2b;
    color: #FFF;
}

/* #endregion */

/* #region admin navbar */

.admin.navbar {
    width: unset;
}

.admin.navbar ul {
    gap: 20px;
}

/* #endregion */

/* #endregion */