/*
Theme Name: Kingdom Life Remnant Child
Theme URI: https://www.kingdomliferemnant.com
Description: World-Class Solid Red & White Theme with Premium Micro-Interactions for Kingdom Life Remnant.
Author: Kingdom Life Remnant
Author URI: https://www.kingdomliferemnant.com
Template: astra
Version: 1.5.1
Text Domain: klr-app-child
*/

/* ==========================================================================
   GLOBAL BRAND COLORS (SOLID & HIGH IMPACT)
   ========================================================================== */
:root {
    --klr-deep-burgundy: #4D000A; /* Premium deep solid red for top bar */
    --klr-vibrant-scarlet: #C60018; /* High-impact vibrant red for header */
    --klr-white: #FFFFFF;
    
    /* Solid Brand Button Colors */
    --klr-fb-brand: #1877F2;
    --klr-yt-brand: #FF0000;
    --klr-meet-brand: #00897B;
}

/* ==========================================================================
   1. TOP BAR (Sleek, High Contrast)
   ========================================================================== */
.klr-top-bar {
    background-color: var(--klr-deep-burgundy);
    color: var(--klr-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 11px 24px;
    z-index: 9999;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12); /* Crisp structural separator */
}

.klr-top-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.klr-phone-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.5px;
}

.klr-phone-left a {
    color: var(--klr-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.klr-phone-left a:hover {
    opacity: 0.85;
}

.klr-social-buttons-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Premium Solid Pill Buttons (Micro-Interactions) */
.klr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 50px; /* Pill-shape */
    color: var(--klr-white) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.klr-btn-fb { background-color: var(--klr-fb-brand); }
.klr-btn-yt { background-color: var(--klr-yt-brand); }
.klr-btn-meet { background-color: var(--klr-meet-brand); }

/* Hover Effects: Gentle Scale & Soft Neon Brand Ambient Glow */
.klr-btn-fb:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45);
}

.klr-btn-yt:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.45);
}

.klr-btn-meet:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(0, 137, 123, 0.45);
}

.klr-top-icon, .klr-btn-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.klr-btn-text-tablet {
    display: none;
}

/* ==========================================================================
   2. MAIN HEADER (Vibrant Crimson Sticky Navigation with Glass Blur)
   ========================================================================== */
.klr-main-header {
    position: sticky;
    top: 0;
    z-index: 9998;
    background: rgba(198, 0, 24, 0.85) !important; 
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.klr-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.klr-brand-wrap .klr-brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

/* Premium Logo Badge with Outer Ring & Elastic Hover Scaling */
.klr-logo-circle,
.klr-logo-fallback {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-vibrant-scarlet);
    font-weight: 800;
    font-size: 17px;
    font-family: -apple-system, sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.klr-logo-circle {
    object-fit: cover;
}

/* Elastic scale rotation on entire brand identity hover */
.klr-brand-link:hover .klr-logo-circle,
.klr-brand-link:hover .klr-logo-fallback {
    transform: scale(1.08) rotate(3deg);
}

/* Premium Typography styling */
.klr-title-meta {
    display: flex;
    flex-direction: column;
}

.klr-site-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    font-size: 25px;
    color: var(--klr-white);
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    -webkit-font-smoothing: antialiased;
}

.klr-site-tagline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Desktop Navigation Menu Links */
.klr-desktop-nav .klr-desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
}

.klr-desktop-nav .klr-desktop-menu a {
    color: var(--klr-white);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 0;
    position: relative;
    opacity: 0.85;
    transition: all 0.25s ease;
    display: inline-block;
}

.klr-desktop-nav .klr-desktop-menu a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Sleek Active Link Glowing Underline */
.klr-desktop-nav .klr-desktop-menu .current-menu-item a {
    opacity: 1;
}

.klr-desktop-nav .klr-desktop-menu .current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8%;
    width: 84%;
    height: 3px;
    background-color: var(--klr-white);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 3px var(--klr-white);
}

/* Minimalist Hamburger Toggle Button */
.klr-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    padding: 0;
}

.klr-hamburger-bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--klr-white);
    border-radius: 10px;
    transition: transform 0.35s cubic-bezier(0.4, 0.01, 0.165, 0.99), opacity 0.25s;
}

.klr-mobile-toggle.is-active .klr-hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.klr-mobile-toggle.is-active .klr-hamburger-bar:nth-child(2) {
    opacity: 0;
}
.klr-mobile-toggle.is-active .klr-hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   3. FORCE ASTRA TO GO FULL WIDTH (Unboxing & Deactivating Desktop Flexbox)
   ========================================================================== */
.page-template-template-homepage .site,
.page-template-template-homepage #page,
.page-template-template-homepage .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Deactivates desktop flex constraints to prevent PC layout collapse */
.page-template-template-homepage .site-content,
.page-template-template-homepage .site-content .ast-container,
.page-template-template-homepage #content,
.page-template-template-homepage #primary,
.page-template-template-homepage #main {
    display: block !important;
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force-hide Astra Sidebar to prevent alignment conflicts on this template */
.page-template-template-homepage #secondary {
    display: none !important;
}

/* ==========================================================================
   4. HOMEPAGE HERO SLIDER LAYOUT (PC Full View & 2s Smooth Crossfade)
   ========================================================================== */
.klr-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* True Viewport Height on PC */
    min-height: 600px;
    background-color: #0b0f19;
    overflow: hidden;
}

.klr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    /* Soft 2-second crossfade ease transition */
    transition: opacity 2s ease-in-out; 
    display: flex;
    align-items: center;
}

/* Fades in smoothly directly on top of the old slide layer */
.klr-slide.active {
    opacity: 1;
    z-index: 2; 
}

/* Smooth Background Zoom Layer (Saves outgoing state, NO Snap-Back Hitch!) */
.klr-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.03); /* Idle scale */
    transition: transform 8s ease-in-out; /* Slow, elegant zoom duration */
    will-change: transform;
}

/* When the slide active state is triggered, slowly scale to 1.12 */
.klr-slide.active .klr-slide-bg {
    transform: scale(1.12);
}

/* Slide Darkness overlay */
.klr-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 15, 25, 0.8) 0%, rgba(11, 15, 25, 0.35) 100%);
    z-index: 2;
}

/* Content Container positioning */
.klr-hero-content-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 3;
}

/* ==========================================================================
   5. 3D GLASSMORPHISM CARD (Netflix / Apple Hybrid)
   ========================================================================== */
.klr-glass-card {
    max-width: 580px;
    background: rgba(15, 18, 25, 0.65); /* Immersive dark Netflix-style base */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.klr-glass-card-tag {
    display: inline-block;
    color: #C60018; /* Solid crimson */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.klr-glass-card-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 38px;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.klr-glass-card-desc {
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* CTA Buttons Layout */
.klr-glass-card-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.klr-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Glossy Action Button with Shine Sweep Overlay */
.klr-cta-primary {
    background-color: #C60018;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(198, 0, 24, 0.35);
    position: relative;
    overflow: hidden;
}

.klr-cta-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(198, 0, 24, 0.5);
    filter: brightness(1.1);
}

.klr-cta-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.klr-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1.5px);
}

/* Dot Navigation layout */
.klr-slider-dots {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.klr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.klr-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 8px #ffffff;
}

/* ==========================================================================
   CTA BUTTONS LAYOUT (Apple Premium 3D Glassmorphism)
   ========================================================================== */
.klr-glass-card-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 1. PRIMARY BUTTON: Red 3D Glassmorphic Capsule */
.klr-cta-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 32px !important;
    border-radius: 50px !important; /* Enforces a premium pill layout */
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    color: #ffffff !important;
    
    /* Elegant 3D Glassmorphic Red Gradient Base */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(198, 0, 24, 0.75) 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    
    /* Razor thin white 3D highlighted border */
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    
    /* Top inside rim reflection & ambient neon red glow */
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 15px rgba(198, 0, 24, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Diagonal metallic gloss sweep hover effect */
.klr-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
}

.klr-cta-primary:hover::before {
    left: 150%;
    transition: left 0.75s ease-in-out;
}

.klr-cta-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(198, 0, 24, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Organic click feedback */
.klr-cta-primary:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(198, 0, 24, 0.45) !important;
}

/* 2. SECONDARY BUTTON: Dark Translucent Glass capsule */
.klr-cta-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #ffffff !important;
    
    /* Apple Dark Translucent Base Gradient */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.klr-cta-secondary:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.klr-cta-secondary:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   6. MOBILE DROPDOWN DRAWER
   ========================================================================== */
.klr-mobile-dropdown {
    display: none;
    background: var(--klr-deep-burgundy);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    z-index: 9997;
    border-bottom: 3px solid var(--klr-vibrant-scarlet);
}

.klr-mobile-dropdown.is-active {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.klr-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 20px 24px;
}

.klr-mobile-menu li {
    margin-bottom: 18px;
}

.klr-mobile-menu li:last-child {
    margin-bottom: 0;
}

.klr-mobile-menu a {
    color: var(--klr-white);
    text-decoration: none;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    display: block;
    padding: 6px 0;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.klr-mobile-menu a:hover {
    opacity: 1;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 921px) {
    .klr-desktop-nav {
        display: none;
    }
    .klr-mobile-toggle {
        display: flex;
    }
    .klr-btn-text {
        display: none;
    }
    .klr-btn-text-tablet {
        display: inline;
    }
}

@media (max-width: 768px) {
    .klr-hero-slider {
        height: 75vh;
    }
    .klr-glass-card {
        padding: 30px;
        margin: 0 auto;
        text-align: center;
    }
    .klr-glass-card-actions {
        justify-content: center;
    }
    .klr-glass-card-title {
        font-size: 30px;
    }
    .klr-slider-dots {
        right: 0;
        left: 0;
        justify-content: center;
        bottom: 20px;
    }
}

@media (max-width: 544px) {
    .klr-top-bar {
        padding: 8px 16px;
    }
    .klr-top-container {
        flex-direction: column;
        gap: 12px;
    }
    .klr-social-buttons-right {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }
    .klr-btn {
        padding: 9px;
        border-radius: 50%;
    }
    .klr-btn-text-tablet {
        display: none;
    }
    .klr-main-header {
        padding: 12px 16px;
    }
    .klr-logo-circle,
    .klr-logo-fallback {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }
    .klr-site-title {
        font-size: 19.5px;
    }
    .klr-site-tagline {
        font-size: 9.5px;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   8. WELCOME & OUR IDENTITY SECTION (Dual-Column Glass layout) [1]
   ========================================================================== */
.klr-welcome-section {
    background-color: #0b0f19; /* Pure dark mode background matching the slider base */
    padding: 100px 24px;
    color: var(--klr-white);
    position: relative;
    overflow: hidden;
}

.klr-welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
}

/* Left Column: Co-Founder Profile Card */
.klr-welcome-bio-col {
    display: flex;
    justify-content: center;
}

.klr-bio-glass-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.03); /* Subtle, premium translucent glass */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Scale & Soft Glow */
.klr-bio-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(198, 0, 24, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Bio Avatar placeholder (Polished Crimson Ring) */
.klr-bio-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(198, 0, 24, 0.2) 0%, rgba(77, 0, 10, 0.6) 100%);
    border: 2px solid var(--klr-vibrant-scarlet);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(198, 0, 24, 0.3);
}

.klr-bio-icon {
    width: 40px;
    height: 40px;
    fill: var(--klr-white);
    opacity: 0.85;
}

.klr-bio-names {
    font-family: "Georgia", serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 6px 0;
}

.klr-bio-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin: 0 0 20px 0;
}

.klr-bio-divider {
    width: 50px;
    height: 2px;
    background-color: var(--klr-vibrant-scarlet);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.klr-bio-quote {
    font-style: italic;
    font-family: "Georgia", serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.klr-bio-location {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--klr-vibrant-scarlet);
    background: rgba(198, 0, 24, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(198, 0, 24, 0.25);
}

/* Right Column: Premium Text styling */
.klr-welcome-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.klr-section-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.klr-section-title {
    font-family: "Georgia", serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.klr-welcome-letter p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
}

.klr-welcome-letter p.lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--klr-white);
    font-weight: 500;
    margin-bottom: 25px;
}

/* Handcrafted Sign-off styling */
.klr-welcome-signoff {
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

.signoff-with-love {
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 10px 0;
}

.signoff-names {
    font-family: "Georgia", serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 4px 0;
}

.signoff-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive adjustments for welcome layout */
@media (max-width: 921px) {
    .klr-welcome-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .klr-welcome-bio-col {
        order: 2; /* Bio card slides below text on mobile views */
    }
    .klr-welcome-text-col {
        order: 1;
        text-align: center;
    }
    .klr-section-title {
        font-size: 34px;
    }
    .klr-welcome-signoff {
        text-align: center;
    }
}

/*MISSION & VISSION*/
/* ==========================================================================
   9. REDESIGNED ABOUT, VISION, MISSION & CORE BELIEFS STYLING [1, 2]
   ========================================================================== */
.klr-about-beliefs-section {
    background-color: #0b0f19;
    padding: 120px 24px;
    color: var(--klr-white);
}

/* Part A: About Us & Overlapping Mandate Gallery [1] */
.klr-about-story-container {
    max-width: 1200px;
    margin: 0 auto 140px auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
}

.klr-story-gallery-col {
    position: relative;
    width: 100%;
}

/* Base Image Wrapper (PC) [1] */
.klr-about-image-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(77, 0, 10, 0.4) 0%, rgba(15, 18, 25, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.klr-about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.klr-about-image-wrapper:hover .klr-about-main-img {
    transform: scale(1.03);
}

/* 3D Overlapping Mandate Card [1] */
.klr-mandate-floating-card {
    position: absolute;
    bottom: -35px;
    left: -35px;
    z-index: 10;
    width: 82%;
    background: rgba(15, 18, 25, 0.7); /* Translucent base */
    border: 1px solid rgba(198, 0, 24, 0.28); /* Crimson highlights */
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.klr-mandate-floating-card:hover {
    transform: translateY(-5px);
    border-color: rgba(198, 0, 24, 0.45);
    box-shadow: 0 25px 50px rgba(198, 0, 24, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.klr-card-accent-tag {
    display: inline-block;
    color: var(--klr-vibrant-scarlet);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.klr-mandate-title {
    font-family: "Georgia", serif;
    font-size: 24px;
    line-height: 1.4;
    color: var(--klr-white);
    margin: 0;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.klr-story-text-col {
    display: flex;
    flex-direction: column;
}

.klr-story-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--klr-white);
    font-weight: 500;
    margin-bottom: 25px;
}

.klr-story-body {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Part B: Vision & Mission Power Cards (Netflix Immersive Backgrounds) [2] */
.klr-vision-mission-container {
    max-width: 1200px;
    margin: 0 auto 140px auto;
}

.klr-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.klr-vm-card {
    position: relative;
    border-radius: 16px;
    min-height: 380px;
    display: flex;
    align-items: flex-end; /* Text sits cleanly on bottom */
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dynamic Image Placeholders - Background Mode [2] */
.klr-vision-card {
    /* Paste your custom Vision Image link inside url() below [2] */
    background: url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/mandate.png') no-repeat;
}

.klr-mission-card {
    /* Paste your custom Mission Image link inside url() below [2] */
    background: url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/mumo6.png') no-repeat;
}

/* Overlay gradient dims background images for readable text [2] */
.klr-vm-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.3) 0%, rgba(11, 15, 25, 0.95) 100%);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.klr-vision-card .klr-vm-card-overlay {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.3) 0%, rgba(42, 0, 6, 0.96) 100%);
}

.klr-vm-card-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.klr-vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.klr-vm-card:hover .klr-vm-card-overlay {
    opacity: 0.85;
}

.klr-vm-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.klr-vm-card:hover .klr-vm-icon-wrap {
    background: rgba(198, 0, 24, 0.3);
    border-color: rgba(198, 0, 24, 0.5);
}

.klr-vm-icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: var(--klr-white);
}

.klr-vm-title {
    font-family: "Georgia", serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 10px 0;
}

.klr-vm-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Part C: Our Core Beliefs Split Split (Vertical Anchor Image + Pillars Grid) [2] */
.klr-beliefs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.klr-beliefs-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.klr-beliefs-intro {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Split Layout grid [2] */
.klr-beliefs-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: stretch;
}

/* Left Column: Anchor Image [2] */
.klr-beliefs-anchor-col {
    position: relative;
    width: 100%;
}

.klr-beliefs-anchor-image-wrapper {
    position: sticky;
    top: 110px; /* Sticks neatly as you scroll the beliefs list */
    width: 100%;
    height: 615px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(77, 0, 10, 0.4) 0%, rgba(15, 18, 25, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.klr-beliefs-anchor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.klr-beliefs-anchor-image-wrapper:hover .klr-beliefs-anchor-img {
    transform: scale(1.04);
}

.klr-beliefs-anchor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.9) 100%);
    z-index: 2;
}

.klr-beliefs-anchor-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 3;
}

.klr-anchor-title {
    font-family: "Georgia", serif;
    font-size: 26px;
    line-height: 1.3;
    color: var(--klr-white);
    margin: 0;
    font-weight: 700;
}

/* Right Column: Pillars Grid [2] */
.klr-beliefs-grid-col {
    width: 100%;
}

.klr-beliefs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.klr-belief-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.klr-belief-card:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 0, 24, 0.28); /* Glow Crimson */
    box-shadow: 0 10px 25px rgba(198, 0, 24, 0.08);
}

/* Grid adjustment for the last center belief [2] */
.klr-belief-full {
    grid-column: span 2;
}

.klr-belief-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(198, 0, 24, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid rgba(198, 0, 24, 0.15);
}

.klr-belief-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--klr-white);
}

.klr-belief-title {
    font-family: -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 8px 0;
}

.klr-belief-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 921px) {
    .klr-about-story-container {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 80px;
    }
    .klr-story-gallery-col {
        order: 2; /* Mandate card slides below text on mobile views */
    }
    .klr-mandate-floating-card {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 20px;
        padding: 30px;
    }
    .klr-about-image-wrapper {
        height: 380px;
    }
    .klr-story-text-col {
        order: 1;
        text-align: center;
    }
    .klr-story-lead {
        font-size: 17px;
    }
    .klr-vm-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .klr-vision-mission-container {
        margin-bottom: 80px;
    }
    .klr-beliefs-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .klr-beliefs-anchor-col {
        display: none; /* Hide the anchor image on tablets and small screens to save space */
    }
    .klr-beliefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .klr-belief-full {
        grid-column: span 2;
    }
}

@media (max-width: 544px) {
    .klr-beliefs-grid {
        grid-template-columns: 1fr;
    }
    .klr-belief-full {
        grid-column: span 1;
    }
    .klr-vm-card {
        padding: 30px 20px;
        min-height: 340px;
    }
    .klr-vm-title {
        font-size: 24px;
    }
}

/* STYLE CSS FOR JOIN US */

/* ==========================================================================
   10. REDESIGNED PORTAL GATEWAY SECTION (CTA) [1, 2]
   ========================================================================== */
.klr-portal-cta-section {
    background-color: #0b0f19;
    padding: 130px 24px;
    color: var(--klr-white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* Canvas positioned flatly behind all content elements [2] */
#klr-spider-web-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Mouse passes cleanly through canvas to trigger button clicks */
    z-index: 1;
}

/* Subtle dark reddish background overlay texture [3] */

.klr-portal-gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(198, 0, 24, 0.06) 0%, transparent 60%);
    z-index: 2;
}

.klr-portal-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 5; /* Pushes content above interactive canvas and background overlays */
}

/* Left Column: CTA & Floating Padlock Card [2] */
.klr-portal-main-panel {
    display: flex;
    flex-direction: column;
}

/* 3D Floating Padlock Emblem [2] */
.klr-portal-gateway-visual-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(15, 18, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 45px;
}

/* Floating animation physics [2] */
.klr-portal-lock-wrapper {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLock 6s ease-in-out infinite;
}

@keyframes floatLock {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.klr-portal-lock-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.klr-portal-lock-fallback {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(198, 0, 24, 0.12);
    border: 1px solid rgba(198, 0, 24, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(198, 0, 24, 0.2);
}

.klr-lock-svg {
    width: 32px;
    height: 32px;
    fill: var(--klr-white);
}

.klr-gateway-badge-card {
    display: flex;
    flex-direction: column;
}

.klr-portal-title-inside {
    font-family: -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 4px 0 6px 0;
}

.klr-portal-desc-inside {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.klr-portal-main-title {
    font-family: "Georgia", serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 25px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.klr-portal-main-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 35px 0;
}

/* Apple-style Premium Action Button */
.klr-portal-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Elegant 3D Glassmorphic Red Gradient Base */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(198, 0, 24, 0.8) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    
    /* Top inside rim reflection & ambient neon red glow */
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(198, 0, 24, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer;
}

.klr-portal-primary-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 12px 32px rgba(198, 0, 24, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.klr-portal-primary-btn:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(198, 0, 24, 0.45) !important;
}

/* Subtle animated indicator inside button */
.klr-portal-btn-arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.klr-portal-primary-btn:hover .klr-portal-btn-arrow {
    transform: translateX(4px);
}

/* Right Column: Portal Benefits Grid */
.klr-portal-benefits-panel {
    width: 100%;
}

.klr-portal-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.klr-benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.klr-benefit-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.klr-benefit-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(198, 0, 24, 0.1);
    border: 1px solid rgba(198, 0, 24, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(198, 0, 24, 0.1);
}

.klr-benefit-icon-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--klr-white);
}

.klr-benefit-text {
    display: flex;
    flex-direction: column;
}

.klr-benefit-title-sm {
    font-size: 16px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 6px 0;
}

.klr-benefit-desc-sm {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 921px) {
    .klr-portal-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .klr-portal-main-panel {
        text-align: center;
        align-items: center;
    }
    .klr-portal-main-title {
        font-size: 36px;
    }
    .klr-benefit-item {
        padding: 20px;
    }
}

@media (max-width: 544px) {
    .klr-portal-cta-section {
        padding: 80px 16px;
    }
    .klr-benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .klr-portal-gateway-visual-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
}

/*Footer */

/* ==========================================================================
   11. WORLD-CLASS FOOTER STYLING [1, 2]
   ========================================================================== */
.klr-custom-footer {
    background-color: #060913; /* Deep solid black-navy base */
    color: var(--klr-white);
    padding: 100px 24px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.klr-footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr 1fr;
    gap: 50px;
    padding-bottom: 70px;
}

.klr-footer-col {
    display: flex;
    flex-direction: column;
}

.klr-footer-col-title {
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--klr-white);
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 8px;
}

.klr-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--klr-vibrant-scarlet);
    border-radius: 2px;
}

/* Brand Column [1] */
.klr-footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    margin-bottom: 20px;
}

.klr-logo-circle-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--klr-white);
    color: var(--klr-vibrant-scarlet);
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.klr-footer-brand-name {
    font-family: "Georgia", serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--klr-white);
}

.klr-footer-about-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Schedule List [2] */
.klr-footer-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.klr-footer-schedule-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.klr-footer-schedule-list li:last-child {
    margin-bottom: 0;
}

.klr-sched-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--klr-vibrant-scarlet);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.klr-sched-act {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

/* Rotating Globe Column [2] */
.klr-globe-wrapper {
    width: 190px;
    height: 190px;
    margin-bottom: 18px;
    position: relative;
}

.klr-globe-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 3D Spin physics */
@keyframes spinGlobeLayer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.klr-globe-lat-1 {
    animation: spinGlobeLayer 20s linear infinite;
    transform-origin: center;
}

.klr-globe-lat-2 {
    animation: spinGlobeLayer 30s linear-reverse infinite;
    transform-origin: center;
}

.klr-globe-nations-list {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Contacts Column [2] */
.klr-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.klr-footer-contact-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.klr-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.klr-footer-contact-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease;
    margin-top: 2px;
}

.klr-footer-contact-list a:hover {
    color: var(--klr-vibrant-scarlet);
}

.klr-footer-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    color: var(--klr-white) !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.klr-footer-portal-btn:hover {
    background: var(--klr-vibrant-scarlet);
    border-color: var(--klr-vibrant-scarlet);
    box-shadow: 0 4px 12px rgba(198, 0, 24, 0.3);
    transform: translateY(-1.5px);
}

/* ==========================================================================
   BOTTOM BAR (Copyright & Scripture) [3]
   ========================================================================== */
.klr-footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 24px;
    background-color: #04060c;
}

.klr-footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.klr-footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.klr-footer-tagline {
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 921px) {
    .klr-footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 544px) {
    .klr-custom-footer {
        padding: 80px 16px 0 16px;
    }
    .klr-footer-grid-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .klr-footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .klr-footer-logo-link {
        justify-content: center;
    }
    .klr-globe-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    .klr-footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/*FOOTER LOGO ------------------------------------*/

/* Razor-sharp circular formatting for footer logo link [1] */
.klr-footer-logo-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/*GLOBE FOOTER*/

/* Premium breathing pulse glow effect for the custom globe graphic [2] */
@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(198, 0, 24, 0.15)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 14px rgba(198, 0, 24, 0.35)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(198, 0, 24, 0.15)); }
}

.klr-footer-globe-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    animation: pulseGlow 4s ease-in-out infinite !important;
}

/* ==========================================================================
   GLOBE SCALE & AMBIENT GLOW POLISH [2]
   ========================================================================== */
.klr-globe-wrapper {
    width: 250px !important; /* Increased from 90px to 180px for optimal desktop presence */
    height: 250px !important;
    margin: 0 auto 25px auto !important; /* Clean margin separation */
    /*position: relative !important;*/
}

/* Formats your custom globe graphic with a premium breathing pulse glow [2] */
.klr-footer-globe-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    animation: pulseGlow 4s ease-in-out infinite !important;
}

/* Ambient pulse physics */
@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(198, 0, 24, 0.15)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 16px rgba(198, 0, 24, 0.4)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(198, 0, 24, 0.15)); }
}


/*LOGIN------------------------------------*/

/* ==========================================================================
   12. MEMBER PORTAL STYLING (Sliding 3D Responsive Glass Modal) [2]
   ========================================================================== */

/* Scoped Box-Sizing Reset - Guarantees absolute fluid device responsiveness */
.klr-portal-page-wrapper,
.klr-portal-page-wrapper *,
.klr-portal-page-wrapper *:before,
.klr-portal-page-wrapper *:after {
    box-sizing: border-box !important;
}

.klr-portal-page-wrapper {
    background-color: #060913;
    min-height: 100vh; /* Takes full viewport height */
    width: 100%;
    display: flex !important;
    align-items: center !important; /* Perfect vertical centering */
    justify-content: center !important; /* Perfect horizontal centering */
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}


.klr-portal-gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(198, 0, 24, 0.14) 0%, transparent 65%);
    z-index: 1;
}

/* Floating 3D Modal Container [2] */
.klr-portal-card-container {
    width: 100%;
    max-width: 440px; /* Secure container size on PC */
    position: relative;
    z-index: 5;
    margin: 0 auto;
}

/* Glassmorphism Modal Window Style [2] */
.klr-portal-glass-card {
    width: 100% !important;
    background: rgba(15, 18, 25, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    padding: 45px 35px !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.klr-portal-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.klr-portal-card-header .klr-logo-circle-sm {
    margin: 0 auto 15px auto;
}

.klr-portal-card-title {
    font-family: "Georgia", serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.klr-portal-card-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
    margin: 6px 0 0 0;
}

/* Sliding Panes Viewport (Responsive Track) */
.klr-portal-track-viewport {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.klr-portal-form-track {
    display: flex !important;
    width: 400% !important; /* Spans across all 4 panes */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform;
}

.klr-portal-pane {
    width: 25% !important; /* Exactly 100% of parent viewport width */
    flex-shrink: 0 !important;
    padding: 4px !important; /* Prevents edge clipping */
}

/* Premium Form Inputs styling */
.klr-portal-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.klr-input-group {
    width: 100% !important;
}

.klr-portal-form input[type="text"],
.klr-portal-form input[type="email"],
.klr-portal-form input[type="password"] {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: var(--klr-white) !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !important;
    transition: all 0.25s ease-in-out !important;
}

.klr-portal-form input:focus {
    border-color: rgba(198, 0, 24, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 10px rgba(198, 0, 24, 0.15) !important;
}

.klr-form-options {
    display: flex !important;
    justify-content: flex-end !important;
}

.klr-form-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.klr-form-link:hover {
    color: var(--klr-vibrant-scarlet);
}

/* Portal Primary Action Button */
.klr-portal-submit-btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(198, 0, 24, 0.75) 100%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(198, 0, 24, 0.2) !important;
    transition: all 0.25s ease-in-out !important;
    cursor: pointer !important;
}

.klr-portal-submit-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 18px rgba(198, 0, 24, 0.4) !important;
}

.klr-portal-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}

.klr-pane-switch-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin: 10px 0 0 0;
}

.klr-pane-switch-text a {
    color: var(--klr-white);
    font-weight: 700;
    text-decoration: none !important;
}

.klr-pane-switch-text a:hover {
    color: var(--klr-vibrant-scarlet);
}

.klr-pane-instruction-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin: 0 0 20px 0;
}

/* PIN Verification styling */
.klr-pin-inputs-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#pinBox {
    text-align: center !important;
    font-size: 26px !important;
    letter-spacing: 12px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    max-width: 180px !important;
    background: rgba(198, 0, 24, 0.05) !important;
    border-color: rgba(198, 0, 24, 0.25) !important;
    box-shadow: 0 0 15px rgba(198, 0, 24, 0.1) !important;
    padding-left: 20px !important; /* Center letter spacing */
}

/* Dynamic AJAX Status Alert Boxes */
.klr-portal-alert {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 25px;
    text-align: center;
    line-height: 1.5;
    border: 1px solid transparent;
}

.klr-portal-alert.is-success {
    background: rgba(0, 137, 123, 0.1);
    color: #4db6ac;
    border-color: rgba(0, 137, 123, 0.25);
}

.klr-portal-alert.is-error {
    background: rgba(198, 0, 24, 0.1);
    color: #ef9a9a;
    border-color: rgba(198, 0, 24, 0.25);
}

/* ==========================================================================
   MOBILE & TABLET MODAL RESPONSIVENESS ADAPTATIONS
   ========================================================================== */
@media (max-width: 544px) {
    .klr-portal-page-wrapper {
        padding: 24px 16px; /* Reduced outer page padding on small devices */
    }
    
    .klr-portal-glass-card {
        padding: 35px 20px !important; /* Dynamic card padding reduction */
        border-radius: 12px !important;
    }
    
    .klr-portal-card-title {
        font-size: 21px;
    }
}

/* POPUP LOGIN MODAL ----------------------------------------*/

/* ==========================================================================
   PORTAL GATEWAY ENHANCEMENTS (Apple Back-Button & Pop-In Modal) [2]
   ========================================================================== */

/* Apple-style Floating Back Home Action Circle [2] */
.klr-portal-back-home {
    position: absolute !important;
    top: 25px !important;
    left: 25px !important;
    z-index: 100 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.klr-portal-back-home:hover {
    background: rgba(198, 0, 24, 0.2) !important;
    border-color: rgba(198, 0, 24, 0.4) !important;
    transform: scale(1.05) !important;
}

.klr-portal-back-home svg {
    width: 20px !important;
    height: 20px !important;
}

/* Elastic Pop-In Modal entrance physics [2] */
@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.klr-modal-pop-in {
    animation: modalPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* Clean mobile adaptations for Back Home placement */
@media (max-width: 544px) {
    .klr-portal-back-home {
        top: 15px !important;
        left: 15px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .klr-portal-back-home svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Premium text-link back to main homepage [1, 2] */
.klr-card-back-website {
    display: inline-block !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    transition: color 0.2s ease-in-out !important;
    cursor: pointer !important;
}

.klr-card-back-website:hover {
    color: var(--klr-vibrant-scarlet) !important;
}

/* ==========================================================================
   PORTAL GATEWAY ENHANCEMENTS (Exit Capsule Button & Logo formatting) [2]
   ========================================================================== */

/* Sleek Apple-style "Exit to Website" Capsule Button [2] */
.klr-card-exit-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    margin: 0 auto 30px auto !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
}

.klr-card-exit-btn:hover {
    background: rgba(198, 0, 24, 0.16) !important;
    border-color: rgba(198, 0, 24, 0.35) !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
}

.klr-card-exit-btn:active {
    transform: translateY(0) !important;
}

.klr-exit-icon {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
}

/* Official Logo Formatting [3] */
.klr-portal-logo-img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.klr-portal-logo-img:hover {
    transform: scale(1.08) rotate(3deg) !important;
}

/* Center-align the header layouts for tablets & mobiles */
@media (max-width: 544px) {
    .klr-card-exit-btn {
        padding: 6px 14px !important;
        font-size: 10px !important;
    }
    .klr-portal-logo-img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* DASHBOARD -----------------------------------------*/

/* ==========================================================================
   13. MEMBER DASHBOARD & ADMIN CONSOLE STYLING [1, 2]
   ========================================================================== */

/* Outer wrapper forcing full-height dynamic canvas */
.klr-dashboard-wrapper {
    background-color: #070913;
    min-height: 100vh;
    width: 100%;
    color: var(--klr-white);
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.klr-dashboard-container {
    display: flex;
    width: 100%;
    position: relative;
}

/* Sidebar Column Layout */
.klr-dashboard-sidebar {
    width: 260px;
    height: 100vh;
    background-color: #0b0e1a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.klr-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.klr-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.klr-sidebar-title {
    font-family: "Georgia", serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.klr-sidebar-sub {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
    letter-spacing: 1px;
}

.klr-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

/* Dynamic Sidebar Navigation Menu item */
.klr-db-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.klr-db-menu-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.klr-db-menu-item:hover {
    color: var(--klr-white) !important;
    background: rgba(255, 255, 255, 0.03);
}

.klr-db-menu-item:hover svg {
    transform: translateX(2px);
}

/* Active Highlight (Glassmorphic) */
.klr-db-menu-item.active {
    background: rgba(198, 0, 24, 0.1) !important;
    color: var(--klr-white) !important;
    border: 1px solid rgba(198, 0, 24, 0.25);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.klr-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.klr-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.klr-sidebar-btn svg {
    width: 15px;
    height: 15px;
}

.klr-btn-back {
    background: rgba(255, 255, 255, 0.03);
    color: var(--klr-white) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.klr-btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
}

.klr-btn-logout {
    background: rgba(198, 0, 24, 0.05);
    color: #ef9a9a !important;
    border-color: rgba(198, 0, 24, 0.15);
}

.klr-btn-logout:hover {
    background: var(--klr-vibrant-scarlet);
    color: var(--klr-white) !important;
    border-color: var(--klr-vibrant-scarlet);
    box-shadow: 0 4px 10px rgba(198, 0, 24, 0.25);
}

/* Main Dashboard Panel */
.klr-dashboard-content {
    margin-left: 260px; /* Offset fixed sidebar width */
    flex-grow: 1;
    padding: 40px 50px;
    min-height: 100vh;
}

/* ==========================================================================
   MODULE 2: REDESIGNED PROFILE HEADER BAR (Apple/Netflix style)
   ========================================================================== */
.klr-db-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Align cards and text columns evenly */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 35px;
    margin-bottom: 45px;
    gap: 40px;
}

/* Left Profile block */
.klr-db-header-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-grow: 1;
}

/* Circular Avatar Frame with Breathing Glow */
@keyframes avatarGlow {
    0% { 
        box-shadow: 0 0 10px rgba(198, 0, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(198, 0, 24, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.25); 
        border-color: rgba(198, 0, 24, 0.5); 
    }
    100% { 
        box-shadow: 0 0 10px rgba(198, 0, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
}

.klr-header-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--klr-vibrant-scarlet);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(198, 0, 24, 0.35);
    animation: avatarGlow 3s ease-in-out infinite;
}

.klr-header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover-activated camera overlay icon */
.klr-header-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-white);
    transition: opacity 0.25s ease;
    z-index: 5;
}

.klr-header-avatar-wrap:hover .klr-header-avatar-overlay {
    opacity: 1;
}

.klr-header-avatar-overlay i {
    font-size: 24px;
}

.klr-header-profile-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.klr-header-welcome-greeting {
    font-family: "Georgia", serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
}

/* Glowing Twitter-style red verified icon */
@keyframes verifiedPulse {
    0% { filter: drop-shadow(0 0 2px rgba(198, 0, 24, 0.4)); }
    50% { filter: drop-shadow(0 0 8px rgba(198, 0, 24, 0.8)); }
    100% { filter: drop-shadow(0 0 2px rgba(198, 0, 24, 0.4)); }
}

.klr-header-verified-icon {
    font-size: 16px;
    color: var(--klr-vibrant-scarlet);
    animation: verifiedPulse 3s infinite;
}

.klr-header-welcome-sub {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 12px 0;
    font-weight: 500;
}

/* Real-time Ticker */
.klr-header-datetime-ticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.klr-header-datetime-ticker i {
    font-size: 14px;
    color: var(--klr-vibrant-scarlet);
}

/* Right Section: Access & Quotes */
.klr-db-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    width: 420px;
    flex-shrink: 0;
}

.klr-header-action-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Verified Member Shield Capsule */
.klr-verified-member-badge {
    background: rgba(198, 0, 24, 0.08);
    border: 1px solid rgba(198, 0, 24, 0.25);
    color: #ef9a9a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.klr-verified-member-badge i {
    font-size: 12px;
}

/* Notification Bell with Red Badge */
.klr-header-notification-bell {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.klr-header-notification-bell:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--klr-white);
}

.klr-header-notification-bell .bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--klr-vibrant-scarlet);
    color: var(--klr-white);
    font-size: 9px;
    font-weight: 800;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #070913;
}

/* 3D Glassmorphic Quote Card */
.klr-header-quote-card {
    position: relative;
    width: 100%;
    background: rgba(15, 18, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
}

.klr-quote-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--klr-vibrant-scarlet);
}

.klr-quote-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.klr-quote-content .quote-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin: 0;
}

.klr-quote-content .quote-verse {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--klr-vibrant-scarlet);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS (For Sidebar & Header columns)
   ========================================================================== */
@media (max-width: 1200px) {
    .klr-db-header {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    .klr-db-header-right {
        width: 100%;
        align-items: flex-start;
    }
    .klr-header-quote-card {
        max-width: 100%;
    }
}

@media (max-width: 544px) {
    .klr-header-avatar-wrap {
        width: 75px;
        height: 75px;
    }
    .klr-header-welcome-greeting {
        font-size: 22px;
    }
    .klr-header-welcome-sub {
        font-size: 12px;
    }
}

/* Mobile Toggle Hamburger */
.klr-db-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    padding: 0;
}

.klr-db-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--klr-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Active SPA Tab Controller */
.klr-dashboard-tab-content {
    display: none;
}

.klr-dashboard-tab-content.active {
    display: block;
    animation: tabFadeIn 0.4s ease-out forwards;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* General Content Headers */
.klr-db-section-header {
    margin-bottom: 40px;
}

.klr-sub-section-title {
    font-family: "Georgia", serif;
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 20px 0;
}

/* ==========================================================================
   TAB 1: OVERVIEW & ADMIN CONSOLE STYLES [1, 2]
   ========================================================================== */
.klr-db-scrip-card {
    background: rgba(198, 0, 24, 0.04);
    border: 1px solid rgba(198, 0, 24, 0.25);
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.klr-db-card-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.klr-db-scrip-verse {
    font-family: "Georgia", serif;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
}

.klr-db-scrip-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin: 12px 0 0 0;
}

.klr-db-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.klr-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
}

.klr-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.klr-stat-value {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0 4px 0;
}

.klr-stat-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* Admin Console Card & Table [2] */
.klr-admin-console-card {
    background: rgba(15, 18, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}

.klr-admin-console-header {
    margin-bottom: 25px;
}

.klr-console-title {
    font-family: -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.klr-console-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    margin: 4px 0 0 0;
}

.klr-admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.klr-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.klr-admin-table th {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.klr-admin-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

.klr-admin-table tr {
    transition: background 0.2s ease, opacity 0.4s ease;
}

.klr-admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* User Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 137, 123, 0.12);
    color: #4db6ac;
}

.status-badge.pending {
    background: rgba(198, 0, 24, 0.12);
    color: #ef9a9a;
}

/* Admin Actions Buttons */
.user-actions-cell {
    display: flex;
    gap: 8px;
}

.klr-admin-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.klr-admin-approve {
    background: #00897b;
    color: #ffffff;
}

.klr-admin-approve:hover {
    background: #00b0ff;
}

.klr-admin-delete {
    background: rgba(255, 255, 255, 0.04);
    color: #ef9a9a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.klr-admin-delete:hover {
    background: var(--klr-vibrant-scarlet);
    color: #ffffff;
    border-color: var(--klr-vibrant-scarlet);
}

/* ==========================================================================
   TAB 2: DIGITAL LIBRARY (RESOURCES) STYLES [1]
   ========================================================================== */
.klr-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.klr-book-card {
    background: rgba(15, 18, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.klr-book-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

/* 3D Book Cover styling */
.klr-book-cover {
    height: 180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--klr-white);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.klr-cover-red { background: linear-gradient(135deg, #4d000a 0%, #c60018 100%); }
.klr-cover-dark { background: linear-gradient(135deg, #0f121d 0%, #1a233a 100%); }
.klr-cover-crimson { background: linear-gradient(135deg, #1b0004 0%, #800010 100%); }

.klr-book-logo-mark {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.4;
}

.klr-book-cover-title {
    font-family: "Georgia", serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.klr-book-cover-sub {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.6;
}

.klr-book-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.klr-book-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.klr-book-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
}

/* Premium Download Button */
.klr-book-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--klr-white) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.klr-book-dl-btn svg {
    width: 15px;
    height: 15px;
}

.klr-book-dl-btn:hover {
    background: rgba(198, 0, 24, 0.15);
    border-color: rgba(198, 0, 24, 0.3);
}

/* ==========================================================================
   TAB 3: SERMON MEDIA PLAYER STYLES [2]
   ========================================================================== */
.klr-media-featured-card {
    background: rgba(15, 18, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.klr-video-aspect-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Perfect 16:9 widescreen ratio */
    height: 0;
    background: #000;
}

.klr-main-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.klr-video-meta-block {
    padding: 30px;
}

.klr-video-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
}

.klr-video-title {
    font-family: "Georgia", serif;
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 10px 0;
}

.klr-video-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Recent Grid Items */
.klr-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.klr-media-grid-card {
    background: rgba(15, 18, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.klr-media-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play Icon Overlay [2] */
.klr-play-icon-overlay {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(198, 0, 24, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-white);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(198, 0, 24, 0.35);
    transform: scale(0.9);
    opacity: 0.9;
    transition: all 0.25s ease;
}

.klr-media-grid-card:hover .klr-play-icon-overlay {
    transform: scale(1.1);
    opacity: 1;
    background: var(--klr-vibrant-scarlet);
}

.klr-play-icon-overlay svg {
    width: 20px;
    height: 20px;
    margin-left: 2px; /* Visual center adjustment */
}

.klr-media-info {
    padding: 20px;
}

.klr-grid-media-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.klr-grid-media-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   TAB 4: COVENANT SPECIALTY MINISTRIES [2]
   ========================================================================== */
.klr-ministries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.klr-min-card {
    background: rgba(15, 18, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.klr-min-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 0, 24, 0.25);
    box-shadow: 0 15px 30px rgba(198, 0, 24, 0.05);
}

.klr-min-badge-wrap {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(198, 0, 24, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(198, 0, 24, 0.15);
}

.klr-min-badge-wrap svg {
    width: 22px;
    height: 22px;
    fill: var(--klr-white);
}

.klr-min-title {
    font-family: -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 12px 0;
}

.klr-min-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pushes button cleanly to bottom */
}

.klr-min-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.03);
    color: var(--klr-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.klr-min-action-btn:hover {
    background: rgba(198, 0, 24, 0.15);
    border-color: rgba(198, 0, 24, 0.3);
}

/* ==========================================================================
   MOBILE & TABLET DASHBOARD STYLES BREAKPOINTS [2]
   ========================================================================== */
@media (max-width: 921px) {
    /* Hide Sidebar default view on mobile */
    .klr-dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    /* Sliding Drawer effect when active */
    .klr-dashboard-sidebar.is-active {
        transform: translateX(0);
    }
    
    .klr-dashboard-content {
        margin-left: 0; /* Content expands to fill screen width */
        padding: 30px 24px;
    }
    
    .klr-db-hamburger {
        display: flex; /* Show trigger button */
    }
    
    .klr-db-hamburger.is-active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .klr-db-hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .klr-db-hamburger.is-active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .klr-db-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .klr-library-grid,
    .klr-ministries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 544px) {
    .klr-db-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .klr-db-header-left {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .klr-db-welcome-msg {
        font-size: 21px;
    }
    
    .klr-library-grid,
    .klr-media-grid,
    .klr-ministries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Complete, independent full-bleed layout reset on Dashboard template body */
.page-template-template-dashboard body {
    background-color: #070913 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Erases any phantom WordPress Admin Bar margins or spacing [2] */
html {
    margin-top: 0 !important;
}

* html body {
    margin-top: 0 !important;
}

/* Scoped specifically for logged-in portal sessions [2] */
.page-template-template-dashboard html,
.page-template-template-portal html {
    margin-top: 0 !important;
}

/* ==========================================================================
   14. MEMBER PROFILE & REMINDER MODAL STYLING
   ========================================================================== */
.klr-profile-layout-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* Left Column Card (Avatar Upload Panel) */
.klr-profile-avatar-col {
    display: flex;
    justify-content: center;
}

.klr-profile-avatar-card {
    width: 100%;
    background: rgba(15, 18, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.klr-avatar-upload-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px auto;
    border: 3px solid var(--klr-vibrant-scarlet);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(198, 0, 24, 0.35);
}

.klr-profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Black-tinted hover glass upload overlay */
.klr-avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-white);
    transition: opacity 0.25s ease;
    z-index: 5;
}

.klr-avatar-upload-wrapper:hover .klr-avatar-upload-overlay {
    opacity: 1;
}

.klr-avatar-upload-overlay svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.klr-profile-display-username {
    font-family: "Georgia", serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 5px 0;
}

.klr-profile-user-email-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 25px 0;
}

.klr-profile-completeness-badge {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.klr-badge-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* Right Column Card (Detailed Forms Panel) */
.klr-profile-fields-col {
    width: 100%;
}

.klr-profile-glass-form {
    background: rgba(15, 18, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.klr-form-section {
    margin-bottom: 35px;
}

.klr-form-section:last-of-type {
    margin-bottom: 0;
}

.klr-form-section-title {
    font-family: -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.klr-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.klr-form-row:last-child {
    margin-bottom: 0;
}

.klr-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.klr-profile-label {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.klr-profile-label .required {
    color: var(--klr-vibrant-scarlet);
}

.klr-profile-input,
.klr-profile-select {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 11px 16px !important;
    color: var(--klr-white) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.klr-profile-input:focus,
.klr-profile-select:focus {
    border-color: rgba(198, 0, 24, 0.4) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.klr-profile-select option {
    background-color: #0c0f1a !important; /* Forces dropdown box to stay dark on PC views */
    color: var(--klr-white) !important;
}

.klr-profile-submit-row {
    margin-top: 30px;
}

/* ==========================================================================
   COMPULSORY REMINDER MODAL STYLES (Apple/Netflix design)
   ========================================================================== */
.klr-reminder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.85); /* Dark cinematic backdrop */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000; /* Floats above sidebar layers */
}

.klr-reminder-modal-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 18, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.klr-reminder-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: rgba(198, 0, 24, 0.1);
    border: 1px solid rgba(198, 0, 24, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-vibrant-scarlet);
    margin: 0 auto 25px auto;
    box-shadow: 0 0 15px rgba(198, 0, 24, 0.2);
}

.klr-reminder-icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.klr-reminder-title {
    font-family: "Georgia", serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 12px 0;
}

.klr-reminder-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 30px 0;
}

.klr-reminder-action-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(198, 0, 24, 0.75) 100%);
    color: var(--klr-white);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(198, 0, 24, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.klr-reminder-action-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 18px rgba(198, 0, 24, 0.4);
}

/* Responsive adjustments */
@media (max-width: 921px) {
    .klr-profile-layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 544px) {
    .klr-profile-glass-form {
        padding: 30px 20px;
    }
    .klr-form-row {
        flex-direction: column;
        gap: 18px;
    }
}

/* ==========================================================================
   15. REDESIGNED IMMERSIVE DASHBOARD OVERVIEW [1, 2]
   ========================================================================== */

/* Outer structure adjustments */
.klr-overview-hero-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Widescreen featured scripture card */
.klr-db-scrip-card {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(198, 0, 24, 0.2) 100%);
    border: 1px solid rgba(198, 0, 24, 0.3);
    box-shadow: 0 15px 35px rgba(198, 0, 24, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.klr-scrip-glow-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    /* Atmospheric glowing cross background effect */
    background: radial-gradient(circle at 70% 50%, rgba(198, 0, 24, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.klr-scrip-card-content {
    position: relative;
    z-index: 5;
    padding: 40px;
}

/* Symmetrical Metric Stats Grid */
.klr-stats-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.klr-stat-widget {
    background: rgba(15, 18, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.klr-stat-widget:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 0, 24, 0.25);
    box-shadow: 0 12px 28px rgba(198, 0, 24, 0.08);
}

.klr-stat-w-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.klr-stat-w-val {
    font-family: -apple-system, sans-serif;
    font-size: 21px;
    font-weight: 800;
    margin: 8px 0 2px 0;
    color: var(--klr-white);
}

.klr-stat-w-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Mid Columns Grid (3-Columns) */
.klr-overview-mid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.klr-column-card {
    background: rgba(15, 18, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.klr-widget-title {
    font-family: "Georgia", serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    letter-spacing: 0.3px;
}

/* Interactive Recent Teachings rows */
.klr-sermon-list-container,
.klr-prayers-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.klr-sermon-row-item,
.klr-prayer-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.klr-sermon-row-item:hover,
.klr-prayer-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.klr-sermon-item-meta,
.klr-prayer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sermon-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--klr-white);
}

.sermon-item-author,
.prayer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.sermon-item-duration {
    font-size: 12px;
    font-weight: 700;
    color: var(--klr-vibrant-scarlet);
}

/* Upcoming Bible Study featured box */
.klr-upcoming-featured-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.klr-upcoming-date-badge {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    background: rgba(198, 0, 24, 0.08);
    border: 1px solid rgba(198, 0, 24, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.up-month {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--klr-vibrant-scarlet);
    letter-spacing: 0.5px;
}

.up-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--klr-white);
    line-height: 1.1;
}

.klr-upcoming-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.up-event-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.up-event-speaker,
.up-event-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.klr-upcoming-join-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--klr-white) !important;
    background-color: var(--klr-vibrant-scarlet);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(198, 0, 24, 0.35);
    transition: all 0.25s ease;
}

.klr-upcoming-join-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(198, 0, 24, 0.5);
    filter: brightness(1.1);
}

/* Cascaded Past Event Lists */
.klr-past-events-sub-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    margin: 25px 0 12px 0;
}

.klr-past-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.klr-past-event-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.past-event-date {
    font-weight: 700;
    color: var(--klr-vibrant-scarlet);
}

/* Prayer request specific styling */
.prayer-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--klr-white);
}

.klr-prayer-admin-actions {
    display: flex;
    gap: 6px;
}

.klr-prayer-btn {
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.klr-prayer-btn.approve { background: #00897b; color: #fff; }
.klr-prayer-btn.delete { background: rgba(255,255,255,0.04); color: #ef9a9a; border: 1px solid rgba(255,255,255,0.08); }
.klr-prayer-btn:hover { filter: brightness(1.1); }

/* ==========================================================================
   BOTTOM ROW: PROGRESS, PARTICIPATION & BOOKS (3-COLUMNS)
   ========================================================================== */
.klr-overview-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Daily progress box styling */
.klr-progress-widget-box {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* SVG Circle Progress Ring styling */
.klr-progress-circle-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.klr-progress-svg {
    width: 100%;
    height: 100%;
}

.klr-progress-svg .circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 0.35s;
}

.klr-progress-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-percentage {
    font-size: 21px;
    font-weight: 800;
    color: var(--klr-white);
}

.p-sub-text {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.klr-progress-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.klr-progress-checklist li {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.klr-progress-checklist li.checked {
    color: var(--klr-white);
    font-weight: 600;
}

.klr-progress-checklist li span {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

.klr-progress-checklist li.checked span {
    color: #4db6ac; /* Soft green success status */
}

/* Ministry participation small widget cards */
.klr-participation-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.klr-participation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 16px;
    border-radius: 8px;
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4db6ac; /* Active Green */
    box-shadow: 0 0 10px #4db6ac;
}

.p-dot.grey {
    background-color: rgba(255,255,255,0.25);
    box-shadow: none;
}

.p-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p-team-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--klr-white);
}

.p-team-status {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
}

/* Book Covers track */
.klr-recent-books-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.klr-book-thumb-small {
    width: 85px;
    height: 115px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transition: transform 0.25s ease;
}

.klr-book-thumb-small:hover {
    transform: translateY(-3px) scale(1.03);
}

.klr-book-thumb-small.red { background: linear-gradient(135deg, #4d000a 0%, #c60018 100%); }
.klr-book-thumb-small.dark { background: linear-gradient(135deg, #0f121d 0%, #1a233a 100%); }
.klr-book-thumb-small.crimson { background: linear-gradient(135deg, #1b0004 0%, #800010 100%); }

/* Administrative inline forms inside cards */
.klr-admin-action-trigger {
    background: rgba(198, 0, 24, 0.1);
    border: 1px solid rgba(198, 0, 24, 0.2);
    color: #ef9a9a;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.klr-admin-action-trigger:hover {
    background: var(--klr-vibrant-scarlet);
    color: #ffffff;
    border-color: var(--klr-vibrant-scarlet);
}

.klr-admin-inline-form {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.klr-admin-inline-form input,
.klr-admin-inline-form textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    color: var(--klr-white) !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    outline: none !important;
}

.klr-admin-inline-form textarea {
    min-height: 60px;
    resize: vertical;
}

.klr-admin-form-submit {
    background: #00897b;
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.klr-admin-form-submit:hover {
    background: #00b0ff;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS (For Widescreen Cards & Mid-Rows)
   ========================================================================== */
@media (max-width: 1024px) {
    .klr-overview-hero-row {
        grid-template-columns: 1fr;
    }
    .klr-overview-mid-row,
    .klr-overview-bottom-row {
        grid-template-columns: 1fr;
    }
    .klr-column-card {
        min-height: auto;
    }
}

/* ==========================================================================
   13. MEMBER DASHBOARD & ADMIN CONSOLE STYLING (Moving Sidebar Redesign)
   ========================================================================== */

/* Outer wrapper forcing full-height dynamic canvas */
.klr-dashboard-wrapper {
    background-color: #070913;
    min-height: 100vh;
    width: 100%;
    color: var(--klr-white);
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.klr-dashboard-container {
    display: flex;
    width: 100%;
    position: relative;
}

/* 
   Animated Sidebar Column Layout (Moving Mesh) 
   Slow gradient animation shifting between matte-black and deep burgundy-red
*/
@keyframes movingMesh {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.klr-dashboard-sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(135deg, #0b0e1a 0%, #170004 50%, #060913 100%);
    background-size: 200% 200%;
    animation: movingMesh 15s ease infinite;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.klr-sidebar-header-wrapper {
    position: relative;
    width: 100%;
}

/* Hidden on desktop, styled to render only in mobile/tablet drawers */
.klr-sidebar-close-btn {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.klr-sidebar-close-btn:hover {
    background: rgba(198, 0, 24, 0.15);
    border-color: rgba(198, 0, 24, 0.3);
    color: var(--klr-white);
}

.klr-sidebar-close-btn svg {
    width: 14px;
    height: 14px;
}

.klr-sidebar-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.klr-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.klr-sidebar-title {
    font-family: "Georgia", serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.klr-sidebar-sub {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Widescreen Banner Container inside Sidebar */
.klr-sidebar-banner-wrap {
    width: 100%;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0,0,0,0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.klr-sidebar-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.klr-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.klr-db-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.klr-db-menu-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.klr-db-menu-item:hover {
    color: var(--klr-white) !important;
    background: rgba(255, 255, 255, 0.03);
}

.klr-db-menu-item:hover svg {
    transform: translateX(2px);
}

/* 
   Dynamic active glowing red capsule (Breathing Halo) 
   Slow pulse that scales and illuminates the glow dynamically
*/
@keyframes breathingHalo {
    0% { 
        box-shadow: 0 0 8px rgba(198, 0, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(198, 0, 24, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.25); 
        border-color: rgba(198, 0, 24, 0.5); 
    }
    100% { 
        box-shadow: 0 0 8px rgba(198, 0, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
}

.klr-db-menu-item.active {
    background: rgba(198, 0, 24, 0.12) !important;
    color: var(--klr-white) !important;
    border: 1px solid rgba(198, 0, 24, 0.3);
    animation: breathingHalo 3s ease-in-out infinite;
}

/* Tablet & Mobile drawer overrides */
@media (max-width: 921px) {
    .klr-sidebar-close-btn {
        display: flex; /* Show close button in mobile drawer */
    }
    .klr-sidebar-brand-block {
        margin-bottom: 20px;
        padding-right: 30px; /* Leave space for Close button */
    }
    .klr-sidebar-banner-wrap {
        display: none; /* Hide banner in mobile view to save space */
    }
}

/* ==========================================================================
   13. MEMBER DASHBOARD & ADMIN CONSOLE STYLING (Immersive Sidebar)
   ========================================================================== */

/* Outer wrapper forcing full-height dynamic canvas */
.klr-dashboard-wrapper {
    background-color: #070913;
    min-height: 100vh;
    width: 100%;
    color: var(--klr-white);
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.klr-dashboard-container {
    display: flex;
    width: 100%;
    position: relative;
}

/* 
   Sleek Sidebar with Immersive Vertical Cross Background and Gradient Overlay
*/
.klr-dashboard-sidebar {
    width: 260px;
    height: 100vh;
    
    /* Elegant double-tone overlay dims the cross slightly to guarantee 100% text readability */
    background-image: linear-gradient(180deg, rgba(11, 14, 26, 0.9) 0%, rgba(6, 9, 19, 0.95) 100%), url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/cross.png') !important;
    background-size: cover !important;
    background-position: center !important;
    
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.klr-sidebar-header-wrapper {
    position: relative;
    width: 100%;
}

/* Polished FontAwesome Mobile Close Button */
.klr-sidebar-close-btn {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1001; /* Floats above everything */
}

.klr-sidebar-close-btn:hover {
    background: rgba(198, 0, 24, 0.2);
    border-color: rgba(198, 0, 24, 0.4);
    color: var(--klr-white);
    box-shadow: 0 0 10px rgba(198, 0, 24, 0.4);
}

.klr-sidebar-close-btn i {
    font-size: 14px;
}

.klr-sidebar-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.klr-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.klr-sidebar-title {
    font-family: "Georgia", serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.klr-sidebar-sub {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--klr-vibrant-scarlet);
    font-weight: 700;
    letter-spacing: 1px;
}

.klr-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.klr-db-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.klr-db-menu-item i {
    width: 18px;
    font-size: 16px;
    text-align: center;
    transition: transform 0.25s ease;
}

.klr-db-menu-item:hover {
    color: var(--klr-white) !important;
    background: rgba(255, 255, 255, 0.03);
}

.klr-db-menu-item:hover i {
    transform: translateX(2px);
}

/* Glowing active crimson capsule (Breathing Halo) */
@keyframes breathingHalo {
    0% { 
        box-shadow: 0 0 8px rgba(198, 0, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(198, 0, 24, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.25); 
        border-color: rgba(198, 0, 24, 0.5); 
    }
    100% { 
        box-shadow: 0 0 8px rgba(198, 0, 24, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
}

.klr-db-menu-item.active {
    background: rgba(198, 0, 24, 0.12) !important;
    color: var(--klr-white) !important;
    border: 1px solid rgba(198, 0, 24, 0.3);
    animation: breathingHalo 3s ease-in-out infinite;
}

/* Tablet & Mobile drawer overrides */
@media (max-width: 921px) {
    .klr-sidebar-close-btn {
        display: flex; /* Show close button in mobile drawer */
    }
    .klr-sidebar-brand-block {
        margin-bottom: 25px;
        padding-right: 30px; /* Leave space for Close button */
    }
}

/* CSS USER PROFILE IMAGE & FLAG */

/* ==========================================================================
   14. REDESIGNED MEMBER PROFILE CARD & WATERMARKS [2, 3]
   ========================================================================== */
.klr-profile-layout-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* Left Column Card (Overlapping Avatar Upload Panel) */
.klr-profile-avatar-col {
    display: flex;
    justify-content: center;
}

.klr-profile-avatar-card {
    width: 100%;
    background: rgba(15, 18, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    overflow: hidden; /* Clips the banner image */
    position: relative;
}

/* Premium Profile Card Widescreen Header Banner [3] */
/* Premium Profile Card Widescreen Header Banner (Hardcoded with profilebg-1.png) */
.klr-profile-card-banner {
    height: 110px;
    background-size: cover;
    background-position: center;
    /* Loads your customized background automatically */
    background-image: url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/profilebg4.png') !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1; */
}

.klr-profile-card-body {
    padding: 0 30px 40px 30px;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Pushes avatar up to overlap the banner cleanly */
.klr-profile-avatar-card .klr-avatar-upload-wrapper {
    position: relative;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    overflow: hidden;
    margin: -57px auto 25px auto !important; /* Halfway overlap */
    border: 3px solid #0f121d !important; /* Thick dark separating border */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(198, 0, 24, 0.35);
}

.klr-profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Black-tinted hover glass upload overlay */
.klr-avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-white);
    transition: opacity 0.25s ease;
    z-index: 5;
}

.klr-avatar-upload-wrapper:hover .klr-avatar-upload-overlay {
    opacity: 1;
}

.klr-avatar-upload-overlay i {
    font-size: 26px;
}

.klr-profile-display-username {
    font-family: "Georgia", serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--klr-white);
    margin: 0 0 5px 0;
}

.klr-profile-user-email-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* Dynamic Join Date styling */
.klr-profile-join-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 12px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.klr-profile-join-date i {
    color: var(--klr-vibrant-scarlet);
}

.klr-profile-completeness-badge {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.klr-badge-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* 
   Massive, highly visible national flag watermark background [2]
   Positioned behind user metadata inside the card container
*/
.klr-profile-faint-flag {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 210px; /* Increased size [2] */
    line-height: 1;
    opacity: 0.12; /* Increased visibility but still an elegant watermark [2] */
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: all 0.3s ease;
}

/* 
   Massive, highly visible national flag watermark background [2]
   Positioned behind user metadata inside the card container
*/
.klr-profile-faint-flag {
    position: absolute !important;
    bottom: 10px !important;
    right: 15px !important;
    font-size: 240px !important; /* Increased from 210px for high visibility [2] */
    line-height: 1 !important;
    opacity: 0.15 !important; /* Increased from 0.12 to make it pop but remain an elegant watermark [2] */
    pointer-events: none !important;
    user-select: none !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

/* ==========================================================================
   WIDESCREEN FEATURED SCRIPTURE CARD OVERRIDES (Pure White & Large Serif)
   ========================================================================== */
.klr-db-scrip-card {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(198, 0, 24, 0.2) 100%);
    border: 1px solid rgba(198, 0, 24, 0.3);
    box-shadow: 0 15px 35px rgba(198, 0, 24, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.klr-db-card-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--klr-white) !important; /* Pure white */
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

/* Premium large serif typography for dynamic verse text */
.klr-db-scrip-verse {
    font-family: "Georgia", "Times New Roman", serif !important;
    font-size: 23px !important; /* Premium Editorial Scale */
    line-height: 1.55 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: var(--klr-white) !important; /* Pure white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}

/* Redesigned bottom scripture metadata */
.klr-db-scrip-sub {
    font-family: -apple-system, sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--klr-white) !important; /* Pure white */
    font-weight: 700 !important;
    margin: 15px 0 0 0 !important;
    opacity: 0.8;
}

/* Responsive reduction for tablets and mobile screens */
@media (max-width: 768px) {
    .klr-db-scrip-verse {
        font-size: 18px !important;
    }
    .klr-db-scrip-sub {
        font-size: 11px !important;
    }
}

/* CLOCKS-------------------------------------------------------*/

/* ==========================================================================
   DASHBOARD CLOCK FACES & ALIGNMENT STYLES
   ========================================================================== */
.klr-clock-widget-flex {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100%;
}

/* Premium Analog Clock Face Container */
.klr-analog-clock {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.klr-analog-clock-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 
   Mechanical ticking second-hand physics
   Forces the second hand to jump second-by-second like a mechanical Rolex 
*/
@keyframes tickSecond {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.klr-analog-clock-svg .second-hand {
    transform-origin: 20px 20px;
    animation: tickSecond 60s steps(60) infinite !important;
}

/* Adjust layout values for digital typography inside widget cards */
.klr-clock-digital-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.klr-stat-widget .klr-stat-w-val {
    font-family: -apple-system, sans-serif !important;
    font-size: 16px !important; /* Scaled down slightly to fit full ticking digital clocks */
    font-weight: 700 !important;
    margin: 5px 0 2px 0 !important;
}

.klr-stat-widget .klr-stat-w-sub {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-transform: uppercase;
    font-weight: 600;
}

/* Specific alignments for tablets/mobile views */
@media (max-width: 921px) {
    .klr-stat-widget .klr-stat-w-val {
        font-size: 18px !important;
    }
}

<?php
/**
 * Redesigned Dynamic World Clocks Grid with Image Backgrounds
 */
?>
<div class="klr-stats-widget-grid">
    
    <!-- CLOCK 1: KENYA / EAST AFRICA TIME (EAT) -->
    <div class="klr-stat-widget" style="background-image: linear-gradient(135deg, rgba(15, 18, 25, 0.9) 0%, rgba(15, 18, 25, 0.7) 100%), url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/EAT.png') !important; background-size: cover !important; background-position: center !important;">
        <div class="klr-clock-widget-flex">
            <!-- Ticking Analog Clock Face -->
            <div class="klr-analog-clock">
                <svg class="klr-analog-clock-svg" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
                    <circle class="clock-face" cx="20" cy="20" r="18" fill="none" stroke="rgba(255,255,255,0.12)" stroke-width="1.2"/>
                    <line class="hour-hand" x1="20" y1="20" x2="20" y2="11" stroke="var(--klr-white)" stroke-width="2" stroke-linecap="round"/>
                    <line class="minute-hand" x1="20" y1="20" x2="27" y2="20" stroke="rgba(255,255,255,0.4)" stroke-width="1.5" stroke-linecap="round"/>
                    <line class="second-hand" x1="20" y1="20" x2="20" y2="7" stroke="var(--klr-vibrant-scarlet)" stroke-width="0.8" stroke-linecap="round"/>
                    <circle cx="20" cy="20" r="1" fill="var(--klr-vibrant-scarlet)"/>
                </svg>
            </div>
            
            <div class="klr-clock-digital-meta">
                <span class="klr-stat-w-label">East Africa (EAT)</span>
                <h4 class="klr-stat-w-val" id="eat-clock-val">00:00:00 AM</h4>
                <span class="klr-stat-w-sub" id="eat-date-val">Loading Date</span>
            </div>
        </div>
    </div>

    <!-- CLOCK 2: GMT TIME -->
    <!-- Replace the placeholder URL in url() below with your custom GMT image once generated -->
    <div class="klr-stat-widget" style="background-image: linear-gradient(135deg, rgba(15, 18, 25, 0.9) 0%, rgba(15, 18, 25, 0.7) 100%), url('https://placehold.co/400x300/0c0f1a/ffffff?text=GMT+Background') !important; background-size: cover !important; background-position: center !important;">
        <div class="klr-clock-widget-flex">
            <div class="klr-analog-clock">
                <svg class="klr-analog-clock-svg" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
                    <circle class="clock-face" cx="20" cy="20" r="18" fill="none" stroke="rgba(255,255,255,0.12)" stroke-width="1.2"/>
                    <line class="hour-hand" x1="20" y1="20" x2="20" y2="13" stroke="var(--klr-white)" stroke-width="2" stroke-linecap="round"/>
                    <line class="minute-hand" x1="20" y1="20" x2="28" y2="20" stroke="rgba(255,255,255,0.4)" stroke-width="1.5" stroke-linecap="round"/>
                    <line class="second-hand" x1="20" y1="20" x2="20" y2="7" stroke="var(--klr-vibrant-scarlet)" stroke-width="0.8" stroke-linecap="round"/>
                    <circle cx="20" cy="20" r="1" fill="var(--klr-vibrant-scarlet)"/>
                </svg>
            </div>
            
            <div class="klr-clock-digital-meta">
                <span class="klr-stat-w-label">Greenwich (GMT)</span>
                <h4 class="klr-stat-w-val" id="gmt-clock-val">00:00:00 AM</h4>
                <span class="klr-stat-w-sub" id="gmt-date-val">Loading Date</span>
            </div>
        </div>
    </div>

    <!-- CLOCK 3: EASTERN TIME (EST/EDT - USA & CANADA) -->
    <!-- Replace the placeholder URL in url() below with your custom EST image once generated -->
    <div class="klr-stat-widget" style="background-image: linear-gradient(135deg, rgba(15, 18, 25, 0.9) 0%, rgba(15, 18, 25, 0.7) 100%), url('https://placehold.co/400x300/0c0f1a/ffffff?text=EST+Background') !important; background-size: cover !important; background-position: center !important;">
        <div class="klr-clock-widget-flex">
            <div class="klr-analog-clock">
                <svg class="klr-analog-clock-svg" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
                    <circle class="clock-face" cx="20" cy="20" r="18" fill="none" stroke="rgba(255,255,255,0.12)" stroke-width="1.2"/>
                    <line class="hour-hand" x1="20" y1="20" x2="20" y2="12" stroke="var(--klr-white)" stroke-width="2" stroke-linecap="round"/>
                    <line class="minute-hand" x1="20" y1="20" x2="26" y2="20" stroke="rgba(255,255,255,0.4)" stroke-width="1.5" stroke-linecap="round"/>
                    <line class="second-hand" x1="20" y1="20" x2="20" y2="7" stroke="var(--klr-vibrant-scarlet)" stroke-width="0.8" stroke-linecap="round"/>
                    <circle cx="20" cy="20" r="1" fill="var(--klr-vibrant-scarlet)"/>
                </svg>
            </div>
            
            <div class="klr-clock-digital-meta">
                <span class="klr-stat-w-label">Eastern (EST/EDT)</span>
                <h4 class="klr-stat-w-val" id="est-clock-val">00:00:00 AM</h4>
                <span class="klr-stat-w-sub" id="est-date-val">Loading Date</span>
            </div>
        </div>
    </div>

    <!-- CLOCK 4: CENTRAL AFRICA TIME (CAT) -->
    <!-- Replace the placeholder URL in url() below with your custom CAT image once generated -->
    <div class="klr-stat-widget" style="background-image: linear-gradient(135deg, rgba(15, 18, 25, 0.9) 0%, rgba(15, 18, 25, 0.7) 100%), url('https://placehold.co/400x300/0c0f1a/ffffff?text=CAT+Background') !important; background-size: cover !important; background-position: center !important;">
        <div class="klr-clock-widget-flex">
            <div class="klr-analog-clock">
                <svg class="klr-analog-clock-svg" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
                    <circle class="clock-face" cx="20" cy="20" r="18" fill="none" stroke="rgba(255,255,255,0.12)" stroke-width="1.2"/>
                    <line class="hour-hand" x1="20" y1="20" x2="20" y2="14" stroke="var(--klr-white)" stroke-width="2" stroke-linecap="round"/>
                    <line class="minute-hand" x1="20" y1="20" x2="25" y2="20" stroke="rgba(255,255,255,0.4)" stroke-width="1.5" stroke-linecap="round"/>
                    <line class="second-hand" x1="20" y1="20" x2="20" y2="7" stroke="var(--klr-vibrant-scarlet)" stroke-width="0.8" stroke-linecap="round"/>
                    <circle cx="20" cy="20" r="1" fill="var(--klr-vibrant-scarlet)"/>
                </svg>
            </div>
            
            <div class="klr-clock-digital-meta">
                <span class="klr-stat-w-label">Central Africa (CAT)</span>
                <h4 class="klr-stat-w-val" id="cat-clock-val">00:00:00 AM</h4>
                <span class="klr-stat-w-sub" id="cat-date-val">Loading Date</span>
            </div>
        </div>
    </div>

</div>

<!-- HIGH-PERFORMANCE WORLD CLOCKS TICKER ENGINE -->
<script type="text/javascript">
(function() {
    function updateWorldClocks() {
        var localTime = new Date();
        var utcTimestamp = localTime.getTime() + (localTime.getTimezoneOffset() * 60000);
        
        // Define standard Timezone Offsets (relative to UTC)
        var eatOffset = 3;  // Kenya (EAT) = UTC + 3
        var gmtOffset = 0;  // GMT = UTC + 0
        var estOffset = -4; // Eastern Time (EST/EDT) = UTC - 4
        var catOffset = 2;  // Central Africa (CAT) = UTC + 2
        
        // Assemble respective dates
        var eatDate = new Date(utcTimestamp + (3600000 * eatOffset));
        var gmtDate = new Date(utcTimestamp + (3600000 * gmtOffset));
        var estDate = new Date(utcTimestamp + (3600000 * estOffset));
        var catDate = new Date(utcTimestamp + (3600000 * catOffset));
        
        // Formatting options matching high-end digital clock standards
        var timeOptions = { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true };
        var dateOptions = { month: 'short', day: 'numeric', weekday: 'short' };
        
        // Render EAT Clock
        var eatClock = document.getElementById("eat-clock-val");
        var eatDateEl = document.getElementById("eat-date-val");
        if (eatClock) eatClock.textContent = eatDate.toLocaleTimeString('en-US', timeOptions);
        if (eatDateEl) eatDateEl.textContent = eatDate.toLocaleDateString('en-US', dateOptions);

        // Render GMT Clock
        var gmtClock = document.getElementById("gmt-clock-val");
        var gmtDateEl = document.getElementById("gmt-date-val");
        if (gmtClock) gmtClock.textContent = gmtDate.toLocaleTimeString('en-US', timeOptions);
        if (gmtDateEl) gmtDateEl.textContent = gmtDate.toLocaleDateString('en-US', dateOptions);

        // Render EST Clock
        var estClock = document.getElementById("est-clock-val");
        var estDateEl = document.getElementById("est-date-val");
        if (estClock) estClock.textContent = estDate.toLocaleTimeString('en-US', timeOptions);
        if (estDateEl) estDateEl.textContent = estDate.toLocaleDateString('en-US', dateOptions);

        // Render CAT Clock
        var catClock = document.getElementById("cat-clock-val");
        var catDateEl = document.getElementById("cat-date-val");
        if (catClock) catClock.textContent = catDate.toLocaleTimeString('en-US', timeOptions);
        if (catDateEl) catDateEl.textContent = catDate.toLocaleDateString('en-US', dateOptions);
    }
    
    updateWorldClocks();
    setInterval(updateWorldClocks, 1000); // Pulse & Tick once every single second
})();
</script>

/* ==========================================================================
   DASHBOARD SUB-METRIC FLEX & FLAG BADGES
   ========================================================================== */
.klr-clock-sub-flex {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
    width: 100%;
}

/* Highly polished translucent national flag capsule */
.klr-clock-flag-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--klr-white) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Adjust date layout to align gracefully next to flag badge */
.klr-stat-widget .klr-stat-w-sub {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 544px) {
    .klr-clock-sub-flex {
        justify-content: center;
    }
}

/* ==========================================================================
   16. REDESIGNED WIDESCREEN RECENT TEACHINGS & LIGHTBOX STYLES
   ========================================================================== */
.klr-column-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.klr-column-card-header .klr-widget-title {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Redesigned "View All" redirection button */
.klr-widget-view-all-btn {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--klr-vibrant-scarlet);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.klr-widget-view-all-btn:hover {
    transform: translateX(3px);
}

/* Widescreen event box thumbnail */
.klr-upcoming-media-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Upcoming event metadata row */
.klr-upcoming-details-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Recent Teachings widescreen row items */
.klr-sermon-row-item {
    cursor: pointer;
}

.klr-sermon-row-thumb {
    width: 75px;
    height: 44px; /* Clean 16:9 proportionate row height */
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Compact play overlay inside row item */
.klr-sermon-row-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--klr-white);
    transition: opacity 0.2s ease;
}

.klr-sermon-row-item:hover .klr-sermon-row-play-overlay {
    opacity: 1;
}

.klr-sermon-row-play-overlay i {
    font-size: 12px;
}

.sermon-item-duration i {
    font-size: 11px;
    margin-right: 2px;
}

/* ==========================================================================
   3D GLASSMORPHISM FULL-SCREEN VIDEO LIGHTBOX OVERLAY
   ========================================================================== */
.klr-video-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.88); /* Dark cinematic base */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10010; /* Floats above all other sidebar/modal elements */
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.klr-video-lightbox-overlay.is-active {
    display: flex;
}

/* High-tech close button */
.klr-lightbox-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.klr-lightbox-close-btn:hover {
    background: rgba(198, 0, 24, 0.2);
    border-color: rgba(198, 0, 24, 0.45);
    color: var(--klr-white);
    box-shadow: 0 0 15px rgba(198, 0, 24, 0.35);
}

/* Majestic 16:9 lightbox player card */
.klr-lightbox-player-card {
    width: 100%;
    max-width: 960px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.75);
}

.klr-lightbox-aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.klr-lightbox-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 544px) {
    .klr-lightbox-close-btn {
        top: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ==========================================================================
   17. DOUBLE EVENT ACTIONS & ADMIN INLINE ROW ACTIONS
   ========================================================================== */
.klr-upcoming-double-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

/* Redesigned "Watch Here Live" 3D Glassmorphism button */
.klr-upcoming-watch-live-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(198, 0, 24, 0.1) !important;
    color: var(--klr-white) !important;
    border: 1px solid rgba(198, 0, 24, 0.35) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.klr-upcoming-watch-live-btn:hover {
    background: var(--klr-vibrant-scarlet) !important;
    border-color: var(--klr-vibrant-scarlet) !important;
    box-shadow: 0 6px 18px rgba(198, 0, 24, 0.45) !important;
    transform: translateY(-1.5px);
}

.klr-upcoming-watch-live-btn:active {
    transform: translateY(0);
}

/* Secure inline trash delete button */
.klr-sermon-row-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.klr-row-delete-btn {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.klr-row-delete-btn:hover {
    color: #ef9a9a !important;
    transform: scale(1.1);
}

@media (max-width: 544px) {
    .klr-upcoming-double-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   18. INLINE SLIDEOUT DRAWER STYLES (Admin Editors) [2]
   ========================================================================== */
.klr-inline-edit-drawer {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin: 15px 0 !important;
    width: 100% !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.edit-drawer-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.edit-drawer-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.edit-drawer-row input,
.edit-drawer-row textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    color: var(--klr-white) !important;
    font-size: 13px !important;
    outline: none !important;
}

.edit-drawer-row textarea {
    min-height: 60px;
    resize: vertical;
}

.edit-drawer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.edit-save-btn {
    background: #00897b !important;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.edit-save-btn:hover {
    background: #00b0ff !important;
}

.edit-cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.7);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   18. FLOATING PORTAL GATE & EMOJI-POWERED BACKGROUND AUDIO DECK [2]
   ========================================================================== */

/* ----------------------------------------------------------------------
   FLOATING MEMBERS LOGIN CAPSULE (Bottom-Right Gate) [2]
   ---------------------------------------------------------------------- */
.klr-floating-login-gate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #C60018 0%, #4D000A 100%);
    box-shadow: 0 8px 24px rgba(198, 0, 24, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: floatPulse 3s ease-in-out infinite;
    cursor: pointer;
}

@keyframes floatPulse {
    0% { transform: translateY(0); box-shadow: 0 8px 24px rgba(198, 0, 24, 0.4); }
    50% { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(198, 0, 24, 0.65); }
    100% { transform: translateY(0); box-shadow: 0 8px 24px rgba(198, 0, 24, 0.4); }
}

.klr-floating-login-gate:hover {
    transform: scale(1.04) translateY(-5px) !important;
    filter: brightness(1.1);
}

.klr-floating-login-gate svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ----------------------------------------------------------------------
   FLOATING AMBIENT BACKGROUND MUSIC PLAYER (Apple/Netflix 3D Glow)
   ---------------------------------------------------------------------- */
.klr-floating-ambient-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 50px;
    
    /* Loads your customized background natively with a 90% overlay mask */
    background-image:  url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/profilebg4.png') !important;
    background-size: cover !important;
    background-position: center !important;
    
    border: 1px solid rgba(198, 0, 24, 0.25) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    font-family: -apple-system, sans-serif;
    
    /* Ambient Breathing Red Halo */
    animation: playerBreathingGlow 3s ease-in-out infinite !important;
}

@keyframes playerBreathingGlow {
    0% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 8px rgba(198, 0, 24, 0.35); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
    50% { 
        box-shadow: 0 15px 40px rgba(0,0,0,0.65), inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 20px rgba(198, 0, 24, 0.8); 
        border-color: rgba(198, 0, 24, 0.5); 
    }
    100% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 8px rgba(198, 0, 24, 0.35); 
        border-color: rgba(198, 0, 24, 0.25); 
    }
}

.klr-floating-ambient-player.is-hidden {
    opacity: 0;
    transform: translateX(-100px);
    pointer-events: none;
}

/* Rotating mechanical vinyl disc */
.klr-music-disk-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #111111 0%, #333333 100%);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(198, 0, 24, 0.3);
}

@keyframes spinDisk {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.klr-music-disk-wrap.is-playing {
    animation: spinDisk 5s linear infinite;
}

.klr-music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Div-powered button overrides */
.klr-music-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease-in-out !important;
}

.klr-music-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* 
   Sleek Absolute Top-Right Close Button 
   Floating on the edge boundary of the player capsule
*/
.klr-floating-ambient-player .close-player {
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    width: 24px !important;
    height: 24px !important;
    background: #060913 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
}

.klr-floating-ambient-player .close-player span {
    font-size: 11px !important;
}

.klr-floating-ambient-player .close-player:hover {
    background: #C60018 !important;
    border-color: #C60018 !important;
    box-shadow: 0 0 10px rgba(198, 0, 24, 0.5) !important;
}

/* Dynamic HTML Emojis Player States (CSS Powered Visibility) */
.klr-music-controls .klr-pause-icon {
    display: none !important;
}
.klr-music-controls.is-playing .klr-play-icon {
    display: none !important;
}
.klr-music-controls.is-playing .klr-pause-icon {
    display: inline-block !important;
}

/* Tablet/Mobile sizing tweaks */
@media (max-width: 768px) {
    .klr-floating-login-gate {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 12px;
    }
    .klr-floating-ambient-player {
        bottom: 20px;
        left: 20px;
        padding: 8px 14px;
    }
}
/* ==========================================================================
   19. PORTAL CTA BACKGROUND IMAGE & DOCK MUSIC PLAYER FIXES [2, 3]
   ========================================================================== */

/* Widescreen background overlay inside the Portal CTA Section (Section 4) [3] */
.klr-portal-bg-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* Loads your custom dark reddish background natively [3] */
    background-image: url('https://www.kingdomliferemnant.com/wp-content/uploads/2026/05/redish.png') !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.25 !important; /* Muted perfectly to guarantee text contrast */
    z-index: 0 !important; 
}

/* 
   Div-powered button overrides (Bypasses Astra button size resets completely) 
   Guarantees standard, large, colorful system emojis display perfectly [2]
*/
.klr-music-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Android Emoji", sans-serif !important;
}

.klr-music-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    transform: scale(1.05) !important;
}

.klr-music-btn span {
    font-size: 15px !important; /* Increased size [2] */
    line-height: 1 !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}