/* Import Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    /* Colors */
    --white-color: #fff; 
    --dark-color: #000000; 
    --dark-green: #006400; 
    --dark-blue: #0438f4; 
    --gray-color: #5b6171; 
    --light-pink: #faf4f5;
    --medium-gray: #ccc; 
    --light-gray: #5b575b;
    --lavender-purple: #4f46e5;

    /* Font Size */
    --font-size-s: 0.9rem; 
    --font-size-n: 1rem; 
    --font-size-m: 1.12rem; 
    --font-size-l: 1.5rem; 
    --font-size-xl: 2rem; 
    --font-size-xxl: 2.3rem;
    --font-size-3xl: 2.8rem;

    /* Font Weight */
    --font-weight-normal: 400; 
    --font-weight-medium: 500; 
    --font-weight-semibold: 600; 
    --font-weight-bold: 700; 

    /* Border Radius */
    --border-radius-s: 8px; 
    --border-radius-m: 30px; 
    --border-radius-circle: 50%; 

    /* Max Width for Site */
    --site-max-width: 1300px; 
}

html {
    scroll-behavior: smooth;
}

/* Site Styling */
ul {
    list-style: none; 
}

a {
    text-decoration: none; 
}

button {
    cursor: pointer; 
    border: none; 
    background: none; 
} 

body {
    word-wrap: break-word;
    overflow-x: hidden;
}

.section-content {
    margin: 0 auto; 
    padding: 0 20px; 
    max-width: var(--site-max-width); 
    z-index: 1;
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-m);
    background: var(--dark-color);
}

/* Navigation bar styling */
header {
    position: fixed;
    width: 100%;
    z-index: 9999;
    background: var(--dark-color);
}

header .navbar {
    display: flex; 
    padding: 20px; 
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-text {
    color: var(--white-color); 
    font-size: var(--font-size-xl); 
    font-weight: var(--font-weight-semibold);
}

.navbar .nav-menu {
    display: flex; 
    gap: 10px; 
}

.navbar .nav-menu .nav-link {  
    padding: 10px 18px; 
    color: var(--white-color);   
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--dark-color); 
    background: var(--white-color); 
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}

/* Hero section style */
.button-wrapper {
  position: relative;
  display: inline-block;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero-section .home-details .service-details {
    margin-top: 40px;
    text-align: center;
}

.hero-section .home-details .service-day {
    margin-top: 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
    color: var(--white-color);
    line-height: 1.5;
}

.hero-section .home-details .service-time {
    margin-top: 5px;
    color: var(--white-color);
    font-size: var(--font-size-m);
}

.hero-section .home-details .service-location {
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    line-height: 1.2;
}

.hero-section .home-details .button-wrapper {
    margin-top: 70px;
    display: block;
    text-align: center;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 60px;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.8;
    background: var(--dark-color);
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 50px;
    color: var(--white-color);
    justify-content: center;
    flex-direction: column;
}

.hero-section .home-details {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-section .home-details .title {
    font-size: var(--font-size-3xl); 
    font-family: "Fantasy", sans-serif;
    font-weight: var(--font-weight-bold);
}

.hero-section .home-details .subtitle {
    margin-top: 38px;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    font-family: "Edu NSW ACT Hand", cursive;
}

.hero-section .home-details .verse {
    margin: 24px 0 0;
    padding-bottom: 30px;
    font-size: var(--font-size-m);
}

.hero-section .hero-image-wrapper {
    max-width: 500px;
    margin-right: 30px;
    display: none;
}

.hero-section .home-details .visit-us {
    display: inline-block;
    padding: 10px 26px;
    border-radius: var(--border-radius-m);
    font-size: 23px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s ease;
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-section .home-details .visit-us:hover {
    color: var(--dark-color);
    border-color: var(--white-color);
    background-color: var(--white-color);
}

/* About us section */
.about-section .about-text p {
    margin-bottom: 20px;
}

.about-section {
    padding: 120px 0;
    background: var(--medium-gray);
}

.about-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.about-section .about-image-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 20px;
    flex-shrink: 0; 
    flex-grow: 1; 
    max-width: 500px; 
    width: 100%; 
}

.about-section .swiper.about-swiper {
    width: 100%; 
    height: auto; 
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-section .swiper-slide img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-s);
    display: block;
    margin: 0 auto;
}

.about-section .swiper-button-prev:hover,
.about-section .swiper-button-next:hover {
    color: var(--white-color);
}

.about-section .about-details {
    max-width: 50%;
}

.about-section .about-details .section-title {
    padding: 0;
}

.about-section .about-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
}

/* About Gallery Button */
.gallery-button-wrapper {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.gallery-button-wrapper .photo-gallery-button {
    background-color: var(--dark-blue);
    color: var(--white-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-button-wrapper .photo-gallery-button:hover {
    background-color: var(--white-color);
    transform: translateY(-2px);
    color: var(--white-color);
}

/* Pastor Section */
.pastor-section {
    color: var(--dark-color); 
    background: var(--light-pink);
    padding: 50px 0 100px;

    position: relative;
    z-index: 1;
}

.pastor-section .pastor-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; 
    justify-content: center; 
    gap: 40px; 
}

.pastor-section .pastor-list .pastor-name {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
    flex: 1 1 230px; 
    max-width: calc(100% / 4 - 30px); 

    position: relative; 
    z-index: 1;
}

.pastor-section .pastor-list .pastor-name .name {
    margin: 12px 0 4px;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
}

.pastor-section .pastor-list .pastor-name .text {
    font-size: var(--font-size-m);
}

/* Leaders section styling */
.leaders-section {
    color: var(--dark-color); 
    background: var(--light-pink);
    padding: 50px 0 100px;
}

.leaders-section .swiper {
    position: relative;
    padding: 0 30px;
    overflow: hidden;
}

.leaders-section .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.leaders-section .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 10px; 
}

.leaders-section .swiper-button-next,
.leaders-section .swiper-button-prev {
    color: var(--dark-color);
}

.leaders-section .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 40px;
    width: 100%;
    text-align: center;
}

.leaders-section .leaders-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    width: 100%;
}

.leaders-section .leaders-name .name {
    margin: 12px 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
}

.leaders-section .leaders-name .text {
    font-size: var(--font-size-m);
}

.leaders-section .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    opacity: 1;
    background: var(--dark-color);
}

.leaders-section .swiper-slide-button {
    margin-top: -50px;
    color: var(--dark-color);
    transition: 0.3s ease;
}

.leaders-section .swiper-slide-button:hover {
    color: var(--dark-blue);
}

.leaders-section .slider-wrapper {
    overflow: hidden;
    margin: 0 60px 50px;
}

.leaders-section .section-title::after {
    background: var(--dark-color);
}

/* NEW DYNAMIC LEADER & PASTOR CROP CONTAINERS */
.profile-image-container {
    position: relative;
    width: 100%;                      
    aspect-ratio: 1 / 1;        
    overflow: hidden;
    margin: 0 auto 15px;
    z-index: 1;               
}

.pastor-section .profile-image-container {
    max-width: 320px;
    border-radius: 30px;
}

.leaders-section .profile-image-container {
    max-width: 295px;
    border-radius: 50%;
}

/* Enforcing circle and square parameters */
.leaders-section .profile-image-container {
    border-radius: var(--border-radius-circle);
}

.pastor-section .profile-image-container {
    border-radius: 20px;
}

.pastor-image, 
.leaders-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* CRITICAL INTERACTION FIX FOR ABSOLUTE BUTTON OVERLAYS */
.hover-overlay {
    cursor: pointer;
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 20;               
    pointer-events: auto;      
}

.bio-button {
    cursor: pointer;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

.bio-icon {
    font-size: 26px;
}

/* Hover Events triggers */
.profile-image-container:hover .hover-overlay {
    opacity: 1;
}

.profile-image-container:hover .pastor-image,
.profile-image-container:hover .leaders-image {
    transform: scale(1.05);
}

/* Connect section */
.connect-section {
    padding: 50px 0 100px;
    background: var(--gray-color);
    color: var(--white-color);
}

.connect-section .section-title::after {
    background: var(--white-color);
}

.connect-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

.connect-section .connect-list .connect-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
    font-size: var(--font-size-m);
}

.connect-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    outline: none;
    margin-bottom: 16px;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    border: 2px solid var(--light-gray);
    color: var(--dark-color); 
}

.connect-section .contact-form {
    max-width: 50%;
}

.connect-section .contact-form .form-input:focus {
    border-color: var(--dark-green);
}

.connect-section .contact-form textarea.form-input {
    height: 100px;
    padding: 12px;
    resize: vertical;
}

.connect-section .contact-form .submit-button {
    padding: 10px 26px;
    margin-top: 10px;
    color: var(--dark-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: var(--white-color);
    border-radius: var(--border-radius-m);
    border: 1px solid var(--white-color);
    transition: 0.3s ease;
}

.connect-section .contact-form .submit-button:hover {
    background: transparent;
    color: var(--white-color);
}

/* map */
.map-wrapper iframe {
    width: 400px;
    height: 300px; 
    border: none;
    border-radius: 8px;
}

/* social media icons */
.connect-section .social-media {
    display: grid;
    grid-template-columns: 64px 64px;
    grid-template-rows: auto auto;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.connect-section .social-media a:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
.connect-section .social-media a:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.connect-section .social-media a:nth-child(3) { grid-column: 1 / 3; grid-row: 2 / 3; justify-self: center; }

.connect-section .social-media a{
    position: relative;
    background-color: var(--white-color);
    padding: 1em;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.connect-section .social-media a svg {
    height: 32px;
}

.connect-section .social-media a::before {
    content: attr(media-name);
    position: absolute;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: var(--border-radius-m);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42, 0, 0.46, 1.68);
}

.connect-section .social-media a:hover {
    background-color: var(--accent-color);
    fill: var(--white-color);
}

.connect-section .social-media a:hover svg {
    fill: var(--white-color);
}

.connect-section .social-media a::after {
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
    transform: translateY(0) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42, 0, 0.46, 1.68);
}

.connect-section .social-media a:hover::before {
    transform: translateY(-65px) rotate(0);
    opacity: 1;
}

.connect-section .social-media a:hover::after {
    transform: translateY(-42px) rotate(0);
    opacity: 1;
}

.connect-section .social-media a[media-name="Instagram"]:hover {
    background: radial-gradient(circle at 33% 100%, #fed373 4%, #f15245, #d92e7f 62%, #9b36b7 85%, #515ecf );
}

.connect-section .social-media a[media-name="Instagram"]:hover svg { fill: white; }
.connect-section .social-media a img.bible-icon { height: 32px; width: 32px; }
.connect-section .connect-list .connect-info iframe { display: block; }
.connect-section .connect-list .connect-info iframe + p { margin-top: 10px; }
.connect-section .connect-list .connect-info:has(iframe) { flex-direction: column; align-items: flex-start; gap: 10px; }

/* Footer section */
.footer-section {
    padding: 20px 0;
    background: var(--dark-color);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-section :where(.copyright-text, .social-link, .policy-link) {
    color: var(--white-color);
    transition: 0.2s ease;
}

.footer-section .social-link-list {
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link { font-size: var(--font-size-l); }
.footer-section .social-link-list .social-link:hover { transform: scale(1.2); color: var(--gray-color); }
.footer-section .policy-link { transition: transform 0.3s ease; display: inline-block; }
.footer-section .policy-text .policy-link:hover { transform: scale(1.12); color: var(--gray-color); }

/* MODAL DIALOG FRAMEWORK */
.bio-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99999;             
    padding: 20px;
}

.bio-modal.show-modal {
    opacity: 1;
    pointer-events: auto;
}

.bio-modal-content {
    background: var(--white-color);
    width: 150%;
    max-width: 820px;
    padding: 45px 40px;
    border-radius: 24px;
    position: relative;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bio-modal-body {
    display: flex;
    flex-direction: row;       
    gap: 40px;
    align-items: flex-start;
    overflow-y: auto;          
    padding-right: 15px;
    margin-top: 15px;
    text-align: left;
}

.bio-modal-body::-webkit-scrollbar {
    width: 6px;
}
.bio-modal-body::-webkit-scrollbar-thumb {
    background-color: var(--medium-gray);
    border-radius: 10px;
}

.bio-modal-left {
    flex-shrink: 0;
    text-align: center;
    width: 220px;              
}

.bio-modal-left img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid var(--light-pink);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* Right Column Area */
.bio-modal-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.2s ease;
    z-index: 10;
}

.close-modal:hover {
    color: var(--dark-color);
}

#modal-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

#modal-role {
    margin: 4px 0 16px;
    font-style: italic;
    color: var(--gray-color);
    font-size: var(--font-size-m);
}

#modal-bio {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: var(--font-size-n);
    color: var(--light-gray);
}

/* About Gallery Button */
.gallery-button-wrapper {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.gallery-button-wrapper .photo-gallery-button {
    background-color: var(--dark-blue);
    color: var(--white-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-button-wrapper .photo-gallery-button:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
    border: 2px solid var(--dark-blue);
}

/* PROFILE SOCIALS */
.profile-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 23px;
    flex-wrap: wrap;
}

.profile-socials a {
    position: relative;
    background-color: var(--dark-color);  
    padding: 1em;               
    border-radius: 16px;        
    height: 64px;               
    width: 64px;                
    box-sizing: border-box;     
    flex-shrink: 0;
    display: grid;              
    place-items: center;        
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.profile-socials a svg {
    height: 32px;               
    width: 32px;
    display: block;
    overflow: visible;
    fill: #ffffff !important;   
    transition: fill 0.2s ease;
}

.profile-socials a::before {
    content: attr(media-name);
    position: absolute;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: var(--border-radius-m);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42, 0, 0.46, 1.68);
    z-index: 100000;          
}

.profile-socials a::after {
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
    transform: translateY(0) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42, 0, 0.46, 1.68);
    z-index: 100000;
}

.profile-socials a:hover::before {
    transform: translateY(-65px) rotate(0);
    opacity: 1;
}

.profile-socials a:hover::after {
    transform: translateY(-42px) rotate(0);
    opacity: 1;
}

.profile-socials a[media-name="Facebook"]:hover {
    background-color: #106bff !important;
}

.profile-socials a[media-name="Instagram"]:hover {
    background: radial-gradient(circle at 33% 100%, #fed373 4%, #f15245, #d92e7f 62%, #9b36b7 85%, #515ecf) !important;
}

.profile-socials a:hover svg {
    fill: #ffffff !important;
}

/* MEDIA QUERIES */
@media screen and (max-width: 955px) {
    :root {
        --font-size-m: 1rem; 
        --font-size-l: 1.3rem; 
        --font-size-xl: 1.5rem; 
        --font-size-xxl: 1.8rem;
    }

    body.snow-mobile-menu header::before {
        content: ""; 
        position: fixed; 
        left: 0; top: 0; height: 100%; width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0,0,0,0.2);
    }

    .navbar :where(#menu-close-button, #menu-open-button){
        display: block; 
        font-size: var(--font-size-l)
    }

    .navbar #menu-close-button { position: absolute; right: 30px; top: 30px; }
    .navbar #menu-open-button { color: var(--white-color); }

    .navbar .nav-menu {
        position: fixed;
        left: -300px; top: 0; width: 300px; height: 100%; 
        display: flex; flex-direction: column; align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.3s ease;
    }

    body.snow-mobile-menu .navbar .nav-menu { left: 0; }
    .navbar .nav-menu .nav-link { color: var(--dark-color); display: block; margin-top: 17px; font-size: var(--font-size-l); }
    .navbar .nav-menu .nav-link:hover { color: var(--white-color); background: var(--dark-color); }

    .connect-section .social-media { display: flex; gap: 20px; justify-content: center; }

    .hero-section .section-content {
        gap: 50px; text-align: center; padding: 80px 20px 30px;
        flex-direction: column-reverse; justify-content: center;
    }

    .hero-section .home-details, 
    .hero-section .home-details :is(.subtitle, .verse), 
    .connect-section .contact-form { max-width: 100%; }
    .hero-section .hero-image-wrapper { max-width: 270px; margin-right: 0; }

    .connect-section .section-content { align-items: center; flex-direction: column-reverse; }

    .about-section .section-content { flex-direction: column; text-align: center; }
    .about-section .about-details, .about-section .about-image-wrapper { max-width: 100%; margin-top: 30px; }
    .about-section .about-image-wrapper .about-image { max-width: 70%; height: auto; }
    .about-section .about-image-wrapper .photo-gallery-button { display: inline-block; width: auto; max-width: 100%; padding: 10px 20px; text-align: center; white-space: nowrap; }
    .about-section .swiper-button-prev:hover, .about-section .swiper-button-next:hover { color: var(--dark-color); }

    /* FIXED: Forces the pastor row to wrap cleanly into a 2x2 square block alignment */
    .pastor-section .pastor-list .pastor-name {
        flex: 1 1 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

@media screen and (max-width: 768px) {
    .bio-modal-content {
        padding: 35px 25px 25px;
        max-height: 90vh;
    }
    .bio-modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .bio-modal-left {
        width: 160px;          
    }

    .pastor-section .pastor-list .pastor-name {
        flex: 1 1 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

@media screen and (max-width: 640px) {
    .leaders-section .swiper-slide { width: 100%; }
    .leaders-section .swiper-slide-button { display: none; }
    .pastor-section .pastor-list { gap: 40px; }
    
    .pastor-section .pastor-list .pastor-name { 
        flex: 1 1 100%;
        max-width: 100%; 
    }
    .footer-section .section-content { flex-direction: column; gap: 20px; }
}