/* Christian Fellowship Church */
/* CSS file */

/* CSS reset */
* {
    margin:0;
    padding: 0;
    box-sizing: border-box; 
    
}


body{
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("../media/mob-tab-backgrd.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
    margin: 0;
    padding: 0;
}
.main-header {
    /* justify-items: center;  */
    display: flex;   
}
.main-header .logo {
    margin: auto;
    padding-top: 5px;
    border-radius: 33px;

}
.logo img{
    border-radius: 12px;
}
.header-bkgd {
    position: relative; 
}

/* Displayng/Hiding the hamburger menu */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 5px;
    margin-right: 5px;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.nav-bar {
    display: block;
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background-color: #555555;
    padding: 20px 0;
    transition: left 0.3s ease;
    z-index: 999;
}

.nav-bar ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none; 
}

.nav-bar li {
    margin: 15px 0;
    list-style: none;

}
.nav-bar a {
    text-decoration: none;
    color: white;
    font-size: 20px;
}
.nav-bar.active {
    left: 0 !important;
}
.contact-welcome h1{
    color: white;
    text-align: center;
    border-bottom: 6px groove burlywood ;
    max-width: 200px;
    margin: 0 auto;
    padding-bottom: 8px;
    margin-top: 20px;
}
.contact-welcome p{
    text-align: center;
    color: white;
    margin:20px 0;
    font-size: 20px;
    margin-top: 20px;
}
#my-form{
    max-width: 90%;
    margin: 0 auto 20px auto;
    width: 90%;
    padding: 0 15px;
    box-sizing: border-box;  
}

/* .sending-msg {
    width: 100% !important;
    
} */
.sending-msg{
    width: 100%;
    color: white;
    display: inline-flex;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 15px;                        /* Adds space between all fields and rows */
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: gray;
}
/* .sending-msg legend {
    grid-column: span 2;
    font-weight: bold;
    padding: 0 10px;
} */

.sending-msg input, textarea {
    width: 100%;
    padding: 8px;
    border: 3px solid darkslategrey;
    border-radius: 8px;
    box-sizing: border-box; 
}
.sending-msg textarea{
    width: 300px;
    height: 200px;
}
.sending-msg button[type="submit"] {
  grid-column: 2; /* Pushes the button to the second column under the inputs */
  padding: 10px;
  cursor: pointer;
  background-color: darkolivegreen;
  color: white;
}

#form-status {
  grid-column: span 2;
}

/* CSS code for the "Get In Touch fieldset */
.getting-touch {
    color: white;
    display: inline-flex;
    display: grid;
    grid-template-columns: 150px 1fr; 
    gap: 15px;                        /* Adds space between all fields and rows */
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: gray;
}
.getting-touch legend {
    font-weight: bold;
    padding: 0 10px;
}
#getintouch {
    max-width: 90%;
    margin: 0 auto;
    width: 90%;
    padding: 0; 

}
.getting-touch {
    width: 100% !important;
}
.getting-touch h1, h2, h3{
    font-size: 17px;
    font-weight: normal;
}
.getting-touch a {
    color: white;
    text-decoration: none;
}
.getting-touch a:hover{
    color: goldenrod;
    background-color: black;
    transition: 1.5s ease; 
}
.schedule{
    border: solid;
    border-collapse: collapse; 
}
.schedule td{
    border: solid;
    padding: 8px;              /* Adds breathing room inside cells */
    text-align: center;
    
}
.embed-map{
    max-width: 90%;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.embed-map iframe {
    width: 100% !important;
    height: 350px;
    border-radius: 15px;
    margin-top: 20px;
    
}
/* Styling the About Us page */
.aboutus {
    color: white;
    text-align: center;
    padding-top: 20px;
    max-width: 100%;
    width: 100%;
    
}
.whatwebelieve {
    border: 7px groove darkolivegreen;
    border-radius: 20px;
    font-size: 22px;
    width: 70%;
    margin: 20px auto ;
}

/* 1. Target all three wrapper sections at the same time */
/* 1. Target all four wrapper sections together */
.whatwebelieve > *, 
.pictures > *, 
.malachie > *,
.aboutus > * {
    opacity: 0;
    animation: fadeAndFlow 0.6s ease-out forwards;
}

/* 2. Shared animation timeline */
@keyframes fadeAndFlow {
    from {
        opacity: 0;
        transform: translateY(15px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);    
    }
}

/* 3. Sequence order advancing by exactly 1 second per item */
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(1)  { animation-delay: 1s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(2)  { animation-delay: 2s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(3)  { animation-delay: 3s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(4)  { animation-delay: 4s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(5)  { animation-delay: 5s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(6)  { animation-delay: 6s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(7)  { animation-delay: 7s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(8)  { animation-delay: 8s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(9)  { animation-delay: 9s; }
:is(.whatwebelieve, .pictures, .malachie, .aboutus) > *:nth-child(10) { animation-delay: 10s; }

.pictures img {
    max-width: 100%;
    width: 600px;
    height: 680px;
    padding: 15px 7px;
    border: 7px groove darkolivegreen ;
    border-radius: 20px;
    margin: auto auto;

}

.pictures p {
    font-size: 22px;
}
.revelation {
    border: 7px groove darkolivegreen ;
    border-radius: 20px;
    padding: 15px 7px;
    margin: auto auto;
    width: 70%;
}
.malachie {
    border: 7px groove darkolivegreen ;
    border-radius: 20px;
    padding: 15px 7px;
    margin: auto auto;
    width: 70%;
}

/* Upcoming Special Events page */
.special-meeting-card {
    background-image: linear-gradient(145deg, rgba(85, 107, 47, 0.12), rgba(0, 0, 0, 0.5)), url("../media/church-inner.png");
    border: 1px solid var(--glass-border);    
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
    
    width: 90%;                    
    max-width: 850px;              
    margin: 0 auto;                
    min-height: 320px;             /* Replaced max-height with a safe minimum height */
    
    /* ADD THESE FLEXBOX ENGINE LAYOUT RULES */
    display: flex;
    flex-direction: column;
    justify-content: center;       /* Centers all text vertically inside the card */
    align-items: center;           /* Centers all text horizontally */
    gap: 8px;                      /* Tightens the spacing between text blocks automatically */
    
    border-radius: 24px;
    padding: 30px 20px;            /* Tighter mobile padding */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    overflow: hidden;              
    transition: border-color 0.5s ease;
}

/* TIGHTEN INDIVIDUAL TEXT MARGINS TO PREVENT SPILL OVER */
.special-title { font-size: 2.2rem; margin-bottom: 2px; }
.guest-pastor { font-size: 1.3rem; color: var(--gold); margin-bottom: 5px; }
.event-details { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }



.special-meeting-card:hover {
    border-color: rgba(143, 188, 143, 0.3);
}

@keyframes orbPulse {
    from { opacity: 0.2; width: 300px; }
    to { opacity: 0.4; width: 450px; }
}
.badge {
    display: inline-block;
    background: rgba(100, 107, 100, 80);
    color: var(--primary-light);
    color: darkturquoise;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    border: 1px solid rgba(143, 188, 143, 0.2);
}

.special-title {
    font-size: 2rem; 
    color: white;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 30%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
}
.guest-pastor {
    font-size: 1.6rem;
    color: gainsboro;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}
.event-details {
    color: white;
    font-size: 25px;
    margin-bottom: 12px;
}
  .section-header { font-size: 1.8rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; color: white;}
            .section-header::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(to right, white, transparent); }

            .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.service-card {
    /* Safe translucent glass layout tinted with a hint of darkcyan */
    background: rgba(0, 139, 139, 0.05); 
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
} /* <-- THE CRITICAL CLOSING BRACKET FIX */

.service-card:hover { 
    transform: translateY(-5px); 
    border-color: #00ffff; /* Neon cyan border highlight on hover */
    
    /* FIX 1: Made the darkcyan slightly translucent so the inner light can pass through */
    background-color: rgba(0, 139, 139, 0.85); 
}

.card-glow {
    position: absolute; 
    bottom: -40px; 
    right: -40px; 
    width: 120px; /* Slightly larger bulb for a stronger shine */
    height: 120px;
    
    /* FIX 2: Changed from olive green to a bright bright cyan/white sun color */
    background: radial-gradient(circle, #ffffff 0%, #00ffff 70%); 
    
    filter: blur(40px); /* Tighter blur so it looks brighter */
    opacity: 0; 
    transition: opacity 0.4s ease; 
    pointer-events: none;
}

/* Turns the sun light on cleanly upon mouse entry contact */
.service-card:hover .card-glow { 
    opacity: 0.6; /* Increased opacity from 0.2 to 0.6 so it cuts through the darkcyan */
}


            /* Typography and Timers inside Cards */
            .service-day { font-size: 1.3rem; color: #fff; margin-bottom: 5px; font-weight: bold; }
            .service-time { font-size: 1rem; color: darkturquoise; margin-bottom: 25px; font-weight: 600; }
            .ticker-container { border-top: 1px solid white; padding-top: 15px; }
            .ticker-title { font-size: 0.75rem; text-transform: uppercase; color: wheat; letter-spacing: 1px; margin-bottom: 5px; }
            .ticker-timer { font-size: 1rem; font-weight: bold; color: #fff; }

/* Livestreaming page */
html {
    scroll-behavior: smooth;
}
:root {

    --page-teal: #2d5655;

    --page-teal-dark: #244948;

    --card-teal: #315d5c;

    --card-teal-dark: #294f4e;

    --border-teal: #168c92;

    --border-light: rgba(73, 178, 180, 0.55);

    --gold: #d4af37;

    --gold-light: #e8d27a;

    --white: #f7f7f2;

    --soft-white: #e5e7df;

    --muted: #c4ccc8;

    --dark-footer: #273f3e;
}
.live-bkgrd {

    margin: 0;

    min-height: 100vh;

    color: var(--white);
    background:
        radial-gradient(
            ellipse at 50% 5%,
            rgba(242, 241, 206, 0.40) 0%,
            rgba(242, 241, 206, 0.20) 20%,
            transparent 45%
        ),

        radial-gradient(
            ellipse at 50% 0%,
            rgba(91, 158, 153, 0.30),
            transparent 55%
        ),

        var(--page-teal);

    line-height: 1.6;
}

/* =========================================================================
   HERO
   ========================================================================= */

.stream-hero {

    position: relative;

    min-height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    text-align: center;
}

/*
   Large soft sunlight behind the title.
*/

.sun-glow {

    position: absolute;

    top: -170px;

    left: 50%;

    transform: translateX(-50%);

    width: 850px;

    height: 480px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(242, 241, 206, 0.26) 0%,
            rgba(242, 241, 206, 0.12) 25%,
            rgba(242, 241, 206, 0.04) 48%,
            transparent 72%
        );

    pointer-events: none;
}

.hero-content {

    position: relative;

    z-index: 2;

    width: min(
        900px,
        calc(100% - 40px)
    );

    padding:
        10px 0 70px;
}

.eyebrow {

    display: inline-block;

    margin-bottom: 12px;

    padding:
        10px 18px;

    border:
        1px solid
        rgba(22, 140, 146, 0.75);

    border-radius: 30px;

    background:
        rgba(39, 80, 79, 0.65);

    color:
        #59c7c7;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.22em;
}
.hero-content h1 {

    margin: 0;

    color: var(--white);

    font-size:
        clamp(2.6rem, 6vw, 4.5rem);

    font-weight: 700;

    line-height: 1.05;

    text-shadow:
        0 4px 20px
        rgba(0, 0, 0, 0.25);
}

.hero-content p {

    max-width: 650px;

    margin:
        18px auto 0;

    color: var(--soft-white);

    font-size:
        clamp(1rem, 2vw, 1.15rem);
}

/* =========================================================================
   MAIN STREAM SECTION
   ========================================================================= */

.stream-section {

    position: relative;

    width: min(
        1180px,
        calc(100% - 30px)
    );

    margin:
        -15px auto 80px;

    z-index: 5;
}
.stream-container {
    width: 100%;
}
/* =========================================================================
   OFFLINE PANEL
   ========================================================================= */

.live-offline-panel {

    width: 100%;
}


.offline-card {

    position: relative;

    overflow: hidden;

    padding:
        clamp(35px, 6vw, 65px);

    text-align: center;

    background:

        /*
           Sunlight remains behind the border/card.
        */
        radial-gradient(
            ellipse at 50% 0%,
            rgba(242, 241, 206, 0.14),
            transparent 42%
        ),

        linear-gradient(
            145deg,
            var(--card-teal),
            var(--card-teal-dark)
        );

    border:
        1px solid
        var(--border-teal);

    border-radius:
        22px;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.22);
}

/*
   Soft internal light.
*/

.offline-card::before {

    content: "";

    position: absolute;

    top: -160px;

    left: 50%;

    transform:
        translateX(-50%);

    width: 700px;

    height: 330px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(242, 241, 206, 0.12),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================================
   OFFLINE STATUS
   ========================================================================= */
.status-icon {

    position: relative;

    width: 64px;

    height: 64px;

    margin:
        0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(22, 140, 146, 0.75);

    border-radius: 50%;

    background:
        rgba(35, 91, 90, 0.45);
}
.status-dot {

    width: 15px;

    height: 15px;

    border-radius: 50%;

    background:
        #8c9995;

    box-shadow:
        0 0 0 7px
        rgba(140, 153, 149, 0.12);
}
.status-label {

    position: relative;

    color:
        #5ed0d0;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.20em;
}

.offline-card h2 {
    position: relative;
    margin:
        12px auto 12px;

    color: var(--white);

    font-size:
        clamp(1.7rem, 4vw, 2.6rem);

    line-height: 1.2;
}
.offline-message {

    position: relative;

    max-width: 650px;

    margin: 0 auto;

    color: var(--soft-white);

    font-size: 1rem;
}
/* =========================================================================
   NEXT SERVICE BOX
   ========================================================================= */

.next-service-box {

    position: relative;

    max-width: 700px;

    margin:
        35px auto 0;

    padding:
        clamp(28px, 5vw, 42px);

    background:
        rgba(25, 70, 69, 0.58);

    border:
        1px solid
        rgba(22, 140, 146, 0.80);

    border-radius:
        15px;

    box-shadow:
        inset 0 0 25px
        rgba(0, 0, 0, 0.08);
}
.next-service-heading {

    color:
        #65caca;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.20em;
}


.next-service-name {

    margin-top: 8px;

    color: var(--white);

    font-size:
        clamp(1.5rem, 4vw, 2.2rem);

    font-weight: 700;
}
.next-service-time {

    margin-top: 5px;

    color:
        #d5dcda;

    font-size: 1rem;
}


.countdown-divider {

    width: 65px;

    height: 1px;

    margin:
        24px auto;

    background:
        #a9bdb8;
}
.countdown-label {

    color:
        #c2cbc7;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.18em;
}
.master-stream-ticker {

    margin-top: 8px;

    color:
        #62cccc;

    font-family:
        "Courier New",
        monospace;

    font-size:
        clamp(1.35rem, 4.5vw, 2.35rem);

    font-weight: 700;

    letter-spacing: 0.02em;
}

.logan-note {

    margin-top: 12px;

    color:
        #aebbb7;

    font-size: 0.75rem;
}

/* =========================================================================
   OFFLINE FOOTER MESSAGE
   ========================================================================= */

.offline-footer {

    position: relative;

    margin-top: 25px;

    color:
        #d0d8d4;

    font-size: 0.92rem;
}

.live-online-panel {

    display: none;

    width: 100%;

    overflow: hidden;

    background:
        #172d2c;

    border:
        1px solid
        var(--border-teal);

    border-radius:
        22px;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.28);
}
/* =========================================================================
   YOUTUBE LIVE VIDEO
   ========================================================================= */

.live-online-panel iframe {

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    min-height: 500px;

    border: 0;

    border-radius: 22px;

}

.home-footer {
    padding:
        30px 20px;

    text-align: center;

    background:
        var(--dark-footer);

    border-top:
        1px solid
        rgba(73, 178, 180, 0.35);
}


.home-footer p {
    margin: 0;

    color:
        var(--muted);

    font-size:
        0.85rem;
}
/* Laptop and Desktop viewport */
@media (min-width: 1025px) {
    .hamburger-btn {
        display: none; /* Hidden on big laptop and desktop viewports */
    }
    body{
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("../media/background.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
        margin: 0;
        padding: 0;
    }
    .main-header .logo {
        margin-left: auto;
    }
    .nav-bar {
        position: static;
        width: auto;
        padding: 0;
        background-color: transparent;
    }
    .main-header{
        display: flex;
        align-items: center;
        justify-content: space-between; 
        padding: 15px;
        border-bottom: 5px solid #e0e0e0;
        max-width: 950px;       /* Limits the header width to match your body content */
        margin:  0 auto;          /* Centers the container horizontally on the screen */
    }
    .header-bkgd{
        position: -webkit-sticky;
        position: sticky;
        background-color: #555555;
        top: 0;
        z-index: 1000;
        width: 100%;
    }
    .nav-bar ul {
        display: flex;
        flex-direction: row;
        margin: 0;
        padding: 0;       
        list-style: none; 
        gap: 20px;
              
    }
    .nav-bar li {
        list-style: none;
        font-size: 20px;
    }
    .nav-bar a {
        text-decoration: none;
        color: white;
        display: inline-block;     /* Allows the link to hold padding perfectly */
        padding: 8px 15px;         /* Equal padding on top/bottom (8px) and left/right (15px) */
        border-radius: 8px;
    }
    .nav-bar a:hover{
        color: goldenrod;
        background-color: black;
        transition: 1.5s ease;
    }
    .forms-fieldsets{
        flex-direction: row;
        display: flex;
    }
    .forms-fieldsets fieldset {
        flex: 1;
    }
    .special-title {
        font-size: 3.2rem;
    }
}



