/* =========================================================
   PROJECTS
========================================================= */


/* =========================================================
   PROJECTS SECTION
========================================================= */

.projects-section {

    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 120px 20px 100px;

}


/* =========================================================
   PROJECT GRID
========================================================= */

.project-grid {

    width: 100%;
    max-width: 1500px;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 28px;

}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {

    flex: 1 1 700px;

    max-width: 700px;

    height: 280px;

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 22px;

    overflow: hidden;

    cursor: pointer;

    text-decoration: none;
    color: inherit;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}


.project-card:hover {

    transform: translateY(-6px);

    border-color: rgba(56,189,248,.35);

    box-shadow:
        0 10px 30px rgba(0,0,0,.35),
        0 0 18px rgba(56,189,248,.12);

}


/* =========================================================
   PROJECT MEDIA
========================================================= */

.project-media {

    flex: 0 0 390px;

    display: flex;

    align-self: stretch;

}


.project-preview {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 12px;

    display: block;

}


/* =========================================================
   PROJECT DIVIDER
========================================================= */

.project-divider {

    flex: 0 0 1px;

    align-self: center;

    height: 90%;

    min-height: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(56, 189, 248, 0.18),
            rgba(56, 189, 248, 0.45),
            rgba(56, 189, 248, 0.70),
            rgba(56, 189, 248, 0.45),
            rgba(56, 189, 248, 0.18)
        );

    box-shadow:
        0 0 10px rgba(56, 189, 248, 0.4),
        0 0 18px rgba(56, 189, 248, 0.2);

}


/* =========================================================
   PROJECT INFO
========================================================= */

.project-info {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    gap: 18px;

}


/* =========================================================
   IHK / DESCRIPTION
========================================================= */

.project-info .ihk-title {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 16px;

    margin: 0;

}


.project-info .ihk-title p {

    max-width: 330px;

    line-height: 1.7;

    margin: 0;

    color: rgba(255,255,255,.72);

}


/* =========================================================
   IHK TOPLINE
========================================================= */

.project-info .ihk-topline {

    display: flex;

    justify-content: center;
    align-items: baseline;

    gap: 10px;

}


/* =========================================================
   IHK BADGE
========================================================= */

.project-info .ihk-badge {

    font-family: "Segoe UI", Arial, sans-serif;

    font-style: italic;
    font-weight: 500;

    color: #16a34a;

    font-size: 18px;

}


/* =========================================================
   IHK MAIN
========================================================= */

.project-info .ihk-main {

    font-size: 15px;

    font-weight: 200;

    letter-spacing: 0.3em;

}


/* =========================================================
   BUTTONS
========================================================= */

.project-buttons {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin-top: 10px;

}


.project-buttons .newsletter-button {

    min-height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 24px;

    white-space: nowrap;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .projects-section {

        padding: 100px 20px 80px;

    }


    .project-card {

        flex-direction: column;

        max-width: 520px;

        height: auto;

        min-height: 520px;

        text-align: center;

    }


    .project-divider {

        display: none;

    }


    .project-media {

        width: 100%;

        flex: 0 0 260px;

        align-self: auto;

    }


    .project-preview {

        width: 100%;

        height: 260px;

    }


    .project-buttons {

        justify-content: center;

    }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 480px) {

    .projects-section {

        padding: 100px 10px 80px;

    }


    .project-grid {

        gap: 20px;

    }


    .project-card {

        width: 100%;

        max-width: 420px;

        padding: 16px;

    }


    .project-media {

        flex: 0 0 210px;

    }


    .project-preview {

        height: 210px;

    }

}