/* ======================================================
   EURAS THE HUB
   CASE STUDIES FRONT-END CSS

   Full replacement file:
   /public_html_2/euras_the_hub/css/case-studies.css

   Date: 2026-05-22
   Time: 12:32 PM

   Purpose:
   Public case study directory styled to match the Associate
   Members public space: light corporate layout, wide container,
   featured card, search bar, and compact equal-height cards.

   Update:
   Featured case image uses the same visual proportion as the
   compact card image so it no longer appears squeezed or cropped
   into a square-like frame.
====================================================== */

.case-directory-page {
    background: #f4f4f1;
    color: #151515;
    font-family: inherit;
}

.case-wide-container {
    width: min(1600px, calc(100% - 72px));
    margin: 0 auto;
}

.case-page-top {
    padding: 72px 0 34px;
    background:
        radial-gradient(circle at 74% 16%, rgba(120, 120, 120, 0.08), transparent 34%),
        linear-gradient(180deg, #f7f6f2 0%, #f4f4f1 100%);
}

.case-hero-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 42px;
    align-items: start;
}

.case-intro-panel {
    padding: 12px 0 0;
}

.case-label-clean {
    display: inline-block;
    color: #d97f00;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.case-intro-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(44px, 5.2vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #151515;
}

.case-intro-panel p {
    max-width: 650px;
    margin: 0;
    color: #555555;
    font-size: 17px;
    line-height: 1.65;
}

.case-stat-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.case-stat-box {
    min-width: 150px;
    padding: 0 22px 0 0;
    border-right: 1px solid #d9d9d4;
}

.case-stat-box:last-child {
    border-right: 0;
}

.case-stat-box strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: #151515;
    margin-bottom: 6px;
}

.case-stat-box span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #444444;
}

.case-featured-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #deded9;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.055);
    overflow: hidden;
    min-height: 315px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
    padding: 28px;
    margin-top: 24px;
}

.case-featured-image {
    width: 100%;
    aspect-ratio: 118 / 82;
    min-height: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #e7e7e2;
    align-self: start;
}


.case-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-featured-content h2 {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d97f00;
}

.case-featured-content h3 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #151515;
}

.case-featured-cn {
    margin: 0 0 8px;
    color: #d97f00;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.case-featured-title {
    margin: 0 0 12px;
    color: #666666;
    font-size: 14px;
    line-height: 1.45;
}

.case-featured-text {
    max-width: 720px;
    margin: 0 0 16px;
    color: #444444;
    font-size: 15px;
    line-height: 1.65;
}

.case-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.case-featured-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid rgba(247, 157, 32, 0.55);
    border-radius: 999px;
    color: #d97f00;
    background: #fffaf2;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.case-featured-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.case-code-pill,
.case-doc-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-code-pill {
    background: #f79d20;
    color: #151515;
}

.case-doc-count {
    background: #f7f6f2;
    color: #555555;
    border: 1px solid #deded9;
}

.case-documents-panel {
    margin-top: 18px;
    padding: 14px;
    border-radius: 15px;
    border: 1px solid rgba(247, 157, 32, 0.35);
    background: #fffaf2;
}

.case-documents-panel strong,
.case-card-documents strong {
    display: block;
    margin-bottom: 8px;
    color: #d97f00;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.case-documents-panel a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    color: #151515;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.case-documents-panel a:first-of-type {
    border-top: 0;
}

.case-documents-panel a span {
    color: #777777;
    font-size: 11px;
}

.case-filter-section {
    padding: 18px 0 18px;
    background: #f4f4f1;
}

.case-search-bar {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #deded9;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.45fr 0.72fr 0.72fr auto auto;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
}

.case-search-bar input,
.case-search-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    padding: 0 12px;
    background: #ffffff;
    color: #151515;
    font-size: 13px;
    font-family: inherit;
}

.case-search-button,
.case-reset-button {
    min-height: 44px;
    border-radius: 9px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.case-search-button {
    border: 0;
    background: #333333;
    color: #ffffff;
}

.case-reset-button {
    background: #ffffff;
    border: 1px solid #dddddd;
    color: #151515;
}

.case-directory-body {
    padding: 16px 0 74px;
    background: #f4f4f1;
}

.case-directory-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    color: #555555;
    font-size: 13px;
}

.case-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.case-profile-card {
    min-height: 286px;
    background: #ffffff;
    border: 1px solid #e2e2de;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.case-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.075);
}

.case-card-main {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 12px;
}

.case-card-image {
    width: 118px;
    height: 82px;
    border-radius: 12px;
    overflow: hidden;
    background: #e7e7e2;
    border: 4px solid #f4f4f1;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card-code {
    display: block;
    margin: 0 0 5px;
    color: #d97f00;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.case-card-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #151515;
}

.case-card-industry {
    margin: 0 0 5px;
    color: #d97f00;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.case-card-region {
    margin: 0;
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
}

.case-card-summary {
    margin: 0 0 10px;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
}

.case-card-documents {
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(247, 157, 32, 0.25);
    border-radius: 12px;
    background: #fffaf2;
}

.case-card-documents a {
    display: block;
    color: #151515;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    padding: 5px 0;
}

.case-card-footer {
    margin-top: auto;
    color: #d97f00;
    font-size: 12px;
    font-weight: 900;
}

.case-empty-card {
    background: #ffffff;
    border: 1px solid #e2e2de;
    border-left: 6px solid #f79d20;
    border-radius: 18px;
    padding: 24px;
}

.case-empty-card h3 {
    margin-top: 0;
    color: #151515;
}

.case-empty-card p {
    margin-bottom: 0;
    color: #555555;
    line-height: 1.6;
}

@media (max-width: 1280px) {
    .case-hero-layout {
        grid-template-columns: 1fr;
    }

    .case-featured-shell {
        margin-top: 0;
    }

    .case-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-search-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .case-wide-container {
        width: min(100% - 32px, 1600px);
    }

    .case-page-top {
        padding: 42px 0 24px;
    }

    .case-featured-shell {
        grid-template-columns: 1fr;
    }

    .case-featured-image {
        aspect-ratio: 118 / 82;
        min-height: 0;
    }

    .case-search-bar {
        grid-template-columns: 1fr;
    }

    .case-card-grid {
        grid-template-columns: 1fr;
    }

    .case-directory-topline {
        display: block;
    }

    .case-directory-topline div + div {
        margin-top: 8px;
    }
}

/* ======================================================
   CASE STUDY CLICK / DETAIL PAGE PATCH
   Date: 2026-05-29
====================================================== */

.case-title-link {
    color: inherit;
    text-decoration: none;
}

.case-title-link:hover {
    color: #d97f00;
}

.case-featured-image,
.case-card-image {
    display: block;
    text-decoration: none;
}

.case-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d97f00;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.case-open-link:hover {
    color: #151515;
}

.case-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.case-detail-page {
    min-height: 70vh;
}

.case-detail-top {
    padding-bottom: 46px;
}

.case-back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: #d97f00;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.case-back-link:hover {
    color: #151515;
}

.case-detail-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.72fr) minmax(420px, 1fr);
    gap: 42px;
    align-items: start;
}

.case-detail-image {
    background: #ffffff;
    border: 1px solid #deded9;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.055);
}

.case-detail-image img {
    width: 100%;
    aspect-ratio: 118 / 82;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    background: #e7e7e2;
}

.case-detail-content {
    padding: 18px 0;
}

.case-detail-content h1 {
    margin: 0 0 14px;
    color: #151515;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.case-detail-subtitle {
    max-width: 760px;
    margin: 0 0 18px;
    color: #555555;
    font-size: 18px;
    line-height: 1.55;
}

.case-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.case-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f79d20;
    color: #151515;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-detail-summary {
    max-width: 780px;
    margin: 0 0 20px;
    color: #444444;
    font-size: 16px;
    line-height: 1.72;
}

.case-detail-body-section {
    padding: 34px 0 86px;
    background: #f4f4f1;
}

.case-detail-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.case-detail-article,
.case-detail-sidebar {
    background: #ffffff;
    border: 1px solid #e2e2de;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
    padding: 28px;
}

.case-detail-article h2,
.case-detail-sidebar h3 {
    margin: 0 0 16px;
    color: #151515;
    font-size: 22px;
    line-height: 1.2;
}

.case-detail-article p,
.case-detail-sidebar p {
    margin: 0 0 16px;
    color: #555555;
    font-size: 15px;
    line-height: 1.75;
}

.case-detail-documents {
    margin: 16px 0 20px;
}

@media (max-width: 980px) {
    .case-detail-layout,
    .case-detail-body-grid {
        grid-template-columns: 1fr;
    }
}
