    /* ==========================================
   CSS VARIABLES
========================================== */

:root{
    --fire:#ff5a00;
    --white:#fff;
    --white-04:rgba(255,255,255,.04);
    --white-08:rgba(255,255,255,.08);
    --white-15:rgba(255,255,255,.15);
    --white-40:rgba(255,255,255,.40);
}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#151515;
    color:#fff;
    overflow-x:hidden;
}

/* ==========================================
   HEADER
========================================== */

#header{
    background:transparent;
    position:fixed;
    top:0;
    left:0;

    width:100%;

    padding:30px 70px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    z-index:999;

    transition:.4s ease;
}

#header.hide{
    transform:translateY(-120%);
    opacity:0;
}

/* ==========================================
   LOGO
========================================== */

.logo{
    display:flex;
    align-items:center;
    gap:15px;

    /* The logo is now a clickable link (back to home) —
       remove the default underline/link styling so it still
       looks like a plain logo, not a text link */
    text-decoration:none;
    cursor:pointer;
}

.logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.logo h3{
    font-size:1.4rem;
    font-weight:800;
    letter-spacing:2px;
    color:#fff;
}

.logo span{
    font-size:.75rem;
    color:rgba(255,255,255,.75);
}

/* ==========================================
   NAVIGATION
========================================== */

nav{
    display:flex;
    gap:45px;
}

nav a{
    text-decoration:none;
    color:#fff;

    font-size:.9rem;
    font-weight:600;

    letter-spacing:1px;

    position:relative;

    transition:.3s;
}

nav a:hover{
    color:#ff5a00;
}

nav a.active{
    color:#ff5a00;
}

nav a.active::after{
    content:'';

    position:absolute;

    left:0;
    bottom:-10px;

    width:100%;
    height:2px;

    background:#ff5a00;
}

/* ==========================================
   HEADER ACTIONS
========================================== */

.header-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.search-btn,
.menu-btn{
    border:none;
    outline:none;
    cursor:pointer;

    color:#fff;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    transition:.3s;
}

.search-btn{
    width:50px;
    height:50px;
    border-radius:50%;
}

.menu-btn{
    padding:15px 20px;
    border-radius:50px;

    display:flex;
    gap:10px;
    align-items:center;
}

.search-btn:hover,
.menu-btn:hover{
    background:#ff5a00;
}

/* ==========================================
   SEARCH OVERLAY
========================================== */

.search-overlay{
    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:.4s;

    z-index:9999;
}

.search-overlay.active{
    opacity:1;
    visibility:visible;
}

.search-box{
    width:800px;
    max-width:90%;

    position:relative;

    display:flex;
    gap:15px;
}

.search-box input{
    flex:1;

    height:70px;

    border:none;
    outline:none;

    background:#111;

    color:#fff;

    padding:0 25px;

    font-size:1.1rem;

    border-radius:12px;
}

.search-submit{
    width:150px;

    border:none;

    cursor:pointer;

    border-radius:12px;

    background:#ff5a00;

    color:#fff;

    font-weight:700;

    transition:.3s;
}

.search-submit:hover{
    opacity:.85;
}

.close-search{
    position:absolute;

    right:0;
    top:-60px;

    width:45px;
    height:45px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    color:#fff;

    background:#ff5a00;
}

/* ==========================================
   MOBILE MENU OVERLAY
========================================== */

.mobile-menu{
    position:fixed;
    inset:0;
    z-index:9999;

    display:flex;

    opacity:0;
    pointer-events:none;

    transition:.5s ease;
}

.mobile-menu.active{
    opacity:1;
    pointer-events:auto;
}

.menu-left{
    flex:1;
    background:transparent;
    backdrop-filter:none;
}

.menu-right{
    width:520px;
    height:100vh;

    background:#151515;

    padding:80px 70px;

    position:relative;

    border-left:1px solid rgba(255,255,255,.08);

    transform:translateX(100%);
    transition:transform .75s cubic-bezier(.77,0,.175,1);
}

.mobile-menu.active .menu-right{
    transform:translateX(0);
}

.close-menu{
    position:absolute;

    left:-32px;
    top:50%;

    transform:translateY(-50%);

    width:64px;
    height:64px;

    border:2px solid rgba(255,255,255,.15);
    border-radius:50%;

    background:#151515;

    color:#fff;

    font-size:24px;

    transition:.35s ease;
    cursor:pointer;
}

.close-menu:hover{
    border-color:#ff5a00;
    color:#ff5a00;

    transform:translateY(-50%) rotate(90deg);
}

/* ==========================================
   PAGE MOVEMENT (menu open effect)
========================================== */

.page-content{
    position:relative;
    min-height:100vh;
    background:#000;

    transform-origin:top left;

    transition:
        transform .8s cubic-bezier(.77,0,.175,1),
        border-radius .8s cubic-bezier(.77,0,.175,1),
        margin-top .8s cubic-bezier(.77,0,.175,1);

    z-index:100;
}

.page-content.menu-open{
    margin-top:12vh;

    transform:
        perspective(1800px)
        translateX(-18%)
        scale(.85);

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 40px 120px rgba(0,0,0,.45);
}

/* ==========================================
   MENU SCROLL + SECTIONS
========================================== */

.menu-scroll{
    height:100%;
    overflow-y:auto;

    padding-right:10px;
}

.menu-section{
    margin-bottom:28px;
}

.menu-section h2{
    font-size:1.8rem;
    font-weight:800;

    color:#fff;

    margin-bottom:22px;

    letter-spacing:-1px;
}

.menu-item{
    display:flex;
    gap:16px;

    margin-bottom:24px;

    cursor:pointer;

    transition:.3s ease;
}

.menu-item:hover{
    transform:translateX(8px);
}

.menu-item i{
    width:24px;
    color:#fff;
    font-size:1rem;
    margin-top:5px;
    transition:.3s ease;
}

.menu-item h3{
    color:#fff;
    font-size:1.15rem;
    font-weight:600;
    margin-bottom:4px;
    transition:.3s ease;
}

.menu-item p{
    color:rgba(255,255,255,.65);
    font-size:.85rem;
    line-height:1.5;
}

.menu-item:hover h3{
    color:#ff5a00;
}

.menu-link{
    display:flex;
    align-items:center;

    gap:14px;

    padding:12px 0;

    cursor:pointer;

    transition:.3s ease;
}

.menu-link i{
    width:22px;
    color:#fff;
    font-size:.9rem;
    transition:.3s ease;
}

.menu-link span{
    color:#fff;
    font-size:1rem;
    font-weight:500;
    transition:.3s ease;
}

.menu-link:hover{
    transform:translateX(8px);
}

.menu-link:hover span{
    color:#ff5a00;
}

.menu-link.active{
    color:#fff;
}

.menu-section a{
    display:block;
    color:#fff;
    text-decoration:none;
    font-size:1.1rem;
    font-weight:500;
    margin-bottom:16px;
    transition:.3s ease;
}

.menu-section a:visited{
    color:#fff;
}

.menu-section a:hover{
    color:#ff5a00;
    transform:translateX(8px);
}

.menu-card{
    margin-top:40px;
    padding-top:30px;
    border-top:1px solid rgba(255,255,255,.08);
}

.menu-card p{
    color:rgba(255,255,255,.7);
    line-height:1.8;
    margin-bottom:20px;
}

.menu-btn-primary{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s ease;
}

.menu-btn-primary:hover{
    color:#ff5a00;
    transform:translateX(8px);
}

.menu-scroll::-webkit-scrollbar{
    width:4px;
}

.menu-scroll::-webkit-scrollbar-track{
    background:transparent;
}

.menu-scroll::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.35);
    border-radius:50px;
}

.menu-scroll::-webkit-scrollbar-thumb:hover{
    background:#fff;
    box-shadow:
        0 0 10px rgba(255,255,255,.9),
        0 0 20px rgba(255,255,255,.4);
}

/* ==========================================
   SCROLL INDICATOR (shared component)
   ------------------------------------------
   The round bouncing down-arrow button, copied from
   index.html (style.css) so every page can use the exact
   same "scroll to explore" visual. Pairs with the existing
   .hero-scroll-label / .hero-scroll-line text+line already
   used in sermons.html / beliefs.html / prayer.html.
========================================== */

.scroll-circle{
    width:55px;
    height:55px;

    border-radius:50%;

    border:1px solid rgba(255,255,255,.3);

    display:flex;
    justify-content:center;
    align-items:center;

    color:var(--white);

    backdrop-filter:blur(10px);

    animation:scrollBounce 2s infinite;

    flex-shrink:0;
}

/* Renamed from index's "bounce" to avoid clashing with any
   other "bounce" keyframes a page-specific CSS file might use */
@keyframes scrollBounce{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(10px);
    }

}

/* Wrapper that centers the .scroll-circle button + label as
   a stacked column (circle on top, label below), exactly like
   index.html's #scrollIndicator. Positioned at the bottom of
   whatever hero/page-header it's placed inside (which must be
   position:relative for this to anchor correctly). */
.hero-scroll-indicator{
    /* Fixed to the viewport (not the hero section) — so it
       follows along at the bottom of the screen while scrolling,
       exactly like index.html's #scrollIndicator, instead of
       being left behind once the hero scrolls out of view. */
    position:fixed;
    left:50%;
    bottom:28px;
    transform:translateX(-50%);

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;

    z-index:500;

    /* Smooth fade when JS toggles opacity on scroll
       (see sermons.js / beliefs.js) */
    transition:opacity .4s ease;
}

.hero-scroll-indicator span{
    font-size:.7rem;
    letter-spacing:3px;
    text-transform:uppercase;
    color:rgba(255,255,255,.8);
}

/* ==========================================
   GLASS UTILITY
========================================== */

.glass{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.08);
}

/* ==========================================
   WILL-CHANGE HELPERS
========================================== */

.hero-item{
    will-change:transform,opacity;
}

.parallax{
    will-change:transform;
}

/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#ff5a00;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#ff7b33;
}

/* ==========================================
   SIDE TAB (shared component)
   ------------------------------------------
   A small fixed orange tab pinned to the left
   edge of the screen, rotated 90°, that links
   back to a related page (e.g. the main site
   from sermons.html / beliefs.html).

   Previously this was duplicated in both
   sermons.css and beliefs.css with identical
   code — it now lives here once, so any future
   page using class="pp-side-tab" automatically
   gets the same look and behavior, and we only
   ever need to update it in one place.
========================================== */

.pp-side-tab{
    /* Pin to the left edge, vertically centered */
    position:fixed;
    left:18px;
    top:50%;

    /* Starts invisible, off-screen to the left;
       the slide-in animation below brings it in */
    opacity:0;
    transform:translateY(-50%) rotate(-90deg) translateX(-100%);
    transform-origin:left center;

    /* Plays once on page load, after a short delay,
       so it doesn't compete with other entrance animations */
    animation:tabSlideIn .6s cubic-bezier(.25,.46,.45,.94) 1s forwards;

    /* Smooth transition for any state changes after
       the initial animation (e.g. our hover effect below) */
    transition:transform .3s ease, opacity .3s ease, background .3s ease, box-shadow .3s ease;

    background:var(--fire);
    color:var(--white);
    text-decoration:none;

    font-size:.7rem;
    font-weight:700;
    letter-spacing:3px;
    text-transform:uppercase;

    padding:12px 24px;

    display:flex;
    align-items:center;
    gap:10px;

    z-index:998;
}

/* HOVER STATE — gives a clear visual cue that the tab
   is clickable.

   IMPORTANT: sermons.js / beliefs.js / prayer.js set
   `tab.style.transform` directly (inline style) to handle
   the scroll show/hide + entrance animation. An inline style
   always wins over a CSS class rule for the same property —
   so a `transform` here on .pp-side-tab itself would be
   silently ignored once the page has loaded. That's why the
   "movement" cue below is applied to the icon (`i`) instead,
   which JS never touches, while the glow/color change still
   applies normally to the tab itself. */
.pp-side-tab:hover{
    opacity:1;
    background:#ff7b33;
    color:var(--white);

    /* Stronger glow so the change is obvious even though
       we can't safely move the tab itself on hover */
    box-shadow:0 0 20px rgba(255,90,0,.7), 0 0 4px rgba(255,255,255,.35);
}

/* The icon nudges forward on hover — this is the "it moved"
   cue, placed on the icon instead of the tab so it isn't
   overridden by JS's inline transform on the tab element */
.pp-side-tab i{
    transition:transform .25s ease;
}

.pp-side-tab:hover i{
    transform:translateX(4px);
}

/* Slide-in entrance animation, played once when the page loads */
@keyframes tabSlideIn{
    from{
        opacity:0;
        transform:translateY(-50%) rotate(-90deg) translateX(-100%);
    }
    to{
        opacity:1;
        transform:translateY(-50%) rotate(-90deg) translateX(0%);
    }
}

/* Respect users who prefer reduced motion: skip the
   animation entirely and just show the tab in its final state */
@media (prefers-reduced-motion: reduce){
    .pp-side-tab{
        animation:none;
        transition:none;
        opacity:1;
        transform:translateY(-50%) rotate(-90deg) translateX(0%);
    }
}

/* On smaller screens, don't hide the side tab completely —
   just shrink it down (smaller padding, font, and letter
   spacing) so it becomes a slim strip. This keeps it usable
   as a "back to home" shortcut on mobile, while taking up
   much less space so it no longer overlaps/covers written
   content sitting behind it. */
@media (max-width: 800px){
    .pp-side-tab{
        padding:8px 14px;
        font-size:.58rem;
        letter-spacing:1.5px;
        gap:6px;
    }

    .pp-side-tab i{
        font-size:.65rem;
    }
}

/* ==========================================
   RESPONSIVE — shared
========================================== */

@media(max-width:991px){

    #header{
        padding:30px 15px;
    }

    nav{
        display:none;
    }

    .logo{
        gap:10px;
    }

    .logo img{
        width:50px;
        height:50px;
    }

    .menu-right{
        width:100vw;
        padding:70px 30px 40px;
    }

    /* .close-menu intentionally left unstyled here —
       index.html (style.css) has no mobile override either,
       so the button keeps the same left:-32px/top:50% position
       at every screen size. Keeping shared.css consistent with
       that. */

}

@media(max-width:768px){

    .search-box{
        flex-direction:column;
        max-width:calc(100% - 40px);
    }

    .search-submit{
        width:100%;
        height:60px;
    }

}

@media(max-width:480px){

    #header{
        padding:30px 12px;
    }

    .logo{
        gap:8px;
    }

    .logo img{
        width:44px;
        height:44px;
    }

    .logo h3{
        font-size:1rem;
        letter-spacing:1px;
    }

    .logo span{
        font-size:.65rem;
    }

    .menu-right{
        width:100vw;
        padding:60px 22px 36px;
    }

    .menu-section h2{
        font-size:1.6rem;
        margin-bottom:16px;
    }

    .menu-card{
        margin-top:24px;
        padding-top:22px;
    }

}
