/* CASE STUDIES*/

.case-studies {
    width: 100%;
    padding: 40px 0;
    background: #F4F8FC;
    font-family: "DM Sans", sans-serif;
}


.case-container {
    width: calc(100% - 80px);
    max-width: 1450px;
    margin: 0 auto;
}


/* HEADER */

.case-header {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}


.case-tag {
    display: inline-flex;
    align-items: center;

    padding: 7px 15px;

    border-radius: 999px;

    background: #eaf5ff;
    color: #1394e8;

    font-size: 13px;
    font-weight: 700;
}


.case-header h2 {
    margin: 18px 0 16px;

    color: #101828;

    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 600;
}


.case-header p {
    max-width: 700px;
    margin: 0 auto;

    color: #536581;

    font-size: 18px;
    line-height: 1.6;
}


/*
   FEATURED CASE STUDY*/

.case-featured {
    position: relative;

    display: grid;
    grid-template-columns: 43% 57%;

    min-height: 360px;

    overflow: hidden;

    background: #edf7ff;

    border-radius: 22px;

    margin-bottom: 24px;
}


.case-featured-content {
    position: relative;
    z-index: 2;

    padding: 42px 25px 42px 42px;
}


.case-category {
    display: inline-flex;

    padding: 6px 12px;

    border-radius: 999px;

    background: #dceeff;

    color: #0878d1;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
}


.case-featured h3 {
    max-width: 560px;

    margin: 16px 0 15px;

    color: #101828;

    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}


.case-featured p {
    max-width: 540px;

    margin: 0 0 25px;

    color: #43546d;

    font-size: 16px;
    line-height: 1.65;
}


.case-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 13px 18px;

    background: #101828;
    color: #fff;

    border-radius: 999px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition: .25s ease;
}


.case-btn:hover {
    background: #1394e8;
    transform: translateY(-2px);
}


.case-featured-visual {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 35px 30px 0;
}


/*
   WORDPRESS DASHBOARD
 */

.wp-dashboard {
    width: 100%;
    max-width: 650px;

    display: flex;

    background: #fff;

    border-radius: 14px 14px 0 0;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, .12);

    transform: translateY(15px);
}


.wp-sidebar {
    width: 105px;

    flex-shrink: 0;

    background: #101b2d;

    padding: 16px 10px;
}


.wp-logo {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #fff;

    font-size: 8px;
    font-weight: 700;

    margin-bottom: 25px;
}


.wp-logo i {
    font-size: 15px;
}


.wp-menu {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 7px 6px;

    margin-bottom: 4px;

    color: #aeb9c9;

    font-size: 7px;

    border-radius: 5px;
}


.wp-menu i {
    font-size: 8px;
}


.wp-menu.active {
    background: #1394e8;
    color: #fff;
}


.wp-main {
    flex: 1;

    min-width: 0;

    padding: 15px;
}


.wp-dashboard-header {
    position: relative;

    padding-bottom: 13px;

    font-size: 11px;
    color: #152238;
}


.wp-window-controls {
    position: absolute;
    top: -7px;
    right: -4px;

    display: flex;
    gap: 5px;
}


.wp-window-controls span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #d6dce5;
}


.wp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;
}


.wp-stat {
    padding: 11px;

    border: 1px solid #edf0f4;
    border-radius: 7px;
}


.wp-stat span {
    display: block;

    color: #65748b;

    font-size: 7px;
}


.wp-stat strong {
    display: block;

    margin-top: 5px;

    color: #172238;

    font-size: 14px;
}


.wp-stat small {
    color: #8894a6;

    font-size: 6px;
}


.wp-chart {
    margin-top: 10px;

    border: 1px solid #edf0f4;

    border-radius: 7px;

    padding: 12px;
}


.chart-header {
    display: flex;
    justify-content: space-between;

    font-size: 8px;
}


.chart-header span {
    color: #21b66f;
}


.chart-header i {
    display: inline-block;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #21b66f;
}


.chart-area {
    position: relative;

    height: 100px;

    margin-top: 8px;
}


.chart-grid {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #a2adbb;

    font-size: 6px;
}


.chart-area svg {
    position: absolute;

    left: 35px;
    right: 0;
    bottom: 0;

    width: calc(100% - 35px);
    height: 90px;

    overflow: visible;
}


.chart-area path {
    fill: none;

    stroke: #1394e8;

    stroke-width: 3;
}


.chart-dates {
    display: flex;
    justify-content: space-between;

    margin-left: 35px;

    color: #9aa5b4;

    font-size: 6px;
}


/*SMALL CARDS */

.case-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.case-card {
    position: relative;

    min-height: 315px;

    overflow: hidden;

    padding: 27px 25px;

    border-radius: 20px;
}


.case-card h3 {
    position: relative;
    z-index: 2;

    max-width: 270px;

    margin: 15px 0 13px;

    color: #101828;

    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.5px;
}


.case-card p {
    position: relative;
    z-index: 2;

    max-width: 290px;

    margin: 0;

    color: #43546d;

    font-size: 14px;
    line-height: 1.65;
}


.case-link {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 5;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #101828;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
}


.case-link i {
    font-size: 10px;

    transition: .2s ease;
}


.case-link:hover i {
    transform: translate(3px, -3px);
}


/*  CARD COLORS*/

.case-green {
    background: #e9faf2;
}


.case-purple {
    background: #f0edff;
}


.case-yellow {
    background: #fff9d9;
}


/* HOSTING COMPARISON*/

.hosting-comparison {
    position: absolute;

    right: 25px;
    bottom: 48px;

    display: flex;
    align-items: center;

    transform: scale(.85);
}


.hosting-stack {
    width: 65px;
    height: 105px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding: 11px 8px;

    border-radius: 7px;

    color: #fff;

    box-shadow: 0 12px 20px rgba(0,0,0,.12);
}


.hosting-stack.shared {
    background: #54c59c;
}


.hosting-stack.vps {
    background: #2177d8;
}


.hosting-stack span {
    font-size: 8px;
    font-weight: 800;
}


.hosting-stack small {
    font-size: 6px;
}


.stack-lines {
    margin-top: 12px;
}


.stack-lines i {
    display: block;

    height: 3px;

    margin-bottom: 7px;

    border-radius: 3px;

    background: rgba(255,255,255,.7);
}


.vs-circle {
    position: relative;
    z-index: 2;

    width: 42px;
    height: 42px;

    margin: 0 -8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;

    color: #172238;

    font-size: 11px;
    font-weight: 800;

    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}


/* CLOUD VISUAL */

.cloud-visual {
    position: absolute;

    right: 25px;
    bottom: 40px;

    width: 135px;
    height: 115px;
}


.cloud-icon {
    position: absolute;

    top: 0;
    right: 25px;

    width: 75px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 38px;
}


.cloud-icon i {
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.08));
}


.cloud-layers {
    position: absolute;

    bottom: 0;
    left: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;
}


.cloud-layers span {
    width: 55px;
    height: 20px;

    margin-top: -3px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(19,148,232,.12);

    background: rgba(255,255,255,.8);

    color: #1394e8;

    font-size: 9px;

    box-shadow: 0 5px 10px rgba(0,0,0,.05);
}


/* SECURITY */

.security-visual-case {
    position: absolute;

    right: 30px;
    bottom: 35px;

    width: 135px;
    height: 145px;
}


.security-shield {
    position: relative;

    width: 100px;
    height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1394e8;

    font-size: 80px;
}


.shield-lock {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 24px;
}


.security-status {
    position: absolute;

    left: 10px;
    bottom: 0;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 8px 11px;

    background: #fff;

    border-radius: 7px;

    box-shadow: 0 7px 20px rgba(0,0,0,.08);

    font-size: 8px;
    font-weight: 700;
}


.security-status i {
    color: #20bc72;
}


/*  ALL INSIGHTS BUTTON */

.case-all {
    display: flex;
    justify-content: center;

    margin-top: 30px;
}


.case-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 24px;

    border: 1px solid #1394e8;

    border-radius: 999px;

    color: #1394e8;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition: .25s ease;
}


.case-all-btn:hover {
    background: #1394e8;
    color: #fff;
}


.case-all-btn i {
    transition: .2s ease;
}


.case-all-btn:hover i {
    transform: translate(3px, -3px);
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .case-container {
        width: calc(100% - 40px);
    }

    .case-featured {
        grid-template-columns: 1fr;
    }

    .case-featured-content {
        padding: 35px;
    }

    .case-featured-visual {
        padding: 0 25px;
    }

    .wp-dashboard {
        transform: translateY(15px);
    }

}


@media (max-width: 850px) {

    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        min-height: 340px;
    }

    .case-header h2 {
        font-size: 38px;
    }

}


@media (max-width: 600px) {

    .case-studies {
        padding: 80px 0;
    }

    .case-container {
        width: calc(100% - 30px);
    }

    .case-header {
        margin-bottom: 35px;
    }

    .case-header h2 {
        font-size: 32px;
    }

    .case-header p {
        font-size: 16px;
    }

    .case-featured-content {
        padding: 28px 24px;
    }

    .case-featured h3 {
        font-size: 24px;
    }

    .case-featured-visual {
        padding: 0 15px;
    }

    .wp-sidebar {
        display: none;
    }

    .wp-main {
        padding: 12px;
    }

    .wp-stats {
        grid-template-columns: 1fr;
    }

    .case-card {
        min-height: 390px;
    }

}

