/* About page styles */
.about-page {
    padding-top: 100px; /* Add padding to offset fixed header (60px + 40px spacing) */
    min-height: 100vh;
}

.about-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
}

.about-page h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.5em;
    text-align: center;
}

.about-page p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
    text-align: justify;
}

/* Image styling and centering */
.about-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block; /* Ensure image is centered */
}

/* Center the image container paragraph */
.about-page p:has(img) {
    text-align: center;
    margin: 30px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .about-page {
        padding-top: 80px; /* Reduced padding for mobile */
    }
    
    .about-page .container {
        padding: 15px;
    }
    
    .about-page h1 {
        font-size: 2em;
    }
    
    .about-page p {
        font-size: 1em;
        text-align: left; /* Better readability on mobile */
    }
    
    .about-page img {
        margin: 20px auto;
        max-width: 90%; /* Ensure image fits mobile screens */
    }
}

@media (max-width: 480px) {
    .about-page {
        padding-top: 70px;
    }
    
    .about-page .container {
        padding: 10px;
    }
    
    .about-page img {
        max-width: 95%;
        margin: 15px auto;
    }
}

/* Ensure proper spacing for the last paragraph */
.about-page p:last-child {
    margin-bottom: 40px;
}
