/* Base styles */


body {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    color: #fff;
    user-select: none;
    background: url('/static/ngo/aboutbackground.jpg') no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main container layout */
.main-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh; /* Minimum height to ensure enough space */
}

/* Left image styling */
.left-image {
    flex: 0 0 300px;
    margin: 20px;
    transition: transform 0.3s ease;
}

.left-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

/* Content wrapper */
.content-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* About section styling */
.about-section {
    background: rgba(0, 0, 0, 0.895);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.about-section h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #6f736f;
    transition: color 0.3s ease;
}

.about-section:hover h1 {
    color: #8a8a8a;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Quote styling */
.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 20px;
    color: #ffdddd;
    line-height: 1.6;
}

.quote b {
    font-weight: bold;
    color: #86826e;
}

/* Buttons container */
.buttons {
    display: flex;
    flex-wrap: wrap;
}

/* Button styling */
.buttons button {
    background-color: #000000;
    border: 2px solid #ffffff;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttons button:hover {
    background-color: #1a1818;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Button link styling */
.buttons button a {
    text-decoration: none;
    color: #fdfdfd;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

/* Gap section */
.gap {
    padding: 60px 0 30px;
    background-color: #000000;
}

/* Responsive media queries */
@media (max-width: 1200px) {
    .main-container {
        padding: 30px 15px;
    }
    
    .left-image {
        flex: 0 0 250px;
    }
    
    .signature-font {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .about-section h1 {
        font-size: 1.8rem;
    }
    
    .left-image {
        flex: 0 0 220px;
    }
    
    .signature-font {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 20px 10px;
    }
    
    .left-image {
        flex: 0 0 auto;
        width: 60%;
        max-width: 300px;
        margin: 0 auto 20px;
        display: block; /* Keep image visible on mobile */
    }
    
    .content-wrapper {
        margin: 10px;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-section h1 {
        font-size: 1.6rem;
    }
    
    .about-section p,
    .buttons button a {
        font-size: 0.95rem;
    }
    
    .quote {
        font-size: 1rem;
    }
    
    .signature-font {
        font-size: 1.5rem;
    }
    
    /* Footer responsive adjustments */
    .footer-row {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer {
        min-height: 250px;
    }
    
    .footer-col:not(:first-child) .footer-title,
    .footer-col:not(:first-child) .footer-links {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 15px 10px;
    }
    
    .left-image {
        width: 80%;
    }
    
    .about-section {
        padding: 15px;
    }
    
    .about-section h1 {
        font-size: 1.4rem;
    }
    
    .about-section p {
        font-size: 0.9rem;
    }
    
    .quote {
        font-size: 0.95rem;
    }
    
    .buttons button {
        padding: 8px 16px;
    }
    
    .buttons button a {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        max-width: 70%;
    }
    
    .logo {
        height: 30px;
    }
    
    .signature-font {
        font-size: 1.3rem;
    }
    
    .footer {
        min-height: 200px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .left-image {
        width: 90%;
    }
    
    .about-section h1 {
        font-size: 1.3rem;
    }
    
    .about-section p,
    .buttons button a {
        font-size: 0.85rem;
    }
    
    .quote {
        font-size: 0.9rem;
    }
}