/* === VIEW-SPECIFIC STYLES (Home, About, Blog, Events, etc.) === */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn-secondary { background: #fff; color: #0077b6; }
.hero-buttons .btn-secondary:hover { background: #e0f0ff; }

/* Sections */
.section { padding: 60px 0; }
.section h2 { margin-bottom: 30px; text-align: center; }
.section-cta { text-align: center; margin-top: 30px; }

/* Post Cards Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.post-card-image-link { display: block; text-decoration: none; }
.post-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}
.post-card-body { padding: 20px; }
.post-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0077b6;
    background: #e0f0ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.post-card-title { font-size: 1.25rem; margin-bottom: 8px; }
.post-card-title a { color: #333; }
.post-card-title a:hover { color: #0077b6; }
.post-card-excerpt { font-size: 0.9rem; color: #666; margin-bottom: 12px; }
.post-card-date { font-size: 0.8rem; color: #999; }

/* Event Cards */
.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: flex-start;
}
.event-card-past { opacity: 0.7; }
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0077b6;
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 70px;
    text-align: center;
}
.event-month { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.event-day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-info { flex: 1; }
.event-info h3 { margin-bottom: 4px; }
.event-meta { font-size: 0.875rem; color: #666; margin-bottom: 8px; }
.event-excerpt { font-size: 0.9rem; color: #555; }
.events-past { margin-top: 40px; }

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.about-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
}
.about-card h2 { font-size: 1.5rem; margin-bottom: 12px; color: #0077b6; }
.about-card ul { padding-left: 20px; list-style: disc; }
.about-card li { margin-bottom: 8px; }

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.team-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #e2e8f0;
}
.team-info { padding: 20px; }
.team-info h3 { margin-bottom: 4px; }
.team-role {
    display: inline-block;
    font-size: 0.875rem;
    color: #0077b6;
    font-weight: 500;
    margin-bottom: 10px;
}
.team-bio { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.team-email { font-size: 0.85rem; color: #0077b6; }
.team-social { margin-top: 10px; display: flex; gap: 10px; justify-content: center; }
.team-social a {
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
}
.team-social a:hover { border-color: #0077b6; color: #0077b6; }

/* Get Involved */
.involve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.involve-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s;
}
.involve-card:hover { transform: translateY(-4px); }
.involve-icon { font-size: 3rem; margin-bottom: 16px; }
.involve-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.involve-card p { font-size: 0.9rem; color: #666; margin-bottom: 20px; }

/* Contact & Forms */
.contact-form-wrapper, .donate-form-wrapper, .volunteer-form-wrapper {
    max-width: 700px;
    margin-top: 30px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.required { color: #dc2626; }
.btn-full { width: 100%; text-align: center; }
.contact-info {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Donate Form */
.donate-form { padding: 30px; background: #f8f9fa; border-radius: 8px; }

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 30px;
}
.blog-sidebar { order: -1; }
.sidebar-widget {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #0077b6; }
.category-list { list-style: none; }
.category-list li { margin-bottom: 6px; }
.category-list a {
    display: block;
    padding: 6px 10px;
    color: #555;
    border-radius: 4px;
    transition: background 0.15s;
}
.category-list a:hover, .category-list a.active { background: #e0f0ff; color: #0077b6; }
.recent-posts-list { list-style: none; }
.recent-posts-list li { margin-bottom: 8px; }
.recent-posts-list a { color: #555; font-size: 0.9rem; }
.recent-posts-list a:hover { color: #0077b6; }

/* Single Post */
.single-post-header { margin-bottom: 30px; }
.post-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #0077b6;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.post-meta { font-size: 0.875rem; color: #888; display: flex; gap: 16px; }
.single-post-image { margin: 20px 0 30px; }
.single-post-image img { border-radius: 8px; width: 100%; }
.single-post-content { line-height: 1.8; }
.single-post-content img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 4px; }
.single-post-content h2 { margin-top: 2em; }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin-bottom: 1em; }

/* Volunteer Page */
.volunteer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}
.volunteer-info h2 { font-size: 1.5rem; color: #0077b6; margin-bottom: 12px; }
.volunteer-info h3 { font-size: 1.2rem; margin-top: 20px; margin-bottom: 8px; }
.volunteer-info ul { padding-left: 20px; list-style: disc; }
.volunteer-info li { margin-bottom: 6px; }
.volunteer-form { padding: 30px; background: #f8f9fa; border-radius: 8px; }

/* Internship Page */
.internship-content { max-width: 800px; margin: 30px auto 0; }
.internship-section { margin-bottom: 30px; }
.internship-section h2 { font-size: 1.5rem; color: #0077b6; margin-bottom: 12px; }
.internship-section ul { padding-left: 20px; list-style: disc; }
.internship-section li { margin-bottom: 6px; }

/* Privacy Policy */
.privacy-content { max-width: 800px; margin: 30px auto 0; }
.privacy-content h2 { font-size: 1.3rem; margin-top: 24px; color: #0077b6; }
.privacy-content ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.privacy-content li { margin-bottom: 6px; }

/* 404 Page */
.section-404 { min-height: 60vh; display: flex; align-items: center; }
.error-page-content { text-align: center; }
.error-page-content h1 { font-size: 6rem; color: #0077b6; margin-bottom: 0; line-height: 1; }
.error-page-content h2 { font-size: 1.8rem; margin-bottom: 12px; }
.error-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 30px; }

/* Pagination */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination-link { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; color: #0077b6; }
.pagination-link:hover { background: #0077b6; color: #fff; border-color: #0077b6; }
.pagination-page { padding: 8px 12px; }
.pagination-page a { color: #0077b6; padding: 8px 12px; }
.pagination-page.active { background: #0077b6; color: #fff; border-radius: 4px; }

/* Page content rendering */
.page-content { max-width: 900px; margin: 0 auto; line-height: 1.8; }
.page-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.page-content h2 { margin-top: 1.5em; }

/* Page Hero Background */
.page-hero-bg { position: relative; }
.page-hero-bg .hero-inner { text-align: center !important; }
.page-hero-bg .hero-inner h1 { text-align: center !important; margin: 0 auto 10px !important; display: block; }
.page-hero-bg .hero-inner p { text-align: center !important; margin: 0 auto !important; display: block; }
.blog-hero-wrap { display: flex !important; align-items: center !important; justify-content: center !important; }
.blog-hero-inner { text-align: center !important; }
.blog-hero-inner h1 { text-align: center !important; margin: 0 auto 10px !important; display: block; }
.blog-hero-inner p { text-align: center !important; margin: 0 auto !important; display: block; }

/* Utility */
.text-muted { color: #888; }
.text-center { text-align: center; }
.lead { font-size: 1.125rem; color: #555; margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero { padding: 50px 0; }
    .post-grid { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; }
    .event-date-badge { flex-direction: row; gap: 6px; align-self: flex-start; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { order: 0; }
    .volunteer-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .involve-grid { grid-template-columns: 1fr; }
    .error-page-content h1 { font-size: 4rem; }
    .error-buttons { flex-direction: column; align-items: center; }
}
