/* About Page Styles */

/* Ensure global styles are imported */
@import url('global.css');

/* About Page Layout */
#about {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#about h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 20px;
}

#about p:first-of-type {
    margin-bottom: 60px; /* Adjust the spacing as needed */
}

#about p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    #about {
        width: 90%;
    }
    
    /* Target the first header image specifically */
    header img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover; /* Ensures image fits well without stretching */
    }
    
    .about-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 10px auto 40px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

.about-image {
    width: 40%; /* Reduce width to 40% */
    max-width: 250px; /* Limit max width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    display: block;
    margin: 10px auto 40px; /* Adjust spacing */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Add spacing between heading/subheading and the image */
header {
    padding-bottom: 20px; /* Creates space below the heading */
}

.about-text {
    margin-bottom: 55px; /* Adjust as needed */
}

p strong {
    font-size: 20px; /* Adjust size as needed */
    font-weight: 700; /* Makes it extra bold */
    color: #000; /* Ensures it's black */
    display: block; /* Makes it behave like a header */
    margin-top: 20px; /* Adds spacing above */
}

.understand-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* Adjust paragraph text size for mobile screens */
@media (max-width: 768px) {
    #about p {
        font-size: 13px; /* Smaller text for paragraphs in the About section */
    }
}
