/* Media Queries (index.html) */
@media screen and (max-width: 360px) {
  .visit_btn .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    width: 90%;
  }
}

@media screen and (max-width: 400px) {
  .visit_btn .btn {
    width: 90%;
    max-width: 250px;
    padding: 0.75rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .welcome_message {
    gap: 0.3rem;
  }

  .welcome_message span {
    font-size: clamp(1.4rem, 5vw + 0.5rem, 2.2rem);
    line-height: 1.05;
  }

  .slogan p {
    font-size: 0.95rem !important;
    line-height: 1.3;
    max-width: 90%;
  }

  .visit_btn {
    margin-top: 1rem;
  }

  .visit_btn .btn {
    width: 90%;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }

  /* Reduce spacing between everything */
  .welcome_message,
  .slogan,
  .visit_btn {
    gap: 0.4rem;
  }

  .slogan p.long {
    display: none;
  }
  .slogan p.short {
    display: block !important;
  }

  .welcome_message .long {
    display: none;
  }
  .welcome_message .short {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    font-size: clamp(1.4rem, 5vw + 0.5rem, 2.2rem);
    line-height: 1.1;
    gap: 0.25rem;
  }
}

@media screen and (max-width: 768px) {
  .joinus,
  .livestream,
  .vision {
    flex-direction: column;
    gap: 2rem; /* smaller gap when stacked */
    padding: 2rem; /* tighter padding */
  }

  .joinus_info,
  .livestream_info,
  .upcoming_info {
    text-align: left;
    max-width: 90%;
  }

  .joinus_img,
  .livestream_img {
    max-width: 90%;
  }
}

@media screen and (max-width: 1030px) {
  .welcome {
    padding: 0 !important;
  }

  .joinus,
  .livestream,
  #upcoming_events {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em !important;
    padding: 80px 0px 80px 0px !important;
  }

  .ue-container {
    max-width: 100%;
  }
}

@media screen and (max-width: 1070px) {
  .ue-container {
    display: none;
  }
}

@media screen and (max-width: 1323px) {
  .joinus_img {
    order: -1;
  }
}

@media screen and (max-width: 1419px) {
  .joinus,
  .livestream {
    gap: 4rem; /* reduces massive gaps, scalable */
  }
}

/* Medium screens (tablets) */
@media screen and (max-width: 900px) {
  .sotw_info {
    padding: 5rem 5%;
  }

  .sotw_title h1 {
    font-size: 2.5rem;
  }

  .sotw_title h2 {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .sotw_msg {
    max-width: 600px;
  }
}

/* Small screens (mobile) */
@media screen and (max-width: 600px) {
  .sotw_info {
    padding: 4rem 2rem;
  }

  .sotw_title h1 {
    font-size: 2rem;
  }

  .sotw_title h2 {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .sotw_msg {
    max-width: 100%;
    border-width: 2px;
  }

  .sotw_btn .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Very small screens */
@media screen and (max-width: 400px) {
  .sotw_info {
    padding: 3rem 1rem;
  }

  .sotw_title h1 {
    font-size: 1.6rem;
  }

  .sotw_title h2 {
    font-size: 0.9rem;
  }
}

/*---------Media Queries (about.html)---------*/
@media screen and (max-width: 1415px) {
  .vision {
    flex-direction: column !important;
    gap: 2em;
  }
}

@media screen and (max-width: 1880px) {
  #accordion {
    padding: 0 10em;
  }
}

/* 992px and below - stack tighter and adjust font size */
@media screen and (max-width: 992px) {
  #accordion {
    padding: 0 5em;
  }
  
}

/* 768px and below - switch to mobile layout */
@media screen and (max-width: 768px) {
  #accordion {
    padding: 0 2em;
  }

  .accordion {
    font-size: 1.6rem;
  }


  .doctrine_title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    padding-bottom: 30px;
  }

 
}

/* 480px and below - full width and tighter layout */
@media screen and (max-width: 480px) {
  #accordion {
    padding: 0 1.2em;
  }

  .accordion {
    font-size: 1.4rem;
  }

  .panel p,
  .panel li {
    font-size: 0.99rem;
    line-height: 1.4rem;
  }

  .doctrine {
    padding: 60px 0 70px 0;
  }
}


/*----------Media Queries (media.html)----------*/

/* --- Responsive adjustments --- */
@media screen and (max-width: 1200px) {
  .watchlive_header h1 {
    font-size: 2.5rem;
  }

  .watchlive_header h2 {
    font-size: 1.2rem;
  }

  .time-box span {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .time-box label {
    font-size: 0.9rem;
  }

  .watchlive_header .watchlive_btn .btn {
    padding: 0.65rem 1.25rem;
  }
}

@media screen and (max-width: 900px) {
  .watchlive_header h1 {
    font-size: 2.2rem;
  }

  .watchlive_header h2 {
    font-size: 1rem;
  }

  .countdown {
    gap: 20px;
  }

  .time-box span {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .time-box label {
    font-size: 0.8rem;
  }

  .watchlive_header .watchlive_btn .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 340px) {
  .watchlive_header {
    padding: 4rem 0.5rem 2rem 0.5rem;
  }

  .watchlive_header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .watchlive_header h2 {
    font-size: 0.8rem;
  }

  .countdown {
    flex-direction: row;
    gap: 10px;
  }

  .time-box {
    margin: 20px 0 0 0;
  }

  .time-box span {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .time-box label {
    font-size: 0.65rem;
  }

  .watchlive_header .watchlive_btn .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 320px) {
  .watchlive_header {
    padding: 2rem 0.5rem 2rem 0.5rem;
  }

  .watchlive_header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .watchlive_header h2 {
    font-size: 0.8rem;
  }

  .countdown {
    flex-direction: row;
    gap: 10px;
  }

  .time-box {
    margin: 20px 0 0 0;
  }

  .time-box span {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .time-box label {
    font-size: 0.65rem;
  }

  .watchlive_header .watchlive_btn .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
}


/* Medium screens (tablets) */
@media screen and (max-width: 900px) {
  .sermons {
    padding: 5rem 5%;
  }

  .sermons_title h1 {
    font-size: 2.5rem;
  }

  .sermons_title h2 {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .sermon_msg {
    max-width: 600px;
  }
}

/* Small screens (mobile) */
@media screen and (max-width: 600px) {
  .sermons {
    padding: 4rem 2rem;
  }

  .sermons_title h1 {
    font-size: 2rem;
  }

  .sermons_title h2 {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .sermon_msg {
    max-width: 100%;
    border-width: 2px;
  }

  .sermons .watchmore_btn .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Very small screens */
@media screen and (max-width: 400px) {
  .sermons {
    padding: 3rem 1rem;
  }

  .sermons_title h1 {
    font-size: 1.6rem;
  }

  .sermons_title h2 {
    font-size: 0.9rem;
  }
}

/*---------Media Queries (contact.html)---------*/
@media screen and (max-width: 1200px) {
  .contact_section {
    flex-direction: column;
    align-items: left;
    text-align: left;
    gap: 3rem;
    padding: 5rem 5rem;
  }

  .contact_statement,
  .contact_form,
  .fname_field {
    width: 100%;
    max-width: 700px; /* Keeps nice readable width */
  }

  .fname_field,
  .lname_field {
    width: 100%;
    max-width: 350px; /* Keeps nice readable width */
  }

  .contact_statement {
    max-width: 700px;
  }

  .contact_form form {
    max-width: 700px;
    align-items: left;
  }

  .contact_form input,
  .contact_form textarea {
    width: 100%;
  }
}

/* Tablets and Large Phones */
@media screen and (max-width: 768px) {
  .contact_section {
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .contact_statement h2 {
    font-size: 2rem;
  }

  .contact_form form {
    width: 100%;
    align-items: left;
  }

  .contact_form input,
  .contact_form textarea {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.9rem;
  }

  input[type="submit"] {
    width: 100%;
    padding: 0.9rem;
  }
}

/* Small Phones */
@media screen and (max-width: 480px) {
  .contact_section {
    padding: 2rem 1rem;
  }

  .contact_statement h2 {
    font-size: 1.6rem;
  }

  .contact_form form {
    width: 100%;
    gap: 1rem;
  }

  .contact_form input,
  .contact_form textarea {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  input[type="submit"] {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem;
  }
}

/*---------Media Queries (donate.html)---------*/

/* Large screens (up to 1200px) */
@media screen and (max-width: 1260px) {
  .donate-left,
  .donate-right {
    width: 500px;
    height: 650px;
  }

  .donate-title {
    font-size: 2rem;
  }

  .donate-subtitle {
    font-size: 1rem;
  }

  .donate-left-text {
    font-size: 0.90rem;
    line-height: 1.4rem;
  }
}

@media screen and (max-width: 1080px) {
  .donate-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .donate-left,
  .donate-right {
    width: 90%;
    max-width: 600px;
    height: auto;
  }

  .donate-left > img {
    height: 250px;
  }

  .donate-left-info {
    flex-direction: column;
    align-items: left;
  }

  .donate-left-info img {
   width: 150px;
    height: auto;
  }

  .donate-left-text {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6rem;
  }

  .donate-right {
    padding: 30px;
  }

  .donate-group label {
    font-size: 1rem;
  }

  .amount-btn {
    padding: 12px;
    font-size: 0.95rem;
  }
}


/* Small tablets and large phones (up to 768px) */
@media (max-width: 768px) {
  .donate-section {
    padding: 60px 10px;
  }

  .donate-left,
  .donate-right {
    width: 100%;
    max-width: 500px;
  }

  .donate-title {
    font-size: 1.8rem;
  }

  .donate-subtitle {
    margin-bottom: 25px;
  }

  .donate-left-info {
    padding: 15px;
  }

  .donate-left-info img {
    
    text-align: left;
    justify-content: left;
    align-items: left;
    width: 150px;
  }

  .donate-left-text {
    font-size: 0.9rem;
    line-height: 1.5rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"] {
    padding: 10px;
    font-size: 0.9rem;
  }

  .pay-btn {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Phones (up to 576px) */
@media (max-width: 576px) {
  .donate-section {
    padding: 50px 5%;
  }

  .donate-left > img {
    height: 180px;
  }

  .donate-left-info {
    gap: 10px;
  }

  .donate-left-info img {
   width: 150px;
  }

  .donate-left-text {
    font-size: 0.85rem;
    line-height: 1.4rem;
  }

  .donate-title {
    font-size: 1.5rem;
  }

  .donate-subtitle {
    font-size: 0.9rem;
  }

  .donate-group label {
    font-size: 0.9rem;
  }

  .amount-btn {
    padding: 8px;
    font-size: 0.85rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"] {
    font-size: 0.85rem;
  }

  .pay-btn {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Extra small screens (under 400px) */
@media (max-width: 400px) {
  .donate-left-info img {
    width: 150px;
  }

  .donate-left-text {
    font-size: 0.8rem;
    line-height: 1.3rem;
  }

  .donate-title {
    font-size: 1.3rem;
  }

  .donate-right {
    padding: 20px;
  }

  .donate-group {
    margin-bottom: 18px;
  }

  .pay-btn {
    padding: 8px;
    font-size: 0.8rem;
  }
}
/*---------Header media queries---------*/
@media screen and (max-width: 1030px) {
  #navbar {
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    z-index: 1000;
    overflow: hidden;
  }

  .nav_logo img.logo,
  .nav_logo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #nav-menu {
    position: fixed;
    display: flex;
    flex-direction: column !important;
    right: -100%;
    top: 0;
    padding: 9rem 0 0 0;
    background: linear-gradient(135deg, #111439 0%, #2c2c5a 100%);
    width: 60%;
    height: 100vh;
    backdrop-filter: blur(10px); /* main blur */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    background-color: rgba(17, 20, 57, 0.3); /* semi-transparent overlay */
    font-size: 1.8rem !important;
    transition: right 0.6s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  #nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    right: 0;
  }

  #nav-menu.active .nav-link {
    animation: popIn 0.4s ease forwards;
  }

  nav hr {
    display: block !important;
    background-color: var(--white-lilac);
    border: none;
    height: 1px;
    background-color: #ccc;
    width: 80%; /* Leaves 5% space on each side */
    margin: 20px auto; /* Centers it horizontally */
    opacity: 0.2;
  }

  .donate_btn {
    display: none;
  }

  .donate_btn_mobile {
    display: block !important;
    text-align: center;
  }

  /* --- ANIMATION: SLIDE & ROTATE --- */
  .hamburger {
    position: relative;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    z-index: 1001;
  }

  /* --- CREATE THE RING --- */
  .hamburger::before {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: -1;
  }

  /* --- THE THREE BARS --- */
  .bar {
    position: absolute;
    width: 22px;
    height: 3px;
    background: var(--white-lilac);
    border-radius: 3px;
    transition: all 0.4s ease;
  }

  /* --- Bar positioning --- */
  .bar:nth-child(1) {
    transform: translateY(-7px);
  }
  .bar:nth-child(2) {
    transform: translateY(0);
  }
  .bar:nth-child(3) {
    transform: translateY(7px);
  }

  /* --- ACTIVE STATE (MORPH TO RING + X) --- */
  .hamburger.active::before {
    border-color: var(--dark-gold);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 0 12px var(--dark-gold);
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
  }

  /* --- COLOR FEEDBACK ON HOVER --- */
  .hamburger:hover .bar {
    background: var(--dark-gold);
  }

  .hamburger:hover::before {
    border-color: var(--dark-gold);
    opacity: 0.8;
    animation: pulse 1.2s infinite ease-in-out alternate;
  }

  @keyframes pulse {
    from {
      transform: scaleX(1);
    }
    to {
      transform: scaleX(1.1);
    }
  }

  /* Donate button */
  .donate_btn_mobile {
    display: block !important;
    text-align: center;
  }
}

/*---------Footer media queries---------*/
@media screen and (max-width: 329px) {
  footer .contact_list {
    width: 100% !important;
  }
}

/* Very small screens */
@media screen and (max-width: 400px) {
  .copyright-info {
    padding: 0 1em;
  }

  .copyright-overlay {
    border-radius: 0;
  }
}

/* Mobile */
@media screen and (max-width: 600px) {
  footer .footer_info {
    padding: 1rem !important;
  }

  footer .footer-menu {
    flex-direction: column !important;
  }

  .copyright-info {
    padding: 0 2em;
  }

  .copyright-overlay {
    padding: 25px 15px;
  }

  .copyright-info p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .social-icon {
    width: 25px;
    height: 25px;
  }
}

@media screen and (max-width: 638px) {
  .copyright-info {
    padding: 0px 0 0px 0 !important;
  }
}

/* Tablets */
@media screen and (max-width: 940px) {
  .copyright-info {
    padding: 0 5em;
  }

  .copyright-overlay {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .social-list {
    margin-top: 10px;
  }
}

/* Large tablets / small desktops */
@media screen and (max-width: 1250px) {
  .copyright-info {
    padding: 0 10em;
  }
}

@media screen and (max-width: 1610px) {
  footer .footer_info {
    flex-direction: column;
    padding: 3rem !important;
  }

  .footer-menu {
    margin: 1rem 0 0 0 !important;
  }

  .about_section .about_summary {
    width: 100% !important;
  }
}
