﻿/*==========================================================
    MIDDLE SECTION
==========================================================*/

.middle-section {
    padding: 40px 0 30px;
    background: #fff;
}

/*==========================================================
    SECTION HEADER
==========================================================*/

.section-header {
    text-align: center;
    margin: 0 auto 55px;
}

.section-tag {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2F6BFF;
}

.section-header h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #0F172A;
}

.section-header p {
    margin: 22px auto 0;
    font-size: 17px;
    line-height: 1.8;
    color: #667085;
    max-width: 760px;
}

/*==========================================================
    DIVIDER
==========================================================*/

.section-divider {
    width: 90px;
    height: 4px;
    margin: -20px auto 55px;
    border-radius: 30px;
    background: linear-gradient(90deg,#2F6BFF,#5B9CFF,#2F6BFF);
    position: relative;
}

    .section-divider::before,
    .section-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 34px;
        height: 2px;
        background: rgba(47,107,255,.25);
    }

    .section-divider::before {
        right: calc(100% + 12px);
        transform: translateY(-50%);
    }

    .section-divider::after {
        left: calc(100% + 12px);
        transform: translateY(-50%);
    }

/*==========================================================
    GRID
==========================================================*/

.project-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0;
    border: 1px solid #E6ECF5;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 40px rgba(15,23,42,.05);
}

/*==========================================================
    CARD
==========================================================*/

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 32px;
    background: #fff;
    border-right: 1px solid #E6ECF5;
    border-bottom: 1px solid #E6ECF5;
    transition: .25s ease;
}

    .project-card:hover {
        background: #FBFDFF;
    }

    .project-card:nth-child(3n) {
        border-right: none;
    }

    .project-card:nth-last-child(-n+3) {
        border-bottom: none;
    }

/*==========================================================
    HEADER
==========================================================*/

.project-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: flex-start;
}

/*==========================================================
    CLIENT LOGO
==========================================================*/

.project-client {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .project-client img {
        width: 100%;
        height: 60px;
        object-fit: contain;
        object-position: center;
        display: block;
    }

    .project-client span {
        margin-top: 8px;
        font-size: 12px;
        font-weight: 600;
        color: #64748B;
        line-height: 1.3;
    }

/*==========================================================
    CONTENT
==========================================================*/

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .project-content h3 {
        margin: 0;
        font-size: 21px;
        font-weight: 800;
        line-height: 1.25;
        color: #0F172A;
    }

.project-subtitle {
    display: block;
    margin: 8px 0 16px;
    color: #2F6BFF;
    font-size: 14px;
    font-weight: 600;
}

.project-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #667085;
}

/*==========================================================
    TAGS
==========================================================*/

.project-tags {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

    .project-tags span {
        padding: 8px 16px;
        border-radius: 999px;
        background: #F7F9FC;
        border: 1px solid #E2E8F0;
        font-size: 13px;
        font-weight: 600;
        color: #475569;
        line-height: 1;
    }

/*==========================================================
    FOOTER
==========================================================*/

.section-footer {
    margin-top: 28px;
    text-align: center;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid #2F6BFF;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: #2F6BFF;
    transition: .3s;
}

    .btn-outline-primary:hover {
        background: #2F6BFF;
        color: #fff;
    }

/*==========================================================
    RESPONSIVE
==========================================================*/

@media(max-width:1200px) {

    .project-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .project-card:nth-child(2n) {
        border-right: none;
    }

    .project-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media(max-width:768px) {

    .middle-section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .section-header p {
        font-size: 15px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
        padding: 26px;
        border-right: none;
    }

        .project-card:last-child {
            border-bottom: none;
        }

    .project-header {
        grid-template-columns: 90px 1fr;
        gap: 18px;
    }

    .project-client {
        width: 90px;
    }

        .project-client img {
            height: 48px;
        }

    .project-content h3 {
        font-size: 19px;
    }

    .project-content p {
        font-size: 14px;
    }
}
