html { font-size: 26px; }

/* ==================== ACCESSIBILITY ==================== */

/* Skip to main content link — visible on keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background-color: #00A7E1;
  color: white;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 24px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Visible keyboard focus outlines for all interactive elements */
a:focus-visible,
button:focus-visible,
[href]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #00A7E1;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default nav_bar li bullets (now wrapped in ul) */
#nav_bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#hero{
    width:100%;
    height: auto;
    aspect-ratio: 851 / 315;
    min-height: 220px;
    overflow: hidden;
    position:relative;
    z-index: 1;
}

#hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/promo_banner.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,0,48,0.82) 0%, rgba(45,0,71,0.72) 40%, rgba(0,29,61,0.68) 100%);
    z-index: 1;
    pointer-events: none;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}



h2{
    color:#0a667d;
}
.cards{
  margin-left:20px;
}
.footer{
  margin:0;
  background-color:#001d3d;
  padding: 20px 0;
}

.footer .nav-link,
.footer p,
.footer .text-body-secondary {
  color: white !important;
}

.footer .nav {
  border-bottom: none !important;
}

#hero_content{
    color:white;
    font-family:'Noto Sans',sans-serif;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    pointer-events: none;
    transition: transform 0.6s ease;
}


#hero_content h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 18px rgba(0,0,0,0.7);
    margin-bottom: 8px;
}

#hero_content p {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.88);
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#video_bg{
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}
#nav_bar{
    display:flex;
    justify-content:flex-end;
    gap:4px;
    width: 100%;
    margin-right:6px;
    position: relative;
    z-index: 2;
}
#nav_bar li{
    list-style:none;
    font-family:'Noto Sans',sans-serif;
    font-size: 22px;
}
#nav_bar li a{
    text-decoration: none;
    color:white;
    padding: 9px 13px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}
#nav_bar li a:hover{
    background-color: #fff;
    color: #003459;
    transform: scale(1.05);
}
#church-logo{
    width:100px;
    height:100px;
    margin-right:auto;
    border-radius:50%;
}
#body_background{
   position: relative;
   height: 100%; 
}

#body_background::before {
   content: "";
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -2;
   background-image: url("./assets/v871batch2-wan-19.jpg");
   background-attachment: fixed;
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   filter: hue-rotate(180deg) saturate(1.2) brightness(0.4);
}

#body_background::after {
   content: "";
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -2;
   background: linear-gradient(135deg, rgba(0, 29, 61, 0.7) 0%, rgba(0, 52, 89, 0.6) 50%, rgba(10, 102, 125, 0.5) 100%);
}

#announcement_dropdown{
    position:absolute;
    width:100%;
    z-index:999;
    min-height:100%;
    border-radius:0%;
    background-color: rgba(6, 105, 198, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 40px;
    overflow-y: auto;
}
.container{
    background-color: rgba(5, 28, 50, 0.5);
    width: 100%;
    color:whitesmoke
}

/* Latest YouTube Video Section */
#latest_video_section {
    padding: 60px 20px;
    text-align: center;
}

.video_section_content {
    max-width: 900px;
    margin: 0 auto;
}

.video_section_content h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.video_subtitle {
    font-family: 'Noto Sans', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

#youtube_embed_container {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video_wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video_wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video_title {
    font-family: 'Noto Sans', sans-serif;
    color: white;
    font-size: 1.6rem;
    margin-top: 20px;
    margin-bottom: 0;
}

.video_loading {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Sans', sans-serif;
    padding: 60px 20px;
}

.video_error {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Sans', sans-serif;
    padding: 40px 20px;
}

/* ── Custom Thumbnail Overlay ───────────────────────── */
.video_thumbnail_overlay {
    cursor: pointer;
    user-select: none;
}

/* Scrolling title ticker */
.video_title_ticker_wrap {
    overflow: hidden;
    background: linear-gradient(90deg, #001d3d 0%, #003459 40%, #001d3d 100%);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(0, 167, 225, 0.4);
    border-bottom: none;
    padding: 14px 0;
    position: relative;
}
.video_title_ticker_wrap::before,
.video_title_ticker_wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
}
.video_title_ticker_wrap::before {
    left: 0;
    background: linear-gradient(to right, #001d3d, transparent);
}
.video_title_ticker_wrap::after {
    right: 0;
    background: linear-gradient(to left, #001d3d, transparent);
}

.video_title_ticker {
    display: flex;
    width: max-content;
    animation: ticker-scroll 18s linear infinite;
}
.video_title_ticker span {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: #00A7E1;
    white-space: nowrap;
    padding: 0 80px;
    letter-spacing: 0.03em;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Thumbnail image */
.video_thumb_wrap {
    position: relative;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 167, 225, 0.4);
    border-top: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.video_thumbnail_overlay:hover .video_thumb_wrap {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 167, 225, 0.35), 0 8px 20px rgba(0,0,0,0.6);
}

.video_custom_thumb {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: filter 0.35s ease;
}
.video_thumbnail_overlay:hover .video_custom_thumb {
    filter: brightness(0.6);
}

/* Play button */
.video_play_btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    background: rgba(0, 167, 225, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 0 6px rgba(0, 167, 225, 0.25);
}
.video_play_btn span {
    margin-left: 6px;
}
.video_thumbnail_overlay:hover .video_play_btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: #00A7E1;
    box-shadow: 0 0 0 10px rgba(0, 167, 225, 0.2);
}

/* "Click to Watch" label */
.video_thumb_label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video_thumbnail_overlay:hover .video_thumb_label {
    opacity: 1;
}

.live_indicator {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 10px;
    text-transform: uppercase;
    animation: live_pulse 1.5s ease-in-out infinite;
}

@keyframes live_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.lower_container{
    background-color: #86b6d9;
}
#donate_section{
    position:relative;
    width:450px;
    height:350px;
    border-radius: 10%;
}
#custom-cards{
}
.card_color{
    background-color:#00A7E1;
}
.card_color_2{

}
.card_color_3{
    background-color: #003459;

}
.py-5 text-center{
    color:white;
}
.lead{
    color:white;
}


.thumbnail {
    position: relative;
    width: 400px;
    border-radius: 6%;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.35s ease;
    /* Hover transition */
  }
  .thumbnail:before {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 100%;
  }
  .thumbnail:hover {
    box-shadow: 0 20px 15px -8px rgba(0, 0, 0, 0.8);
  }
  
  .thumbnail__container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .thumbnail__img {
    flex: 4 0 auto;
    background-position: center;
    background-size: cover;
    transform: scale(1.2);
    transition: transform 0.35s ease;
    /* Hover transition */
  }
  .thumbnail:hover .thumbnail__img {
    transform: scale(1);
  }
  .thumbnail__img:before, .thumbnail__img:after {
    position: absolute;
  }
  .thumbnail__img:before {
    content: "Donate to our Building Fund";
    top: 50%;
    left: 50%;
    z-index: 10;
    color: #F8F8F8;
    font-family: "Open Sans", sans-serif;
    font-size: 27px;
    font-weight: 300;
    letter-spacing: 5px;
    line-height: 2;
    text-transform: uppercase;
    background-image: linear-gradient(to right, #F8F8F8 0%, #F8F8F8 100%);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 45% 3%;
    transform: translate(-50%, -50%);
    transition: opacity 0.35s linear, transform 0.35s ease;
    /* Hover transition */
  }
  .thumbnail:hover .thumbnail__img:before {
    opacity: 0;
    transform: translate(-50%, -500%) scale(0.5);
  }
  .thumbnail__img:after {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
    transition: opacity 0.35s linear;
    /* Hover transition */
  }
  .thumbnail:hover .thumbnail__img:after {
    opacity: 0;
  }
  
  .thumbnail__content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 0;
    background-color: #F8F8F8;
    overflow: hidden;
    transition: flex-grow 0.35s ease;
    /* Hover transition */
  }
  .thumbnail:hover .thumbnail__content {
    flex-grow: 1;
  }
  
  .thumbnail__caption {
    color: #555555;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.5) translateY(100%);
    transition: opacity 0.35s linear, transform 0.35s ease;
    /* Hover transition */
  }
  .thumbnail:hover .thumbnail__caption {
    transform: scale(1);
    opacity: 1;
  }

  .donate_button {
    margin-bottom: 10px;
  }

  
  #paypal_donate_button {
    outline: none;
    height: auto;
    text-align: center;
    width: auto;
    padding: 12px 24px;
    border-radius: 40px;
    background: #fff;
    border: 2px solid #003459;
    color:#003459;
    letter-spacing: 1px;
    text-shadow: 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: normal;
    line-height: 1.3;
    transition: all 0.25s ease; }
    #paypal_donate_button:hover {
      color: white;
      background: #003459; }
    #paypal_donate_button:active {
      letter-spacing: 2px; }
  
  #paypal_donate_button.onclic {
    width: 40px;
    border-color: #bbbbbb;
    border-width: 3px;
    font-size: 0;
    border-left-color: #1ECD97;
    animation: rotating 2s 0.25s linear infinite; }
    #paypal_donate_button.onclic:after {
      content: ""; }
    #paypal_donate_button.onclic:hover {
      color: #1ECD97;
      background: white; }
  
  #paypal_donate_button.validate {
    font-size: 13px;
    color: white;
    background: #1ECD97; }
    #paypal_donate_button.validate:after {
      font-family: 'FontAwesome';
      content: "\f00c"; }
  
  @keyframes rotating {
    from {
      transform: rotate(0deg); }
    to {
      transform: rotate(360deg); } }
  

#x_button{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #003459;
    color: #003459;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 4px; }
    #x_button:hover {
      color: #fff;
      background: #003459;
      transform: scale(1.1); }
    #x_button:active {
      transform: scale(0.95); }
  
  #x_button.onclic {
    width: 40px;
    border-color: #bbbbbb;
    border-width: 3px;
    font-size: 0;
    border-left-color: #1ECD97;
    animation: rotating 2s 0.25s linear infinite; }
    #x_button.onclic:after {
      content: ""; }
    #x_button.onclic:hover {
      color: #1ECD97;
      background: white; }
  
  #x_button.validate {
    font-size: 13px;
    color: white;
    background: #1ECD97; }
    #x_button.validate:after {
      font-family: 'FontAwesome';
      content: "\f00c"; }
  
  @keyframes rotating {
    from {
      transform: rotate(0deg); }
    to {
      transform: rotate(360deg); } }





      img {
        height: auto;
        max-width: 100%;
        vertical-align: middle;
      }
      .btn {
        background-color: white;
        border: 1px solid #cccccc;
        color: #333333;
        padding: 0.5rem;
        text-transform: lowercase;
      }
      .btn--block {
        display: block;
        width: 100%;
      }
      .cards {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        margin: 0;
        padding: 0;
      }
      .cards__item {
        display: flex;
        padding: 1rem;
      }
      @media (min-width: 40rem) {
        .cards__item {
          width: 50%;
        }
      }
      @media (min-width: 56rem) {
        .cards__item {
          width: 33.3333%;
        }
      }
      .card {
        background-color: white;
        border-radius: 0.25rem;
        box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .card:hover .card__image {
        filter: contrast(100%);
      }
      .card__content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        padding: 1rem;
      }
      .card__image {
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        border-top-left-radius: 0.25rem;
        border-top-right-radius: 0.25rem;
        filter: contrast(70%);
        overflow: hidden;
        position: relative;
        transition: filter 0.5s cubic-bezier(0.43, 0.41, 0.22, 0.91);
      }
      .card__image::before {
        content: "";
        display: block;
        padding-top: 56.25%;
      }
      @media (min-width: 40rem) {
        .card__image::before {
          padding-top: 66.6%;
        }
      }
      .card__image--flowers {
        background-image: url(/assets/pastor_preaching_img_1.jpeg);
      }
      .card__image--river {
        background-image: url(/assets/youth_minister_prayer.jpeg);
      }
      .card__image--record {
        background-image: url(/assets/choir.jpg);
      }
      .card__image--fence {
        background-image: url(./assets/pastor_preaching_img_2.jpeg);
      }
      .card__title {
        color: #003459;
        font-size: 2.2rem;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
      }
      .card__text {
        flex: 1 1 auto;
        font-size: 1.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
      }
      /* Reduce space only on the third card */
      .card:nth-child(3) .card__text {
        flex: 0 0 auto; /* stops text block from expanding */
        margin-bottom: 0.5rem;
    }
    
           
#welcome_section {
  background: linear-gradient(135deg, #1a0030 0%, #2d0047 50%, #1a0030 100%);
  padding: 60px 40px;
  overflow: hidden;
}

.welcome_content {
  max-width: 800px;
  text-align: left;
}

.welcome_content h2 {
  color: white;
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.welcome_content p {
  color: white;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1.8;
}

#section_1 {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  padding: 80px 40px 90px;
  color: white;
}

#section_1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a0030 0%, #2d0047 45%, #1a0030 100%);
  z-index: 1;
}

.section1-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.section1-eyebrow {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a227;
  opacity: 0.85;
  margin-bottom: 14px;
}

.section1-heading {
  font-family: 'Libre Baskerville', serif !important;
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  color: white !important;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 20px rgba(0,0,0,0.6);
  margin: 0 0 22px;
  line-height: 1.2;
}

.section1-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 260px;
  margin-bottom: 28px;
}

.section1-rule::before,
.section1-rule::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

.section1-diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #c9a227;
  transform: rotate(45deg);
  margin: 0 10px;
  box-shadow: 0 0 8px rgba(201,162,39,0.7);
}

.section1-body {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 1.25rem !important;
  color: rgba(255,255,255,0.88) !important;
  max-width: 620px;
  line-height: 1.85;
  margin: 0 0 55px;
}

.section1-feature-banner {
  width: 100%;
  max-width: 780px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-left: 4px solid #c9a227;
  border-radius: 10px;
  padding: 28px 36px;
  margin-bottom: 44px;
  text-align: left;
}

.section1-feature-label {
  display: inline-block;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 10px;
}

.section1-feature-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
  line-height: 1.25;
}

.section1-feature-sub {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin: 0;
}

.section1-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
}

.section1-card {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26, 0, 48, 0.65);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(4px);
}

.section1-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(45,0,71,0.55);
  border-color: rgba(201, 162, 39, 0.7);
}

.section1-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  margin: 28px auto 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.section1-card:hover .section1-card-icon {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.65);
}

.section1-card-icon svg {
  width: 44px;
  height: 44px;
}

.section1-card-content {
  padding: 24px 26px 28px;
}

.section1-card-tag {
  display: inline-block;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a227;
  border: 1px solid rgba(201,162,39,0.5);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

.section1-card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
  line-height: 1.3;
}

.section1-card-text {
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin: 0;
}

/* Events Carousel Section */
#events_section {
  padding: 60px 40px;
  text-align: center;
}

#events_section > h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 40px;
}

.events_carousel_wrapper {
  max-width: 800px;
  margin: 0 auto;
}

#myCarousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#myCarousel .carousel-inner {
  border-radius: 15px;
}

.event_slide {
  position: relative;
  height: 460px;
  overflow: hidden;
}

.event_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26,0,48,0.92) 0%, rgba(45,0,71,0.45) 55%, transparent 100%);
}

.event_content {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 30px;
}

.event_content h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.event_content p {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}

.event_btn {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227 0%, #e8c244 100%);
  color: #1a0030;
  padding: 10px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201,162,39,0.35);
}

.event_btn:hover {
  background: linear-gradient(135deg, #e8c244 0%, #c9a227 100%);
  color: #1a0030;
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(201,162,39,0.5);
}

#myCarousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(45,0,71,0.5), 0 0 0 1px rgba(201,162,39,0.2);
}

#myCarousel .carousel-indicators {
  bottom: 15px;
}

#myCarousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0 5px;
}

#myCarousel .carousel-indicators li.active {
  background-color: #c9a227;
  box-shadow: 0 0 8px rgba(201,162,39,0.7);
}

#myCarousel .carousel-control {
  width: 50px;
  opacity: 1;
  background: none;
}

.carousel_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(201, 162, 39, 0.85);
  border-radius: 50%;
  font-size: 1.2rem;
  color: #1a0030;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.carousel_arrow:hover {
  background: #c9a227;
  color: #1a0030;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(201,162,39,0.5);
}

.carousel_arrow_left {
  left: 15px;
}

.carousel_arrow_right {
  right: 15px;
}

#plan_visit_section {
  background: linear-gradient(160deg, #1a0030 0%, #2d0047 50%, #1a0030 100%);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}

.plan_visit_content {
  margin-bottom: 50px;
}

#plan_visit_section h2 {
  color: white;
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

#plan_visit_section .plan_visit_content > p {
  color: white;
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.plan_visit_btn {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227 0%, #e8c244 100%);
  color: #1a0030;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Noto Sans', sans-serif;
  font-weight: bold;
  font-size: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(201,162,39,0.35);
}

.plan_visit_btn:hover {
  background: linear-gradient(135deg, #e8c244 0%, #c9a227 100%);
  color: #1a0030;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(201,162,39,0.5);
}

.plan_visit_cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.visit_card_link {
  text-decoration: none;
  display: block;
  flex: 1;
  min-width: 320px;
  max-width: 480px;
}

.visit_card_link .visit_card {
  min-width: unset;
  max-width: unset;
  height: 100%;
}

.visit_card_link:hover .visit_card {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(45,0,71,0.4);
  background-color: #2d0047;
  border: 2px solid #c9a227;
}

.visit_card_link:hover .visit_card h3 {
  color: #c9a227;
}

.visit_card_link:hover .visit_card p {
  color: rgba(255, 255, 255, 0.88);
}

.visit_card {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  flex: 1;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.visit_card h3,
.visit_card p {
  transition: color 0.3s ease;
}

.visit_card:hover {
  transform: scale(1.03);
}

.visit_card h3 {
  color: #2d0047;
  font-family: 'Libre Baskerville', serif;
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.visit_card p {
  color: #555;
  font-family: 'Noto Sans', sans-serif;
  font-size: 2rem;
  line-height: 1.6;
  margin: 0;
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Global: prevent text overflow at any size */
*, *::before, *::after {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── Tablet and below (768px) ── */
@media (max-width: 768px) {

  /* Layout changes */
  .plan_visit_cards {
    flex-direction: column;
    align-items: center;
  }

  /* Events carousel */
  #events_section {
    padding: 40px 15px;
  }

  #events_section > h2 {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 30px;
  }

  .event_slide {
    height: 500px;
  }

  .event_content h3 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .event_content p {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .event_btn {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    padding: 12px 22px;
  }

  .carousel_arrow {
    width: 44px;
    height: 44px;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  /* Hero */
  #hero {
    height: 420px;
  }

  #hero_content h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    padding: 0 15px;
  }

  #hero_content p {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
    padding: 0 15px;
  }

  /* Navigation */
  #nav_bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 10px;
  }

  #nav_bar li {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  #church-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px auto;
  }

  /* Popup */
  #announcement_dropdown {
    padding: 20px;
    overflow-y: auto;
  }

  #donate_section {
    width: 90%;
    max-width: 400px;
    height: auto;
    margin-bottom: 80px;
  }

  .thumbnail {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .thumbnail__img:before {
    font-size: clamp(1rem, 4vw, 1.4rem);
    letter-spacing: 3px;
    line-height: 1.6;
  }

  #x_button {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 32px !important;
    z-index: 9999 !important;
  }

  /* Welcome */
  #welcome_section {
    padding: 40px 15px;
  }

  .welcome_content h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .welcome_content p {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
    line-height: 1.7;
  }

  /* What's Going On */
  #section_1 {
    padding: 30px 15px;
  }

  #section_1 h2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  #section_1 p {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  /* Plan a Visit */
  #plan_visit_section {
    padding: 40px 15px;
  }

  #plan_visit_section h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  #plan_visit_section .plan_visit_content > p {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
  }

  .plan_visit_btn {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
    padding: 14px 32px;
  }

  .visit_card {
    min-width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }

  .visit_card h3 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .visit_card p {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
  }

  /* Ministry cards */
  .card__title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  }

  .card__text {
    font-size: clamp(1.2rem, 5vw, 1.9rem);
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
  }

  .footer .nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer .nav-link {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }
}

/* ── Small mobile (480px and below) ── */
@media (max-width: 480px) {

  /* Hero */
  #hero {
    height: 380px;
  }

  #hero_content h1 {
    font-size: clamp(1.8rem, 11vw, 3rem);
    padding: 0 12px;
  }

  #hero_content p {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    padding: 0 12px;
  }

  /* Navigation */
  #nav_bar {
    gap: 4px;
    padding: 8px;
  }

  #nav_bar li {
    font-size: clamp(0.95rem, 4.5vw, 1.3rem);
  }

  #church-logo {
    width: 55px;
    height: 55px;
  }

  /* Popup */
  .thumbnail {
    max-width: 290px;
  }

  .thumbnail__img:before {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    letter-spacing: 2px;
  }

  #x_button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 28px !important;
    z-index: 9999 !important;
  }

  #paypal_donate_button {
    font-size: clamp(1rem, 4vw, 1.4rem);
    height: auto;
    padding: 10px 18px;
    width: auto;
  }

  /* Welcome */
  .welcome_content h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .welcome_content p {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
  }

  /* What's Going On */
  #section_1 h2 {
    font-size: clamp(1.6rem, 9vw, 2.5rem);
  }

  #section_1 p {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }

  /* Events */
  #events_section > h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .event_content h3 {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
  }

  .event_content p {
    font-size: clamp(1.1rem, 5.5vw, 1.6rem);
  }

  .event_btn {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }

  /* Plan a Visit */
  #plan_visit_section h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  #plan_visit_section .plan_visit_content > p {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
  }

  .plan_visit_btn {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    padding: 13px 28px;
  }

  .visit_card h3 {
    font-size: clamp(1.6rem, 9vw, 2.5rem);
  }

  .visit_card p {
    font-size: clamp(1.1rem, 5.5vw, 1.8rem);
  }

  /* Ministry cards */
  .cards__item {
    padding: 0.5rem;
  }

  .card__title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .card__text {
    font-size: clamp(1.1rem, 5vw, 1.7rem);
  }
}