:root {
    --primary-color: #283593;       
    --primary-color-darker: #0056b3;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white-color: #ffffff;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.academy-popup {
    position: fixed;
    
    bottom: 20px;
    right: 20px;
    left: auto; 
    
    z-index: 2000;
    
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); 
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.academy-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

.popup-content {
    position: relative; /* <-- THIS IS THE CRITICAL LINE THAT WAS MISSING */
    background-color: var(--white-color);
    color: var(--dark-gray);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.popup-close {
    /* Positioning */
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;

    /* Appearance */
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    color: #aaa;
    
    /* Button Reset */
    background: transparent;
    border: none;
    padding: 5px; /* Adds a slightly larger tap area */
    cursor: pointer;
    
    /* Hover Effect */
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #333;
}

.popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.popup-logo {
    height: 30px;
    width: auto;
    margin-right: 12px;
}

.popup-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.popup-enroll-text {
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
}

.popup-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px; 
}

.popup-features-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.popup-features-list svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.popup-content .btn {
    display: block; 
    width: 100%; 
    text-align: center;
}
.fade-in-section {
    
    animation-name: fadeInUp;
    animation-duration: 0.8s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: both; 
}


.fade-in-section.delay-1 {
    animation-delay: 0.2s;
}
.fade-in-section.delay-2 {
    animation-delay: 0.4s;
}
.fade-in-section.delay-3 {
    animation-delay: 0.6s;
}
.fade-in-section.delay-4 {
    animation-delay: 0.8s;
}

.section-pattern-dark {
    background-color: var(--dark-gray);
    color: var(--white-color); 
    
   
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px);
}


.section-pattern-dark h2 {
    color: var(--white-color);
}


.btn-outline-light {
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color); 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Lato', sans-serif; 
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white-color);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 {
    font-family: 'Poppins', sans-serif; 
    font-weight: 700;                   
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
p { margin-bottom: 1rem; }
section { padding: 5rem 0; }
.bg-light { background-color: var(--light-gray); }

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--primary-color); 
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    z-index: 1000;
}

.navbar.navbar-transparent-on-home {
    background-color: transparent;
    box-shadow: none;
    position: absolute; 
    top: 0;
    left: 0;
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 100%;
}
.navbar-brand { 
    color: var(--white-color); 
    font-size: 1.5rem; 
    font-weight: bold; 
    text-decoration: none; 
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 50px;
    margin-right: 15px;
}
.navbar-nav { list-style: none; display: flex; }
.navbar-nav li { margin-left: 25px; }
.navbar-nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
    position: relative; 
    z-index: 1; 
    padding: 8px 8px; 
    transition: color 0.3s ease-in-out; 
}


.navbar-nav a::before {
    content: '';
    position: absolute;
    z-index: -1; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    border-radius: 999px; 
    transform: scale(0); 
    transform-origin: center; 
    transition: transform 0.5s ease-in-out; 
}


.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-color); 
}


.navbar-nav a:hover::before,
.navbar-nav a.active::before {
    transform: scale(1); 
}
.navbar-toggler { display: none; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }


/* --- Hero Section --- */
.hero {
    min-height: 100vh; 
    padding-bottom: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    background: linear-gradient(rgba(0, 45, 98, 0.7), rgba(0, 45, 98, 0.7)), url('/images/Church-image.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding-left: 20px; 
    padding-right: 20px;
    position: relative;
    box-shadow: 0px 10px 15px -5px rgba(0, 0, 0, 0.6);
    
}

.hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
   
    font-size: clamp(1rem, 3vw, 1.5rem); 
    
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero .btn {
    margin-top: 4rem; 
}


.image-collage-section {
    padding: 5rem 0; 
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 250px); 
    gap: 20px;
}

.collage-item {
    position: relative;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}


.collage-item-large {
    grid-row: 1 / 3; 
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease-out;
}

.collage-item:hover img {
    transform: scale(1.05); 
}

.verse-banner {
    background-color: var(--primary-color-darker); 
    margin-top: 1rem;
    
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 255, 0.05) 15px,
        rgba(255, 255, 255, 0.05) 30px
    );

    background-attachment: fixed;
    background-position: center;

    padding: 2rem 0;
    text-align: center;
    color: var(--white-color);
}

.verse-banner h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); 
    max-width: 800px;
    margin: 0 auto 1rem auto; 
}

.verse-banner p {
    font-family: 'Poppins', sans-serif; 
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
}

.parallax-section {
    background-image: url('../images/cross-sunlight.jpg');
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero h1 { color: var(--white-color); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); font-size: 4rem; }
.hero p { font-size: 1.5rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }


.btn { display: inline-block; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); border: 2px solid var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-color-darker); border-color: var(--primary-color-darker); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white-color); }
.btn-light-outline {
    margin-top: 20px;
    background-color: var(--white-color);
    color: var(--dark-gray); 
    border: 2px solid var(--dark-gray);
}

.btn-light-outline:hover {
    background-color: var(--dark-gray);
    color: var(--white-color);
}

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.img-placeholder { width: 100%; height: 400px; background-color: #ddd; display: flex; justify-content: center; align-items: center; text-align: center; color: #888; font-style: italic; border-radius: 8px; }
.map-container { position: relative; padding-top: 75%; height: 0; overflow: hidden; border-radius: 8px; box-shadow: var(--box-shadow); }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }


/*About PAGE */

.page-header {
    background-color: var(--light-gray);
    text-align: center;
    padding: 5rem 0;
}

.page-header h1 {
    font-size: 3rem;
}


.statement-of-faith {
    padding: 4rem 0;
    /* This creates a subtle, textured "parchment" background */
    background-color: #f7f7f7;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.statement-of-faith .container {
    max-width: 800px;
    background-color: var(--white-color); /* The "paper" on top of the texture */
    padding: 3rem 4rem; /* More padding to look like a document */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.statement-of-faith h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.statement-of-faith h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex; /* Aligns icon and text */
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray); /* Separator line */
}

.faith-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    margin-right: 12px;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 8px; 
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-info-list li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-info-list svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: var(--primary-color);
    flex-shrink: 0; 
    position: relative;
    top: 5px; 
}


.contact-info-list a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-list a:hover {
    color: var(--primary-color);
}

.parallax-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter-container {
    text-align: center;
    color: var(--white-color);
    padding: 2rem; 
}

/* Style for the verse text */
#typewriter-verse {

    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
    margin: 0;
    
}



#typewriter-ref {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-style: italic;
    font-weight: 400;
    opacity: 0.9;
    min-height: 1.5em; 
    margin-top: 1rem;
}


.cursor {
    font-weight: 700;
    opacity: 0; 
    transition: opacity 0.1s;
}
.cursor.blinking {
    opacity: 1;
    animation: blink 0.7s infinite alternate; 
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem; 
}

.features-list li {
    display: flex;
    align-items: flex-start; 
    font-size: 1.05rem;
    line-height: 1.6;
}

.features-list svg {
    width: 28px;
    height: 28px;
    fill: var(--white-color); 
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.features-list strong {
    color: #a9a9a9; 
    display: block; 
    font-size: 0.9rem;
}

.verse-of-the-day-section {
    padding: 3rem 0; 
    background-color: var(--white-color); 
}

.verse-widget-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 1.5rem auto 0 auto;
    min-height: 250px; 
}

.parallax-ministries {
    background-image: url('/images/pexels-wendyaffieplaas-1112048.jpg');
    min-height: 300px;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0; }
}

.floating-action-bubbles {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab-bubble {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color); 
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.fab-bubble:hover {
    transform: scale(1.1);
}

.fab-bubble > svg {
    width: 35px;
    height: 35px;
    fill: var(--white-color);
}

.fab-tooltip {
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    background-color: var(--dark-gray);
    color: var(--white-color);
    padding: 6px 8px;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fab-bubble:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}





.fab-bubble.fab-phone {
    background-color: #25D366; 
}
.fab-bubble.fab-phone:hover {
    background-color: #1ebe5a;
}

.fab-bubble.fab-email {
    background-color: #EA4335; 
}
.fab-bubble.fab-email:hover {
    background-color: #d93a2b;
}

footer {
    background: var(--dark-gray); 
    color: #a9a9a9; 
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 1.5rem;
}

.footer-social .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}
.footer-social .social-icon:hover {
    transform: scale(1.1);
}
.footer-social .social-icon svg {
    width: 100%;
    height: 100%;
}

.footer-nav, .footer-contact {
    list-style: none;
}
.footer-nav li, .footer-contact li {
    margin-bottom: 0.8rem;
}
.footer-nav a, .footer-contact a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav a:hover, .footer-contact a:hover {
    color: var(--white-color);
}

.footer-bottom {
    background: #000; 
    color: #777;
    text-align: center;
    padding: 1.5rem 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-verse {
    font-style: italic;
    margin-bottom: 1rem !important; 
}


.fab-bubble.fab-facebook,
.footer-social .social-icon {
    background-color: #1877F2; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* This rule styles the "f" logo inside BOTH icons */
.fab-bubble.fab-facebook svg,
.footer-social .social-icon svg {
    fill: var(--white-color); 
}

/* Hover effect for BOTH icons */
.fab-bubble.fab-facebook:hover,
.footer-social .social-icon:hover {
    background-color: #166fe5; 
    transform: scale(1.1); 
}

.verse-widget-wrapper {
    background-color: var(--light-gray); /* Adds a nice background */
    border: 1px solid #ddd;              /* Adds a subtle border */
    border-radius: 12px;                 /* Rounds the corners */
    padding: 15px;                       /* Adds some space around the iframe */
    box-shadow: var(--box-shadow);       /* Adds a soft shadow */
    max-width: 800px;                    /* Sets a max width for large screens */
    margin: 2rem auto 0 auto;            /* Centers the widget and adds space above it */
    overflow: hidden;                    /* Ensures the iframe corners are also rounded */
}

.verse-widget-wrapper iframe {
    display: block;        /* Removes any extra space below the iframe */
    width: 100%;           /* Makes it fill the container */
    height: 550px;         /* A taller default height for desktops */
    border: none;          /* Ensures there is no border */
}

.calendar-header {
    text-align: center;
    margin: 0 auto 2rem auto; /* <-- This is the key change */
    max-width: 600px;         /* <-- Prevents it from being too wide on large screens */
    padding: 0 1rem;          /* <-- Adds breathing room on mobile */
}

.calendar-wrapper {
    position: relative;
    padding-bottom: 75%; /* This creates a 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    background-color: var(--light-gray); /* Placeholder color while loading */
}

.calendar-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.missions-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* This now styles the single-column layout */
.missions-grid-single {
    max-width: 600px; /* Constrains the width for a nice single-column look */
    margin: 3rem auto 0 auto; /* Centers the column and adds space */
}

.mission-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-item svg {
    width: 50px;
    height: 50px;
    fill: var(--white-color);
    margin-bottom: 1rem;
}

.mission-item h3 {
    color: #FFFFFF;         
    font-size: 1.8rem;       
    font-weight: 800;        
    margin-bottom: 1rem;
}

.mission-item p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}



/* --- Styles for the Parallax Image Divider --- */
.parallax-divider {
    background-attachment: fixed; /* This re-enables the parallax effect */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 350px; /* Adjust height as needed */
    margin:  0; /* Creates space above and below the image */
    border-radius: 8px; /* Optional: rounds the corners */
}


.parallax-missions-kjv {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/kjv-image.jpg');
     min-height: 400px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    section { padding: 3rem 0; }
    .grid-2-col { grid-template-columns: 1fr; }
    .grid-2-col.reverse .img-placeholder { grid-row: 1; } 
    .navbar.solid { padding: 0.5rem 0; }
    .navbar .container { flex-wrap: wrap; }
    .navbar-toggler { display: block; position: absolute; top: 15px; right: 20px; }
    .navbar.solid .navbar-toggler { top: 10px; }
    .navbar-collapse { 
        border-radius: 12px 12px 12px 12px;
        display: none; width: 100%; flex-basis: 100%; text-align: center; background-color: var(--primary-color); }
    .navbar-collapse.active { display: block; }
    .navbar-nav { flex-direction: column; padding: 1rem 0; }
    .navbar-nav li { margin: 10px 0; }

    .navbar-nav li { margin: 10px 0; }


     .floating-action-bubbles {
        left: 10px;
    }
    .fab-bubble {
        width: 45px;
        height: 45px;
    }
    .fab-bubble svg {
        width: 40px;
        height: 40px;
    }
    .fab-tooltip {
        display: none;
    }

    .collage-grid {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(3, 250px); 
    }
    
    
    .collage-item-large {
        grid-row: auto;
    }

     .statement-of-faith .container {
        padding: 2rem 1.5rem;
    }
    
    .hero {
    background-attachment: scroll; /* Disables the parallax effect */
    background-image: linear-gradient(rgba(0, 45, 98, 0.7), rgba(0, 45, 98, 0.7)), url('/images/Church-image.jpg');
    background-position: center center;
    background-size: cover;
  }
  
  /* --- Other Parallax Sections Fix --- */
  /* Ensures the other parallax sections are also simple and responsive */
  .parallax-section,
  .parallax-ministries {
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }
  
  .verse-widget-wrapper iframe {
    height: 450px; /* A more suitable height for mobile devices */
}

.mission-item svg {
        width: 35px;  /* <-- Smaller icon size on desktop */
        height: 35px; /* <-- Smaller icon size on desktop */
    }
}


@media (max-width: 992px) {
  

  .hero,
  .parallax-section,
  .parallax-ministries,
  .parallax-divider {
   
    background-attachment: scroll;
  }
}



@media (orientation: landscape) and (max-height: 500px) {
  
  .hero {
    
    min-height: 70vh; 
  }

  .hero,
  .parallax-section,
  .parallax-ministries {
    /* 
      Positions the background image higher up. Instead of showing the
      dead center of the image (often just sky), this shows the top portion.
    */
    background-position: center 20%;
  }
}