/* Blog Single Page Styles */

/* Blog Post Header */
.blog-post-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-green) 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.blog-post-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header .post-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.blog-post-header .post-category:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post-header .post-meta {
    font-size: 1rem;
    opacity: 0.9;
}

.blog-post-header .post-meta i {
    margin-right: 0.5rem;
}

/* Featured Image */
.blog-post-featured-image {
    margin: -4rem auto 0;
    max-width: 1200px;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post-featured-image img:hover {
    transform: scale(1.01);
}

/* Blog Post Content */
.blog-post-content {
    padding: 4rem 0;
    background: #f9f9f9;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Post Article */
.post-article {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post-article h2 {
    color: var(--primary-purple);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.post-article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
}

.post-article p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.post-article ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-article ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.post-article ul li strong {
    color: var(--primary-purple);
}

.post-cta {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-cta .btn-primary,
.post-cta .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.post-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(128, 0, 128, 0.2);
}

.post-cta .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--primary-purple);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 1rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

.category-list span {
    background: #f0f0f0;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 1.5rem;
}

.recent-posts a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.recent-posts a:hover {
    transform: translateX(5px);
}

.recent-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.recent-post-info span {
    font-size: 0.9rem;
    color: #777;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-newsletter-form input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.sidebar-newsletter-form button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-newsletter-form button:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: white;
}

.related-posts h2 {
    text-align: center;
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-green) 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form .btn-primary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-post-header {
        padding: 4rem 0 3rem;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-featured-image {
        margin-top: -3rem;
    }
    
    .post-article {
        padding: 2rem;
    }
    
    .post-intro {
        font-size: 1.1rem;
    }
    
    .post-article h2 {
        font-size: 1.5rem;
    }
    
    .post-article p,
    .post-article ul li {
        font-size: 1rem;
    }
    
    .post-cta {
        flex-direction: column;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-article {
        padding: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

/* ============================================================================
   BACK TO SCHOOL SUPPORT INITIATIVE STYLES
   ============================================================================ */

/* Initiative Overview Section */
.initiative-overview h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.initiative-overview h3 {
    color: #007bff;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.4;
}

/* Why Initiative Exists Section */
.initiative-why {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #dc3545;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.initiative-why h3 {
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.initiative-quote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #495057;
    background: rgba(0, 123, 255, 0.05);
    padding: 15px 20px;
    border-radius: 5px;
}

.initiative-quote cite {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    font-style: normal;
}

/* Achievement List Styles */
.achievement-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.achievement-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 1.1rem;
}

.achievement-icon {
    color: #28a745;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* How You Can Help Section */
.help-section {
    background: #e8f5e8;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #c3e6cb;
}

.help-section h3 {
    color: #28a745;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

/* Support Table Styles */
.support-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}

.support-table th {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.support-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.support-table tr:nth-child(even) {
    background: #f8f9fa;
}

.support-table tr:hover {
    background: #e8f5e8;
    transition: background-color 0.2s ease;
}

.support-table strong {
    color: #28a745;
    font-weight: 600;
}

/* Community Driven Text */
.community-driven {
    text-align: center;
    margin: 25px 0;
    font-style: italic;
    color: #495057;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px dashed #28a745;
}

/* Involvement Grid Layout */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Involvement Cards */
.involvement-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.involvement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.involvement-card.donate::before {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

.involvement-card.volunteer::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.involvement-card.partner::before {
    background: linear-gradient(90deg, #007bff, #6610f2);
}

.involvement-card h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.involvement-card.donate h4 {
    color: #dc3545;
}

.involvement-card.volunteer h4 {
    color: #28a745;
}

.involvement-card.partner h4 {
    color: #007bff;
}

.involvement-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
}

.involvement-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.involvement-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6c757d;
    font-weight: bold;
    font-size: 1.2rem;
}

.involvement-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Action Buttons */
.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.action-btn-primary {
    background: #dc3545;
    color: white;
}

.action-btn-primary:hover {
    background: #c82333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.action-btn-secondary {
    background: #007bff;
    color: white;
}

.action-btn-secondary:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.action-btn-success {
    background: #28a745;
    color: white;
}

.action-btn-success:hover {
    background: #1e7e34;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Community Quote Section */
.community-quote {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.community-quote::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.community-quote h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
}

.community-quote p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.community-quote cite {
    opacity: 0.9;
    font-size: 1rem;
    font-style: normal;
    position: relative;
    z-index: 2;
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    margin: 50px 0 30px;
    padding: 30px 0;
}

.final-cta .btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 180px;
}

.final-cta .btn-primary {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    border: none;
}

.final-cta .btn-primary:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    color: white;
}

.final-cta .btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.final-cta .btn-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* ============================================================================
   RESPONSIVE DESIGN FOR INITIATIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .involvement-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .support-table-container {
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .help-section,
    .initiative-why {
        margin: 25px -10px;
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .involvement-card {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        text-align: center;
        width: 100%;
    }
    
    .final-cta .btn {
        margin: 8px 0;
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .community-quote {
        padding: 30px 20px;
        margin: 40px -10px;
    }
    
    .initiative-overview h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .community-quote {
        padding: 25px 15px;
    }
    
    .community-quote h3 {
        font-size: 1.5rem;
    }
    
    .community-quote p {
        font-size: 1.1rem;
    }
    
    .involvement-card {
        padding: 15px;
    }
    
    .help-section,
    .initiative-why {
        padding: 15px 12px;
    }
    
    .support-table th,
    .support-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .final-cta .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .initiative-overview h2 {
        font-size: 1.6rem;
    }
} 