/* Layout for the top section */
.aboutTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 5px 10px;
    margin: 0 30px;
    border-radius: 10px;
    border: 1.5px solid rgb(0, 24, 158);
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

/* Media query for tablet-sized screens */
@media only screen and (max-width: 768px) {
    .aboutTop {
        flex-direction: column;
        align-items: center;
    }
}

/* Styling for service, product, and photo boxes */
.aBoxSCount,
.aBoxPCount,
.aBoxphoto {
    flex: 1;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 0 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 24, 158);
}

/* Styling for special counters */
.counterSpecial {
    font-size: 2em;
    color: rgb(197, 83, 2);
    -webkit-text-stroke: .25px white;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    margin: 5px;
    padding: 5px;
}

/* Styling for the digital-style counter numbers */
.sCounterNumbers {
    font-family: 'Digital-7', sans-serif;
    font-size: 36px;
    color: rgb(0, 24, 158);
    background-color: #fff;
    padding: 10px;
    border: 5px solid rgb(197, 83, 2);
    border-radius: 5px;
    display: inline-block;
    box-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

/* Styling for the photo box */
.aBoxphoto {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 20px 0;
}

/* Styling for the photo within the photo box */
.aBoxphoto img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Styling for the caption within the photo box */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 24, 158, 0.7);
    box-shadow: 8px 8px 4px rgba(0, 24, 158, 0.5);
    border-radius: 0 0 10px 10px;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* Styling for the bottom section */
.aboutBottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

/* Styling for the story box within the bottom section */
.aBoxStory {
    width: 80%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.5em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    color: rgb(255, 255, 255);
    background-color: rgb(0, 24, 158);
}

/* Styling for paragraphs within the story box */
.aBoxStory p {
    margin: 1em 0;
}