/* Main styles for Friends of Kimbell Community Garden */

body {
    font-family: 'Nunito Sans', sans-serif;
    padding-top: 50px; /* Initial padding for header */
}

body, p, ul, ol, li, div, section, article {
    text-align: left;
}

/* Custom Z-index for banner (below header z-50) */
.z-45 {
    z-index: 45;
}

/* Event styles */
.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.event-content {
    padding: 1.5rem;
}

/* Top image container */
.top-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.top-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}

.top-image-container .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    box-sizing: border-box;
    width: 100%;
}

/* Header */
header {
    height: 50px;
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Instagram */
.insta-thumb {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
    display: block;
}

.insta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.insta-thumb:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-image {
    max-width: 95%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
    max-width: 100%;
}

/* Partners */
#partners {
    padding: 2rem 0;
    text-align: center;
}

#partners-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#partners-gallery img {
    width: 100px;
    height: 150px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

footer p.footer-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-text {
    text-align: center !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .top-image-container .overlay-text {
        font-size: 2rem;
    }
    .top-image-container {
        height: 25vh;
    }
    header .desktop-nav { 
        display: none; 
    }
    #hamburger-btn { 
        display: block; 
    }
} 

/* FAQ Page Specific Styles */
.faq-toggle {
    display: flex;
    justify-content: space-between; /* Puts arrow to the far right */
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.85rem 0.5rem; /* Vertical padding adjusted */
    border-bottom: 1px solid #e5e7eb; /* Light border between questions */
    cursor: pointer;
    background-color: transparent; /* Ensure no default button background */
    border-left: none; /* Remove default button borders */
    border-right: none;
    border-top: none; /* Keep only bottom border */
}

.faq-toggle:hover {
    background-color: #f0fdf4; /* Lighter green for hover - Tailwind green-50 */
}

.faq-toggle span { /* Question text */
    font-weight: 700; /* bold */
    color: #059669; /* Tailwind green-600 */
    font-size: 1.125rem; /* text-lg, slightly smaller than text-xl for better balance */
    line-height: 1.75rem;
    margin-right: 0.75rem; /* Space between text and arrow */
}

.faq-toggle svg {
    flex-shrink: 0; /* Prevent arrow from shrinking */
    /* transition is handled by Tailwind utilities if needed */
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    color: #059669; /* Tailwind green-600 for the arrow */
}

/* The class .collapsible-content is already on the answer divs */
/* The class .faq-answer is already on the answer divs */
.collapsible-content.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding-left: 1rem; 
    padding-right: 1rem;
    background-color: #ffffff; /* White background for answer area */
}

.collapsible-content.faq-answer.is-expanded { 
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

/* Styling for the H3 headers like "General", "Donations" */
#faq h3.text-2xl.font-semibold.text-green-700 {
    margin-top: 2.5rem; /* Increased top margin */
    margin-bottom: 0.5rem; /* Reduced bottom margin as questions have padding */
    padding-bottom: 0.75rem; 
}
/* Remove bottom border from the last faq-toggle in a list if it's inside an <ol> or <ul> */
#faq ol > li:last-child .faq-toggle,
#faq ul > li:last-child .faq-toggle {
    border-bottom: none;
}

/* Policy Pages Specific Styles */
.policy-content-container {
    background-color: #ffffff;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.policy-content-container .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 64rem;
}

.policy-content-container h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #047857;
    margin-bottom: 1.5rem;
}

.policy-content-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.75rem;
}

.policy-content-container .text-gray-700 {
    color: #374151;
}

.policy-content-container .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.policy-content-container .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)) !important;
}

.policy-content-container .list-disc {
    list-style-type: disc;
}

.policy-content-container .list-inside {
    list-style-position: inside;
}

.policy-content-container .ml-6 {
    margin-left: 1.5rem;
}

.policy-content-container .space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)) !important;
}

/* Content Link Styles */
.content-rich-text a {
    font-weight: 700;
    text-decoration: none;
    color: #16a381;
    transition: text-decoration 0.2s ease;
}

.content-rich-text a:hover {
    text-decoration: underline;
}

/* Ensure buttons (styled links) DO NOT get underlined and remain white */
a.inline-block.bg-green-500,
a.inline-block.bg-green-500:hover {
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Banner specific styling */
#fundraising-banner {
    position: fixed;
    width: 100%;
    top: 50px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 45;
}

#fundraising-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

#banner-text {
    flex-grow: 1;
    text-align: center;
    color: #047857;
}

#banner-text a {
    color: #047857;
    font-weight: 700;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

#banner-text a:hover {
    text-decoration: underline;
}

#close-banner-btn {
    margin-left: 1rem;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0;
}

#close-banner-btn:hover {
    color: #374151;
}

/* Footer Links */
footer .footer-links a {
    color: #9ca3af;
}

footer .footer-links a:hover {
    color: white;
    text-decoration: underline;
}

footer p.copyright-text {
    color: #9ca3af;
}

/* Hamburger Icon Toggle */
#hamburger-btn .hamburger-lines {
    display: block;
}

#hamburger-btn.is-active .hamburger-lines {
    display: none;
}

#hamburger-btn.is-active .close-x {
    display: block;
} 