/* ==========================================================================
   Esthete Theme - Single Case Study Page Styles (single-case_study.php)
   Strictly adheres to --prim-font ("Neue"), --second-font ("GeistMono"),
   and --prim-color (#EF3C51).
   ========================================================================== */

.cs-section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .cs-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Eyebrows & Badges */
.cs-eyebrow {
    font-family: var(--second-font), monospace;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--prim-color, #EF3C51);
    margin-bottom: 16px;
    display: inline-block;
}

.cs-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--second-font), monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Headings */
.cs-title {
    font-family: var(--prim-font), sans-serif;
    font-size: 56px !important;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0px;
    color: #ffffff;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .cs-title {
        font-size: 34px !important;
        letter-spacing: -1px;
    }
}

/* ==========================================================================
   1. Case Study Hero Section
   ========================================================================== */
.case-hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    background-color: #000000;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.case-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 60%, #000000 100%);
    z-index: 1;
}

.case-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.case-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.case-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--prim-color, #EF3C51);
}

.case-hero-industry {
    font-family: var(--second-font), monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-hero-desc {
    font-family: var(--prim-font), sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-bottom: 32px;
}

.case-hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   2. Project Description & Sidebar Meta Section
   ========================================================================== */
.case-description-section {
    background-color: #08080a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-desc-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

@media (max-width: 991px) {
    .case-desc-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.case-body-text {
    font-family: var(--prim-font), sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.case-body-text p {
    margin-bottom: 24px;
}

.case-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cs-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--prim-color, #EF3C51);
    color: #ffffff;
    font-family: var(--second-font), monospace;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.cs-btn-primary:hover {
    background: #d82b40;
    box-shadow: 0 10px 25px rgba(239, 60, 81, 0.35);
    transform: translateY(-2px);
}

.cs-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #000000;
    font-family: var(--second-font), monospace;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.35s ease;
}

.cs-btn-secondary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

/* Sidebar Meta Box */
.case-sidebar-box {
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-logo-wrap {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.sidebar-logo-wrap img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-meta-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.sidebar-meta-label {
    font-family: var(--second-font), monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--prim-color, #EF3C51);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-meta-val {
    font-family: var(--prim-font), sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   3. 4-Goal Grid Section
   ========================================================================== */
.case-goals-section {
    background-color: #0c0c0e;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

@media (max-width: 991px) {
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

.goal-card {
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 28px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: all 0.35s ease;
}

.goal-card:hover {
    border-color: var(--prim-color, #EF3C51);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.goal-num {
    font-family: var(--second-font), monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--prim-color, #EF3C51);
    margin-bottom: 20px;
}

.goal-card-title {
    font-family: var(--prim-font), sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.goal-card-desc {
    font-family: var(--prim-font), sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ==========================================================================
   4. Media Gallery Showcase Section
   ========================================================================== */
.case-gallery-section {
    background-color: #060608;
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.gallery-item {
    width: 100%;
    border-radius: 0px;
    overflow: hidden;
    background-color: #141418;
    border: 0px solid rgba(255, 255, 255, 0.08);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* .gallery-item:hover img {
    transform: scale(1.02);
} */

/* ==========================================================================
   5. Client Testimonial Experience Section
   ========================================================================== */
.case-testimonial-section {
    background-color: #0a0a0d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-box {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote-text {
    font-family: var(--prim-font), sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -1px;
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 36px;
}

@media (max-width: 991px) {
    .testimonial-quote-text {
        font-size: 22px;
    }
}

.testimonial-author-name {
    font-family: var(--prim-font), sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.testimonial-author-role {
    font-family: var(--second-font), monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ==========================================================================
   6. Related Projects Section
   ========================================================================== */
.case-related-section {
    background-color: #08080a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 991px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.35s ease;
}

.related-card:hover {
    border-color: var(--prim-color, #EF3C51);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.related-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img-wrap img {
    transform: scale(1.05);
}

.related-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-card-title {
    font-family: var(--prim-font), sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.related-card-link {
    font-family: var(--second-font), monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--prim-color, #EF3C51);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.case-gallery-section .es-container {
    width: 100%;
	max-width: 100%;
    margin-inline: 0px;
    padding-inline: 0px;
}