/* General styles */
body {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    user-select: none;
    background-image: url('/static/ngo/blogsBackground.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden;
}


/* Urdu text styling */
.urdu-text {
    font-family: 'Gulzar', serif;
    line-height: 1.8;
    margin-top: 0.5rem;
}

/* Blog section styles */
.blog-section {
    padding: 40px 0;
    color: white;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
}

.section-heading {
    text-align: center;
    margin: 40px 0;
    font-size: 3rem;
    font-weight: 700;
    color: #929191;
    background: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.section-heading:hover {
    color: #fff;
}

/* Blog Grid - 3 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

/* Blog Card */
.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.blog-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1; /* Square aspect ratio */
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents zooming/clipping */
    transition: filter 0.3s ease;
    filter: grayscale(100%);
    background-color: #f0f0f0; /* Light background for images */
}

.blog-img img:hover {
    filter: grayscale(0%);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
}

.blog-content p {
    font-size: 1rem;
    margin: 0;
    color: #e0e0e0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Hover Effects for Content */
.blog-card:hover .blog-content h2 {
    color: #f5a623; 
}

.blog-card:hover .blog-content p {
    color: #f5f5f5;
}



/* Responsive media queries */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-heading {
        font-size: 2.4rem;
    }
    
    .signature-font {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        font-size: 2rem;
        padding: 10px;
    }
    
    .blog-content h2 {
        font-size: 1.3rem;
    }
    
    .blog-content {
        padding: 15px;
        min-height: 100px;
    }
    
    .signature-font {
        font-size: 1.5rem;
    }
    
    .footer-row {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.8rem;
        margin: 25px 0;
    }
    
    .blog-content h2 {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        max-width: 70%;
    }
    
    .logo {
        height: 30px;
    }
    
    .signature-font {
        font-size: 1.3rem;
    }
    
    .footer {
        min-height: 200px;
    }
    
    .footer-col:not(:first-child) .footer-title,
    .footer-col:not(:first-child) .footer-links {
        display: none;
    }
}