/* Page Specific Styles */

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

.card-icon {
    margin-bottom: 1rem;
    color: var(--school-navy);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

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

.card li {
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--school-navy);
    margin-bottom: 0.5rem;
}

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

/* About Page */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--school-navy);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background-color: var(--school-navy);
    color: var(--school-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    z-index: 1;
}

.timeline-content {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
}

.timeline-content h3 {
    color: var(--school-navy);
    margin-bottom: 0.5rem;
}

.leader-avatar {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--school-navy);
}

.leader-title {
    color: var(--school-brown);
    font-weight: 500;
    margin-bottom: 1rem;
}

.facility-item {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.facility-item h3 {
    color: var(--school-navy);
    margin-bottom: 1rem;
}

.facility-item p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Contact Page */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--school-navy);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--school-navy);
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: var(--muted-foreground);
}

.contact-form {
    margin-top: 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--school-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted-foreground);
}

/* Shared Map Styles (About & Contact) */
.map-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.interactive-map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.map-info p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Professional Map Card Styles */
.map-link-card {
    display: block;
    text-decoration: none;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.map-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.map-preview {
    height: 300px;
    background-color: var(--muted);
    background-image:
        linear-gradient(rgba(26, 54, 93, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 54, 93, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-pin {
    color: var(--school-navy);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

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

.map-link-card .map-info {
    padding: 2rem;
    border: none;
}

/* Neighborhood Overlay Styles */
.neighborhood-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.neighborhood-chip {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--school-navy);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.plus-code {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--school-navy);
    color: var(--school-white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: bold;
}

/* Services Page */
.activity-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    color: var(--school-navy);
    margin-bottom: 1rem;
}

.activity-card h3 {
    color: var(--school-navy);
    margin-bottom: 1rem;
}

.service-item {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--school-navy);
    margin-bottom: 1rem;
}

/* Testimonials Page */
.testimonial-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    color: var(--school-navy);
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--school-navy);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
}

.success-stories {
    max-width: 800px;
    margin: 0 auto;
}

.story-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.story-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.story-header h3 {
    color: var(--school-navy);
    margin: 0;
}

.story-badge {
    background-color: var(--school-navy);
    color: var(--school-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.feedback-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.feedback-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feedback-icon {
    color: var(--school-navy);
    margin-bottom: 1rem;
}

.feedback-item h4 {
    color: var(--school-navy);
    margin-bottom: 1rem;
}

.feedback-item p {
    color: var(--muted-foreground);
    font-style: italic;
}

/* Donation Page */
.donation-card {
    border: 2px solid var(--school-brown);
}

.payment-instruction {
    background-color: var(--muted);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.instruction-step span {
    background-color: var(--school-navy);
    color: var(--school-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.instruction-step p {
    margin: 0;
    font-size: 0.95rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.75rem !important;
    font-weight: 600;
}

.divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--border);
}

.divider span {
    background-color: var(--background);
    padding: 0 1rem;
    position: relative;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: bold;
}

/* Media Queries for Page Specific Elements */
@media (max-width: 768px) {

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-year {
        margin-bottom: 1rem;
    }

    .timeline-content {
        margin: 0;
        width: 100%;
    }

    .interactive-map {
        height: 300px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 0.5rem;
    }
}