/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: transparent;
    color: #333;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05px;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.facebook:hover {
    background: #166fe5;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white !important;
}

.btn-secondary:hover {
    background: #7f8c8d;
    color: white !important;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 1) 60%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 0.2)), url('images/aslanheightsherobg_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #2c3e50;
    padding: 4rem 0;
    text-align: center;
    border-top: 2px solid #2b3d4f;
    border-bottom: 2px solid #2b3d4f;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: #34495e;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 4px solid #e74c3c;
}

.disclaimer p {
    margin-bottom: 0.5rem;
    color: #fff;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.feature-link:hover {
    color: #2980b9;
}

/* Announcements Section */
.announcements {
    padding: 4rem 0;
    background: #f8f9fa;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.announcements-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.announcement-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    border-left: 4px solid #2b3d4f;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.announcement-item:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.announcement-image {
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 6px;
}

.announcement-item .announcement-image img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 6px;
    display: block;
    max-height: 120px;
}

.announcement-link {
    margin-top: 1rem;
}

.announcement-link .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.announcement-date {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.announcement-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.announcement-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.announcement-link {
    margin-top: 1rem;
    align-self: flex-start;
}

.announcement-link .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.announcement-placeholder {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

.announcement-read-more {
    margin-top: auto;
    padding-top: 1rem;
}

.read-announcement-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-announcement-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.load-more-section {
    text-align: center;
    margin-top: 2rem;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.admin-container {
    background: white;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: auto;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #34495e;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.admin-container .form-group {
    margin-bottom: 1.5rem;
}

.admin-container form {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 80px); /* Subtract header height */
}

.admin-container .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.admin-menu {
    text-align: center;
    padding: 2rem;
}

.admin-menu p {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.admin-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.admin-menu-buttons .btn {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-menu-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Announcement Modal */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.announcement-modal-container {
    background: white;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.announcement-modal-header {
    background: #34495e;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.announcement-modal-content {
    padding: 2rem;
}

.modal-date {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-image {
    margin: 1.5rem 0;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f9fa;
}

.modal-text {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-admin-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Covenants Page Styles */
.covenants-content {
    padding: 2rem 0;
    background: white;
}

.covenants-content .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.covenants-nav {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.covenants-nav h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-nav {
    list-style: none;
    margin-bottom: 2rem;
}

.section-nav li {
    margin-bottom: 0.5rem;
}

.section-link {
    color: #3498db;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.section-link:hover {
    background-color: #e3f2fd;
}

.download-section {
    text-align: center;
}

.download-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.covenant-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.covenant-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.covenant-content h4 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
}

.covenant-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.amendment-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.amendment-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.amendment-link:hover {
    color: #219150;
    text-decoration: underline;
}

/* Amendment Modal Styles */
.amendment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.amendment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.amendment-modal-content {
    background-color: #fff;
    margin: 2rem auto;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.amendment-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e8f5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border-radius: 8px 8px 0 0;
}

.amendment-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.amendment-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #7f8c8d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.amendment-modal-close:hover {
    background-color: #e74c3c;
    color: white;
}

.amendment-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.amendment-modal-body h4 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.amendment-modal-body h4:first-child {
    margin-top: 0;
}

.amendment-modal-body p {
    margin-bottom: 1rem;
    color: #34495e;
}

.amendment-modal-body .amendment-meta {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.amendment-modal-body .amendment-meta strong {
    color: #27ae60;
}

.amendment-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.amendment-section h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #27ae60;
    font-size: 1.1rem;
}

.amendment-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Amendments Navigation Link */
.amendments-nav-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e8f5e9;
}

.amendments-highlight {
    background: linear-gradient(135deg, #27ae60 0%, #219150 100%);
    color: white !important;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: block;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.amendments-highlight:hover {
    background: linear-gradient(135deg, #219150 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Amendments Index Section */
.amendments-index-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 25px;
    margin-bottom: 3rem;
}

.amendments-index-section h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.amendments-intro {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.amendments-by-date {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.amendment-date-group {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amendment-date-header {
    color: #27ae60;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8f5e9;
}

.amendments-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.amendment-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
    transition: all 0.3s ease;
}

.amendment-row:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.amendment-section-num {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.amendment-section-title {
    color: #2c3e50;
    font-weight: 500;
}

.amendment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-small.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-small.btn-primary:hover {
    background: #219150;
}

.btn-small.btn-secondary {
    background: #ecf0f1;
    color: #26ad5f !important;
}

.btn-small.btn-secondary:hover {
    background: #bdc3c7;
    color: #26ad5f !important;
}

.amendments-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 6px;
    border: 2px solid #27ae60;
}

.amendments-summary p {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.amendments-summary p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .amendment-modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
    }
    
    .amendment-modal-header {
        padding: 1rem;
    }
    
    .amendment-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .amendment-modal-body {
        padding: 1rem;
    }
    
    .amendment-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: fit-content;
    }
    
    .amendment-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .amendment-actions {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
    }
    
    .amendments-index-section {
        padding: 1rem;
    }
}

.covenant-content p:last-child {
    margin-bottom: 0;
}

.covenant-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.covenant-content li {
    margin-bottom: 0.5rem;
}

.covenant-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.covenant-intro p {
    margin-bottom: 0.5rem;
}

.covenant-intro p:last-child {
    margin-bottom: 0;
}

.covenant-signature {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.covenant-signature p {
    margin-bottom: 1rem;
}

.covenant-signature p:last-child {
    margin-bottom: 0;
}

/* Forms Page Styles */
.forms-section {
    padding: 2rem 0;
    background: white;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-card:hover {
    transform: translateY(-3px);
}

.form-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.form-card .btn {
    margin-top: auto;
}

/* Form Modal Styles */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    overflow-y: auto;
    padding: 2rem;
}

.form-container {
    background: white;
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    top: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.form-header {
    background: #34495e;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hoa-form {
    padding: 2rem;
}

.resale-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.resale-info p {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.resale-info ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 2rem;
}

.resale-info ul li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
}

.hoa-form h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    font-size: 1.1rem;
}

.variance-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.variance-info p {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.variance-info ul {
    margin: 0.5rem 0 0 0;
    padding-left: 2rem;
}

.variance-info ul li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
}

.variance-info a {
    color: #3498db;
    text-decoration: none;
}

.variance-info a:hover {
    text-decoration: underline;
}

.architectural-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.architectural-info p {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.architectural-info ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 2rem;
}

.architectural-info ul li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
}

.architectural-info a {
    color: #3498db;
    text-decoration: none;
}

.architectural-info a:hover {
    text-decoration: underline;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-note {
    color: #666;
    font-style: italic;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
}

.validation-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.download-section {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.download-section .btn-primary {
    color: white !important;
}

.download-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .announcements-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* Center all headers on mobile except post headers */
    h1, h2, h3, h5, h6 {
        text-align: center !important;
    }
    
    .page-header h1,
    .announcements-header h2,
    .covenant-section h2,
    .board-members h2,
    .contact-info h2,
    .office-hours h2,
    .meeting-info h2 {
        text-align: center !important;
    }
    
    /* Keep post headers (h4) left-aligned */
    .announcement-item h4 {
        text-align: left !important;
    }
    
    .admin-panel {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .admin-container {
        max-height: 95vh;
        margin: 0;
    }
    
    .admin-header {
        padding: 1rem 1.5rem;
    }
    
    .admin-header h3 {
        font-size: 1.1rem;
    }
    
    .admin-container form {
        padding: 1.5rem;
        max-height: calc(95vh - 70px);
    }
    
    .admin-container .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-container .form-actions .btn {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .admin-panel {
        padding: 0.25rem;
        padding-top: 1rem;
    }
    
    .admin-container {
        max-height: 98vh;
        border-radius: 5px;
    }
    
    .admin-header {
        padding: 0.75rem 1rem;
        border-radius: 5px 5px 0 0;
    }
    
    .admin-container form {
        padding: 1rem;
        max-height: calc(98vh - 60px);
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Contact Page Styles */
.contact-section {
    padding: 2rem 0;
    background: white;
}

.meeting-label {
    font-weight: 700;
    color: #2c3e50;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.board-members h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 1.5rem;
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details small {
    color: #7f8c8d;
    display: block;
    margin-top: 0.25rem;
}

.board-member {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2b3d4f;
}

.member-role {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-name {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.member-contact a {
    color: #3498db;
    text-decoration: none;
}

.member-contact a:hover {
    text-decoration: underline;
}

.member-term {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.meeting-info,
.emergency-info,
.office-hours {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.meeting-info h2,
.emergency-info h2,
.office-hours h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.meeting-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.meeting-schedule h4,
.meeting-participation h4 {
    color: #34495e;
    margin-bottom: 1rem;
}

.meeting-participation ul {
    padding-left: 1.5rem;
}

.meeting-participation li {
    margin-bottom: 0.5rem;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.emergency-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e74c3c;
}

.emergency-item h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.emergency-item p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hours-schedule {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.hours-day {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.hours-day:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: #2c3e50;
}

.time {
    color: #3498db;
}

.hours-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

/* Footer Styles */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.developer-attribution {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.developer-attribution a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-attribution a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .social-icons {
        margin-right: 1rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .logo-img {
        height: 50px;
        max-width: 180px;
    }

    .footer-logo-img {
        height: 50px;
        max-width: 200px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .covenants-content .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .covenants-nav {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .meeting-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
    }

    .form-modal {
        padding: 1rem;
    }

    .form-container {
        top: 1rem;
        width: 98%;
        max-width: none;
    }

    .form-actions {
        flex-direction: column;
    }

    .hours-day {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
        background-attachment: scroll;
    }

    .logo-img {
        height: 42px;
        max-width: 150px;
    }

    .footer-logo-img {
        height: 45px;
        max-width: 180px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .forms-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading and transition effects */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success/Error message styles */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
