/* =========================================
   ABOUT MAIN CONTENT
========================================= */

.about-main {
    width: 100%;
    padding: 70px 6%;
    background: #f7f9fc;
}


/* =========================================
   COMMON ROW
========================================= */

.about-row {
    max-width: 1000px;
    min-height: 330px;

    margin: 0 auto 60px;

    display: flex;
    align-items: center;

    gap: 70px;

    padding: 30px 45px;

    background: #ffffff;

    border-radius: 25px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);

    overflow: hidden;

    transition: 0.3s;
}


/* =========================================
   ROW 1
   PHOTO + DESCRIPTION
========================================= */

.about-row:nth-child(1) {
    flex-direction: row;
    border-left: 7px solid #ff6b00;
}


/* =========================================
   ROW 2
   DESCRIPTION + PHOTO
========================================= */

.about-row:nth-child(2) {
    flex-direction: row;
    border-right: 7px solid #2563eb;
}


/* =========================================
   ROW 3
   PHOTO + DESCRIPTION
========================================= */

.about-row:nth-child(3) {
    flex-direction: row;
    border-left: 7px solid #16a34a;
}


/* =========================================
   ROW 4
   DESCRIPTION + PHOTO
========================================= */

.about-row:nth-child(4) {
    flex-direction: row;
    border-right: 7px solid #9333ea;
}



.about-row:nth-child(5) {
    flex-direction: row;
    border-left: 7px solid #ff6b00;
}


/* =========================================
   ROW 2
   DESCRIPTION + PHOTO
========================================= */

.about-row:nth-child(6) {
    flex-direction: row;
    border-right: 7px solid #2563eb;
}


/* =========================================
   ROW 3
   PHOTO + DESCRIPTION
========================================= */

.about-row:nth-child(7) {
    flex-direction: row;
    border-left: 7px solid #16a34a;
}


/* =========================================
   ROW 4
   DESCRIPTION + PHOTO
========================================= */

.about-row:nth-child(8) {
    flex-direction: row;
    border-right: 7px solid #9333ea;
}

/* =========================================
   CIRCLE PHOTO
========================================= */

.about-photo {
    width: 280px;
    height: 280px;

    min-width: 280px;

    border-radius: 50%;

    overflow: hidden;

    border: 8px solid white;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);

    flex-shrink: 0;
}

.about-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.5s;
}

.about-photo:hover img {
    transform: scale(1.08);
}


/* =========================================
   PHOTO COLORS
========================================= */

.about-row:nth-child(1) .about-photo {
    border-color: #ffedd5;
}

.about-row:nth-child(2) .about-photo {
    border-color: #dbeafe;
}

.about-row:nth-child(3) .about-photo {
    border-radius: 0;
    border-color: #dcfce7;
}

.about-row:nth-child(4) .about-photo {
       border-radius: 10px;
    border-color: #f3e8ff;
}

.about-row:nth-child(5) .about-photo {
     border-radius: 10px;
    border-color: #ffedd5;
}

.about-row:nth-child(6) .about-photo {
    
    border-color: #dbeafe;
}

.about-row:nth-child(7) .about-photo {
    border-color: #dcfce7;
}

.about-row:nth-child(8) .about-photo {
    border-color: #f3e8ff;
}

/* =========================================
   DESCRIPTION
========================================= */

.about-text {
    flex: 1;
}

.about-label {
    display: inline-block;

    color: #ff6b00;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.about-text h2 {
    color: #172554;

    font-size: 32px;

    line-height: 1.3;

    margin: 0 0 18px;
}

.about-text p {
    color: #555;

    font-size: 15px;

    line-height: 1.8;

    margin: 0 0 12px;
}


/* =========================================
   DIFFERENT LABEL COLORS
========================================= */

.about-row:nth-child(2) .about-label {
    color: #2563eb;
}

.about-row:nth-child(3) .about-label {
    color: #a31616;
}

.about-row:nth-child(4) .about-label {
    color: #1687a3;
}

.about-row:nth-child(5) .about-label {
    color: #9333ea;
}


.about-row:nth-child(6) .about-label {
    color: #2563eb;
}

.about-row:nth-child(7) .about-label {
    color: #16a34a;
}

.about-row:nth-child(8) .about-label {
    color: #9333ea;
}
/* =========================================
   HOVER
========================================= */

.about-row:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .about-main {
        padding: 50px 4%;
    }

    .about-row {
        min-height: auto;

        gap: 35px;

        padding: 40px 25px;
    }

    .about-photo {
        width: 240px;
        min-width: 240px;
        height: 240px;
    }

    .about-text h2 {
        font-size: 27px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .about-main {
        padding: 35px 15px;
    }


    .about-row,
    .about-row:nth-child(1),
    .about-row:nth-child(2),
    .about-row:nth-child(3),
    .about-row:nth-child(4)
    .about-row:nth-child(5),
    .about-row:nth-child(6),
    .about-row:nth-child(7),
    .about-row:nth-child(8) {

        flex-direction: column;

        text-align: center;

        gap: 25px;

        padding: 35px 20px;

        margin-bottom: 35px;

        border-radius: 20px;
    }


    .about-photo {
        width: 210px;
        min-width: 210px;
        height: 210px;

        border-width: 6px;
    }


    .about-text h2 {
        font-size: 25px;
    }


    .about-text p {
        font-size: 14px;
    }

}