/*--------------------------------------------------
  Global & Base Styles
--------------------------------------------------*/
body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}
/*--------------------------------------------------
  Top Footer & Header
--------------------------------------------------*/
header {
  max-width: 889px;
  text-align: center;
  margin-top: 41px;
  margin-bottom: 37px;
  margin: 32px auto auto;
}
.header-right {
  text-align: right;
}
.mainaddress {
  color: #6A3339;
  font-weight: 600;
  font-size: 18px;
}
.header-right a {
  color: #000000;
  font-weight: 300;
}
.header-middle .logo {
  margin-top: -9px;
  margin-right: 15px;
  float: left;
}
.header-middle {
  font-size: 35px;
  font-weight: bold;
  font-family: "Playfair Display", serif;
}
.header-middle-2 {
  font-size: 25px;
  margin-top: -10px;
}
.intro {
  max-width: 970px;
  text-align: center;
  margin: 24px auto auto;
  font-size: 18px;
  line-height: 1.4;
}
/*--------------------------------------------------
  Slideshow / Sermons
--------------------------------------------------*/
.container.two-columns {
  width: 100%;
}
.slideshow {
  margin: auto;
  text-align: center;
}
.buttonss i {
  padding-right: 5px;
  font-size: 22px;
  vertical-align: baseline;
}
.leftbox .buttonss {
  background-color: #6E3C41 !important;
}
a.buttonss {
  background-color: #2A3D4C !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 10px 22px 8px !important;
  -moz-border-radius: 2px !important;
  -webkit-border-radius: 2px !important;
  -khtml-border-radius: 2px !important;
  border-radius: 2px !important;
  max-width: 303px;
  display: block;
  margin-bottom: 13px;
  clear: both;
  margin: auto auto 12px auto;
}
.es-carousel-layout {
  margin-top: 40px;
}
.bottomimage img {
  width: 100%;
  margin-top: -155px;
  position: relative;
  left: 0;
  top: 0;
  z-index: -1;
}
/*--------------------------------------------------
  Owl Carousel Base & Announcement Items
--------------------------------------------------*/
.owl-carousel {
  display: block !important;
  clear: both;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.item .text h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0;
  color: #3E505E;
  line-height: 1.2 !important;
  padding-bottom: 5px;
  padding-top: 15px;
  padding-right: 27px;
  text-decoration: underline;
}
.modal-text h2 {
  font-size: 27px;
  color: #6A3339;
  font-weight: 500;
}
.modal-text p {
  font-weight: 300;
  line-height: 1.4;
  font-size: 16px;
  padding-bottom: 11px;
}
.modal-content .close {
  background-color: #AF4450;
  color: #FFFFFF;
  -moz-border-radius: 61px;
  -webkit-border-radius: 61px;
  -khtml-border-radius: 61px;
  border-radius: 0px 0px 0px 24px;
  padding: 0px;
  width: 41px;
  margin-top: -11px;
  margin-right: -16px;
}
.item .text p {
  font-size: 16px;
  color: #000000;
  line-height: 1.2;
  font-weight: 300;
}
.intro h2 {
  font-size: 16px;
  line-height: 1.5 !important;
  color: #000000;
  padding-top: 19px;
  padding-bottom: 0;
}
.happeningarea {
  display: inline-block;
  margin: 33px auto 0px;
  text-align: center;
  width: 100%;
  font-size: 46px;
}
.title {
  font-weight: 200 !important;
  line-height: 1;
  font-size: 53.3px;
  text-transform: uppercase;
  color: #000000;
  font-size: 50px;
  display: inline-block;
}
.title b {
  color: #6A3339;
  font-weight: 600 !important;
  text-transform: uppercase;
  padding-right: 6px;
  font-family: playfair display;
  font-size: 50px;
}
/*--------------------------------------------------
  Announcement List, Headings, etc.
--------------------------------------------------*/
.address {
  color: #000000;
  line-height: 0.8;
  margin-top: 11px;
  margin-bottom: 4px;
}
.headingtitle b {
  font-weight: 700;
  font-size: 25px;
  color: #8F9BA7;
}
.headingtitle {
  font-weight: 300;
  font-size: 27px;
  letter-spacing: -0.5px;
  text-align: center;
  padding-left: 70px;
  padding-right: 70px;
  line-height: 1.1;
}
.latestnewsslider {
  text-align: center;
  font-weight: 400;
  padding-top: 19px;
  padding: 11px 0 0;
  margin-bottom: 27px;
}
@media only screen and (max-width: 990px) {
  .latestnewsslider {
    min-height: auto;
  }
}
.address i {
  font-size: 19px;
  padding-right: 7px;
}
.latestnewsslider a {
  color: #000000;
}
.two-columns img:hover {
  opacity: 0.5;
}
.inner.two-columns {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1122px;
  margin: auto;
  padding-left: 0;
}
.leftbox.slideshow, .rightbox.slideshow {
  width: 41%;
  margin: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.leftbox.slideshow img, .rightbox.slideshow img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
@media only screen and (max-width: 880px) {
  .title, .title b {
    font-size: 46px;
  }
  .inner.two-columns {
    max-width: none;
    margin: auto;
    padding-left: 0;
  }
  .header-middle .logo {
    margin-top: -9px;
    margin-right: auto;
    float: none;
  }
  .header-right {
    text-align: center;
    margin-top: 20px;
    padding-top: 8px;
    padding-bottom: 9px;
    margin-bottom: 0;
    display: inline-block;
    padding-right: 24px;
    padding-left: 24px;
    line-height: 1.4;
    background-color: #EEEEEE;
  }
  .intro h2 {
    font-size: 16px;
    line-height: 1.5 !important;
    color: #000000;
    padding-top: 0px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .mainaddress {
    color: #6A3339;
    font-weight: 600;
    font-size: 15px;
  }
}
/*--------------------------------------------------
  Default: Desktop Layout (Image on Left, Text on Right)
--------------------------------------------------*/
.owl-carousel .item {
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  gap: 15px;
}
.owl-carousel .item .thumbnail {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}
.owl-carousel .item .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  padding-right: 10px;
}
.item .text {
  flex-grow: 1;
}
/*--------------------------------------------------
  Mobile Layout: Image Moves to the Top
--------------------------------------------------*/
@media only screen and (max-width: 800px) {
  .owl-carousel .item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .owl-carousel .item .thumbnail {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }
  .item .text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 0;
    color: #3E505E;
    line-height: 1.2 !important;
    padding-bottom: 5px;
    padding-top: 15px;
    padding-right: 27px;
    text-decoration: underline;
    padding: 11px 0 9px;
  }
  .owl-item .item .text p {
    padding-left: 14px;
    padding-right: 14px;
  }
  .item .text {
    text-align: center;
  }
  .leftbox.slideshow, .rightbox.slideshow {
    width: 50%;
    padding: 0px;
    margin-left: 8px;
    margin-right: 6px;
  }
}
@media only screen and (max-width: 580px) {
  .title, .title b {
    font-size: 25px;
  }
  .bottomimage img {
    margin-top: -72px;
  }
  .owl-carousel .owl-nav {
    top: -48px !important;
    /* Raised from 100 to 200 */
    font-size: 29px;
  }
}
/*--------------------------------------------------
  Announcements: Multiple vs. Single Layout
--------------------------------------------------*/
/* Multiple Announcements: Displayed side by side */
.owl-carousel.multiple-items .announcement {
  width: 48%;
  display: inline-block;
  vertical-align: top;
  margin: 1%;
}
/* Single Announcement: Full width, image on top */
.owl-carousel.single-item .announcement {
  width: 100%;
  display: block;
  margin: 0 auto 49px;
  text-align: center;
}
.owl-carousel.single-item .thumbnail {
  margin: auto;
}
/* Ensure images are properly sized */
.announcement .thumbnail img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
/*--------------------------------------------------
  New: Position Owl Carousel Navigation Arrows and Dots Above the News Items
--------------------------------------------------*/
/* Ensure the carousel container is positioned relative */
.owl-carousel {
  position: relative;
}
/* Give the navigation container a higher z-index */
.owl-carousel .owl-nav {
  position: absolute;
  top: -73px;
  /* Adjust this value as needed */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 200;
  /* Raised from 100 to 200 */
}
/* Ensure arrow buttons have pointer events enabled */
.owl-carousel .owl-nav button {
  color: #000000 !important;
  border-radius: 50%;
  pointer-events: auto;
  background-color: #FFFFFF !important;
  border: 1px solid black !important;
  line-height: 0 !important;
  width: 33px;
  padding-bottom: 7px !important;
  height: 32px;
}
/* Lower the z-index of the dots container so it doesn't overlap the arrows */
/*--------------------------------------------------
  Modal Styles (for Viewing Full Announcement)
--------------------------------------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}
.modal-content {
  background-color: #FFF;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  max-height: 80vh;
  /* 80% of the viewport height */
  overflow-y: auto;
  /* Enable vertical scroll if content is too long */
  overflow-x: hidden;
}
.modal-thumbnail img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.modal-text {
  font-size: 16px;
  color: #333;
  padding-top: 15px;
}
