/* Case Study Detail page specific styles */

.csd-page {
    padding: 150px 20px 70px;
}

.csd-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
}

.csd-sidebar {
    position: sticky;
    top: 120px;
}

.csd-back-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #cfcfcf;
    font-size: 0.88rem;
    margin-bottom: 84px;
    transition: color .25s ease;
}

.csd-back-link:hover {
    color: #ffffff;
}

.csd-meta {
    display: grid;
    gap: 14px;
}

.csd-meta-item {
    border-bottom: 1px solid var(--stroke-color);
    padding-bottom: 12px;
}

.csd-meta-item span {
    display: block;
    color: #8b8b8b;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.csd-meta-item strong {
    color: #e8e8e8;
    font-size: 0.96rem;
    font-weight: 500;
}

.csd-main {
    max-width: 860px;
}

.csd-title {
    margin-bottom: 42px;
    text-transform: uppercase;
    line-height: 0.96;
    letter-spacing: -0.03em;
    font-size: 42px;
}

.csd-hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 42px;
}

.csd-hero img,
.csd-image img {
    width: 100%;
    /*max-height: 400px;*/
    object-fit: cover;
    display: block;
}

.csd-intro {
    line-height: 1.78;
}

.csd-intro p {
    margin-bottom: 32px;
}

.csd-dash {
    color: var(--text-white)
}

.csd-section {
    margin-top: 100px;
}

.csd-section h2 {
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.02em;
    font-size: 32px;
    margin-bottom: 52px;
}

.csd-section h3 {
    font-size: 24px;
    line-height: 1.2;
    margin: 42px 0 24px;
}

.csd-section p {
    line-height: 1.5;
    margin-bottom: 32px;
}

.csd-image {
    margin: 42px 0 0;
    border-radius: 16px;
    overflow: hidden;
}

.csd-section ul{
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.csd-section li {
    position: relative;
    padding-left: 24px;
    line-height: 1.64;
    color: var(--color-text-paragraph); 
}

.csd-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
}

.csd-quote {
    margin-top: 42px;
    padding: 24px 24px;
    background: var(--color-bg-secondary);
    border-radius: 16px;
    line-height: 1.7;
}

/*table */
.csd-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #1e1e1e;
    /*border: 1px solid rgba(255, 255, 255, 0.08);*/
    border-radius: 10px;
    overflow: hidden;
}

.csd-section table th,
.csd-section table td {
    padding: 12px 20px;
    text-align: left;
    vertical-align: top;
}

/* Table Header */
.csd-section table th {
    width: 25%;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
}

/* Table Content */
.csd-section table td {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

/* Alternating Row Colors */
.csd-section table tbody tr:nth-child(odd) {
    background: #1e1e1e;
}

.csd-section table tbody tr:nth-child(even) {
    background: #242424;
}

/* Remove border from last row */
.csd-section table tbody tr:last-child th,
.csd-section table tbody tr:last-child td {
    border-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .csd-section table th,
    .csd-section table td {
        padding: 16px;
        font-size: 14px;
    }

    .csd-section table th {
        width: 35%;
    }
}

@media (max-width: 1199.98px) {
    .csd-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
}

@media (max-width: 991.98px) {
    .csd-page {
        padding: 100px 10px 50px;
    }

    .csd-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .csd-sidebar {
        position: static;
    }

    .csd-back-link {
        margin-bottom: 0px;
    }

    .csd-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
        border-top: 1px solid var(--csd-line);
        padding-top: 14px;
    }

}

@media (max-width: 767.98px) {

    .csd-meta {
        grid-template-columns: 1fr;
    }

    .csd-title {
        font-size: 28px;
        line-height: 1.02;
        margin-bottom: 18px;
    }

    .csd-section {
        margin-top: 70px;
    }

    .csd-section h2 {
        margin-bottom: 36px;
        font-size: 24px;
        position: relative;
    }

    .csd-section h2:before {
        content: "";
        position: absolute;
        left: -20px;
        top: 0;
        width: 5px;
        height: 100%;
        background: var(--color-primary);
    }

    .csd-section h3 {
        font-size: 20px;
        margin: 32px 0 24px;
    }

    .csd-section p,
    .csd-intro {
        font-size: 17px;
    }

    .csd-hero img,
    .csd-image img {
        max-height: 200px;
    }
}