.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 9999;
  opacity: 1 !important;
}

/* ====================================================================== */

.btn {
  font-weight: 600;
  transition: 0.5s;
  border-radius: 50px;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: inherit;
}

.btn-primary {
  color: var(--bs-white);
}

/* ====================================================================== */

.navbar {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link {
  margin-right: 25px;
  padding: 40px 0;
  color: var(--bs-white);
  font-size: 16px;
  text-transform: uppercase;
  outline: none;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-yellow);
}

.navbar:not(.bg-dark) .dropdown-menu {
  margin-top: -30px !important;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar.bg-dark .dropdown-menu {
  background-color: #181818 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar.bg-dark .dropdown-item {
  color: #fff;
}

.navbar.bg-dark .dropdown-item:hover {
  color: var(--bs-yellow);
}

.navbar.hamburger-open .dropdown-menu {
  background-color: #fff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  margin-top: 0 !important;
}

.navbar.hamburger-open .dropdown-item {
  color: #000 !important;
}

.navbar.hamburger-open .dropdown-item:hover {
  color: var(--bs-yellow) !important;
}

.navbar-logo {
  height: clamp(40px, 6vw, 70px);
  width: auto;
  transition: height 0.2s ease;
}

.navbar-hamburger {
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link,
  .navbar.bg-dark .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 8px;
    border-top: 1px solid var(--bs-light);
  }

  .navbar-collapse {
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding-bottom: 20px;
  }
}

@media (min-width: 992px) {
  .navbar.bg-dark .navbar-nav .nav-link {
    padding: 20px 0;
  }

  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 40px;
  }

  .navbar-hamburger {
    transform: scale(0.75);
  }
}

@media (min-width: 577px) and (max-width: 1199px) {
  .navbar-logo {
    height: clamp(45px, 5vw, 60px);
  }

  .navbar-hamburger {
    transform: scale(0.95);
  }
}

@media (min-width: 1200px) {
  .navbar-logo {
    height: 70px;
  }

  .navbar-hamburger {
    transform: scale(1);
  }
}

/* ====================================================================== */

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 550px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-white);
}

/* ====================================================================== */

.title-container {
  justify-self: center;
}

.title-container-right {
  justify-self: right !important;
}

.title-container-left {
  justify-self: left !important;
}

.title-container .title-left,
.title-container .title-center,
.title-container .title-right {
  display: inline-block;
  text-transform: uppercase;
  overflow: hidden;
}
.title-container .title-center {
  text-align: center;
}
.title-container .title-right {
  text-align: right;
}
.title-container .title-left h5,
.title-container .title-center h5,
.title-container .title-right h5 {
  position: relative;
  display: inline-block;
  font-size: clamp(0.9rem, 2.2vw, 1.125rem);
  font-weight: 300;
}
.title-container .title-left h5::after,
.title-container .title-center h5::before,
.title-container .title-center h5::after,
.title-container .title-right h5::before {
  position: absolute;
  content: "";
  width: 1000%;
  height: 0;
  top: 9px;
  border-bottom: 1px solid var(--bs-white);
}
.title-container .title-left h5::after,
.title-container .title-center h5::after {
  left: calc(100% + 15px);
}
.title-container .title-right h5::before,
.title-container .title-center h5::before {
  right: calc(100% + 15px);
}
.title-container .title-left h1,
.title-container .title-center h1,
.title-container .title-right h1 {
  border-bottom: 1px solid var(--bs-white);
}

.section-white .title-container h5::before,
.section-white .title-container h5::after,
.section-white .title-container h1 {
  border-bottom: 1px solid #333 !important;
}

@media (max-width: 992px) {
  .title-container {
    justify-self: center !important;
    text-align: center !important;
  }

  .title-container-left,
  .title-container-right {
    justify-self: center !important;
  }

  .title-left,
  .title-right {
    text-align: center !important;
  }
}

/* ====================================================================== */

.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-carousel .owl-dots {
  margin-top: 35px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
  width: 60px;
  height: 60px;
  margin: 0 5px;
  padding: 10px;
  background: var(--bs-dark);
  border-radius: 100px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
  opacity: 0.1;
  transition: 0.5s;
  border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
  opacity: 1;
}

/* ====================================================================== */

@keyframes footerAnimatedBg {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -1000px 0;
  }
}

.footer {
  background-image: url(../img/footer-bg.png);
  background-position: 0px 0px;
  background-repeat: repeat-x;
  animation: footerAnimatedBg 50s linear infinite;
}

/* ====================================================================== */

.history-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.history-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.2) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}
.history-content {
  position: relative;
  z-index: 2;
}
.history-section,
.history-section p,
.history-section h1,
.history-section h5,
.history-section li,
.history-section .list-group-item,
.history-section .title-left h1,
.history-section .title-left h5 {
  color: #ffffff !important;
}

.history-section .fa {
  color: #ffffff !important;
}

/* ====================================================================== */

.pagination .page-link {
  color: #111;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.pagination .page-link:hover {
  background: #ececec;
}

.pagination .page-item.active .page-link {
  background-color: #111;
  border-color: #111;
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  background: #f1f1f1;
  color: #aaa;
}

.pagination.section-dark .page-link {
  background: #111;
  color: #fff;
  border-color: #444;
}

.pagination.section-dark .page-link:hover {
  background: #222;
  color: #fff;
}

.pagination.section-dark .page-item.active .page-link {
  background-color: #fff;
  color: #111;
  border-color: #fff;
}

.pagination.section-dark .page-item.disabled .page-link {
  background-color: #333;
  color: #777;
}

/* ====================================================================== */

.event-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ddd;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.modalImg img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.event-info {
  padding: 15px 18px 18px 18px;
  text-align: center;
}

.event-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bs-white);
}

.event-date {
  font-size: 14px;
  font-weight: 500;
  color: #2f5da8;
}

.event-card::after {
  content: "Zobraziť viac";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  font-size: 20px;
  font-weight: 600;

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

  opacity: 0;
  transform: scale(1.1);
  transition: 0.25s ease-in-out;
}

.event-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.no-events-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  text-align: center;
}

.no-events-box::before,
.no-events-box::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
}

.no-events-box span {
  padding: 0 15px;
  color: #666;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .no-events-box {
    margin: 30px 0;
  }

  .no-events-box span {
    font-size: 18px;
    padding: 0 12px;
  }

  .no-events-box::before,
  .no-events-box::after {
    height: 1px;
    background: #d0d0d0;
  }
}

@media (max-width: 576px) {
  .no-events-box {
    margin: 25px 0;
  }

  .no-events-box span {
    font-size: 16px;
    padding: 0 10px;
    white-space: normal;
  }

  .no-events-box::before,
  .no-events-box::after {
    flex: 0.3;
  }
}

@media (max-width: 768px) {
  .modalImg img {
    height: 160px;
  }
}

/* ====================================================================== */

.modalContainer {
  background: #111;
  color: white;
  border-radius: 12px;
  border: none;
  padding-bottom: 10px;
}

.modalHover {
  visibility: hidden;
  position: absolute;
}

.modalTitle {
  color: var(--bs-yellow) !important;
  font-weight: 700;
  font-size: 26px;
}

.modalImg {
  max-width: 100%;
  max-height: 40vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border: 3px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.modalDate {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: -4px;
}

.modalText {
  text-align: justify;
  background: #1a1a1a;
  color: #e4e4e4;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  border-left: 4px solid #2f5da8;
  padding: 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05);
}

#modal .modal-dialog,
#modal .modal-content,
#modal .modal-body {
  overflow-x: hidden !important;
}

@media (max-width: 480px) {
  .modalImg {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .modalImg {
    max-height: 250px;
    object-fit: cover;
  }

  #modal .modal-dialog {
    margin: 20px auto !important;
    max-width: 95%;
    width: 95%;
  }

  #modal .modal-content {
    max-height: 85vh;
    overflow: hidden;
    border-radius: 12px !important;
  }

  #modal .modal-body {
    overflow-y: auto;
    padding: 1rem;
    max-height: 70vh;
  }

  .modalImg {
    max-height: 40vh;
  }
}

/* ====================================================================== */

.shape-divider {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0wIDE0MGgxMjgwQzU3My4wOCAxNDAgMCAwIDAgMHoiLz48L2c+PC9zdmc+);
  background-size: 100% 100px;
  bottom: 0;
  height: 100px;
  z-index: 10;
  margin-top: -1px;
}

.shape-divider-right-up {
  transform: scale(-1, 1);
  margin-bottom: -1px;
}

.shape-divider-left-down {
  transform: scale(1, -1);
  margin-top: -1px;
}

/* ====================================================================== */

.section-dark {
  background: #111; /* tvoja čierna */
  color: #fff;
  position: relative;
}

.section-white {
  background: #ffffff;
}

.section-white h5,
.section-white p {
  color: #000000bf !important;
}
.section-white h1,
.section-white h5 {
  color: black !important;
}

/* ====================================================================== */

.footer-minimal {
  background: #111;
  color: #ccc;
  font-size: 14px;
  border-top: 1px solid #222;
}

.footer-minimal p,
.footer-minimal small {
  color: #bbb !important;
}

/* ====================================================================== */

.history-section-custom p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.priest-item {
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.2s ease;
  min-height: 80px;
  justify-content: center;
}

.priest-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.priest-item strong {
  font-size: 18px;
  color: #1d1c1b;
  display: block;
  text-align: center;
}

.priest-item span {
  font-size: 14px;
  color: #555;
  display: block;
  margin-top: 3px;
}

/* ====================================================================== */

@media (min-width: 992px) {
  .hover-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
  }

  .hover-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .hover-dropdown .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding-left: 25px;
  }
}

/* ====================================================================== */

.timeline {
  position: relative;
  margin: 50px 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #1d1c1b;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 30px;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 18px;
  height: 18px;
  background: #1d1c1b;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #1d1c1b;
  z-index: 3;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-content {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1d1c1b;
  text-align: center;
}

.timeline-content p {
  text-align: justify;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    text-align: left;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
}

.history-text p {
  text-align: justify;
  line-height: 1.7;
  margin-bottom: 18px;
}

.history-text h5 {
  margin-top: 25px;
  font-weight: 600;
}

#kaplnky::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 991px) {
  .history-text p {
    text-align: justify;
  }

  .subtitle {
    text-align: center !important;
  }
}

/* ====================================================================== */
.gallery {
  margin-bottom: 20px;
  border-radius: 12px;
}

.img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-vertical-wrapper {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.gallery-right {
  order: 2;
}
.gallery-left {
  order: 0;
}

.gallery-vertical-wrapper > div:not(.gallery) {
  order: 1;
}

.gallery-vertical {
  width: 45%;
  max-width: 600px;
  min-width: 380px;
}

.gallery-vertical .swiper-slide {
  aspect-ratio: 2 / 3;
}

.gallery-horizontal {
  float: right;
  width: 50%;
  max-width: 650px;
  margin-left: 30px !important;
  margin-bottom: 20px;
}

.gallery-horizontal-left {
  float: left;
  width: 50%;
  max-width: 650px;
  margin-right: 30px;
  margin-bottom: 20px;
}

.gallery-horizontal .img-slide {
  aspect-ratio: 3 / 2;
}

@media (max-width: 991px) {
  .gallery-vertical-wrapper {
    display: block;
  }

  .gallery-horizontal,
  .gallery-horizontal-left {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
  }

  .gallery-left,
  .gallery-right {
    order: 0;
  }

  .gallery-vertical .swiper-slide {
    aspect-ratio: 3 / 4 !important;
  }

  .gallery-vertical-wrapper .gallery-vertical {
    order: 3 !important;
  }

  .gallery-vertical-wrapper:has(.force-bottom) {
    display: flex;
    flex-direction: column;
  }

  .gallery-vertical-wrapper .force-bottom {
    order: 3;
    float: none !important;
    width: 45%;
    max-width: 600px;
    min-width: 380px;
  }

  .force-bottom .swiper-slide {
    aspect-ratio: 3 / 4 !important;
  }
}

@media (max-width: 768px) {
  .gallery-vertical {
    width: 85% !important;
    min-width: 0px !important;
  }
}
/* ====================================================================== */

.video-local {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

/* ====================================================================== */

.hero-quote-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-quote-ref {
  text-align: right;
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 400px) {
  .hero-quote-text {
    font-size: 0.7rem;
  }

  .title-small-text {
    font-size: 0.7rem !important;
  }
}

@media (min-width: 401px) and (max-width: 619px) {
  .hero-quote-text {
    font-size: 0.7rem;
  }
}

@media (min-width: 620px) {
  .hero-quote-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .carousel-caption .title {
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-quote-ref {
    font-size: clamp(0.6rem, 2vw + 0.2rem, 0.9rem) !important;
    text-align: center !important;
    padding-bottom: 10px;
  }
}

/* ====================================================================== */

.modalTitle {
  color: var(--bs-yellow);
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 12px;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.modal-body {
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0;
}

/* ====================================================================== */

.contact-table td:first-child {
  font-weight: 700;
  color: #000;
  width: 120px;
  padding-right: 15px;
}

.contact-table td:last-child {
  color: #444;
}

.contact-table a {
  color: #444;
  text-decoration: none;
}

.contact-table a:hover {
  color: #2f5da8;
}

/* ====================================================================== */

@media (max-width: 768px) {
  .pdf-btn-wrapper {
    justify-content: center !important;
  }
}

/* ====================================================================== */

.nice-quote {
  background: #f9f9f9;
  border-left: 4px solid #2f5da8;
  padding: 16px 18px;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  margin: 1.2rem 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}

.nice-quote p {
  margin: 0;
}

/* ====================================================================== */

#farske-dokumenty {
  scroll-margin-top: 70px;
}

#udalosti {
  scroll-margin-top: 100px;
}

#kontakt {
  scroll-margin-top: 70px;
}

#milodar {
  scroll-margin-top: 70px;
}

#historia {
  scroll-margin-top: 70px;
}

#knazi-vo-farnosti {
  scroll-margin-top: 100px;
}

#farsky-kostol {
  scroll-margin-top: 70px;
}

#kaplnky {
  scroll-margin-top: 120px;
}

#galeria {
  scroll-margin-top: 50px;
}

/* ====================================================================== */

#buducnost {
  scroll-margin-top: 150px;
}

#stefan-zavodnik {
  scroll-margin-top: 100px;
}

#casova-os {
  scroll-margin-top: 120px;
}
