/* General Reset */
html, body, h1, ul, li, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Prevent horizontal overflow across the site (avoids white gutters) */
html, body { overflow-x: hidden; }

/* Header Styles */
header {
    background-color: #003366;
    padding: 10px 20px;
    border-bottom: 2px solid #ddd;
    text-align: center;
    position: relative;
}

.social-icons {
    position: absolute;
    top: 10px;
    right: 20px;
}

.social-icons a {
    margin-left: 10px;
    color: #f4f4f4;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FFD700; /* Golden color on hover */
}

.logo-and-name {
    margin: 20px 0;
}

.logo {
    max-width: 100px;
    margin-bottom: 10px;
}

.logo {
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Make it square */
    object-fit: cover; /* Ensures the image fills the circle */
    border-radius: 50%; /* Crops the image into a circle */
    overflow: hidden; /* Ensures no edges spill out */
    background-color: #fff; /* Optional, adds white background if needed */
}


h1 {
    font-size: 1.8em;
    color: #FFD700; /* Golden text for contrast */
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

nav ul li a {
    font-size: 1em;
    color: #f4f4f4;
    padding: 5px 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
    background-color: #002244; /* Slightly darker shade for hover */
    border-color: #FFD700;
}

/* Slider container */
.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Overlay for text readability */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.623);
    z-index: 1;
}

/* Slider setup */
.slider {
    display: flex;
    transition: transform 1s ease-in-out;
}

/* Individual slides */
.slide {
    min-width: 100%;
    height: 400px;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

/* Slide images */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text over the slides */
.slide-text {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.slide-text h2 {
    font-size: 36px;
    margin: 0;
    font-weight: bold;
}

.slide-text p {
    font-size: 18px;
    margin-top: 10px;
    color: #FFD700;
}

/* Carousel navigation buttons */
.carousel-buttons {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.carousel-buttons button {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.carousel-buttons button.active {
    background-color: rgba(255, 255, 255, 1);
}


/* About Us Section 
#about-us {
    padding: 60px 20px;
    background-color: #f4f4f4;
    color: #003366;
    text-align: center;
}

#about-us .about-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: ;
}

#about-us h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #003366;
    text-transform: uppercase;
}

#about-us p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

#about-us p strong {
    color: #003366;
}

#about-us p em {
    font-style: italic;
    color: #0066cc;
}
*/

/* About Us Section - Dynamic Height */
#about-us {
    background-color: #003366; /* Background color */
    color: #003366;
    text-align: center;
    display: flex; /* Align content centrally */
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px; /* Adjust padding for spacing */
}

/* Ensure there’s a margin between sections */
#about-us {
    margin-top: 2px; /* Space between carousel and about us */
    margin-bottom: 2px;
}

#about-us .about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#about-us h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700;
    text-transform: uppercase;
}

#about-us p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    margin: 0 auto;
}

#about-us p strong {
    color: #2088f0;
}

#about-us p em {
    font-style: italic;
    color: #2088f0;
}



/* Pastors' Corner Section */
#pastors-corner {
    padding: 60px 20px;
    background-color: #003366;/* Default background color */
    text-align: center;
    position: relative;
    margin-bottom: 2px;
}

#pastors-corner h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 40px;
    text-transform: uppercase;
}


/* Section Header Styling */
.section-header {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 auto 40px auto;
    border: 3px solid #FFD700; /* Yellow border */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 25px rgba(0, 51, 102, 0.8); /* Yellow and blue shadows */
    background-color: transparent; /* Transparent background to blend with the site's background */
}

.section-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-transform: uppercase;
    margin: 0; /* Remove extra margin */
    text-align: center;
}


/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
}

/* Carousel */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smoother transition for sliding */
    will-change: transform;
}

/* Each Pastor Item */
.carousel-item {
    min-width: 100%;
    text-align: center;
   
    transition: transform 0.5s ease; /* Smoother individual item transition */
}

.carousel-item img {
    width: 45%;
    border-radius: 10px;
 
    object-fit: cover;
}

.carousel-item h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    margin-top: 15px;
}

.carousel-item p {
    font-size: 1.2rem;
    color: #ffffff;
    
}

/* Navigation buttons (left and right) */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 2rem;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Optional hover effect */
.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Beliefs Section */
#our-beliefs {
    margin: auto;
    text-align: center;
    background-color: #003366;
    padding: 0;
    padding-bottom: 50px;
    margin-bottom: 2px;
}

/* Header Image with Text Overlay */
.beliefs-header {
    position: relative;
    width: 50%;
    text-align: center;
    display: inline-block;
    padding: 60px 20px;
    margin: 0 auto 40px auto;
    border: 3px solid #FFD700; /* Yellow border */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 25px rgba(0, 51, 102, 0.8); /* Yellow and blue shadows */
    background-color: transparent; /* Transparent background to blend with the site's background */
    margin-top: 50px;
}


.belief-txt-div, h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-transform: uppercase;
    margin: 0; /* Remove extra margin */
    text-align: center;
}






.beliefs-header-img {
    width: 100%;
    height: auto;
}

.blinking-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1em;
    color: #fff;
    animation: blink 1s step-start infinite;
    z-index: 1; /* Ensure the text is above the image */
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Beliefs Carousel Container */
.beliefs-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 1000px;  /* Adjust width as needed */
    margin: 20px auto;
    
}

.beliefs-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px; /* Adjust the gap size as needed */
    
   
}

.belief-slide {
    min-width: 30%;  /* Show 3 slides at once on desktop */
    box-sizing: border-box;
    padding: 10px;
    background-color: #FFD700;
    padding-right: 20px;
   
    margin: 0 10px; /* Add space around each slide */
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
   
   
}





.belief-slide img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.belief-slide h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 10px;
}

.belief-slide p {
    font-size: 1em;
    color: #666;
    margin-top: 10px;
}

/* Navigation Buttons */
.beliefs-prev,
.beliefs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.beliefs-prev {
    left: 10px;
}

.beliefs-next {
    right: 10px;
}

/* For Mobile View: Show only 1 belief at a time */
@media screen and (max-width: 768px) {
    .beliefs-container {
        display: block;
    }

    .belief-slide {
        min-width: 100%;  /* Only one belief at a time */
    }

    .beliefs-container {
        display: block; /* Stack items vertically */
    }

    .belief-slide {
        min-width: 100%; /* Take full width */
        margin: 10px 0;
    }

    .beliefs-prev, .beliefs-next {
        display: none; /* Hide navigation buttons */
    }
}

/* Reels Styles */
#reels-section {
    background-color: #003366;
    padding: 40px 20px;
}

.reels-thumbs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 20px;
}
.reel-thumb {
    width: 220px;
    height: 390px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    border: 4px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.reel-thumb img { width:100%; height:100%; object-fit:cover; display:block; user-select:none; -webkit-user-select:none }
.reel-thumb video { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; user-select:none }
.reel-thumb:hover { transform: translateY(-6px); border-color: #FFD700 }

/* Articles section */
#articles-section { background: linear-gradient(180deg, #01213a 0%, #003366 100%); padding: 48px 20px; color: #fff; }
.articles-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 10px; }
.article-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; display:flex; flex-direction:column; }
.article-card img { width: 100%; height: 180px; object-fit: cover; display:block; }
.article-meta { padding: 16px; display:flex; flex-direction:column; gap:8px; }
.article-meta h3 { margin:0; font-size:1.05rem; color:#FFD700; }
.article-meta .excerpt { color: #dfeffb; font-size:0.95rem; line-height:1.4; max-height:64px; overflow:hidden; }
.article-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:6px; }
.article-actions button { background: transparent; border:1px solid rgba(255,255,255,0.08); color:#FFD700; padding:8px 12px; border-radius:8px; cursor:pointer; }

/* Article reader modal */
.article-reader { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 11000; display:flex; align-items:center; justify-content:center; padding:20px; }
.article-reader.hidden { display:none }
.article-reader-inner { width:100%; max-width:960px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03)); border-radius:12px; overflow:hidden; display:flex; gap:20px; align-items:flex-start; }
.article-reader-inner { position: relative; }
.article-reader-inner img { width:40%; height:100%; object-fit:cover; display:block; }
.article-content { padding:20px; flex:1; color:#F0F7FB; max-height: calc(var(--vh,1vh) * 70); overflow-y:auto; }
.article-content h2 { margin-top:0; color:#FFD700; }
.article-body { white-space:pre-wrap; color:#EAF2FB; line-height:1.6; }
.article-close { position:absolute; right:18px; top:18px; background:transparent; border:none; color:#FFD700; font-size:36px; cursor:pointer; z-index:11001 }
.article-reader-actions { display:flex; justify-content:flex-end; margin-top:12px; }
.article-share-btn { background: #FFD700; border:none; color:#00304a; padding:10px 16px; border-radius:8px; cursor:pointer; font-weight:700 }
.article-pdf-btn { background: transparent; border:1px solid rgba(255,255,255,0.08); color:#fff; padding:10px 14px; border-radius:8px; cursor:pointer; margin-left:8px }
.article-pdf-btn[disabled] { opacity:0.6; cursor:progress }

@media (max-width: 900px) {
    .article-reader-inner { flex-direction:column; }
    .article-reader-inner img { width:100%; height: 240px; }
    .article-content { max-height: calc(var(--vh,1vh) * 60); }
}

/* Fixed action bar inside reader (keeps share / download visible while scrolling) */

.article-actions-fixed {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    z-index: 11002;
    padding: 12px 20px;
    /* translucent background so article content scrolls under it */
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
    backdrop-filter: blur(4px);
}

/* Make sure article content has breathing room so fixed actions don't overlap the text */
.article-content { padding-right: 20px; padding-bottom: 110px; }

@media (max-width: 900px) {
    /* On smaller screens, position actions relative so they appear below the image and above content flow */
    .article-actions-fixed { position: relative; bottom: auto; left: auto; right: auto; margin: 12px 20px 0 20px; background: rgba(0,0,0,0.0); backdrop-filter: none; justify-content: flex-start; }
    .article-content { padding-right: 20px; padding-bottom: 28px; }
}

.reel-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.reel-viewer.hidden { display: none }
.reel-viewer .close-reels {
    position: absolute; top: 18px; right: 18px; background: transparent; color: #fff; border: none; font-size: 36px; cursor: pointer;
}
.reel-list {
    width: 100%;
    /* use CSS variable --vh for reliable mobile viewport height (set by JS) */
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    flex: 1;
}
.reel-item {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.reel-item video {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    object-fit: contain;
    background: #000;
}

/* Mobile responsive reel sizing */
@media (max-width: 768px) {
    .reel-list {
        height: 100dvh; /* Use dynamic viewport height for mobile */
    }
    .reel-item {
        height: 100dvh;
    }
    .reel-item video {
        height: 100dvh;
    }
}

@media (max-width: 480px) {
    .reel-list {
        height: 100dvh;
    }
    .reel-item {
        height: 100dvh;
    }
    .reel-item video {
        height: 100dvh;
    }
}
.reel-ui {
    position: fixed; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    z-index: 10000;
    align-items: center;
}

.unmute-btn {
    background: rgba(255, 255, 255, 0.06); 
    color: #FFD700; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 12px 14px; 
    border-radius: 8px; 
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
}

.unmute-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
}

.reel-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.reel-action-btn button {
    background: rgba(255, 255, 255, 0.06); 
    color: #FFD700; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 12px 14px; 
    border-radius: 8px; 
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-action-btn button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
}

.like-icon, .share-icon, .comment-icon {
    font-size: 24px;
}

.like-count, .share-count, .comment-count {
    color: #FFD700;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.comment-panel {
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.95); 
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.comment-panel.hidden { display: none }

.comment-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.comment-panel-header h2 {
    color: #FFD700;
    margin: 0;
    font-size: 1.5rem;
}

.close-comments-btn {
    background: transparent;
    color: #FFD700;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
}
.close-comments-btn:hover { opacity: 0.8 }

.comments-list { 
    flex: 1;
    overflow-y: auto; 
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comments-list .comment { 
    padding: 12px; 
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #fff;
}
.comments-list .comment strong { color: #FFD700 }
.comments-list .comment div { margin-top: 6px; font-size: 0.95rem }

.comment-form { 
    display: flex; 
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
}
.comment-form input { 
    flex: 1; 
    padding: 10px; 
    border-radius: 6px; 
    border: 1px solid rgba(255,255,255,0.1); 
    background: rgba(255,255,255,0.08); 
    color: #fff;
}
.comment-form input::placeholder { color: rgba(255,255,255,0.5) }
.comment-form button { 
    padding: 10px 16px; 
    border-radius: 6px; 
    background: #FFD700; 
    border: none; 
    color: #003366;
    font-weight: bold;
    cursor: pointer;
}
.comment-form button:hover { opacity: 0.9 }


@media screen and (max-width: 720px) {
    .reel-thumb { width: 46%; height: 260px }
    .comment-panel { width: 90%; left:5%; top:auto; bottom: 20px }
    .reel-ui { right: 8px }
}

/* Play/Pause Overlay */
.play-pause-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
}
.play-pause-overlay.show {
    animation: fadeInOut 0.6s ease-in-out;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
.overlay-icon {
    font-size: 80px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: inline-block;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    color: #FFD700;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}
.back-btn:hover { background: rgba(0,0,0,0.7) }

/* Progress Bar */
.reel-progress-container {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 9999;
}
.reel-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
}
.reel-progress-fill {
    height: 100%;
    background: #FFD700;
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile: Make progress bar taller and adjust position */
@media (max-width: 768px) {
    .back-btn {
        top: 12px;
        left: 12px;
        padding: 10px 14px;
        font-size: 20px;
    }
    .reel-progress-container {
        height: 6px;
        bottom: 90px;
    }
    .reel-ui {
        right: 12px;
        gap: 16px;
    }
    .reel-action-btn, .unmute-btn {
        padding: 10px 12px;
        font-size: 20px;
    }
    .like-count, .share-count, .comment-count {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .back-btn {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 18px;
    }
    .reel-progress-container {
        height: 8px;
        bottom: 85px;
    }
    .reel-ui {
        right: 10px;
        gap: 14px;
    }
    .reel-action-btn, .unmute-btn {
        padding: 9px 11px;
        font-size: 18px;
    }
    .like-count, .share-count, .comment-count {
        font-size: 10px;
    }
}



.articles-list {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
}

.article-card {
    flex: 0 0 calc(33.333% - 13.33px); /* 3 per row on large screens */
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #003366;
    transition: transform 0.3s;
}

/* Hide horizontal scrollbar */
.articles-list::-webkit-scrollbar {
    display: none;
}

/* Mobile: 1 per screen */
@media (max-width: 900px) {
    .article-card {
        flex: 0 0 90%;
        margin: 0 auto;
    }
}

/* Carousel navigation */
.carousel-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.carousel-nav button {
    padding: 6px 12px;
    background: #007bff;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.carousel-nav button:hover {
    background: #0056b3;
}



