* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #fff;
  
}


header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #c1a164;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: clamp(70px, 8vw, 100px);
  padding: 0 clamp(15px, 2vw, 30px);
  transition: height 0.3s ease;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 20px;
}

/* ====== Branding Styles ====== */
.branding {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
  left: 5px;
  transition: all 0.3s ease;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.church-logo {
  height: 5vw;
  width: 5vw;
  min-height: 50px;
  min-width: 50px;
  border-radius: 50%;
  border: 0.15vw solid rgb(36, 84, 218);
  cursor: pointer;
  animation: border-color-animation 3s infinite;
  margin-right: 1.5vw;
  object-fit: cover;
  transition: all 0.3s ease;
}

.church-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.church-name h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(18px, 2vw, 24px);
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-left: -15px;
}

.church-name h1 a {
  color: #111;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  transition: all 0.3s ease;
  font-weight: 700;
  display: block;
}

.church-name p {
  margin: 0.2vw 0 0 0;
  font-size: clamp(10px, 1vw, 14px);
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-left: -15px;
}

.church-name p a {
  color: #111;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  transition: all 0.3s ease;
}

.church-name p a:hover {
  color: #444;
}

.main-navigation {
  position: absolute;
  left: 66%;
  transform: translateX(-50%);
  width: auto;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  gap: 1.8vw;
}

.nav-menu > li {
  position: relative;
  padding: 0.7vw 0;
  height: 100%;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-menu > li:hover {
  transform: translateY(-2px);
}

.nav-menu > li > a {
  text-decoration: none;
  color: #111;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 16px);
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.3vw;
  width: 0;
  height: 0.2vw;
  background-color: #fff;
  transform: translateX(-50%);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-menu > li > a:hover::after {
  width: 50%;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #c1a164;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 0 0 5px 5px;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.submenu li {
  padding: 0.7vw 1vw;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.has-submenu:hover .submenu li {
  opacity: 1;
  transform: translateY(0);
}

.submenu li a {
  color: #111;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9em;
  white-space: nowrap;
  display: block;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5vw 0;
}

.submenu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submenu li a:hover::after {
    width: 100%;
}

.submenu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Staggered Submenu Animations */
.submenu li:nth-child(1) { transition-delay: 0.1s; }
.submenu li:nth-child(2) { transition-delay: 0.2s; }
.submenu li:nth-child(3) { transition-delay: 0.3s; }
.submenu li:nth-child(4) { transition-delay: 0.4s; }
.submenu li:nth-child(5) { transition-delay: 0.5s; }

.arrow {
    display: inline-block;
    margin-left: 5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.8em;
}

.has-submenu:hover .arrow {
    transform: rotate(180deg) scale(1.2);
}

/* ====== IELC Logo Styles ====== */
.denomination-logo {
    position: absolute;
    right: 5px;
    transition: all 0.3s ease;
}

.lutheran-logo {
    height: 5vw;
    width: 5vw;
    min-height: 50px;
    min-width: 50px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.lutheran-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ====== Hamburger Menu Styles ====== */
.hamburger-menu {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 101;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #111;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger-menu:hover span {
    background-color: #444;
    transform: scaleX(1.1);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ====== Mobile Menu Styles ====== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c1a164;
    z-index: 99;
    padding-top: 120px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.mobile-menu .nav-menu > li {
    padding: 0;
    height: auto;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.mobile-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.mobile-menu .has-submenu > a::after {
    content: "+";
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.mobile-menu .has-submenu.active > a::after {
    content: "-";
}

.mobile-menu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-left: 15px;
    background-color: rgba(0,0,0,0.05);
    margin: 5px -10px 0 -10px;
    border-radius: 5px;
    box-shadow: none;
}

.mobile-menu .has-submenu.active .submenu {
    max-height: 1000px;
    padding: 10px 15px;
}

.mobile-menu .submenu li {
    padding: 8px 0;
    opacity: 1 !important;
    transform: none !important;
}

.mobile-menu .submenu li a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    color: #111;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .nav-menu > li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .nav-menu > li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu .nav-menu > li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu .nav-menu > li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu .nav-menu > li:nth-child(5) { animation-delay: 0.5s; }

/* ====== Animations ====== */
@keyframes border-color-animation {
    0% { border-color: rgb(36, 84, 218); }
    33% { border-color: rgb(255, 0, 0); }
    66% { border-color: rgb(0, 255, 0); }
    100% { border-color: rgb(36, 84, 218); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


@media (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }

    header {
        height: 100px;
        padding: 15px 20px;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
    
    .branding {
        position: static;
        margin: 0;
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: auto;
        height: auto;
    }
    
    .logo-link {
        flex-direction: row;
        height: auto;
    }
    
    .church-logo {
        height: 60px;
        width: 60px;
        margin-right: 15px;
    }
    
    .church-name {
        align-items: flex-start;
    }
    
    .church-name h1 {
        white-space: normal;
        line-height: 1.2;
        font-size: 20px;
    }
    
    .church-name p {
        margin-top: 5px;
        text-align: left;
        font-size: 14px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .denomination-logo {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        position: static;
        transform: none;
        width: 35px;
        height: 28px;
    }
    
    .hamburger-menu span {
        height: 4px;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    header {
        height: 90px;
    }
    
    .church-logo {
        height: 50px;
        width: 50px;
    }
    
    .church-name h1 {
        font-size: 18px;
         
    }
    
    .church-name p {
        font-size: 13px;
    }
    
    .hamburger-menu {
        width: 32px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 100px;
    }
    
    header {
        height: 100px;
        padding: 15px;
    }
    
    .church-logo {
        height: 60px;
        width: 60px;
        margin-right: 15px;
    }
    
    .church-name h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .church-name p {
        font-size: 14px;
        margin-top: 5px;
    }
    
    .hamburger-menu {
        width: 36px;
        height: 28px;
        right: 15px;
    }
    
    .hamburger-menu span {
        height: 4px;
    }
    
    .mobile-menu {
        padding-top: 120px;
    }
    
    .mobile-menu .nav-menu > li > a {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .mobile-menu .submenu li a {
        font-size: 14px;
    }
}

@media (min-width: 990px) and (max-width: 1350px) {
  /* Adjust header height for mid-sized screens */
  header {
    height: clamp(80px, 7vw, 90px);
  }

  /* Center-align navigation with reduced gap */
  .main-navigation {
    left: 68%; /* Pull nav slightly left */
    transform: translateX(-50%);
  }

  /* Reduce gaps between nav items */
  .nav-menu {
    gap: 1.2vw;
  }

  /* Scale down logos */
  .church-logo,
  .lutheran-logo {
    height: 4.5vw;
    width: 4.5vw;
    min-height: 45px;
    min-width: 45px;
  }

  /* Adjust church name sizing */
  .church-name h1 {
    font-size: clamp(16px, 1.8vw, 22px);
  }

  .church-name p {
    font-size: clamp(9px, 0.9vw, 13px);
  }

  /* Compress submenu widths */
  .submenu {
    min-width: 160px;
  }

  /* Reduce padding in submenu items */
  .submenu li {
    padding: 0.5vw 0.8vw;
  }
}


.slider {
  position: relative;
  top: 6.9vw;
  width: 100%;
  height: 45vw;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}
.nav-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 0%;
  cursor: pointer;
  z-index: 1;
}
.nav-arrow.left {
  left: 10px;
}
.nav-arrow.right {
  right: 10px;
}
.nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


@media (min-aspect-ratio: 21/9) {
    .slider {
      height: 35vw;
      top: 7vw;
    }
    .slide img {
      height: 85%;
    }
}
  
@media (min-width: 1200px) {
    .slider {
      height: 40vw;
    }
    .nav-arrow {
      font-size: 2.5rem;
      padding: 15px;
    }
}
  
@media (min-width: 992px) and (max-width: 1199px) {
    .slider {
      height: 50vw;
    }
}
  
@media (min-width: 768px) and (max-width: 991px) {
    .slider {
      height: 60vw;
      top: 7vw;
    }
    .slide img {
      height: 85%;
    }
    .nav-arrow {
      font-size: 1.8rem;
      padding: 8px;
    }
}
  
@media (min-width: 576px) and (max-width: 767px) {
    .slider {
      height: 70vw;
      top: 0vw;
    }
    .slide img {
      height: 80%;
    }
    .nav-arrow {
      font-size: 1.5rem;
      padding: 6px;
      top: 40%;
    }
}
  
@media (max-width: 575px) {
    .slider {
      height: 80vw;
      top: 0vw;
    }
    .slide img {
      height: 75%;
    }
    .nav-arrow {
      font-size: 1.2rem;
      padding: 5px;
      top: 35%;
    }
}
  
@media (orientation: portrait) {
    .slider {
      height: 65vw;
    }
    .slide img {
      height: 80%;
    }
}
  
@media (orientation: landscape) and (max-width: 991px) {
    .slider {
      height: 50vw;
    }
}
  
@media (max-aspect-ratio: 1/1) {
    .slider {
      height: 100vw;
    }
    .slide img {
      height: 70%;
    }
}
  
  
@media (min-height: 1000px) and (max-width: 767px) {
    .slider {
      height: 60vw;
    }
}


.container {
    display: flex;
    justify-content: space-between;
    gap: 0.2vw;
    margin-top: 7vw;
    background-color: #fff;
    padding: 0 2rem;
    height: 28.5vw;
    font-family: Bodoni Moda;
}
.thumbnail {
    position: relative;
    top: 0vw;
    width: 31vw;
    height: 24vw;
    overflow: hidden;
    border: 0.2vw solid #010101;
    border-radius: 0.5vw;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease;
}
  
@media screen and (max-width: 1024px) {
    .container {
      margin-top: 0vw;
      height: 35vw;
      padding: 0 1.5rem;
    }
    .thumbnail {
      width: 32vw;
      height: 26vw;
      top: 0vw;
    }
}
  
@media screen and (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
      gap: 2vw;
      margin-top: 0vw;
      height: auto;
    }
    .thumbnail {
      width: 85vw;
      height: 62vw;
      top: 0;
      margin-bottom: 1vw;
      border-width: 0.35vw;
      border-radius: 1.2vw;
    }
}
  
@media screen and (max-width: 480px) {
    .container {
      gap: 6.5vw;
      padding: 1.5rem 0.8rem;
      margin-top: -10vw;
    }
    .thumbnail {
      width: 88vw; 
      height: 68vw; 
      border-width: 0.4vw;
      border-radius: 1.8vw; 
      margin-bottom: 2vw; 
    }
}
  
@media screen and (max-height: 600px) and (orientation: landscape) {
    .container {
      height: 42vw;
      padding: 0 1rem;
    }
    .thumbnail {
      height: 32vw;
      margin: 0.5vw 0;
    }
}
  
.thumbnail:hover {
    transform: translateY(-0.3vw);
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.thumbnail .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: #fff;
    font-size: 1vw;
    font-weight: bold;
    opacity: 0;
    text-align: center;
    padding: 1.3vw;
    width: 80%;
    height: 71%;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #010101;
    transition: opacity 0.3s ease, transform 0.5s ease;
    box-shadow: 0 0 15px 5px rgba(243, 156, 18, 0.8);
}
.thumbnail .text h2 {
    margin-bottom: 2vw;
}
  
@media screen and (max-aspect-ratio: 4/3) {
    .thumbnail .text {
      font-size: 1.2vw;
      padding: 1.5vw;
      width: 85%;
      height: 75%;
    }
    .thumbnail .text h2 {
      margin-bottom: 1.5vw;
    }
}
  
@media screen and (min-aspect-ratio: 21/9) {
    .thumbnail .text {
      font-size: 0.8vw;
      padding: 1vw;
      width: 75%;
    }
}
  
@media screen and (max-width: 1024px) {
    .thumbnail .text {
      font-size: 1.5vw;
      padding: 1.8vw;
      width: 85%;
      height: 75%;
    }
    .thumbnail .text h2 {
      margin-bottom: 1.8vw;
    }
}
  
@media screen and (max-width: 768px) {
    .thumbnail .text {
      font-size: 2.2vw;
      padding: 2.5vw;
      width: 90%;
      height: 80%;
      border-width: 1px;
    }
    .thumbnail .text h2 {
      margin-bottom: 3vw;
    }
}
  
@media screen and (max-width: 480px) {
    .thumbnail .text {
      font-size: 3.5vw;
      padding: 4vw;
      width: 92%;
      height: 85%;
      border-radius: 8px;
    }
    .thumbnail .text h2 {
      margin-bottom: 4vw;
    }
}
  
  
  
.thumbnail:hover .text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: fadePopSmooth 0.5s ease-out forwards;
}
.thumbnail .text:not(:hover) {
    animation: popDown 0.5s ease-out forwards;
}
@keyframes fadePopSmooth {
    0% {
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0;
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }
@keyframes popDown {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0;
    }
}


.fade-section {
  position: relative;
  top: 0vw;
  width: 100%;
  min-height: 26vw;
  overflow: hidden;
  background-color: #eae5e5;
  margin-bottom: 2vw;
  font-family: cinzel;
  border-radius: 10px;
}
.background-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.title {
  position: relative;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2vw;
  color: #111;
  text-align: center;
}
.content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.left-image {
  width: 22vw;
  height: 23vw;
  position: relative;
  top: -4vw;
  margin-left: 5vw;
  margin-right: 2vw;
}
.left-image img {
  width: 100%;
  height: 100%;
}
.right-content {
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.right-content p {
  font-size: 1.3vw;
  color: #111;
  margin: 0;
  padding-right: 2vw;
  flex-grow: 1;
  margin-bottom: 1vw;
  font-family: Bodoni Moda;
}
.right-content button {
  display: inline-block;
  font-family: cinzel;
  padding: 1.2vw 3vw;
  color: #252525;
  background-color: #fff;
  border: 2px solid #c1a164;
  border-radius: 2vw;
  cursor: pointer;
  font-size: 1vw;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 1s ease, border-color 1s ease;
  position: relative;
  z-index: 1;
  width: 35%;
}
.right-content button::before {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 0%;
  height: 0%;
  background-color: #c1a164;
  transition: width 1s ease, height 1s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.right-content button:hover::before {
  width: 300%;
  height: 300%;
}
.right-content button:hover {
  color: #fff;
  border-color: #fff;
}
.show {
  opacity: 1 !important;
}
.hide {
  opacity: 0 !important;
}

@media screen and (min-aspect-ratio: 16/9) {
  .fade-section {
    height: 30vw;
  }
  .title {
    font-size: 2.2vw;
    top: 20%;
  }
  .content {
    top: 40%;
  }
}


@media screen and (max-aspect-ratio: 16/9) {
  .fade-section {
    height: 32vw;
  }
  .title {
    top: 12%;
  }
  .content {
    top: 32%;
  }
}


@media screen and (max-aspect-ratio: 4/3) {
  .fade-section {
    height: 36vw;
  }
  .title {
    font-size: 2.5vw;
    top: 10%;
    left: 1%;
  }
  .content {
    top: 30%;
  }
  .right-content p {
    font-size: 1.5vw;
  }
}


@media screen and (max-width: 768px) {
  .fade-section {
    height: 120vw;
    margin-bottom: 5vw;
  }
  .title {
    font-size: 5vw;
    top: 10%;
  }
  .content {
    top: 20%;
    flex-direction: column;
    align-items: center;
  }
  .left-image {
    width: 50vw;
    height: 50vw;
    margin: 0 0 5vw 0;
    top: 0;
  }
  .right-content {
    align-items: center;
    text-align: center;
    padding: 0 5vw;
  }
  .right-content p {
    font-size: 3.5vw;
    margin-bottom: 5vw;
  }
  .right-content button {
    padding: 3vw 6vw;
    font-size: 3vw;
    width: 60%;
    border-radius: 5vw;
  }
}

@media screen and (max-width: 480px) {
  .fade-section {
    height: 150vw;
  }
  .title {
    font-size: 6vw;
  }
  .right-content p {
    font-size: 4vw;
  }
  .right-content button {
    font-size: 4vw;
    width: 70%;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .fade-section {
    height: 60vw;
  }
  .content {
    flex-direction: row;
    top: 30%;
  }
  .left-image {
    width: 25vw;
    height: 25vw;
    margin: 0 2vw 0 5vw;
  }
  .right-content p {
    font-size: 2vw;
  }
  .right-content button {
    font-size: 2vw;
    padding: 1.5vw 3vw;
    width: 40%;
  }
}

@media screen and (min-aspect-ratio: 21/9) {
  .fade-section {
    height: 25vw;
  }
  .title {
    top: 25%;
  }
  .content {
    top: 45%;
  }
}

@media screen and (max-width: 768px) {
  .fade-section {
    height: auto;
    min-height: 120vw;
    margin-bottom: 5vw;
    padding-bottom: 10vw;
  }
  .title {
    font-size: 5vw;
    top: 10%;
    position: relative;
    transform: none;
    margin: 5vw 0;
  }
  .content {
    position: relative;
    top: auto;
    flex-direction: column;
    align-items: center;
    padding: 0 5vw 5vw;
  }
  .left-image {
    width: 50vw;
    height: 50vw;
    margin: 0 0 5vw 0;
    position: relative;
    top: auto;
  }
  .right-content {
    align-items: center;
    text-align: center;
    padding: 0;
    position: relative;
  }
  .right-content p {
    font-size: 3.5vw;
    margin-bottom: 5vw;
  }
  .right-content button {
    padding: 3vw 6vw;
    font-size: 3vw;
    width: auto;
    min-width: 60%;
    border-radius: 5vw;
    position: relative;
    margin: 3vw auto 0;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .fade-section {
    height: auto;
    min-height: 60vw;
  }
  .content {
    flex-direction: row;
    top: auto;
    align-items: flex-start;
  }
  .left-image {
    width: 25vw;
    height: 25vw;
    margin: 0 2vw 0 5vw;
  }
  .right-content {
    text-align: left;
    align-items: flex-start;
  }
  .right-content p {
    font-size: 2vw;
  }
  .right-content button {
    font-size: 2vw;
    padding: 1.5vw 3vw;
    width: auto;
    min-width: 40%;
    margin: 2vw 0 0;
  }
}

@media screen and (max-width: 480px) {
  .fade-section {
    min-height: 150vw;
  }
  .right-content p {
    font-size: 4vw;
  }
  .right-content button {
    font-size: 3vw;
    min-width: 70%;
    padding: 3vw 7vw;
  }
}


.promise-container {
  position: relative;
  top: 0vw;
  width: 100%;
  height: 5vw;
  text-align: left;
  border-radius: 1vw;
  background-color: #fff;
  border: #c1a164 solid 0.2vw;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: cinzel;
}

.static-text {
  margin: 0.2vw;
  padding: 1vw 2vw;
  background-color: #c1a164;
  border-radius: 1vw;
  border: #c1a164 solid 0.2vw;
  color: #e6e9e6;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  left: -0.2vw;
}

/* scrolling wrapper for the moving text */
.scrolling-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.moving-text {
  display: inline-block;
  padding-left: 100%; /* start fully off-screen to the right */
  white-space: nowrap;
  color: #111;
  font-size: 1.5rem;
  animation: moveText 20s linear infinite;
}

@keyframes moveText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* -------- Responsive breakpoints -------- */
@media (min-aspect-ratio: 3/4) and (max-aspect-ratio: 1/1) {
  .promise-container {
    height: 12vw;
  }
  .static-text {
    font-size: 2.5vw;
  }
  .moving-text {
    font-size: 3.5vw;
  }
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 16/9) {
  .promise-container {
    height: 8vw;
  }
  .static-text {
    font-size: 2vw;
    padding: 1.5vw 2.5vw;
  }
  .moving-text {
    font-size: 2.5vw;
  }
}

@media (min-aspect-ratio: 16/9) {
  .promise-container {
    height: 5vw;
  }
  .static-text {
    font-size: 1.5vw;
    padding: 1vw 2vw;
  }
  .moving-text {
    font-size: 1.5rem;
  }
}

@media (orientation: portrait) {
  .promise-container {
    height: 10vw;
  }
  .static-text {
    font-size: 3vw;
    padding: 2vw 3vw;
  }
  .moving-text {
    font-size: 3.5vw;
  }
}

@media (max-aspect-ratio: 3/5) {
  .promise-container {
    height: 18vw;
  }
  .static-text {
    font-size: 4vw;
    padding: 3vw 4vw;
  }
  .moving-text {
    font-size: 5vw;
  }
}



.pastor-intro {
  text-align: center;
  background: #eae5e5;
  padding: 2vw;
  position: relative;
  top: 2vw;
  width:93%;
  height: auto;
  margin: auto;
  border-radius: 1vw;
  margin-bottom: 3vw;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3), 0px -4px 15px rgba(0, 0, 0, 0.3), 4px 0px 15px rgba(0, 0, 0, 0.3), -4px 0px 15px rgba(0, 0, 0, 0.3);
}
.pastor-intro p{
  font-size: 1.1vw;
  color: #111;
  font-family: Bodoni Moda;
  margin: 1.2vw 0;
}
.pastor-intro h1 {
  font-size: 2.5vw;
  margin: 1.2vw 0;
  color: #111;
  font-family: cinzel;
}
.pastor-intro h2 {
  margin: 1vw 0;
  color: #111;
  font-family: cinzel;
}
.pastor-intro pre h3 {
  font-family: cinzel;
  font-size: 1.5vw;
  float: right;
}
.pastor-intro pre {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.3vw;
  color: #111;
  margin-bottom: 0vw;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-width: 100%;
  padding: 1vw;
  border-radius: 0.5vw;
}
.learn-more {
  display: inline-block;
  padding: 0.5vw 3vw;
  color: #252525;
  background-color: #fff;
  border: 2px solid #c1a164;
  border-radius: 2vw;
  cursor: pointer;
  font-family: cinzel;
  font-size: 1.1vw;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 1s ease, border-color 1s ease;
  position: relative;
  z-index: 1;
}
.learn-more::before {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 0%;
  height: 0%;
  background-color: #c1a164;
  transition: width 1s ease, height 1s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.learn-more:hover::before {
  width: 300%;
  height: 300%;
}
.learn-more:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 600px) {
  .pastor-intro {
    padding: 5vw;
    top: 3vw;
    width: 90%;
    border-radius: 3vw;
    margin-bottom: 6vw;
  }

  .pastor-intro p {
    font-size: 4vw;
    margin: 3vw 0;
  }

  .pastor-intro h1 {
    font-size: 5vw;
    margin: 3vw 0;
  }

  .pastor-intro h2 {
    font-size: 5vw;
    margin: 3vw 0;
  }

  .pastor-intro pre h3 {
    font-size: 3vw;
    margin-top: 10px;
  }

  .pastor-intro pre {
    font-size: 4vw;
  }

  .learn-more {
    padding: 2vw 8vw;
    font-size: 4vw;
    border-radius: 4vw;
    border-width: 1px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .pastor-intro {
    padding: 4vw;
    border-radius: 2vw;
    margin-bottom: 5vw;
  }

  .pastor-intro p {
    font-size: 3.2vw;
    margin: 2.5vw 0;
  }

  .pastor-intro h1 {
    font-size: 5vw;
    margin: 2.5vw 0;
  }

  .pastor-intro h2 {
    font-size: 4vw;
    margin: 2vw 0;
  }

  .pastor-intro pre h3 {
    font-size: 3vw;
    margin-top: 10px;
  }

  .pastor-intro pre {
    font-size: 1vw;
  }

  .learn-more {
    padding: 1vw 6vw;
    font-size: 3vw;
    border-radius: 3vw;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .pastor-intro {
    padding: 3vw;
    border-radius: 1.5vw;
    margin-bottom: 4vw;
  }

  .pastor-intro p {
    font-size: 2.2vw;
    margin: 2vw 0;
  }

  .pastor-intro h1 {
    font-size: 2.5vw;
    margin: 2vw 0;
  }

  .pastor-intro h2 {
    font-size: 3vw;
    margin: 1.5vw 0;
  }

  .pastor-intro h3 {
    font-size: 3vw;
  }

  .pastor-intro pre {
    font-size: 2.2vw;
  }

  .pastor-intro pre h3 {
    font-size: 2.5vw;
  }

  .learn-more {
    padding: 1vw 4vw;
    font-size: 2vw;
    border-radius: 2.5vw;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .pastor-intro p {
    font-size: 1.5vw;
  }

  .pastor-intro h1 {
    font-size: 2.3vw;
  }

  .pastor-intro h2 {
    font-size: 2vw;
  }

  .pastor-intro pre h3 {
    font-size: 1.8vw;
  }

  .pastor-intro pre {
    font-size: 1.5vw;
  }

  .learn-more {
    font-size: 1.3vw;
  }
}

@media (max-aspect-ratio: 1/1) {
  .pastor-intro {
    padding: 4vw;
    width: 90%;
  }

  .pastor-intro p {
    font-size: 3.5vw;
  }

  .pastor-intro h1 {
    font-size: 5.5vw;
  }

  .pastor-intro h2 {
    font-size: 4.5vw;
  }

  .pastor-intro pre {
    font-size: 3.5vw;
  }

  .learn-more {
    padding: 1.5vw 6vw;
    font-size: 3.5vw;
  }
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 4/3) {
  .pastor-intro p {
    font-size: 1.5vw;
  }

  .pastor-intro h1 {
    font-size: 2.5vw;
  }

  .pastor-intro h2 {
    font-size: 2.2vw;
  }
}

@media (min-aspect-ratio: 16/9) {
  .pastor-intro p {
    font-size: 1vw;
  }

  .pastor-intro h1 {
    font-size: 1.8vw;
  }

  .pastor-intro h2 {
    font-size: 1.6vw;
  }

  .pastor-intro pre {
    font-size: 1.2vw;
  }

  .learn-more {
    font-size: 1vw;
  }
}

@media (orientation: portrait) {
  .pastor-intro {
    padding: 5vw;
    width: 90%;
  }

  .pastor-intro p {
    font-size: 2.3vw;
  }

  .pastor-intro h1 {
    font-size: 4vw;
  }

  .pastor-intro h2 {
    font-size: 5vw;
  }

  .pastor-intro pre {
    font-size: 4vw;
  }

  .learn-more {
    padding: 2vw 8vw;
    font-size: 2vw;
  }
}

@media (orientation: landscape) and (max-width: 992px) {
  .pastor-intro p {
    font-size: 2.2vw;
  }

  .pastor-intro h1 {
    font-size: 3.8vw;
  }

  .pastor-intro h2 {
    font-size: 3.2vw;
  }
}

@media (max-width: 600px) {
  .pastor-intro pre {
    font-size: 3.5vw;
    padding: 2vw;
    border-left-width: 2px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .pastor-intro pre {
    font-size: 2.8vw;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .pastor-intro pre {
    font-size: 2vw;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .pastor-intro pre {
    font-size: 1.5vw;
  }
}

@media (min-aspect-ratio: 16/9) {
  .pastor-intro pre {
    font-size: 1.1vw;
  }
}


.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
    align-items: flex-end;
  }
  
  .floating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .calendar-button img,
  .whatsapp-button img,
  .gallery-button img {
    height: 56px;
    width: 56px;
    border-radius: 10vw;
  }
  
  .calendar-button { background: #4285F4; } 
  .gallery-button { background: #EA4335; } 
  .whatsapp-button { background: #25D366; } 
  
  .floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }
  
  @media (max-width: 768px) {
    .floating-buttons {
      right: 15px;
      bottom: 15px;
      gap: 12px;
    }
    .floating-button {
      width: 50px;
      height: 50px;
    }
  }
  
  @media (max-width: 400px) {
    .floating-buttons {
      right: 10px;
      bottom: 10px;
      gap: 10px;
    }
    .floating-button {
      width: 44px;
      height: 44px;
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  .whatsapp-button {
    animation: pulse 2s infinite;
  }


.video-container-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  position: inherit;
  padding: 20px;
  margin-top: 1vw;
  background-color: #eae7e7;
  width: 99%;
  box-sizing: border-box;
  border-radius: 10px;
  margin-left: 0.5vw;
}

.video-container {
  width: 48%;
  position: relative;
  overflow: hidden;
}

.responsive-video {
  width: 100%;
  height: auto;
  display: block;
}

.paragraph-container {
  width: 48%;
  padding: 20px;
  line-height: 1.6;
  font-size: 1.7vw;
  font-family: 'Bodoni Moda', serif;
  text-align: justify;
}

.paragraph-container h4 {
  text-align: center;
  margin: 0 0 1rem 0;
}

@media (max-width: 768px) {
  .video-container-wrapper {
    flex-direction: column;
    padding: 15px;
    margin: 2vw auto;
    width: 95%;
  }
  
  .video-container,
  .paragraph-container {
    width: 100% !important;
  }
  
  .video-container {
    margin-bottom: 15px;
  }
  
  .responsive-video {
    max-width: 100%;
    height: 100%;
  }
  
  .paragraph-container {
    padding: 15px 0;
    font-size: 1rem;
  }
  
  .paragraph-container h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 769px) {
  .video-container {
    padding-bottom: 28.125%;
    height: 0;
  }
  
  .responsive-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* Base Footer Styles */
footer {
    background-color: #c1a164;
    color: white;
    padding: 2vw 2vw;
    font-family: 'Cinzel', serif;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .footer-content a {
    color: #fff;
    text-decoration: none;
  }
  
  .footer-content div {
    width: 30%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .footer-content .contactus-info p {
    margin: 8px 0;
  }
  
  .footer-content .quick-links ul,
  .footer-content .legal ul {
    list-style-type: none;
    padding-left: 0;
  }
  
  .footer-content .quick-links li,
  .footer-content .legal li {
    margin: 8px 0;
  }
  
  .footer-content .quick-links a,
  .footer-content .legal a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .footer-content .quick-links a:hover,
  .footer-content .legal a:hover {
    color: #444;
  }
  
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #fff;
    padding-top: 10px;
  }
  
  .footer-bottom p {
    margin: 0;
    font-size: 14px;
    line-height: 1vw;
  }

  i {
    margin-right: 8px;
    color: #fff; /* optional: change icon color */
  }
  
  
  /* Media Queries for All Ratios */
  
  /* Ultra-wide screens (21:9 and wider) */
  @media (min-aspect-ratio: 21/9) {
    footer {
      padding: 1.5vw 4vw;
    }
    .footer-content div {
      width: 28%;
    }
  }
  
  /* Standard desktop (16:9) - base styles apply */
  
  /* Large tablets & small desktops (4:3) */
  @media (max-width: 1199px) {
    .footer-content {
      gap: 1rem;
    }
    .footer-content div {
      width: 30%;
      padding: 8px;
    }
  }
  
  /* Tablets (3:4) */
  @media (max-width: 991px) {
    .footer-content div {
      width: 45%;
      margin-bottom: 1rem;
    }
    .footer-bottom p {
      font-size: 13px;
    }
  }
  
  /* Large phones (9:16) */
  @media (max-width: 767px) {
    footer {
      padding: 3vw 4vw;
    }
    .footer-content {
      flex-direction: column;
    }
    .footer-content div {
      width: 100%;
      padding: 10px 0;
    }
    .footer-bottom p {
      font-size: 12px;
      line-height: 1.5;
    }
  }
  
  /* Small phones (narrow) */
  @media (max-width: 575px) {
    footer {
      padding: 4vw 5vw;
    }
    .footer-content a {
      font-size: 13px;
    }
    .footer-bottom {
      padding-top: 15px;
    }
  }
  
  /* Portrait orientation adjustments */
  @media (orientation: portrait) {
    /* Tablet portrait */
    @media (min-width: 768px) and (max-width: 991px) {
      .footer-content div {
        width: 48%;
      }
    }
    
    /* Phone portrait */
    @media (max-width: 575px) {
      .footer-content div {
        padding: 8px 0;
      }
    }
  }
  
  /* Landscape orientation adjustments */
  @media (orientation: landscape) {
    /* Tablet landscape */
    @media (max-width: 991px) {
      .footer-content div {
        width: 48%;
      }
    }
    
    /* Phone landscape */
    @media (max-width: 767px) {
      .footer-content div {
        width: 30%;
      }
    }
  }
  
  /* Square aspect ratio (1:1) */
  @media (max-aspect-ratio: 1/1) {
    .footer-content {
      flex-direction: column;
    }
    .footer-content div {
      width: 100%;
    }
  }
  
  /* Very small screens */
  @media (max-width: 399px) {
    footer {
      padding: 5vw;
    }
    .footer-content a,
    .footer-bottom p {
      font-size: 12px;
    }
  }
  
  /* High density displays */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-content a {
      font-weight: 500;
    }
  }