/*!
 * AoHO CMS Stylesheet
 * Association of Hindu Organizations Content Management System
 * Color Scheme: Off-White (#FAFAFA), Orange (#FF8C00), Blue (#1E90FF)
 */

/* CSS Variables for Theme Colors */
:root {
    --primary-color: #FAFAFA;
    --secondary-color: #FF8C00;
    --accent-color: #1E90FF;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --white: #FFFFFF;
    --dark: #343a40;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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 */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.header-top {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-main {
    padding-top: 16px;
}

/* 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 - Inline with Logo */
.navbar {
    background: transparent;
    padding: 0;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.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 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 600px;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-footer {
    background: var(--primary-color);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: var(--border-radius);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Background Variants */
.bg-light {
    background: var(--primary-color);
}

.bg-white {
    background: var(--white);
}

.bg-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.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(--white);
}

.bg-primary p {
    color: rgba(255,255,255,0.9);
}

/* Event Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendar-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-day {
    background: var(--white);
    padding: 1rem;
    min-height: 100px;
    position: relative;
}

.calendar-day.other-month {
    background: var(--primary-color);
    color: var(--text-muted);
}

.calendar-day.today {
    background: var(--accent-color);
    color: var(--white);
}

.event-item {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2px 6px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    margin-top: 4px;
    cursor: pointer;
}

/* Footer Styles */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: var(--white);
    text-decoration: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.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='%23343a40' 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 12px center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--info-color);
    color: var(--info-color);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--primary-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    margin-top: 2rem;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: block;
    padding: 8px 12px;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
}

.page-item.active .page-link {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* 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 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        border-radius: var(--border-radius);
        margin-top: 10px;
    }
    
    .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: 15px 20px;
        border-radius: 0;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .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: 1rem;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: auto;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 0.875rem;
        padding: 10px 20px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .navbar,
    .chat-widget,
    .btn {
        display: none;
    }
    
    body {
        background: var(--white);
        color: var(--dark);
    }
    
    .container {
        max-width: 100%;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FFFFFF;
        --text-dark: #000000;
        --text-light: #000000;
        --border-color: #000000;
    }
    
    .card,
    .form-control {
        border-width: 2px;
    }
}

/* 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: 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: linear-gradient(45deg, #fff 0%, #f8f9fa 50%, #fff 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: 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: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

.contact-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.contact-form-section {
    background: 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: 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: linear-gradient(135deg, #fff8e1 0%, #f3e5f5 50%, #e8f5e8 100%);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.resource-category {
    background: 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: linear-gradient(135deg, #f0f4f8 0%, #e6f3ff 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.news-card {
    background: 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: linear-gradient(135deg, #fff3e0 0%, #fce4ec 50%, #e8f5e8 100%);
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.involvement-card {
    background: 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: 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;
    }
}
