/* Base layout styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

/* HOA Header Styles */
.hoa-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 25px 0;
}

.header-content {
    text-align: left;
    padding-left: 30px;
}

.website-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #000;
    margin: 0;
    line-height: 1.1;
}

.website-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 8px 0 0 0;
    font-weight: normal;
}

/* Hero Image Section */
.hero-image-section {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.placeholder-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Main Layout */
.main-layout {
    flex: 1;
    background-color: #fff;
}

/* Sidebar Navigation */
.sidebar-nav {
    background-color: #f8f9fa;
    border-right: 2px solid #e9ecef;
    padding: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 0;
    height: calc(100vh - 260px);
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    border-bottom: 1px solid #e9ecef;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    text-transform: capitalize;
}

.nav-link:hover {
    background-color: #e3f2fd;
    color: #0052a3;
    text-decoration: none;
    transform: translateX(2px);
}

.nav-item.active .nav-link {
    background-color: #fff;
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    border-left: 4px solid #0066cc;
    box-shadow: 0 2px 4px rgba(0,102,204,0.1);
}

.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0066cc 0%, #004499 100%);
}

/* Main Content Area */
.main-content-area {
    padding: 30px 40px;
    min-height: calc(100vh - 260px);
    background-color: #fff;
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
}

.general-text-content {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #333;
}

.general-text-content h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0rem;
    margin-top: 0;
}
.general-text-content h4 {
    margin-bottom: 0rem;
    margin-top: 0;
}

.general-text-content h5 {
    margin-bottom: 0rem;
    margin-top: 0;
}

.general-text-content h6 {
    margin-bottom: 0rem;
    margin-top: 0;
}

.general-text-content h2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0rem;
    margin-top: 0rem;
}

.general-text-content h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0rem;
    margin-top: 0rem;
}

.general-text-content p {
    margin-bottom: 0rem;
    color: #333;
    line-height: 1.6;
}

.general-text-content ul,
.general-text-content ol {
    margin-bottom: 0rem;
    padding-left: 2rem;
}

.general-text-content li {
    margin-bottom: 0rem;
    color: #333;
    line-height: 1.5;
}

.general-text-content a {
    color: #0066cc;
    text-decoration: underline;
}

.general-text-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Image Content */
.image-content {
    margin-bottom: 2rem;
    text-align: center;
}

.image-caption {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

/* Banner styles */
.banner-carousel-container {
    margin-bottom: 2rem;
}

/* Accordion styling */
.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0,0,0,.125);
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
} 

.accordion-collapse.collapse.show {
    border-top: 1px solid #dee2e6;
}

/* Footer */
.hoa-footer {
    background-color: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 20px 0;
    margin-top: auto;
    margin-bottom: 49px; /* Make room for preview bar */
}

.hoa-footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Preview Control Bar */
.preview-control-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 1030;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.preview-control-bar a {
    color: white;
    text-decoration: none;
}

.preview-control-bar .btn {
    white-space: nowrap;
}

/* Preview notification banner */
.alert-primary {
    border-left: 4px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    color: #084298;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.alert-warning {
    border-left: 4px solid #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
    color: #664d03;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
    border-left: 4px solid #0dcaf0;
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .website-title {
        font-size: 2.2rem;
    }
    
    .hero-image-section {
        height: 120px;
    }
    
    .main-content-area {
        padding: 20px;
    }
    
    .header-content {
        padding-left: 20px;
    }
    
    .sidebar-nav {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        background-color: #fff;
    }
    
    .sticky-sidebar {
        position: static;
        height: auto;
    }
    
    .nav-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 10px;
    }
    
    .nav-item {
        border-bottom: none;
        border-right: 1px solid #e9ecef;
        flex-shrink: 0;
    }
    
    .nav-item:last-child {
        border-right: none;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 0.9rem;
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
        border-bottom-color: #e3f2fd;
    }
    
    .nav-item.active .nav-link {
        border-left: none;
        border-bottom: 3px solid #0066cc;
        background-color: #f8f9fa;
    }
    
    .nav-item.active .nav-link::before {
        display: none;
    }
}

/* Toast Notification Styles */
.toastify {
    padding: 12px 20px;
    color: #ffffff;
    display: inline-block;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #73a5ff, #5477f5);
    position: fixed;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    max-width: 350px;
    z-index: 2147483647;
    font-weight: 500;
}

.toastify.on {
    opacity: 1;
}

.toast-close {
    opacity: 0.6;
    padding: 0 5px;
    font-size: 16px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    border: none;
    background: none;
    color: #fff;
}

.toastify-right {
    right: 15px;
}

.toastify-left {
    left: 15px;
}

.toastify-top {
    top: 15px;
}

.toastify-bottom {
    bottom: 15px;
}

.toast-success {
    background: #0ab39c !important;
}

.toast-danger {
    background: #f06548 !important;
}

.toast-warning {
    background: #f7b84b !important;
}

.toast-info {
    background: #3577f1 !important;
}