
/*-------------------About-------------------*/

/* Base styles (Mobile First - No slants) */
.about-banner {
    background-color: #f16529; 
    color: #111;
}

.about-heading-wrapper {
    background-color: #f7945d; 
    display: inline-block;
    padding: 5px 40px;
    margin-bottom: 20px;
}

.about-heading-wrapper h2 {
    font-style: italic;
    font-weight: 800;
    margin: 0;
    font-size: 1.5rem;
    display: block; /* Required for transforms to work */
}

.about-banner p {
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: center;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden; /* Clips the un-skewed image strictly to the slanted frame */
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Desktop styles (Applies slants via skewX to guarantee perfectly matching angles) */
@media (min-width: 768px) {
    .about-banner {
        /* Skews the main container to create the \ \ shape */
        transform: skewX(12deg);
        padding-left: 5% !important;
        padding-right: 5% !important;
        margin: 0 50px; /* Buffer space to prevent corners from getting cut off */
    }

    .unskew-content {
        /* Un-skews the main flex wrapper so paragraphs don't lean */
        transform: skewX(-12deg);
    }

    .about-heading-wrapper {
        /* Skews the heading background box with the exact same angle */
        transform: skewX(12deg);
    }

    .about-heading-wrapper h2 {
        /* Un-skews the text inside the heading block */
        transform: skewX(-12deg);
    }

    .image-container {
        /* Skews the image frame to match */
        transform: skewX(12deg);
        width: 250px;
    }
    
    .about-image {
        /* Un-skews the image itself so the subject stands straight. 
            Scale is increased to ensure the corners fill the slanted frame. */
        transform: skewX(-12deg) scale(1.15); 
    }

    .about-banner p {
            text-align: center;
            padding: 0 5%;
    }
}
