/* ==================== FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@700&family=Montserrat:wght@400;500;700&display=swap');

/* ==================== BASE STYLES ==================== */
* {
    box-sizing: border-box;
}

/* refined rustic palette */
:root {
    --primary-color: #8B6F47;
    /* Classic Rustic Gold/Brown */
    --primary-dark: #6D5432;
    /* Darker Brown for hover */
    --accent-color: #4A9B8E;
    /* Muted Teal for visual interest */
    --text-dark: #2C2621;
    /* Deep Brown-Black for text */
    --bg-light: #F9F7F5;
    /* Warmer Off-White */
    --card-bg: #FFFFFF;
    --border-color: #E6D5B8;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #F5F1ED 0%, #FDFBF8 50%, #F5F1ED 100%);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background-attachment: fixed;
}

/* ==================== NAVIGATION STYLES ==================== */
.main-navigation {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
    /* Softer, tinted shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(230, 213, 184, 0.3);
}

/* Ensure hidden on desktop */
.nav-toggle {
    display: none !important;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-branding {
    display: flex;
    align-items: center;
    /* Align logo and text vertically */
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-branding:hover {
    transform: translateY(-1px);
}

.nav-logo-img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    display: block;
}

.nav-logo-text {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A3B2A;
    /* Deep rich brown */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-branding:hover .nav-logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B6F47;
}

.nav-link.active {
    color: #4A9B8E;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4A9B8E;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #8B6F47;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #FFFFFF;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ==================== HERO SECTION STYLES ==================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Prevent layout shift while loading */
    min-height: 400px;
    background-color: #E6D5B8;
    /* Optimize loading performance */
    will-change: opacity;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #FFFFFF;
    padding: 2rem;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 40vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== COMMON CONTAINER STYLES ==================== */
.container-card {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(230, 213, 184, 0.6);
    /* Thinner, subtler border */
    box-shadow: 0 15px 35px rgba(139, 111, 71, 0.08);
    /* Softer, spread out shadow */
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 111, 71, 0.12);
}



.container-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

/* ==================== TYPOGRAPHY ==================== */
.page-title {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #8B6F47;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .container-card {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* ==================== FOOTER STYLES ==================== */
.custom-footer-container {
    background-color: #343A40;
    /* Charcoal */
    color: #F8F9FA;
    /* Off-White */
    padding: 4rem 2rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: 4rem;
}

.custom-footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* 1 column on mobile */
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

@media (min-width: 768px) {
    .custom-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns */
        text-align: left;
    }
}

.footer-column h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #F8F9FA;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-column a:hover {
    color: #8B6F47;
    text-decoration: underline;
}

.footer-column p {
    margin: 0;
    line-height: 1.6;
    color: #F8F9FA;
}

/* Feedback Section Styles */
.feedback-section {
    max-width: 600px;
    margin: 3rem auto;
    /* Added margin to separate it */
    text-align: center;
    padding: 2rem;
    background-color: #4A5568;
    /* Darker Gray */
    border-radius: 0.5rem;
}

.feedback-question {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.feedback-btn {
    background-color: transparent;
    border: 2px solid #6B7280;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.feedback-btn:hover {
    transform: scale(1.1);
    border-color: #FFFFFF;
}

.feedback-btn svg {
    width: 28px;
    height: 28px;
    fill: #ADB5BD;
    transition: fill 0.2s ease-in-out;
}

.feedback-btn:hover svg {
    fill: #FFFFFF;
}

#feedback-thanks-message {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* Bible Verse Styles */
.footer-bible-quote {
    border-top: 1px solid #4A5568;
    padding-top: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    color: #adb5bd;
}

.verse-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

#bible-quote {
    margin: 0;
    font-style: italic;
    color: #adb5bd;
}

#refresh-verse-btn {
    background-color: transparent;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

#refresh-verse-btn:hover {
    opacity: 1;
    color: #FFFFFF;
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .custom-footer-container {
        padding: 3rem 1.5rem;
    }

    .custom-footer-grid {
        gap: 1.5rem;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .feedback-section {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .feedback-question {
        font-size: 1.1rem;
    }
}

/* ==================== ANNOUNCEMENTS & EVENTS STYLES ==================== */
.sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.announcements-container,
.events-container {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 3px solid #E6D5B8;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    position: relative;
}

.announcements-container::before,
.events-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

.announcements-container h3,
.events-container h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Lora', serif;
    color: #8B6F47;
    text-align: center;
    letter-spacing: -0.3px;
}

.announcement-item,
.event-item {
    border-left: 4px solid #8B6F47;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FDFCFA 0%, #FFFFFF 100%);
    border-radius: 12px;
    border: 2px solid #E6D5B8;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
    position: relative;
    overflow: hidden;
}

.announcement-item::before,
.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.announcement-item:hover::before,
.event-item:hover::before {
    opacity: 1;
}

.announcement-item h4,
.event-item h4 {
    font-family: 'Lora', serif;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #8B6F47;
    line-height: 1.4;
}

.announcement-item p,
.event-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #5A4A3A;
    margin: 0;
    line-height: 1.7;
}

.announcement-event-date,
.event-time,
.event-date {
    font-weight: 600;
    color: #8B6F47;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.announcement-link,
.event-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.announcement-link:hover .announcement-item,
.event-link:hover .event-item {
    transform: translateY(-6px);
    box-shadow: 0 12px 45px rgba(139, 111, 71, 0.18);
    border-color: #C9A05F;
}

.event-location {
    color: #8B6F47;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.event-location:hover {
    text-decoration: underline;
}

.announcement-title-link {
    text-decoration: none;
    color: #8B6F47;
}

/* ==================== ANNOUNCEMENT MODAL STYLES ==================== */
.announcement-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 36, 22, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.announcement-modal-content {
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 18px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(139, 111, 71, 0.3);
    border: 4px solid #E6D5B8;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announcement-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 18px 18px 0 0;
}

.announcement-modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B6F47;
    background: #F5F1ED;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.4rem;
    min-height: 40px;
    min-width: 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.announcement-modal-close-btn:hover {
    background: #E6D5B8;
    border-color: #C9A05F;
    transform: scale(1.05);
    color: #5A4A3A;
}

#announcement-modal-title {
    font-family: 'Lora', serif;
    margin-top: 0;
    margin-right: 3rem;
    line-height: 1.3;
    color: #8B6F47;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E6D5B8;
}

.announcement-modal-content div#announcement-modal-body {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.7 !important;
    color: #5A4A3A !important;
    font-size: 1.05rem !important;
}

.announcement-modal-content div#announcement-modal-body p {
    margin-bottom: 1.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.05rem !important;
    color: #5A4A3A !important;
    line-height: 1.7 !important;
}

.announcement-modal-content div#announcement-modal-body h1,
.announcement-modal-content div#announcement-modal-body h2,
.announcement-modal-content div#announcement-modal-body h3,
.announcement-modal-content div#announcement-modal-body h4,
.announcement-modal-content div#announcement-modal-body h5,
.announcement-modal-content div#announcement-modal-body h6 {
    font-family: 'Lora', serif !important;
    color: #343A40 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.announcement-modal-content div#announcement-modal-body h2 {
    font-size: 1.5em !important;
}

.announcement-modal-content div#announcement-modal-body h3 {
    font-size: 1.25em !important;
}

.announcement-modal-content div#announcement-modal-body h4 {
    font-size: 1.15em !important;
}

.announcement-modal-content div#announcement-modal-body ul,
.announcement-modal-content div#announcement-modal-body ol {
    padding-left: 2em !important;
    margin-bottom: 1rem !important;
    list-style-position: outside !important;
}

.announcement-modal-content div#announcement-modal-body ul {
    list-style-type: disc !important;
}

.announcement-modal-content div#announcement-modal-body ol {
    list-style-type: decimal !important;
}

.announcement-modal-content div#announcement-modal-body li {
    margin-bottom: 0.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

.announcement-modal-content div#announcement-modal-body a {
    color: #8B6F47 !important;
    text-decoration: underline !important;
}

.announcement-modal-content div#announcement-modal-body blockquote {
    border-left: 4px solid #E5E7EB !important;
    padding-left: 1rem !important;
    margin-left: 0 !important;
    font-style: italic !important;
    color: #6B7280 !important;
}

.announcement-modal-content div#announcement-modal-body hr {
    border: 0 !important;
    border-top: 1px solid #E5E7EB !important;
    margin: 2rem 0 !important;
}

.announcement-modal-content div#announcement-modal-body strong,
.announcement-modal-content div#announcement-modal-body b {
    font-weight: 700 !important;
}

.announcement-modal-content div#announcement-modal-body em,
.announcement-modal-content div#announcement-modal-body i {
    font-style: italic !important;
}

.announcement-modal-content div#announcement-modal-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

/* ==================== CALENDAR STYLES ==================== */
.calendar-wrapper {
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 3px solid #E6D5B8;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    position: relative;
    margin-bottom: 2rem;
}

.calendar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

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

.calendar-header h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #8B6F47;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border: 2px solid #E6D5B8;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #8B6F47;
    box-shadow: 0 3px 8px rgba(139, 111, 71, 0.06);
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, #E6D5B8 0%, #F8F5F0 100%);
    border-color: #C9A05F;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 111, 71, 0.12);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    row-gap: 12px;
}

.calendar-day-header {
    font-weight: 600;
    text-align: center;
    padding: 1rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #8B6F47;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 8px;
    border: 2px solid #E6D5B8;
    margin-bottom: 1rem;
}

.calendar-day {
    border: 2px solid #E6D5B8;
    border-radius: 10px;
    height: 120px;
    padding: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #FDFCFA 0%, #FFFFFF 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.06);
}

.calendar-day.not-current-month {
    color: #9CA3AF;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-color: #D1D5DB;
}

.calendar-day.has-event {
    cursor: pointer;
    background: linear-gradient(135deg, #FDF8F6 0%, #FBEFEA 100%);
    border-color: #C9A05F;
}

.calendar-day.has-event:hover {
    background: linear-gradient(135deg, #FBEFEA 0%, #F7E6DD 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 111, 71, 0.12);
    border-color: #8B6F47;
}

.calendar-day.today {
    border: 3px solid #8B6F47;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.15);
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #8B6F47;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.event-indicator {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    margin-top: 1px;
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #8B6F47;
    flex-shrink: 0;
}

.event-text {
    font-size: 0.65rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #8B6F47;
    font-weight: 500;
    line-height: 1.1;
    flex: 1;
    max-height: 100%;
}

.short-day {
    display: none;
}

/* Calendar Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #6B7280;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

#modal-title {
    font-family: 'Lora', serif;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    color: #8B6F47;
}

#modal-body .event-detail {
    margin-bottom: 1rem;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 1rem;
}

#modal-body .event-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#modal-body .event-info {
    font-size: 0.875rem;
    color: #6B7280;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.25rem;
}

#modal-body .event-description {
    font-size: 0.875rem;
    color: #4A5568;
    margin-top: 0.25rem;
    white-space: pre-wrap;
    line-height: 1.6;
    padding-left: 0.5rem;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .calendar-header {
        margin-bottom: 1rem;
    }

    .calendar-header h2 {
        font-size: 1.5rem;
    }

    .calendar-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .calendar-grid {
        gap: 4px;
        row-gap: 8px;
    }

    .calendar-day-header {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }

    .calendar-day {
        height: 90px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .event-text {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .calendar-wrapper {
        padding: 0.5rem;
        margin: 0 0.25rem;
    }

    .calendar-header {
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .calendar-header h2 {
        font-size: 1.25rem;
        order: 2;
        flex-basis: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .calendar-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        order: 1;
    }

    .calendar-nav-btn:last-child {
        order: 3;
    }

    .calendar-grid {
        gap: 2px;
        row-gap: 6px;
    }

    .calendar-day-header {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }

    .calendar-day {
        height: 70px;
        padding: 0.25rem;
        font-size: 0.7rem;
    }

    .event-indicator {
        gap: 2px;
        margin-top: 1px;
    }

    .event-dot {
        width: 5px;
        height: 5px;
    }

    .event-text {
        font-size: 0.6rem;
        line-height: 1.1;
        max-height: 2.2em;
        overflow: hidden;
    }

    .long-day {
        display: none;
    }

    .short-day {
        display: block;
    }

    .modal-content {
        margin: 0.5rem;
        padding: 1.5rem;
        max-height: 90vh;
    }

    .modal-close-btn {
        top: 5px;
        right: 10px;
        font-size: 1.5rem;
    }

    #modal-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        height: 60px;
        padding: 0.2rem;
    }

    .event-text {
        font-size: 0.55rem;
        max-height: 2em;
    }

    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.4rem 0;
    }
}

/* ==================== HELP NOTIFICATION BANNER STYLES ==================== */
.help-notification-banner {
    background: linear-gradient(135deg, #C85A54 0%, #D97070 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(200, 90, 84, 0.3);
    min-height: 80px;
}

.help-notification-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 90, 84, 0.4);
}

.help-notification-banner.hidden {
    display: none;
}

.banner-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.banner-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.banner-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.scrolling-requests {
    overflow: hidden;
    height: 1rem;
    position: relative;
    margin-top: 0.2rem;
}

.scrolling-content {
    animation: scroll 20s linear infinite;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.scrolling-content.paused {
    animation-play-state: paused;
}

.banner-arrow {
    font-size: 1.2rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.help-notification-banner:hover .banner-arrow {
    transform: translateX(3px);
}

.error-banner {
    background: linear-gradient(135deg, #D97070 0%, #C85A54 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-banner.hidden {
    display: none;
}

/* ==================== GLANCE GRID STYLES ==================== */
.glance-section {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 3px solid #E6D5B8;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    position: relative;
    margin-bottom: 2rem;
}

.glance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

.glance-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B6F47;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
}

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

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .glance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columns in a single row */
@media (min-width: 992px) {
    .glance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.glance-card {
    background: linear-gradient(135deg, #FDFCFA 0%, #FFFFFF 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #E6D5B8;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
    position: relative;
    overflow: hidden;
}

.glance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glance-card:hover::before {
    opacity: 1;
}

.glance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 45px rgba(139, 111, 71, 0.18);
    border-color: #C9A05F;
}

.glance-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B6F47;
    margin: 0 0 1rem 0;
}

.glance-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #5A4A3A;
    margin: 0;
    line-height: 1.6;
}

/* ==================== ABOUT US PAGE STYLES ==================== */
.about-section-container {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 3px solid #E6D5B8;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    position: relative;
    margin-bottom: 2rem;
}

.about-section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

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

@media (min-width: 768px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

.about-h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Lora', serif;
    text-align: center;
    color: #8B6F47;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #E6D5B8;
}

.about-h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
    color: #8B6F47;
    text-align: center;
}

.about-p {
    color: #5A4A3A;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
}

.member-card-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-card {
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #FDFCFA 0%, #FFFFFF 100%);
    text-align: center;
    border: 2px solid #E6D5B8;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover::before {
    opacity: 1;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 111, 71, 0.15);
    border-color: #C9A05F;
}

.member-card-name {
    font-weight: 700;
    font-family: 'Lora', serif;
    margin: 0;
    font-size: 1.25rem;
    color: #8B6F47;
}

.member-card-term,
.committee-member-list {
    font-size: 1rem;
    color: #5A4A3A;
    margin: 0.5rem 0 0 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-section-container {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }

    .about-h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .about-h3 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .board-grid {
        gap: 1.5rem;
    }

    .member-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .about-section-container {
        padding: 1.5rem 0.75rem;
        margin: 0 0.5rem;
    }

    .about-h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-h3 {
        font-size: 1.25rem;
    }

    .about-p {
        font-size: 0.9rem;
    }

    .member-card {
        padding: 1.25rem 0.75rem;
    }
}

/* ==================== CONTACT FORM STYLES ==================== */
.contact-header {
    text-align: center;
    padding: 4rem 2rem 2rem 2rem;
    background: #FFFFFF;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #8B6F47;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.contact-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #5A4A3A;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.form-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 3rem;
    background: #FFFFFF;
    border-radius: 16px;
    border: 3px solid #E6D5B8;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

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

.form-field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #8B6F47;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #5A4A3A;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #8B6F47;
}

.form-field.error input,
.form-field.error textarea,
.form-field.error select {
    border-color: #D97070;
}

.error-message {
    color: #D97070;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: 'Montserrat', sans-serif;
}

.submit-button {
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    padding: 1.125rem 3rem;
    border: 3px solid #8B6F47;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.3);
    letter-spacing: 0.5px;
    width: 100%;
    min-height: 56px;
    display: block;
    margin: 2rem auto 0 auto;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    text-transform: uppercase;
}

.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #A0825C 0%, #8B6F47 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(139, 111, 71, 0.4);
    border-color: #C9A05F;
    color: #FFFFFF;
}

.submit-button:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.35);
}

.submit-button:disabled {
    background: #D4C4B0;
    border-color: #D4C4B0;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .submit-button {
        width: auto;
        min-width: 200px;
        padding: 1.125rem 4rem;
    }
}

.name-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#form-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #F8F5F0;
    border-radius: 10px;
    border: 2px solid #E6D5B8;
    margin-top: 2rem;
}

.success-animation {
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #8B6F47;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #8B6F47;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #8B6F47;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px #8B6F47;
    }
}

@media (min-width: 640px) {
    .name-fields {
        flex-direction: row;
        gap: 1rem;
    }

    .name-fields .form-field {
        flex-grow: 1;
    }
}

@media (max-width: 768px) {
    .contact-header {
        padding: 2rem 1rem 1rem 1rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .form-container {
        padding: 1.5rem;
        margin: 3rem 1rem 2rem 1rem;
    }
}

/* ==================== RESIDENT RESOURCE PAGE STYLES ==================== */
.resources-h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Lora', serif;
    color: #8B6F47;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.resources-p {
    text-align: center;
    color: #5A4A3A;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
}

.button-container {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #FFFFFF;
    border: 3px solid #E6D5B8;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
    position: relative;
}

.button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

.filing-title {
    font-family: 'Lora', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #8B6F47;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
    text-align: center;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.filing-button {
    display: inline-block;
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    padding: 1.125rem 3rem;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.3);
    border: 3px solid #8B6F47;
    min-width: 300px;
    text-align: center;
    letter-spacing: 0.3px;
}

.filing-button:hover {
    background: linear-gradient(135deg, #A0825C 0%, #8B6F47 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(139, 111, 71, 0.4);
    border-color: #C9A05F;
}

.filing-button.disabled {
    background: #D4C4B0;
    color: #7A6A5A;
    border-color: #D4C4B0;
    cursor: not-allowed;
    opacity: 0.85;
}

.filing-button.disabled:hover {
    background: #D4C4B0;
    transform: none;
    box-shadow: 0 6px 20px rgba(212, 196, 176, 0.3);
}

.accordion-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    background-color: #FFFFFF;
    border-radius: 14px;
    border: 3px solid #E6D5B8;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-item:hover::before {
    opacity: 1;
}

.accordion-item:hover {
    border-color: #C9A05F;
    box-shadow: 0 8px 30px rgba(139, 111, 71, 0.15);
}

.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Lora', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #8B6F47;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    color: #5A4A3A;
}

.accordion-content {
    padding: 0 2rem 2rem 2rem;
    border-top: 2px solid #F5F1ED;
    font-family: 'Montserrat', sans-serif;
    color: #5A4A3A;
    font-size: 1.05rem;
    line-height: 1.7;
}

.accordion-content a {
    color: #8B6F47;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.accordion-content a:hover {
    color: #C9A05F;
    text-decoration: underline;
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.accordion-content li {
    margin-bottom: 0.75rem;
}

.sub-accordion-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-accordion-item {
    background-color: #F9FAFB;
    border-radius: 0.375rem;
    border: 1px solid #F3F4F6;
}

.sub-accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #343A40;
}

.sub-accordion-content {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #E5E7EB;
    font-size: 0.875rem;
}

.map-image-link {
    display: block;
    margin-top: 1rem;
}

.map-image {
    width: 100%;
    border-radius: 0.25rem;
    border: 1px solid #E5E7EB;
    transition: opacity 0.3s;
    /* Prevent layout shift while loading */
    min-height: 300px;
    background-color: #F5F1ED;
}

.map-image:hover {
    opacity: 0.8;
}

.faq-question {
    font-weight: 600;
    color: #343A40;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.faq-answer {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* ==================== EVENTS PAGE STYLES ==================== */
.header-container {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
    background-color: white;
    border-bottom: 1px solid #E5E7EB;
}

.header-container h1 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #8B6F47;
}

.header-container p {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

.posts-container {
    max-width: 1024px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.post-card h2 {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    margin-top: 0;
    line-height: 1.3;
    color: #8B6F47;
}

.post-card .event-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #A95C44;
    margin-bottom: 1.5rem;
}

.post-card.expired {
    opacity: 0.7;
}

.post-card.expired .event-date {
    color: #6B7280;
}

.posts-container .post-card .post-body {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.7 !important;
    color: #343A40 !important;
    font-size: 16px !important;
}

.posts-container .post-card .post-body p {
    margin-bottom: 1rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1em !important;
    color: #343A40 !important;
    line-height: 1.7 !important;
}

.posts-container .post-card .post-body h1,
.posts-container .post-card .post-body h2,
.posts-container .post-card .post-body h3,
.posts-container .post-card .post-body h4,
.posts-container .post-card .post-body h5,
.posts-container .post-card .post-body h6 {
    font-family: 'Lora', serif !important;
    color: #343A40 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.posts-container .post-card .post-body h2 {
    font-size: 1.5em !important;
}

.posts-container .post-card .post-body h3 {
    font-size: 1.25em !important;
}

.posts-container .post-card .post-body h4 {
    font-size: 1.15em !important;
}

.posts-container .post-card .post-body ul,
.posts-container .post-card .post-body ol {
    padding-left: 2em !important;
    margin-bottom: 1rem !important;
    list-style-position: outside !important;
}

.posts-container .post-card .post-body ul {
    list-style-type: disc !important;
}

.posts-container .post-card .post-body ol {
    list-style-type: decimal !important;
}

.posts-container .post-card .post-body li {
    margin-bottom: 0.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

.posts-container .post-card .post-body a {
    color: #A95C44 !important;
    text-decoration: underline !important;
}

.posts-container .post-card .post-body blockquote {
    border-left: 4px solid #E5E7EB !important;
    padding-left: 1rem !important;
    margin-left: 0 !important;
    font-style: italic !important;
    color: #6B7280 !important;
}

.posts-container .post-card .post-body hr {
    border: 0 !important;
    border-top: 1px solid #E5E7EB !important;
    margin: 2rem 0 !important;
}

.posts-container .post-card .post-body strong,
.posts-container .post-card .post-body b {
    font-weight: 700 !important;
}

.posts-container .post-card .post-body em,
.posts-container .post-card .post-body i {
    font-style: italic !important;
}

.posts-container .post-card .post-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

@media (max-width: 768px) {
    .header-container {
        padding: 2rem 1rem;
    }

    .header-container h1 {
        font-size: 2rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-card h2 {
        font-size: 1.5rem;
    }
}

/* ==================== NEIGHBOR HELPING NEIGHBOR PAGE STYLES ==================== */

/* Ensure proper emoji rendering */
.request-title {
    font-family: 'Montserrat', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/* Ensure HTML entities render properly */
.page-header h1,
.cta-content h2,
.btn,
.community-icon,
.stat-number {
    font-family: 'Montserrat', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/* Elegant Refined Header */
.page-header {
    text-align: center;
    padding: 5rem 2rem 4rem 2rem;
    background: #FFFFFF;
    color: #FFFFFF;
    position: relative;
    border-bottom: 3px solid #C9A05F;
    box-shadow: 0 4px 20px rgba(201, 160, 95, 0.15);
    margin-bottom: 2rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
}

.page-header h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #8B6F47;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-header .subtitle {
    font-size: 1.25rem;
    color: #5A4A3A;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Elegant Community stats section */
.community-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 12px;
    border: 2px solid #E6D5B8;
    min-width: 150px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #C9A05F;
    box-shadow: 0 8px 30px rgba(139, 111, 71, 0.2);
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B6F47;
    display: block;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #5A4A3A;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hide community icons for cleaner look */
.community-icons {
    display: none;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Elegant Call to Action Section */
.cta-section {
    background: #FFFFFF;
    border: 3px solid #E6D5B8;
    border-radius: 16px;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.12);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

.cta-content h2 {
    font-family: 'Lora', serif;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: #8B6F47;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #5A4A3A;
    font-weight: 400;
    line-height: 1.8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Refined Button Styles */
.btn {
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.125rem 3rem;
    border: 3px solid #8B6F47;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 56px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.3);
    letter-spacing: 0.3px;
}

.btn:hover {
    background: linear-gradient(135deg, #A0825C 0%, #8B6F47 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(139, 111, 71, 0.4);
    border-color: #C9A05F;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.35);
}

.btn:disabled {
    background: #D4C4B0;
    border-color: #D4C4B0;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 3px 10px rgba(212, 196, 176, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #C9A05F 0%, #E6D5B8 100%);
    color: #5A4A3A;
    border: 3px solid #C9A05F;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E6D5B8 0%, #C9A05F 100%);
    color: #FFFFFF;
    border-color: #8B6F47;
}

.btn-secondary {
    background: #FFFFFF;
    color: #8B6F47;
    border: 3px solid #8B6F47;
}

.btn-secondary:hover {
    background: #F8F5F0;
    color: #5A4A3A;
    border-color: #C9A05F;
}

.btn-success {
    background: linear-gradient(135deg, #6B8E4E 0%, #8BA973 100%);
    color: white;
    border: 3px solid #6B8E4E;
    font-weight: 600;
    padding: 1.125rem 3rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(107, 142, 78, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #8BA973 0%, #6B8E4E 100%);
    border-color: #A4C095;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(107, 142, 78, 0.4);
}

/* Elegant Section Styles */
.section {
    background-color: #FFFFFF;
    padding: 3.5rem;
    border-radius: 16px;
    border: 3px solid #E6D5B8;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.1);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 16px 16px 0 0;
}

.section h2 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #8B6F47;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #E6D5B8;
}

/* Elegant Help Request Cards */
.help-requests-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .help-requests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.help-request-card {
    background: linear-gradient(135deg, #FDFCFA 0%, #FFFFFF 100%);
    border: 3px solid #E6D5B8;
    border-radius: 14px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.08);
}

.help-request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.help-request-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 45px rgba(139, 111, 71, 0.18);
    border-color: #C9A05F;
}

.help-request-card:hover::before {
    opacity: 1;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #F5F1ED;
}

.request-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #8B6F47;
    margin: 0;
    line-height: 1.4;
}

.request-details {
    color: #5A4A3A;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.detail-item {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.detail-item strong {
    color: #5A4A3A;
    font-weight: 700;
    font-size: 1.05rem;
}

.request-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #5A4A3A;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 10px;
    border: 2px solid #E6D5B8;
}

.request-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #F5F1ED;
    text-align: center;
}

.request-actions.multiple-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.request-actions.multiple-buttons button {
    flex: 1;
    min-width: 0;
}

.claim-btn {
    background: linear-gradient(135deg, #6B8E4E 0%, #8BA973 100%);
    color: white;
    padding: 1.125rem 2.5rem;
    border: 3px solid #6B8E4E;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    min-height: 56px;
    touch-action: manipulation;
    box-shadow: 0 6px 20px rgba(107, 142, 78, 0.25);
    letter-spacing: 0.3px;
}

.claim-btn:hover {
    background: linear-gradient(135deg, #8BA973 0%, #6B8E4E 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(107, 142, 78, 0.35);
    border-color: #A4C095;
}

.btn-disabled {
    background: #E6DED1;
    color: #9B8B7B;
    padding: 1.125rem 2.5rem;
    border: 3px solid #D4C4B0;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: not-allowed;
    opacity: 0.7;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    min-width: 0;
    min-height: 56px;
    box-shadow: 0 3px 10px rgba(155, 139, 123, 0.15);
    letter-spacing: 0.3px;
}

/* Refined coming soon button styles */
.btn.coming-soon {
    background: #D4C4B0;
    color: #7A6A5A;
    border-color: #D4C4B0;
    cursor: not-allowed;
    opacity: 0.85;
    font-weight: 600;
}

.btn.coming-soon:hover {
    background: #D4C4B0;
    transform: none;
    opacity: 0.85;
    box-shadow: 0 6px 20px rgba(212, 196, 176, 0.3);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #5A4A3A;
    font-weight: 500;
    font-size: 1.2rem;
}

/* Elegant Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 36, 22, 0.75);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.modal-content {
    background-color: #FFFFFF;
    margin: 1rem;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(139, 111, 71, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 4px solid #E6D5B8;
    animation: slideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-form {
    background-color: #FDFCFA;
    padding: 2.5rem;
    border-radius: 0 0 18px 18px;
    border: none;
    flex: 1;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    border-bottom: 3px solid #E6D5B8;
    background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 100%);
    border-radius: 18px 18px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B6F47 0%, #C9A05F 50%, #8B6F47 100%);
    border-radius: 18px 18px 0 0;
}

.modal-header h2 {
    font-family: 'Lora', serif;
    color: #8B6F47;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.close-btn {
    background: #F5F1ED;
    border: 2px solid #E6D5B8;
    font-size: 1.75rem;
    cursor: pointer;
    color: #8B6F47;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 52px;
    min-width: 52px;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.close-btn:hover {
    background: #E6D5B8;
    border-color: #C9A05F;
    transform: scale(1.05);
    color: #5A4A3A;
}

.modal .form-field {
    margin-bottom: 2rem;
    position: relative;
}

.modal .form-field:last-child {
    margin-bottom: 0;
}

.modal .form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: #5A4A3A;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
}

.modal .form-field label em {
    color: #C85A54;
    font-weight: 700;
}

.modal .form-field input,
.modal .form-field textarea,
.modal .form-field select {
    width: 100%;
    padding: 1.125rem 1.25rem;
    border: 3px solid #E6D5B8;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    box-shadow: 0 3px 8px rgba(139, 111, 71, 0.06);
    color: #5A4A3A;
}

.modal .form-field input:focus,
.modal .form-field textarea:focus,
.modal .form-field select:focus {
    outline: none;
    border-color: #C9A05F;
    box-shadow: 0 0 0 4px rgba(201, 160, 95, 0.15), 0 6px 16px rgba(139, 111, 71, 0.12);
    transform: translateY(-2px);
    background-color: #FDFCFA;
}

/* Enhanced dropdown styling */
.modal .form-field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal .form-field select:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal .form-field select:active {
    border-color: #8B6F47;
    box-shadow: 0 0 0 3px rgba(169, 92, 68, 0.1);
}

/* Style the placeholder option */
.modal .form-field select option {
    padding: 0.5rem;
    background-color: white;
    color: #374151;
}

.modal .form-field select option:first-child {
    color: #9CA3AF;
    font-style: italic;
}

.modal .form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.modal .btn {
    width: 100%;
    margin-top: 1rem;
}

.task-info {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.task-info h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1rem;
}

.task-info p {
    margin: 0.25rem 0;
    color: #6B7280;
    font-size: 0.875rem;
}

/* Success Message */
.success-message {
    background-color: #D1FAE5;
    border: 1px solid #A7F3D0;
    border-radius: 0.375rem;
    padding: 2rem;
    margin-bottom: 1rem;
    color: #065F46;
    text-align: center;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Refresh button animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bounce animation for success message */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes successBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Urgency classes */
.request-urgency {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.urgency-low {
    background: #FEF3C7;
    color: #92400E;
}

.urgency-medium {
    background: #FDE68A;
    color: #78350F;
}

.urgency-high {
    background: #FCD34D;
    color: #92400E;
}

.urgency-urgent {
    background: #FEE2E2;
    color: #991B1B;
}

/* Modern Responsive Design for Neighbor Helping Neighbor */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 1rem 2rem 1rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }

    .community-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 1rem 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .community-icons {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .community-icon {
        font-size: 1.75rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .cta-content h2 {
        font-size: 1.875rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .main-container {
        padding: 1rem;
    }

    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-form {
        padding: 1.5rem;
    }

    /* Mobile-specific button improvements */
    .btn {
        min-height: 52px;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        touch-action: manipulation;
    }

    /* Mobile-specific card improvements */
    .help-request-card {
        padding: 1.5rem;
    }

    .request-actions.multiple-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .request-actions.multiple-buttons button {
        width: 100%;
        min-height: 52px;
    }

    /* Mobile-specific form improvements */
    .modal .form-field input,
    .modal .form-field textarea,
    .modal .form-field select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 1rem;
    }

    /* Mobile-specific CTA improvements */
    .cta-buttons .btn {
        width: 100%;
        min-height: 56px;
        font-size: 1.1rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .help-request-card {
        padding: 0.75rem;
    }

    .request-title {
        font-size: 1rem;
    }

    .modal-content {
        margin: 0.25rem;
        padding: 0.75rem;
    }

    .btn {
        min-height: 52px;
        font-size: 1.2rem;
        padding: 1.25rem 1.5rem;
    }
}

/* ==================== SEARCH FUNCTIONALITY ==================== */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6B7280;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: #8B6F47;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 36, 22, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: fadeIn 0.3s ease;
}

.search-modal {
    background-color: #FFFFFF;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #F5F1ED;
    gap: 1rem;
}

.search-input {
    flex: 1;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    color: #343A40;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #8B6F47;
    box-shadow: 0 0 0 4px rgba(139, 111, 71, 0.1);
}

.search-close {
    background: #F5F1ED;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    color: #8B6F47;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: #E6D5B8;
    border-color: #8B6F47;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: calc(80vh - 100px);
}

.search-result-item {
    display: block;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border: 2px solid #F5F1ED;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    border-color: #8B6F47;
    background-color: #FDFCFA;
    transform: translateX(4px);
}

.search-result-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8B6F47;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.search-result-title {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #343A40;
    margin-bottom: 0.5rem;
}

.search-result-title mark {
    background-color: #FFF4E6;
    color: #8B6F47;
    padding: 0 2px;
    font-weight: 700;
}

.search-result-content {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
}

.search-result-content mark {
    background-color: #FFF4E6;
    color: #8B6F47;
    padding: 0 2px;
    font-weight: 500;
}

.search-placeholder,
.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6B7280;
}

.search-no-results strong {
    color: #343A40;
}

.search-suggestions {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #8B6F47;
}

@media (max-width: 768px) {
    .search-modal {
        width: 95%;
        max-height: 90vh;
    }

    .search-header {
        padding: 1rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
}

/* ==================== QUICK LINKS WIDGET ==================== */
.quick-links-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.quick-link-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 111, 71, 0.5);
}

.quick-link-btn .tooltip {
    position: absolute;
    right: 70px;
    background-color: #343A40;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-link-btn:hover .tooltip {
    opacity: 1;
}

.quick-link-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #343A40;
}

@media (max-width: 768px) {
    .quick-links-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .quick-link-btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* ==================== NEWSLETTER SIGNUP ==================== */
.newsletter-section {
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
    color: #FFFFFF;
}

.newsletter-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(255, 255, 255, 0.95);
    color: #343A40;
}

.newsletter-input:focus {
    outline: none;
    border-color: #FFFFFF;
    background-color: #FFFFFF;
}

.newsletter-submit {
    padding: 1rem 2rem;
    background-color: #343A40;
    color: #FFFFFF;
    border: 2px solid #343A40;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-submit:hover {
    background-color: #FFFFFF;
    color: #343A40;
    transform: translateY(-2px);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.newsletter-success {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.newsletter-error {
    background-color: rgba(220, 38, 38, 0.2);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-submit {
        width: 100%;
    }
}

/* ==================== ACCESSIBILITY CONTROLS ==================== */
.accessibility-controls {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accessibility-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #343A40;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.accessibility-btn:hover {
    transform: scale(1.1);
    background-color: #8B6F47;
}

.accessibility-btn.active {
    background-color: #8B6F47;
}

.accessibility-btn .tooltip {
    position: absolute;
    left: 60px;
    background-color: #343A40;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.accessibility-btn:hover .tooltip {
    opacity: 1;
}

.accessibility-btn .tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #343A40;
}

/* Accessibility classes */
body.large-text {
    font-size: 1.2em;
}

body.large-text h1 {
    font-size: 2.5em;
}

body.large-text h2 {
    font-size: 2em;
}

body.large-text h3 {
    font-size: 1.75em;
}

body.high-contrast {
    background: #000000;
    color: #FFFFFF;
}

body.high-contrast .main-navigation {
    background-color: #000000;
    border-bottom: 2px solid #FFFFFF;
}

body.high-contrast .nav-link {
    color: #FFFFFF;
}

body.high-contrast .nav-link:hover {
    color: #FFFF00;
}

@media (max-width: 768px) {
    .accessibility-controls {
        bottom: 1rem;
        left: 1rem;
    }

    .accessibility-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* ==================== DOCUMENT DOWNLOADS ==================== */
.downloads-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.download-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-section-title {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #8B6F47;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F5F1ED;
}

.download-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #F5F1ED;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: #8B6F47;
    background-color: #FDFCFA;
    transform: translateX(4px);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #343A40;
    margin-bottom: 0.5rem;
}

.download-info p {
    color: #6B7280;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.download-meta {
    font-size: 0.875rem;
    color: #8B6F47;
    font-weight: 500;
}

.download-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    border: 2px solid #8B6F47;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.download-btn:hover {
    background: linear-gradient(135deg, #A0825C 0%, #8B6F47 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== INTERACTIVE MAP ==================== */
.neighborhood-map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.map-control-btn {
    padding: 0.75rem 1.5rem;
    background-color: #FFFFFF;
    border: 2px solid #8B6F47;
    border-radius: 8px;
    color: #8B6F47;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-control-btn:hover,
.map-control-btn.active {
    background-color: #8B6F47;
    color: #FFFFFF;
}

.map-legend {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.map-legend h3 {
    font-family: 'Lora', serif;
    color: #8B6F47;
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.custom-marker {
    background: transparent;
    border: none;
}

/* ==================== RESIDENT DIRECTORY ==================== */
.directory-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.directory-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    border: 2px solid #8B6F47;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.directory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

.directory-btn.secondary {
    background: #FFFFFF;
    color: #8B6F47;
}

.directory-btn.secondary:hover {
    background: #F5F1ED;
}

.directory-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.directory-search {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    font-size: 1rem;
}

.directory-filter {
    padding: 0.875rem 1.25rem;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #FFFFFF;
}

.directory-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.directory-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.directory-card h3 {
    font-family: 'Lora', serif;
    color: #8B6F47;
    margin-bottom: 0.75rem;
}

.directory-address,
.directory-contact,
.directory-groups,
.directory-skills {
    color: #6B7280;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.directory-contact a {
    color: #8B6F47;
    text-decoration: none;
}

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

.directory-groups {
    color: #4A9B8E;
    font-weight: 600;
}

.directory-skills {
    font-style: italic;
    color: #8B6F47;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

/* ==================== CHATBOT ==================== */
.chatbot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 111, 71, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 111, 71, 0.5);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(135deg, #8B6F47 0%, #A0825C 100%);
    color: #FFFFFF;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

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

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
}

.chatbot-message.user {
    align-self: flex-end;
    background-color: #8B6F47;
    color: #FFFFFF;
}

.chatbot-message.bot {
    align-self: flex-start;
    background-color: #F5F1ED;
    color: #343A40;
}

.chatbot-input-container {
    display: flex;
    padding: 1rem;
    border-top: 2px solid #F5F1ED;
    gap: 0.5rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #E6D5B8;
    border-radius: 8px;
    font-size: 0.95rem;
}

.chatbot-send {
    padding: 0.75rem 1.5rem;
    background-color: #8B6F47;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chatbot-send:hover {
    background-color: #A0825C;
}

@media (max-width: 768px) {
    .chatbot {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        height: 400px;
        right: -1rem;
    }

    .directory-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== RSVP BUTTONS ==================== */
.rsvp-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4A9B8E 0%, #6B8E4E 100%);
    color: #FFFFFF;
    border: 2px solid #4A9B8E;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 155, 142, 0.3);
}