:root {
    /* Authentic Western Color Palette - Dark Oak & Black Walnut Theme */
    --western-brown: #3C2415;          /* Dark Oak Brown */
    --western-tan: #C19A6B;            /* Weathered Leather */
    --western-gold: #CD853F;           /* Peru/Bronze - More Western */
    --western-rust: #8B4513;           /* Saddle Brown */
    --western-leather: #654321;        /* Dark Leather */
    --western-sand: #C7B299;           /* Darker Warm Sand */
    --western-dark-brown: #2F1B14;     /* Black Walnut */
    --western-red: #A0522D;            /* Sienna */
    --western-cream: #D4C4A8;          /* Darker Western Cream */
    --western-sage: #87A96B;           /* Sage Green */
    --western-light-brown: #C7B299;    /* Darker Western Brown */
    --western-bronze: #CD7F32;         /* Bronze accent */
    
    /* Typography - More Authentic Western Fonts */
    --western-font-primary: 'Playfair Display', serif;         /* Elegant serif for main headings */
    --western-font-secondary: 'Cinzel', serif;                 /* Classic carved stone look */
    --western-font-body: 'Crimson Text', serif;                /* Readable serif body */
    --western-font-accent: 'Bitter', serif;                    /* Western newspaper style */
}

/* Import Authentic Western-style fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Cinzel:wght@400;500;600;700&family=Crimson+Text:wght@400;600;700&family=Bitter:wght@400;500;600;700&display=swap');

/* Global Overrides */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure proper viewport handling on mobile */
@media (max-width: 768px) {
    html, body {
        min-height: 100vh; /* Ensure full viewport height is used */
    }
    
    /* Add bottom space to prevent any cutoff */
    body::after {
        content: "";
        display: block;
        height: 2rem; /* Extra space at bottom of page */
        clear: both;
    }
    
    /* Ensure last section has proper bottom spacing - much more aggressive */
    #contact {
        padding-bottom: 1rem !important; /* Minimal bottom padding */
        margin-bottom: 0.5rem !important; /* Minimal margin */
    }
    
    /* Ensure cards at the end are fully visible */
    .western-section:last-of-type,
    section:last-of-type {
        margin-bottom: 0.5rem !important; /* Much smaller margin */
        padding-bottom: 1rem !important; /* Much smaller padding */
    }
    
    /* Make bottom cards much more compact */
    #contact .card {
        margin-bottom: 0.5rem !important; /* Smaller spacing between cards */
    }
    
    #contact .card-body {
        padding: 0.75rem !important; /* Much smaller card body padding */
    }
    
    #contact .card-header {
        padding: 0.5rem !important; /* Much smaller header padding */
    }
    
    /* Reduce text size in bottom cards */
    #contact .card h5 {
        font-size: 1rem !important; /* Smaller header text */
        margin-bottom: 0.5rem !important;
    }
    
    #contact .card p {
        font-size: 0.85rem !important; /* Smaller body text */
        margin-bottom: 0.25rem !important;
    }
}

body {
    font-family: var(--western-font-body);
    background: linear-gradient(90deg, var(--western-dark-brown) 0%, var(--western-brown) 100%);
    color: white;
    line-height: 1.7;
}

/* Disabled button styling */
.btn:disabled,
.btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: initial !important;
}

/* Audio button specific disabled styling */
.audio-btn:disabled {
    background: var(--western-leather) !important;
    border-color: var(--western-leather) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--western-font-primary);
    color: white !important;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Specific styling for main headings */
h1.display-1, h1.display-2, h1.display-3, h1.display-4 {
    font-family: var(--western-font-secondary);
    font-weight: 600;
    color: white !important;
}

/* Section headings */
h2.display-4, h2.display-5 {
    font-family: var(--western-font-accent);
    font-weight: 600;
    color: white !important;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--western-font-secondary);
    color: white !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Bootstrap Component Overrides */

/* Navbar */
.navbar {
    background: linear-gradient(90deg, var(--western-dark-brown) 0%, var(--western-brown) 100%) !important;
    border-bottom: 3px solid var(--western-bronze);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Offcanvas menu styling */
.offcanvas {
    background: linear-gradient(135deg, var(--western-dark-brown) 0%, var(--western-brown) 100%) !important;
    border-left: 3px solid var(--western-bronze);
}

.offcanvas-header {
    border-bottom: 2px solid var(--western-bronze);
}

.offcanvas-title {
    color: var(--western-cream) !important;
    font-family: var(--western-font-primary);
    font-weight: 600;
}

.offcanvas .btn-close {
    filter: invert(1) brightness(2);
}

.offcanvas .navbar-nav .nav-link {
    color: var(--western-cream) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 5px;
    margin-bottom: 0.25rem;
}

.offcanvas .navbar-nav .nav-link:hover {
    background: rgba(205, 127, 50, 0.2);
    color: var(--western-bronze) !important;
}

.offcanvas .dropdown-menu {
    background: var(--western-leather);
    border: 1px solid var(--western-bronze);
    margin-left: 1rem;
}

.offcanvas .dropdown-item {
    color: var(--western-cream) !important;
    padding: 0.5rem 1rem;
}

.offcanvas .dropdown-item:hover {
    background: rgba(205, 127, 50, 0.3);
    color: var(--western-gold) !important;
}

/* Mobile navbar toggler */
.navbar-toggler {
    border: 2px solid var(--western-cream) !important;
    background-color: var(--western-bronze) !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 253, 208, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 253, 208, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

.navbar-brand {
    font-family: var(--western-font-primary);
    font-size: 1.6rem;
    color: var(--western-cream) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) 
            drop-shadow(0 0 8px rgba(255, 253, 208, 0.6));
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--western-cream) !important;
    font-family: var(--western-font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--western-bronze) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--western-bronze);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--western-dark-brown) 0%, var(--western-brown) 100%) !important;
    border: 2px solid var(--western-bronze) !important;
    color: white !important;
    font-family: var(--western-font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--western-brown) 0%, var(--western-rust) 100%) !important;
    border-color: var(--western-bronze) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--western-light-brown) 0%, var(--western-sand) 100%) !important;
    border: 2px solid var(--western-dark-brown) !important;
    color: var(--western-dark-brown) !important;
    font-family: var(--western-font-primary);
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, var(--western-sand) 0%, var(--western-tan) 100%) !important;
    border-color: var(--western-brown) !important;
    color: var(--western-dark-brown) !important;
}

.btn-danger {
    background: linear-gradient(45deg, var(--western-rust) 0%, var(--western-red) 100%) !important;
    border: 2px solid var(--western-leather) !important;
    color: white !important;
    font-family: var(--western-font-primary);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(45deg, var(--western-red) 0%, var(--western-rust) 100%) !important;
    border-color: var(--western-dark-brown) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.4);
}

/* UNIFIED CARD STYLING - Devotional Page Style for Entire Website */
.card {
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 3rem !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #ffc107 !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

.card-body,
.card-footer,
div.card-body,
section .card-body {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
}

.card-header,
div.card-header,
section .card-header {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffc107 !important;
    font-family: var(--western-font-primary);
    font-weight: 700;
    border: none !important;
    border-bottom: 1px solid #ffc107 !important;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border-radius: 0 !important;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 2rem !important;
}

.card-header {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffc107 !important;
    font-family: var(--western-font-primary);
    font-weight: 700;
    border: none !important;
    border-bottom: 1px solid #ffc107 !important;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border-radius: 0 !important;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 2rem !important;
}

/* Card text styling */
.card p,
.card .lead,
.card span,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card .card-text,
.card .card-title,
.card blockquote,
.card .blockquote,
.card ul, .card li, .card ol,
.card em, .card strong, .card small,
.card .fs-1, .card .fs-2, .card .fs-3, .card .fs-4, .card .fs-5, .card .fs-6 {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6,
.card-header p, .card-header span, .card-header i {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffc107 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Duplicate section removed - using unified card styling above */

/* All text within cards should be white for elegant contrast */
.card p,
.card .lead,
.card span:not(.badge),
.card .card-text,
.card blockquote,
.card .blockquote,
.card ul, .card li, .card ol,
.card em, .card strong, .card small,
.card .fs-1, .card .fs-2, .card .fs-3, .card .fs-4, .card .fs-5, .card .fs-6 {
    color: white !important;
    background: transparent !important;
    background-color: transparent !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Prayer sections should have dark backgrounds with white text */
.prayer-section {
    background: rgba(90, 75, 65, 0.95) !important;
    background-color: rgba(90, 75, 65, 0.95) !important;
    color: white !important;
}

/* All text within prayer sections should be white for good contrast */
.prayer-section p,
.prayer-section .lead,
.prayer-section span,
.daily-prayer-content p,
.daily-prayer-content .lead,
.prayer-section h1,
.prayer-section h2,
.prayer-section h3,
.prayer-section h4,
.prayer-section h5,
.prayer-section h6 {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
}

/* Prayer text on cards with elegant white styling */
.card .prayer-text,
.card .prayer-text p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    font-weight: 500;
    line-height: 1.8;
    font-family: 'Times New Roman', serif;
}

/* Ensure card headers have elegant golden styling with transparent background */
.card-header {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffc107 !important;
    border-bottom: 1px solid #ffc107 !important;
    border-radius: 0 !important;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 2rem !important;
    text-align: center;
    font-family: var(--western-font-primary);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card-header h5 {
    color: #ffc107 !important;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Times New Roman', serif;
    font-weight: 600;
}

/* Enhanced hover effects for elegant cards */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: #ffc107;
}

.card-body {
    padding: 0 !important;
    background: transparent !important;
}

/* Forms */
.form-control {
    border: 2px solid #8B7355;
    border-radius: 8px;
    background: rgba(90, 75, 65, 0.9) !important;
    color: white !important;
    font-family: var(--western-font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #8B7355;
    box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.25);
    background: rgba(110, 95, 80, 0.9) !important;
    color: white !important;
}

/* Placeholder text styling for better visibility */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
}

.form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
}

.form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
    opacity: 1;
}

.form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
}

/* Select option styling */
.form-control option {
    background: rgba(90, 75, 65, 0.95) !important;
    color: white !important;
}

.form-label {
    font-family: var(--western-font-primary);
    font-weight: 600;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Prayer request form specific styling */
.prayer-request-form .form-label {
    color: white !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.prayer-request-form .form-control {
    background: rgba(60, 45, 35, 0.95) !important;
    border: 2px solid var(--western-bronze);
    color: white !important;
    font-size: 1rem;
}

.prayer-request-form .form-control:focus {
    background: rgba(80, 65, 55, 0.95) !important;
    border-color: var(--western-gold);
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
    color: white !important;
}

/* Contact form styling - white labels for dark card background */
.contact-form .form-label {
    color: white !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: var(--western-font-primary);
}

.contact-form .form-control {
    background: rgba(60, 45, 35, 0.95) !important;
    border: 2px solid #ffc107;
    color: white !important;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    background: rgba(80, 65, 55, 0.95) !important;
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: white !important;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
}

.contact-form .form-control option {
    background: rgba(60, 45, 35, 0.95) !important;
    color: white !important;
}

/* Contact page specific links */
.contact-form a {
    color: #ffc107 !important;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.contact-form a:hover {
    color: #e0a800 !important;
    text-decoration: underline;
}

/* Bootstrap Alert overrides for western theme */
.alert {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 15px !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.alert-info {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: #ffc107 !important;
    color: white !important;
}

.alert-success {
    background: rgba(40, 70, 40, 0.9) !important;
    border-color: #28a745 !important;
    color: white !important;
}

.alert-warning {
    background: rgba(70, 50, 30, 0.9) !important;
    border-color: #ffc107 !important;
    color: white !important;
}

.alert h5, .alert h6 {
    color: #ffc107 !important;
    margin-bottom: 0.5rem;
}

.alert i {
    color: #ffc107 !important;
}

/* Contact page text styling - Using unified card styling */
#contact .card-body h4,
#contact .card-body h5,
#contact .card-body h6 {
    color: white !important;
    font-family: var(--western-font-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

#contact .card-body p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#contact .card-body ul li {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#contact .card-body a {
    color: #ffc107 !important;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#contact .card-body a:hover {
    color: #e0a800 !important;
    text-decoration: underline;
}

#contact .text-muted,
#contact .card-body .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Ensure contact cards use unified dark styling */
#contact .card {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 3rem !important;
}

#contact .card-header {
    background: transparent !important;
    color: #ffc107 !important;
    border-bottom: 1px solid #ffc107 !important;
    text-align: center;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 2rem !important;
}

#contact .card-body {
    background: transparent !important;
    padding: 0 !important;
    color: white !important;
}

/* Custom Western Elements */
.western-divider {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10' stroke='%23DAA520' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
    height: 20px;
    margin: 2rem 0;
}

.western-ornament {
    font-family: var(--western-font-primary);
    color: var(--western-gold);
    font-size: 2rem;
    text-align: center;
    margin: 1rem 0;
    background: transparent !important;
    background-color: transparent !important;
}

.western-ornament i {
    margin: 0 0.5rem;
    color: var(--western-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Carousel content specific styling - white icons */
.hero-content .western-ornament,
.hero-content .western-ornament i,
.carousel-item .western-ornament,
.carousel-item .western-ornament i,
.hero-slide .western-ornament,
.hero-slide .western-ornament i {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Font Awesome icons in carousel/hero content should be white */
.hero-content .fas,
.hero-content .fa,
.carousel-item .fas,
.carousel-item .fa,
.hero-slide .fas,
.hero-slide .fa {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Equal height carousel cards */
.hero-content .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.hero-content .row .col-md-4 {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    max-width: 400px;
}

/* Center single cards in carousel rows */
.hero-content .row .col-md-4:only-child {
    margin: 0 auto;
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    justify-self: center;
}

/* For multiple cards, ensure they're evenly distributed */
.hero-content .row:not(:has(.col-md-4:only-child)) {
    justify-content: space-evenly;
}

/* Responsive centering */
@media (min-width: 768px) {
    .hero-content .row .col-md-4:only-child {
        width: 50%;
        max-width: 400px;
    }
}

@media (min-width: 992px) {
    .hero-content .row .col-md-4:only-child {
        width: 33.333333%;
        max-width: 350px;
    }
}

/* Ensure all card content in carousel has proper contrast */
.hero-content .worship-time,
.hero-content .community-item,
.hero-slide .worship-time,
.hero-slide .community-item,
.carousel-item .worship-time,
.carousel-item .community-item {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-content .worship-time:hover,
.hero-content .community-item:hover,
.hero-slide .worship-time:hover,
.hero-slide .community-item:hover,
.carousel-item .worship-time:hover,
.carousel-item .community-item:hover {
    background: rgba(0, 0, 0, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Western Hero Carousel Styling */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Fallback background for slides without specific images */
    background: linear-gradient(135deg, rgba(47, 27, 20, 0.8) 0%, rgba(60, 36, 21, 0.8) 100%);
}

/* Ensure all carousel items have background */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default background for carousel items */
    background: linear-gradient(135deg, rgba(47, 27, 20, 0.8) 0%, rgba(60, 36, 21, 0.8) 100%);
}

/* Western-themed backgrounds using header images */
.hero-slide-1,
.carousel-item.hero-slide-1 {
    background: 
        linear-gradient(rgba(47, 27, 20, 0.6), rgba(60, 36, 21, 0.6)),
        url('/images/header1.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide-2,
.carousel-item.hero-slide-2 {
    background: 
        linear-gradient(rgba(47, 27, 20, 0.6), rgba(60, 36, 21, 0.6)),
        url('/images/header2.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide-3,
.carousel-item.hero-slide-3 {
    background: 
        linear-gradient(rgba(47, 27, 20, 0.6), rgba(60, 36, 21, 0.6)),
        url('/images/header3.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide-4,
.carousel-item.hero-slide-4 {
    background: 
        linear-gradient(rgba(47, 27, 20, 0.6), rgba(60, 36, 21, 0.6)),
        url('/images/header4.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide-5,
.carousel-item.hero-slide-5 {
    background: 
        linear-gradient(rgba(47, 27, 20, 0.6), rgba(60, 36, 21, 0.6)),
        url('/images/header5.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(205, 127, 50, 0.1) 50%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--western-cream);
    padding: 2rem 0;
}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.9;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--western-dark-brown);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    background-size: 40%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-left: 3px solid var(--western-dark-brown);
    border-bottom: 3px solid var(--western-dark-brown);
}

.carousel-control-prev-icon::before {
    transform: translate(-40%, -50%) rotate(45deg);
}

.carousel-control-next-icon::before {
    transform: translate(-60%, -50%) rotate(-135deg);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: white;
    border-color: var(--western-bronze);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--western-bronze);
    border: 2px solid var(--western-cream);
    opacity: 0.6;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--western-cream);
    border-color: var(--western-bronze);
}

/* Worship Details Styling */
.worship-details {
    background: rgba(212, 196, 168, 0.15);
    border-radius: 15px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.worship-time,
.community-item {
    padding: 1.5rem;
    background: rgba(212, 196, 168, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.worship-time:hover,
.community-item:hover {
    background: rgba(212, 196, 168, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.worship-time h4,
.community-item h4 {
    color: white !important;
    font-family: var(--western-font-primary);
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
    text-align: center;
}

.worship-time p,
.community-item p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
}

.text-bronze {
    color: var(--western-bronze) !important;
}

.community-highlights {
    background: rgba(212, 196, 168, 0.15);
    border-radius: 15px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

/* Animation for carousel content */
.carousel-item.active .hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Western Section Dividers and Decorative Elements */
.western-section-divider {
    padding: 0.75rem 0;
    background: transparent;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.divider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.western-rope-divider {
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--western-bronze) 0px,
        var(--western-bronze) 6px,
        var(--western-gold) 6px,
        var(--western-gold) 12px,
        var(--western-tan) 12px,
        var(--western-tan) 18px
    );
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.western-rope-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(205, 127, 50, 0.3) 3px,
        transparent 6px,
        rgba(218, 165, 32, 0.3) 9px,
        transparent 12px
    );
}

.horseshoe-ornament {
    background: linear-gradient(135deg, var(--western-bronze) 0%, var(--western-gold) 100%);
    color: var(--western-dark-brown);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 3px solid var(--western-cream);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Western-themed section backgrounds */
.western-section {
    background: 
        radial-gradient(circle at 10% 20%, rgba(205, 127, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, var(--western-dark-brown) 0%, var(--western-brown) 100%);
    position: relative;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.western-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-opacity='0.03' fill='%23654321'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm15 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    opacity: 0.3;
}

/* Duplicate section removed - using unified card styling above */

/* Western-themed icons styling with golden accents */
.card-header i {
    color: #ffc107 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Blockquotes within cards should have elegant styling */
.card blockquote,
.card .blockquote {
    border-left: 4px solid #ffc107;
    padding-left: 1rem;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.card .blockquote-footer {
    color: #ffc107 !important;
    font-style: italic;
    margin-top: 0.5rem;
}

/* List styling within cards */
.card ul li {
    color: white !important;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card ul li i {
    color: #28a745 !important;
    margin-right: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Success checkmarks and other colored icons in cards */
.card .text-success {
    color: #28a745 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card .text-warning {
    color: #ffc107 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Small text within cards */
.card small {
    color: rgba(255, 255, 255, 0.8) !important;
    font-style: italic;
}

/* Prayer section enhancements */
.prayer-section {
    background: rgba(90, 75, 65, 0.95) !important;
    background-color: rgba(90, 75, 65, 0.95) !important;
    border: 3px solid var(--western-bronze);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    color: white !important;
}

/* Removed inner border pseudo-element for cleaner card appearance */

/* Western texture pattern for backgrounds */
.western-texture {
    background: 
        repeating-linear-gradient(45deg,
            rgba(47, 27, 20, 0.8),
            rgba(47, 27, 20, 0.8) 2px,
            rgba(60, 36, 21, 0.8) 2px,
            rgba(60, 36, 21, 0.8) 4px),
        repeating-linear-gradient(-45deg,
            rgba(47, 27, 20, 0.7),
            rgba(47, 27, 20, 0.7) 2px,
            rgba(31, 18, 9, 0.9) 2px,
            rgba(31, 18, 9, 0.9) 4px),
        linear-gradient(135deg, #2F1B14 0%, #1F1209 100%);
}

/* HOME PAGE SECTION SPACING OPTIMIZATIONS */
/* Reduce Bootstrap py-5 padding for better section flow */
#about.py-5,
#daily-prayer.py-5,
#prayer-request.py-5,
#contact.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* DEVOTIONAL PAGE SPECIFIC STYLING */
#devotional-content {
    margin-bottom: 2rem;
}

#community {
    padding-bottom: 5rem !important; /* Extra bottom padding to separate from footer */
}

/* Devotional page mobile adjustments */
@media (max-width: 768px) {
    #devotional-content {
        margin-bottom: 1rem;
    }
    
    #community {
        padding-bottom: 4rem !important; /* Adequate mobile spacing */
    }
    
    /* Reduce padding in devotional book content on mobile */
    .devotional-book-content {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    #community {
        padding-bottom: 3rem !important; /* Minimum mobile spacing */
    }
    
    /* Further reduce devotional content padding on very small screens */
    .devotional-book-content {
        padding: 1.5rem 1rem !important;
    }
}

/* Comprehensive Mobile Responsive Design */
@media (max-width: 768px) {
    /* Carousel adjustments - More conservative */
    .hero-slide {
        height: auto; /* Let content determine height */
        min-height: 350px; /* Reasonable minimum height */
        padding: 2rem 0; /* Add padding for content space */
    }
    
    .hero-carousel {
        height: auto; /* Let content determine height */
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1rem 0; /* Adequate padding for content */
    }
    
    /* Ensure carousel text is visible */
    .hero-content .display-1,
    .hero-content .display-4,
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.75rem !important; /* Smaller but readable headers */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem !important; /* Smaller lead text */
        line-height: 1.3;
    }
    
    /* Ensure carousel cards are properly sized */
    .hero-content .card {
        margin-bottom: 0.5rem;
    }
    
    .hero-content .card-body {
        padding: 0.75rem;
    }
    
    .hero-content .card-header {
        padding: 0.5rem;
    }
    
    .worship-details,
    .community-highlights {
        padding: 1rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
        background-size: 35%;
    }
    
    .carousel-control-prev-icon::before,
    .carousel-control-next-icon::before {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    
    .divider-content {
        gap: 1rem;
    }
    
    .horseshoe-ornament {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        background: linear-gradient(135deg, var(--western-bronze) 0%, var(--western-gold) 100%);
        border-color: var(--western-cream);
        color: var(--western-dark-brown);
    }
    
    .western-section-divider {
        padding: 1.5rem 0; /* Reduced padding */
    }
    
    /* Card improvements for mobile - using unified devotional style with mobile optimizations */
    .card {
        margin-bottom: 1rem; /* Consistent spacing */
        padding: 2rem !important; /* Reduced padding for mobile */
        border-radius: 15px !important; /* Keep consistent radius */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important; /* Consistent shadow */
        background: rgba(0, 0, 0, 0.7) !important; /* Consistent with unified style */
        border: 2px solid #ffc107 !important; /* Consistent golden border */
    }
    
    .card-body {
        background: transparent !important; /* Consistent with unified style */
        padding: 0 !important; /* Consistent with unified devotional style */
        border: none !important; /* Remove any border */
        color: white !important; /* Ensure white text */
    }
    
    .card-header {
        padding: 0.75rem 1rem; /* Reduced header padding */
    }
    
    /* Section spacing improvements for mobile */
    .western-section {
        margin-bottom: 0.5rem; /* Minimal margin */
        padding-top: 1rem !important; /* Override py-5 on mobile */
        padding-bottom: 1rem !important; /* Override py-5 on mobile */
    }
    
    /* Further reduce section divider padding on mobile */
    .western-section-divider {
        padding: 0.5rem 0; /* Reduced mobile divider padding */
    }
    
    /* Prayer section mobile optimization */
    .prayer-section {
        padding: 1.5rem; /* Significantly reduced padding */
        margin: 1rem 0; /* Reduced margin */
        border-radius: 15px; /* Smaller radius */
    }
    
    /* Text size adjustments */
    .display-1 {
        font-size: 2rem; /* Smaller display text */
    }
    
    .display-4, .display-5 {
        font-size: 1.5rem; /* Smaller section headers */
    }
    
    /* Button improvements */
    .btn {
        padding: 0.5rem 1rem; /* Smaller buttons */
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form improvements */
    .form-control {
        padding: 0.5rem 0.75rem; /* Smaller form controls */
        font-size: 0.9rem;
    }
    
    /* Audio controls mobile optimization */
    .audio-controls {
        margin: 1rem 0; /* Reduced margin */
    }
    
    .audio-btn {
        padding: 0.5rem 1rem; /* Smaller audio buttons */
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 576px) {
    /* Even more aggressive mobile optimizations */
    .hero-slide {
        height: auto; /* Let content determine height */
        min-height: 280px; /* Smaller minimum for phones */
        padding: 1rem 0; /* Smaller padding for phones */
    }
    
    .hero-carousel {
        height: auto; /* Let content determine height */
        min-height: 280px;
    }
    
    /* Normal main content spacing */
    main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important; /* No extra padding needed */
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Card further optimization */
    .card-body {
        padding: 1rem; /* Even smaller padding */
    }
    
    .card-header {
        padding: 0.5rem; /* Minimal header padding */
    }
    
    /* Prayer section further optimization */
    .prayer-section {
        padding: 1rem; /* Minimal padding */
        margin: 0.5rem 0;
    }
    
    /* Western section optimization */
    .western-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Text further adjustments */
    .display-1 {
        font-size: 1.75rem;
    }
    
    .display-4, .display-5 {
        font-size: 1.25rem;
    }
    
    /* Logo size adjustment */
    .logo-container img {
        max-height: 60px; /* Much smaller logo on very small screens */
    }
    
    /* Navbar improvements */
    .navbar-brand {
        font-size: 1.2rem; /* Smaller brand text */
    }
    
    .nav-link {
        font-size: 0.9rem; /* Smaller nav links */
    }
}

/* Section Header Styling */
.section-header {
    padding: 0.75rem 0;
    position: relative;
}

.section-header h2 {
    color: white !important;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.section-header .lead {
    font-style: italic;
    color: var(--western-brown);
    font-family: var(--western-font-body);
    background: rgba(212, 196, 168, 0.8);
    padding: 1rem 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--western-bronze);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Western ornaments */
.western-ornament {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Western-themed background patterns */
body {
    background: 
        radial-gradient(circle at 5% 15%, rgba(205, 127, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 95% 85%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, var(--western-dark-brown) 0%, var(--western-brown) 100%);
}

/* Contact section styling */
#contact {
    background: linear-gradient(90deg, var(--western-dark-brown) 0%, var(--western-brown) 100%);
    padding-bottom: 5rem !important;
    margin-bottom: 4rem !important;
}

/* Ensure contact section cards have proper spacing */
#contact .row:last-child {
    margin-bottom: 2rem !important;
}

#contact .card:last-child {
    margin-bottom: 2rem !important;
}

/* Mobile-specific contact section improvements - Ensure visibility */
@media (max-width: 768px) {
    #contact {
        padding-top: 1rem !important; /* Reduced top padding */
        padding-bottom: 3rem !important; /* More bottom spacing to prevent cutoff */
        margin-bottom: 2rem !important; /* More margin to ensure cards are visible */
    }
    
    /* Ensure bottom cards are fully visible */
    #contact .row {
        margin-bottom: 1rem !important; /* Better row margins */
    }
    
    #contact .row:last-child {
        margin-bottom: 2rem !important; /* More bottom margin for last row */
    }
    
    #contact .card:last-child {
        margin-bottom: 2rem !important; /* More margin for last card */
    }
    
    /* Make all cards in contact section more compact but still using unified styling */
    #contact .g-4 {
        gap: 1rem !important; /* Reasonable gap between cards */
    }
    
    /* Ensure unified card styling is maintained on mobile */
    #contact .card {
        padding: 2rem !important; /* Reduced but adequate padding for mobile */
        margin-bottom: 1rem !important;
    }
    
    #contact .card-header {
        padding: 0 0 0.75rem 0 !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Even more aggressive for tiny screens */
@media (max-width: 576px) {
    #contact {
        padding-top: 0.5rem !important;
        padding-bottom: 1rem !important; /* More bottom padding to ensure cards are visible */
        margin-bottom: 1rem !important; /* More bottom margin */
    }
    
    #contact .card-body {
        padding: 0.5rem !important; /* Very minimal padding */
    }
    
    #contact .card-header {
        padding: 0.25rem !important; /* Very minimal header padding */
    }
    
    #contact .card h5 {
        font-size: 0.9rem !important; /* Even smaller headers */
    }
    
    #contact .card p {
        font-size: 0.8rem !important; /* Even smaller text */
        margin-bottom: 0.1rem !important;
    }
}

/* Duplicate section removed - using unified card styling above */

/* Prayer sections should have dark backgrounds with white text */
.prayer-section {
    background: rgba(90, 75, 65, 0.95) !important;
    background-color: rgba(90, 75, 65, 0.95) !important;
    color: white !important;
}

/* Other dark background elements */
.bg-light,
[class*="bg-"]:not(.card):not(.card-body) {
    background: rgba(90, 75, 65, 0.95) !important;
    background-color: rgba(90, 75, 65, 0.95) !important;
    color: white !important;
}

/* FINAL OVERRIDE - ALL TITLES TO WHITE */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5,
[class*="display-"],
.card-header,
.western-ornament,
.section-header h1,
.section-header h2,
.section-header h3 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* FINAL OVERRIDE - ALL BUTTON TEXT VISIBLE */
.btn,
.btn-primary,
.btn-secondary,
button {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.btn-secondary {
    color: var(--western-dark-brown) !important;
    text-shadow: none !important;
}

.audio-btn {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.prayer-section {
    background: rgba(70, 60, 50, 0.9) !important;
    border: 3px solid var(--western-bronze);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    position: relative;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.prayer-section::before {
    content: '\f271';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--western-bronze);
    color: var(--western-dark-brown);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

.logo-container {
    text-align: center;
    margin: 2rem 0;
}

.logo-container img {
    max-height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 0 10px rgba(255, 253, 208, 0.8));
    transition: all 0.3s ease;
    background: radial-gradient(ellipse at center, rgba(255, 253, 208, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    padding: 10px;
}

.logo-container img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 0 15px rgba(255, 253, 208, 1));
}

/* Audio Controls */
.audio-controls {
    text-align: center;
    margin: 1.5rem 0;
}

.audio-btn {
    background: var(--western-bronze) !important;
    border: 2px solid var(--western-bronze) !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: var(--western-font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.audio-btn:hover {
    background: var(--western-rust) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--western-rust) !important;
}

.audio-btn:disabled {
    background: rgba(205, 127, 50, 0.6) !important;
    border-color: rgba(205, 127, 50, 0.6) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--western-dark-brown) 0%, var(--western-brown) 100%);
    color: var(--western-cream);
    padding: 0.75rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--western-bronze);
}

.footer span {
    font-family: var(--western-font-body);
    color: var(--western-cream) !important;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.2;
}

.footer a {
    color: var(--western-bronze) !important;
}

.footer a:hover {
    color: var(--western-gold) !important;
}

/* Mobile-specific footer improvements - Simple bottom footer */
@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 0; /* Reasonable padding on mobile */
        margin-top: 1rem; /* Some space from content above */
        position: static; /* Normal document flow */
    }
    
    .footer span {
        white-space: normal;
        font-size: 0.75rem; /* Readable but smaller text on mobile */
        line-height: 1.3;
        display: block;
    }
    
    .footer .row {
        text-align: center !important; /* Center footer content on mobile */
        margin: 0;
    }
    
    .footer .col-md-4,
    .footer .col-md-8 {
        text-align: center !important;
        margin: 0;
        padding: 0.25rem 0.5rem;
    }
    
    /* Show shorter church name on mobile for better readability */
    .footer .col-md-8 span {
        display: none; /* Hide the long text on mobile */
    }
    
    .footer .col-md-8::before {
        content: "Cowboy Cross Church"; /* Show shorter name */
        font-size: 0.75rem;
        color: var(--western-cream);
    }
}

/* Even more compact for very small screens */
@media (max-width: 576px) {
    .footer {
        padding: 0.4rem 0; /* Compact but reasonable padding */
        margin-top: 0.5rem; /* Small margin from content */
    }
    
    .footer span {
        font-size: 0.7rem; /* Small but readable text */
        line-height: 1.2;
    }
    
    .footer .col-md-4,
    .footer .col-md-8 {
        padding: 0.2rem 0.5rem;
    }
    
    /* Center footer content nicely */
    .footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
    }
    
    .footer .col-md-8::before {
        content: "Cowboy Cross Church"; /* Keep readable name */
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading spinner for prayer generation */
.prayer-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--western-light-brown);
    border-radius: 50%;
    border-top-color: var(--western-gold);
    animation: spin 1s ease-in-out infinite;
}

/* Western ornament styling */
.western-ornament {
    font-family: var(--western-font-accent);
    color: white !important;
    font-size: 2rem;
    text-align: center;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Devotional Archive Styling */
.devotional-card {
    transition: all 0.3s ease;
    height: 400px; /* Fixed height */
    width: 300px; /* Fixed width for consistency */
    max-width: 100%; /* Responsive max width */
    display: flex;
    flex-direction: column;
    margin: 0 auto; /* Center the card within its column */
}

.devotional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
}

.devotional-card .card-header {
    flex-shrink: 0; /* Don't shrink header */
    padding: 1rem;
}

.devotional-card .card-body {
    flex: 1; /* Take remaining space between header and footer */
    padding: 0 !important; /* Remove default padding */
    overflow: hidden; /* Hide overflow from container */
    display: flex;
    flex-direction: column;
}

.devotional-card .card-footer {
    flex-shrink: 0; /* Don't shrink footer */
    padding: 0.75rem;
}

.devotional-text-container {
    flex: 1; /* Take all available space in card-body */
    padding: 1rem; /* Add padding back inside scrollable area */
    overflow-y: auto; /* Vertical scrollbar when needed */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

.devotional-message-content {
    line-height: 1.7;
    font-family: 'Crimson Text', serif;
    word-wrap: break-word; /* Break long words */
    white-space: pre-wrap; /* Preserve line breaks and wrap text */
    hyphens: auto; /* Auto hyphenation for better text flow */
}

.message-title h6 {
    font-family: var(--western-font-primary);
    font-weight: 600;
}

/* Custom scrollbar styling for devotional cards */
.devotional-text-container::-webkit-scrollbar {
    width: 6px;
}

.devotional-text-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.devotional-text-container::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.6);
    border-radius: 3px;
}

.devotional-text-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.8);
}

.year-section {
    position: relative;
}

.month-section {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 193, 7, 0.3);
}

.western-rope-divider {
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Archive-specific mobile responsive adjustments */
@media (max-width: 768px) {
    .month-section {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .devotional-card {
        margin-bottom: 1.5rem;
        height: 350px; /* Slightly smaller on mobile */
        width: 280px; /* Slightly narrower on tablets */
    }
    
    .devotional-text-container {
        padding: 0.75rem; /* Smaller padding on mobile */
    }
}

@media (max-width: 576px) {
    .devotional-card {
        height: 320px; /* Even smaller on very small screens */
        width: 100%; /* Full width on small screens */
        max-width: 280px; /* But not too wide */
    }
    
    .devotional-text-container {
        padding: 0.5rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0; /* Reduced hero section padding */
    }
    
    .display-1 {
        font-size: 2rem; /* Smaller main heading */
    }
    
    .prayer-section {
        padding: 1.5rem; /* Reduced prayer section padding */
        margin: 1rem 0;
    }
    
    .logo-container img {
        max-height: 70px; /* Smaller logo */
    }
    
    /* Navbar mobile improvements */
    .navbar {
        padding: 0.5rem 1rem; /* Reduced navbar padding */
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Mobile navbar collapse */
    .navbar-collapse {
        background: var(--western-dark-brown) !important;
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 5px;
        background: rgba(205, 127, 50, 0.1);
        border: 1px solid rgba(205, 127, 50, 0.3);
        margin-bottom: 0.25rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(205, 127, 50, 0.2);
        border-color: var(--western-bronze);
    }
    
    /* Mobile-specific spacing improvements - More aggressive */
    .py-5 {
        padding-top: 1rem !important; /* Much smaller Bootstrap py-5 on mobile */
        padding-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.5rem !important; /* Much smaller Bootstrap mb-4 on mobile */
    }
    
    .mb-5 {
        margin-bottom: 0.75rem !important; /* Much smaller Bootstrap mb-5 on mobile */
    }
    
    /* Reduce all section padding dramatically */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Make sections much more compact */
    section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Reduce card heights and spacing */
    .row.g-4 {
        gap: 0.5rem !important; /* Much smaller gaps */
    }
    
    .row.justify-content-center {
        margin-bottom: 0.5rem !important; /* Reduce spacing between rows */
    }
    
    /* Section header mobile optimization */
    .section-header {
        padding: 1rem 0; /* Reduced section header padding */
    }
    
    .section-header .lead {
        padding: 0.75rem 1rem; /* Reduced lead text padding */
        font-size: 0.9rem;
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-slide {
        height: auto;
        min-height: 400px;
        padding: 1.5rem 0;
    }
    
    .hero-carousel {
        height: auto;
        min-height: 400px;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--western-gold);
    outline-offset: 2px;
}

/* Navigation Dropdown Styling */
.navbar .nav-item.dropdown .dropdown-menu {
    background-color: var(--western-dark-brown);
    border: 2px solid var(--western-gold);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    margin-top: 0.5rem;
}

.navbar .nav-item.dropdown .dropdown-item {
    color: var(--western-cream);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-family: var(--western-font-body);
    border-bottom: 1px solid rgba(205, 133, 63, 0.2);
}

.navbar .nav-item.dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.navbar .nav-item.dropdown .dropdown-item:hover,
.navbar .nav-item.dropdown .dropdown-item:focus {
    background-color: var(--western-leather);
    color: var(--western-gold);
    transform: translateX(5px);
}

.navbar .nav-item.dropdown .dropdown-item i {
    color: var(--western-gold);
    transition: color 0.3s ease;
}

.navbar .nav-item.dropdown .dropdown-item:hover i,
.navbar .nav-item.dropdown .dropdown-item:focus i {
    color: var(--western-cream);
}

/* Dropdown toggle arrow styling */
.navbar .nav-item.dropdown .dropdown-toggle::after {
    border-top-color: var(--western-cream);
    transition: all 0.3s ease;
}

.navbar .nav-item.dropdown .dropdown-toggle:hover::after,
.navbar .nav-item.dropdown .dropdown-toggle.show::after {
    border-top-color: var(--western-gold);
}

/* Daily Prayer Archive Page Specific Styling */
.prayer-archive-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #ffc107;
}

.coming-soon-text {
    line-height: 2;
    font-family: 'Times New Roman', serif;
}

.prayer-card {
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
}

.prayer-card .card-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    padding: 1rem !important;
    max-height: calc(400px - 80px) !important; /* Total height minus title space */
}

.prayer-card .card-title {
    flex-shrink: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 1 !important;
    padding: 1rem !important;
    border-bottom: 1px solid #dee2e6 !important;
    margin: 0 !important;
    color: white !important;
}

/* Ensure card-header also has white text for devotional cards */
.prayer-card .card-header {
    color: white !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.prayer-card .card-header h5,
.prayer-card .card-header h6 {
    color: white !important;
    margin: 0 !important;
}

.prayer-card .card-header i {
    color: white !important;
}

.prayer-card .card-text {
    word-wrap: break-word !important;
    white-space: pre-wrap !important;
    text-align: left !important;
}

/* Devotional message title styling within cards */
.prayer-card .card-text strong {
    display: block;
    color: #ffc107 !important;
    font-size: 1.2rem !important;
    font-family: var(--western-font-primary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3) !important;
    text-align: center !important;
}

/* Devotional title and message proper structure */
.prayer-card .devotional-title {
    display: block;
    color: #ffc107 !important;
    font-size: 1.2rem !important;
    font-family: var(--western-font-primary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3) !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.prayer-card .devotional-message {
    display: block;
    text-align: left !important;
    line-height: 1.6 !important;
    color: white !important;
}

.prayer-card .card-body {
    color: white !important;
}

/* Custom scrollbar for prayer cards */
.prayer-card .card-body::-webkit-scrollbar {
    width: 8px;
}

.prayer-card .card-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.prayer-card .card-body::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.6);
    border-radius: 4px;
}

.prayer-card .card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.8);
}

.year-section {
    margin-bottom: 4rem;
}

.month-section {
    margin-bottom: 3rem;
}

.section-title {
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.month-title {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid #ffc107;
}