/*!
 * AoHO CMS Stylesheet
 * Association of Hindu Organizations Content Management System
 * Color Scheme inspired by Church Fund WordPress Theme
 * Colors: Primary (#1B2D46), Secondary (#252220), Accent (#FFCA24), Background (#FBF9F3)
 */

/* CSS Variables for Theme Colors - Church Fund Inspired */
:root {
    /* Church Fund Color Palette */
    --primary-color: #1B2D46;          /* Primary - Deep Navy Blue */
    --secondary-color: #252220;         /* Secondary - Dark Charcoal */
    --accent-color: #FFCA24;            /* Accent - Golden Yellow */
    --tertiary-color: #7A6E67;          /* Tertiary - Taupe */
    --background-color: #FBF9F3;        /* Background - Warm Cream */
    --alternate-color: #FFFFFF;         /* Alternate - Pure White */
    --border-color: #E1D7BB;            /* Border - Light Tan */
    
    /* Text Colors */
    --text-dark: #49423E;               /* Dark Text - Warm Dark Brown */
    --text-light: #7A6E67;              /* Light Text - Taupe */
    --text-muted: #A09891;              /* Muted Text */
    --text-heading: #252220;            /* Heading Color */
    
    /* Link Colors */
    --link-color: #1B2D46;              /* Link - Primary */
    --link-hover: #FFCA24;              /* Link Hover - Accent */
    
    /* Status Colors */
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --info-color: #2196F3;
    
    /* White and Dark */
    --white: #FFFFFF;
    --dark: #252220;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1B2D46, #2C4A73);
    --gradient-accent: linear-gradient(135deg, #FFCA24, #FFD454);
    --gradient-overlay: linear-gradient(rgba(27, 45, 70, 0.7), rgba(27, 45, 70, 0.9));
    
    /* Shadows - Softer and More Elegant */
    --shadow-sm: 0 2px 4px rgba(27, 45, 70, 0.08);
    --shadow: 0 4px 12px rgba(27, 45, 70, 0.12);
    --shadow-lg: 0 8px 24px rgba(27, 45, 70, 0.16);
    --shadow-xl: 0 12px 48px rgba(27, 45, 70, 0.2);
    
    /* Border Radius - Slightly Softer */
    --border-radius: 0.25rem;
    --border-radius-sm: 0.125rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    /* Transitions */
    --transition: all 0.3s ease-in-out;
    --transition-fast: all 0.15s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* Typography - Church Fund Style */
    --font-primary: 'Libre Baskerville', Georgia, serif;
    --font-secondary: 'Libre Baskerville', Georgia, serif;
    --font-base: 'Libre Baskerville', Georgia, serif;
    
    /* Font Sizes */
    --font-size-base: 18px;
    --font-size-sm: 16px;
    --font-size-lg: 19px;
    --font-size-xl: 24px;
    
    /* Heading Sizes */
    --h1-size: 76px;
    --h2-size: 64px;
    --h3-size: 50px;
    --h4-size: 32px;
    --h5-size: 24px;
    --h6-size: 14px;
    
    /* Line Heights */
    --line-height-base: 1.45;
    --line-height-heading: 1.2;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--background-color);
    text-align: left;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography - Church Fund Style */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    margin: 0 0 0.75rem;
    padding: 0;
    font-weight: 400;
    line-height: var(--line-height-heading);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin-top: 3rem;
    font-family: var(--font-primary);
}

h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}

h4, h5, h6 {
    margin-top: 2rem;
    font-family: var(--font-secondary);
}

h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}

/* Heading Sizes */
h1 {
    font-size: clamp(2.5rem, 5vw, var(--h1-size));
    line-height: 1.08em;
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2rem, 4vw, var(--h2-size));
    line-height: 1.13em;
    letter-spacing: -2px;
}

h3 {
    font-size: clamp(1.75rem, 3vw, var(--h3-size));
    line-height: 1.16em;
    letter-spacing: -1px;
}

h4 {
    font-size: var(--h4-size);
    line-height: 1.25em;
    letter-spacing: -1px;
    font-weight: 500;
}

h5 {
    font-size: var(--h5-size);
    line-height: 1.33em;
    font-weight: 500;
}

h6 {
    font-size: var(--h6-size);
    line-height: 1.57em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    margin: 0 0 1.5rem;
    padding: 0;
    color: var(--text-dark);
    line-height: var(--line-height-base);
}

/* Text Selection */
::-moz-selection {
    color: var(--white);
    background-color: var(--accent-color);
}

::selection {
    color: var(--white);
    background-color: var(--accent-color);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-9 { flex: 0 0 75%; max-width: 75%; }

/* Header Styles - Church Fund Inspired with 3D Overlay */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12), 0 3px 12px rgba(0, 0, 0, 0.06);
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.813rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-main {
    padding: 15px 0;
}

.header-main .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-main .logo {
    flex: 0 0 auto;
}

.header-main .navbar {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-main .navbar-collapse {
    flex-grow: 0;
}

/* Logo - Larger Size */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.logo img {
    height: 80px;
    margin-right: 10px;
    transition: var(--transition);
}

.logo-large img {
    height: 90px;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation Styles - Church Fund Style */
.navbar {
    background: transparent;
    padding: 0;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 18px;
    color: var(--text-heading);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link i {
    margin-right: 8px;
    font-size: 0.875rem;
}

/* Mobile Navigation */
.navbar-toggler {
    display: none;
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Hero/Slider Section - Church Fund Style with Box Overlay */
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 4rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 52%;
    max-width: 740px;
    height: 100%;
    background: var(--primary-color);
    background: rgba(27, 45, 70, 0.95);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    max-width: 600px;
    padding: 4rem;
    margin-left: 0;
}

.slide-content h2 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1.1;
}

.slide-content h2 .highlight {
    color: var(--accent-color);
    display: block;
}

.slide-content p {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Buttons - Church Fund Style */
.btn {
    display: inline-block;
    padding: 15px 32px;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #1B2D46 !important;
    color: #FFFFFF !important;
    border-color: #1B2D46 !important;
    border-width: 2px;
    box-shadow: 0 4px 14px rgba(27, 45, 70, 0.3);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: #FFCA24 !important;
    border-color: #FFCA24 !important;
    color: #252220 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #1B2D46 !important;
    color: #FFFFFF !important;
    border-color: #1B2D46 !important;
    border-width: 2px;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #FFCA24 !important;
    border-color: #FFCA24 !important;
    color: #252220 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    background: transparent !important;
    color: #1B2D46 !important;
    border-color: #1B2D46 !important;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: #ffc107 !important;
    color: #1B2D46 !important;
    border-color: #ffc107 !important;
}

.btn-outline-secondary {
    background: #1B2D46 !important;
    color: #FFFFFF !important;
    border-color: #1B2D46 !important;
    border-width: 2px;
}

.btn-outline-secondary:hover {
    background: #FFCA24 !important;
    color: #252220 !important;
    border-color: #FFCA24 !important;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* Cards - Church Fund Style - Enhanced */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 20px rgba(27, 45, 70, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(27, 45, 70, 0.15);
}

.card-img-top {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #252220 !important;
    line-height: 1.3;
}

.card-text {
    color: #49423E !important;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-footer {
    background: var(--background-color);
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
}

/* Card Icons */
.card i,
.card .fa,
.card .fas,
.card .far,
.card .fab {
    color: #252220 !important;
}

.card-body i,
.card-body .fa,
.card-body .fas,
.card-body .far,
.card-body .fab {
    color: #252220 !important;
}

/* Card Buttons */
.card .btn,
.card-body .btn,
.card-footer .btn {
    background: #1B2D46 !important;
    color: #FFFFFF !important;
    border-color: #1B2D46 !important;
    border-width: 2px !important;
}

.card .btn:hover,
.card-body .btn:hover,
.card-footer .btn:hover {
    background: #FFCA24 !important;
    color: #252220 !important;
    border-color: #FFCA24 !important;
}

/* Section Styles - Church Fund Inspired - Enhanced */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background: var(--white);
}

.section-cream {
    background: var(--background-color);
}

.section-dark {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -1.5px;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styles - Church Fund Inspired */
.section {
    padding: 5rem 0;
    background: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 1.5rem auto;
    border-radius: var(--border-radius);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Background Variants - Unified Background */
.bg-light {
    background: var(--background-color);
}

.bg-white {
    background: var(--background-color);
}

.bg-primary {
    background: var(--background-color);
    color: var(--text-dark);
}

.bg-primary .section-title h2,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6 {
    color: var(--text-heading);
}

.bg-primary p {
    color: var(--text-dark);
}

.bg-accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.bg-accent .section-title h2,
.bg-accent h1, .bg-accent h2, .bg-accent h3, .bg-accent h4, .bg-accent h5, .bg-accent h6 {
    color: var(--primary-color);
}

/* Event Calendar Styles - Church Fund Inspired */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.calendar-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.25rem;
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-day {
    background: var(--white);
    padding: 1.25rem;
    min-height: 120px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: var(--background-color);
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.calendar-day.other-month {
    background: var(--background-color);
    color: var(--text-muted);
    opacity: 0.6;
}

.calendar-day.today {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid var(--primary-color);
}

.calendar-day.today .event-item {
    background: var(--primary-color);
    color: var(--white);
}

.event-item {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid var(--accent-color);
}

.event-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

/* Footer Styles - Church Fund Inspired */
.footer {
    background: #4a4542;
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer h5 {
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Social Icons - Church Fund Style */
.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 18px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
    text-decoration: none;
}

/* Form Styles - Church Fund Inspired */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 202, 36, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:invalid {
    border-color: var(--danger-color);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2349423E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 3rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Alert Styles - Church Fund Inspired */
.alert {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.alert-success {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--success-color);
    color: #2e7d32;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.08);
    border-color: var(--danger-color);
    color: #c62828;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.08);
    border-color: var(--warning-color);
    color: #f57c00;
}

.alert-info {
    background: rgba(33, 150, 243, 0.08);
    border-color: var(--info-color);
    color: #1565c0;
}

/* Breadcrumb - Church Fund Style */
.breadcrumb {
    background: var(--background-color);
    padding: 1.25rem 0;
    margin-bottom: 2.5rem;
    font-size: 0.92em;
}

.breadcrumb-item {
    display: inline-block;
    color: var(--text-dark);
}

.breadcrumb-item a {
    color: var(--text-dark);
    font-weight: 400;
}

.breadcrumb-item a:hover {
    color: var(--link-hover);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.75rem;
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

/* Pagination - Church Fund Style */
.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    color: var(--text-heading);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.page-item.active .page-link {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--background-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chat-button.hidden {
    display: none;
}

/* Chat Window */
.chat-window {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.btn-minimize,
.btn-close-chat {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px 8px;
    margin-left: 5px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.btn-minimize:hover,
.btn-close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F8F9FA;
}

.message {
    display: flex;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient-primary);
    color: var(--white);
    margin-right: 10px;
}

.user-message .message-avatar {
    background: var(--accent-color);
    color: var(--white);
    margin-left: 10px;
}

.message-content {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: var(--white);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: var(--accent-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.typing-indicator .message-avatar {
    margin-right: 10px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: var(--white);
    border-radius: 15px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--accent-color);
}

.chat-send-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.chat-send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 10px;
        bottom: 10px;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--secondary-color); }
.text-secondary { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.m-0 { margin: 0; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.pt-3 { padding-top: 1rem; }
.pb-3 { padding-bottom: 1rem; }
.p-4 { padding: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Responsive Design - Church Fund Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar-toggler {
        display: block;
        background: var(--primary-color);
        color: var(--white);
        border: 2px solid var(--primary-color);
        padding: 10px 16px;
        border-radius: var(--border-radius);
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-radius: var(--border-radius);
        margin-top: 15px;
        padding: 1rem 0;
        border: 1px solid var(--border-color);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 16px 24px;
        border-radius: 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 500px;
    }
    
    .slide-overlay {
        width: 100%;
        max-width: none;
    }
    
    .slide-content {
        padding: 2.5rem;
        text-align: center;
        margin: 0 auto;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.125rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Grid columns */
    .col-sm-6,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Calendar */
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: auto;
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Extra Small Devices (< 450px) */
@media (max-width: 450px) {
    .slide-overlay {
        width: 100%;
    }
    
    .slide-content {
        padding: 2rem;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h2 {
        font-size: 1.75rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
}

/* Church Fund Additional Styling Elements */

/* Blockquotes */
blockquote {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-heading);
    padding: 2rem 3rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
    background: var(--background-color);
    border-radius: var(--border-radius);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    line-height: 1;
    font-family: 'Libre Baskerville', Georgia, serif;
}

blockquote cite {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    font-family: var(--font-secondary);
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Main Content - Add padding for fixed header */
.main-content {
    padding-top: 0;
}

/* Lists */
ul:not(.navbar-nav):not(.pagination):not(.social-icons),
ol {
    padding-left: 2rem;
}

ul:not(.navbar-nav):not(.pagination):not(.social-icons) li,
ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Horizontal Rule */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

/* Tables */
table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
}

thead {
    background: var(--primary-color);
    color: var(--white);
}

thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--background-color);
}

tbody td {
    padding: 1rem 1.5rem;
    color: var(--text-dark);
}

/* Badges and Tags */
.badge,
.tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.badge-primary,
.tag-primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge-accent,
.tag-accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Image Caption */
figure {
    margin: 2rem 0;
}

figcaption {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-muted);
    padding: 1rem;
    text-align: center;
    background: var(--background-color);
    border-top: 2px solid var(--border-color);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Icon Boxes */
.icon-box {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.icon-box:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.icon-box-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.icon-box-content h4 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.icon-box-content p {
    color: var(--text-dark);
    margin: 0;
}

/* Testimonials */
.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 2rem;
    border-top: 4px solid var(--accent-color);
}

.testimonial-content {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

.testimonial-info h5 {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

/* Progress Bars */
.progress {
    height: 8px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    transition: width 1s ease-in-out;
}

/* Accordion */
.accordion-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    background: var(--background-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-heading);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.accordion-header.active {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 1000px;
}

/* Loading Spinner - Church Fund Style */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 45, 70, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    white-space: nowrap;
    border-radius: var(--border-radius);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

[data-tooltip]:hover::before {
    opacity: 1;
}

/* Print Styles - Church Fund Optimized */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .footer,
    .navbar,
    .chat-widget,
    .btn,
    .social-icons,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000 !important;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 20pt;
    }
    
    h3 {
        font-size: 16pt;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode - Accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --accent-color: #FFD700;
        --background-color: #FFFFFF;
        --text-dark: #000000;
        --text-heading: #000000;
        --border-color: #000000;
    }
    
    .card,
    .form-control,
    .btn {
        border-width: 3px;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .slide,
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none !important;
    }
}

/* Focus Visible - Accessibility */
*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 202, 36, 0.25);
}

/* Skip Links - Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 10000;
    border-radius: 0 0 var(--border-radius) 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Church Fund Additional Utility Classes */

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Font Families */
.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }

/* Text Transforms */
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* Text Decorations */
.text-underline { text-decoration: underline; }
.text-line-through { text-decoration: line-through; }
.text-italic { font-style: italic; }

/* Shadows */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Borders */
.border { border: 2px solid var(--border-color); }
.border-top { border-top: 2px solid var(--border-color); }
.border-right { border-right: 2px solid var(--border-color); }
.border-bottom { border-bottom: 2px solid var(--border-color); }
.border-left { border-left: 2px solid var(--border-color); }
.border-0 { border: 0; }

.border-primary { border-color: var(--primary-color); }
.border-accent { border-color: var(--accent-color); }

/* Border Radius */
.rounded-0 { border-radius: 0; }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-full { border-radius: 50%; }

/* Opacity */
.opacity-10 { opacity: 0.1; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Z-Index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-visible { overflow: visible; }

/* Cursors */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out;
}

.animate-slideInDown {
    animation: slideInDown 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* End of Church Fund Inspired Styles */

/* Visual Builder Frontend Styles */
.visual-builder-content .element-controls {
    display: none !important;
}

.visual-builder-content .builder-element {
    border: none !important;
    box-shadow: none !important;
    margin: 0;
    padding: 0;
}

.visual-builder-content .builder-element:hover {
    border: none !important;
    background-color: transparent !important;
}

.visual-builder-content .droppable-zone {
    border: none !important;
    background: transparent !important;
    min-height: auto !important;
}

.visual-builder-content .droppable-zone .text-center.text-muted {
    display: none !important;
}

.visual-builder-content .droppable-zone > p {
    display: none !important;
}

/* Ensure proper spacing for visual builder elements */
.visual-builder-content .element-content {
    margin: 0;
    padding: 0;
}

/* Clean up any builder-specific margins */
.visual-builder-content .builder-element + .builder-element {
    margin-top: 0;
}

/* Enhanced Page Builder Styles */

/* Hero Banner Enhancements */
.hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(3px);
    z-index: -1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Icon Circle for Three Column Sections */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.icon-circle:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-circle i {
    color: white !important;
}

/* Two Column Section Enhancements */
.two-column-section .content-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.two-column-section .content-text ul {
    list-style: none;
    padding-left: 0;
}

.two-column-section .content-text ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.two-column-section .content-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Three Column Section Enhancements */
.three-column-section .col-lg-4:hover .icon-circle {
    transform: translateY(-5px) scale(1.05);
}

/* Rich Content Section */
.rich-content-section {
    position: relative;
}

.rich-text-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-text-content h1:first-child, 
.rich-text-content h2:first-child, 
.rich-text-content h3:first-child {
    margin-top: 0;
}

.rich-text-content ul, .rich-text-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.rich-text-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.rich-text-content li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.rich-text-content p {
    margin-bottom: 1.5rem;
}

/* Text Block Section */
.text-block-section {
    position: relative;
}

.text-block-section.text-center h2 {
    color: var(--text-dark);
}

/* Background Overlays and Patterns */
.hero-banner.pattern-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(255,255,255,0.1) 2%, transparent 2%),
        radial-gradient(circle at 75px 75px, rgba(255,255,255,0.1) 2%, transparent 2%);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

/* Enhanced Typography */
.display-3 {
    font-size: calc(1.525rem + 3.3vw);
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

/* Section Spacing */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-banner {
        min-height: 60vh;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem !important;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animations - Fallback for browsers without AOS */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Enhanced Page Builder Elements */
.hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.two-column-section .content-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

.two-column-section .content-text ul {
    padding-left: 1.2rem;
}

.two-column-section .content-text ul li {
    margin-bottom: 0.5rem;
}

.three-column-section .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.three-column-section .icon-circle i {
    color: white;
}

.rich-content-section .rich-text-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.rich-content-section .rich-text-content ul,
.rich-content-section .rich-text-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.rich-content-section .rich-text-content li {
    margin-bottom: 0.5rem;
}

.rich-content-section .rich-text-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.text-block-section {
    background: var(--primary-color);
}

.text-block-section h2 {
    color: var(--text-dark);
    font-weight: 700;
}

.text-block-section p {
    color: var(--text-light);
}

/* Page Builder Responsive Enhancements */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .hero-banner h2 {
        font-size: 1.25rem;
    }
    
    .two-column-section .row > div {
        margin-bottom: 2rem;
    }
    
    .three-column-section .row > div {
        margin-bottom: 2rem;
    }
}

/* Enhanced Typography for Page Content */
.page-builder-content h1,
.page-builder-content h2,
.page-builder-content h3,
.page-builder-content h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-builder-content h1 { font-size: 3rem; }
.page-builder-content h2 { font-size: 2.5rem; }
.page-builder-content h3 { font-size: 2rem; }
.page-builder-content h4 { font-size: 1.5rem; }

.page-builder-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #e67300, #1873cc);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* SEO-friendly Content Spacing */
.pb-element {
    margin-bottom: 0;
}

section {
    padding: 60px 0;
}

section:first-child {
    padding-top: 0;
}

section:last-child {
    padding-bottom: 60px;
}

/* Accessibility Improvements */
.hero-banner:focus-within {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-banner {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .hero-banner::before {
        display: none !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* Page-Specific Enhancements */

/* About Page Styles */
.about-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 120% 100%;
    animation: wave 10s ease-in-out infinite;
}

.mission-section {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin: -2rem 0 3rem 0;
    position: relative;
    z-index: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Services Page Styles */
.services-page {
    background: var(--background-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.service-content {
    padding: 1.5rem;
}

/* Contact Page Styles */
.contact-page {
    background: var(--background-color);
}

.contact-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.contact-form-section {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 3rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Resources Page Styles */
.resources-page {
    background: var(--background-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.resource-category {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.resource-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.resource-list {
    padding: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.resource-item:hover {
    background: #f8f9fa;
    padding-left: 0.5rem;
}

.resource-item:last-child {
    border-bottom: none;
}

/* News Page Styles */
.news-page {
    background: var(--background-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Get Involved Page Styles */
.get-involved-page {
    background: var(--background-color);
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.involvement-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.involvement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.involvement-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Page Hero Sections */
.page-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 120% 100%;
    animation: wave 15s ease-in-out infinite;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Content Sections */
.content-section {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin: 3rem 0;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Animations */
@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-banner::before,
    .page-hero::before {
        filter: none;
    }
    
    .btn-primary:hover,
    .service-card:hover,
    .value-card:hover {
        transform: none;
    }
}

/* ============================================
   UNIFORM BACKGROUND OVERRIDE - Church Fund Style
   ============================================ */

/* Ensure consistent background throughout the site */
main,
.main-content,
.page-content,
article,
.content-area {
    background: var(--background-color);
}

/* Override all section backgrounds for consistency */
section:not(.hero-banner):not(.page-hero):not(.contact-hero):not(.footer) {
    background: var(--background-color) !important;
}

/* Remove any inline gradient backgrounds for sections */
.section.bg-light,
.section.bg-white,
.section.bg-primary,
.section.bg-secondary {
    background: var(--background-color) !important;
    color: var(--text-dark) !important;
}

/* Ensure text remains readable on uniform background */
.section.bg-light h1, .section.bg-light h2, .section.bg-light h3,
.section.bg-white h1, .section.bg-white h2, .section.bg-white h3,
.section.bg-primary h1, .section.bg-primary h2, .section.bg-primary h3 {
    color: var(--text-heading) !important;
}

.section.bg-light p,
.section.bg-white p,
.section.bg-primary p {
    color: var(--text-dark) !important;
}

/* Ensure cards and content boxes stand out on uniform background */
.card,
.content-box,
.info-box,
.feature-box {
    background: var(--white);
    box-shadow: var(--shadow);
}

/* Page wrapper background */
#page-wrapper,
.page-wrapper,
body > main {
    background: var(--background-color);
}

/* ============================================
   HIDE OLD BOOTSTRAP CAROUSEL - Church Fund Slider Only
   ============================================ */

/* Hide old carousel that appears in page content */
#aboutHeroSlider,
.carousel.slide:not(.custom-slider) {
    display: none !important;
}

/* Hide old carousel controls and indicators */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: none !important;
}

/* ============================================
   HIDE SPECIFIC HOME PAGE SECTIONS
   ============================================ */

/* Hide sections by finding them based on their content */
body.home section:has(h2:contains("Upcoming Highlights")),
body.page-template-default section:has(h2:contains("Upcoming Highlights")),
section:has(.display-4:contains("Upcoming Highlights")) {
    display: none !important;
}

body.home section:has(h2:contains("Community Stories")),
body.page-template-default section:has(h2:contains("Community Stories")),
section:has(.display-4:contains("Community Stories")) {
    display: none !important;
}

body.home section:has(h2:contains("Our Values in Action")),
body.page-template-default section:has(h2:contains("Our Values in Action")),
section:has(.display-4:contains("Our Values in Action")) {
    display: none !important;
}

/* Hide "Why Our Organisation Matters" image column */
body.home section:has(h2:contains("Why Our Organisation Matters")) .col-lg-6:has(i.fa-hands-heart),
section:has(.display-5:contains("Why Our Organisation Matters")) .col-lg-6:first-child {
    display: none !important;
}
