/* ============================================
   Case Studies - Pixel Perfect Stylesheet
   Extracted from Figma Design Mockup
   ============================================ */

/* Color Palette */
:root {
    --color-bg: #FFFFFF;
    --color-text-primary: #333333;
    --color-text-dark: #000000;
    --color-accent: #C800FF;
    --color-divider: #DDDDDD;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    font-family: "Proxima Nova Alt, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    padding: 0;
    margin: 0;
}
#content {
    width: 100vw;
    max-width: unset;
}

/* Header Styles */
.case-studies-header {
    padding: 40px 20px 60px;
    text-align: center;
    position: relative;
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;    
    font-family: "Proxima Nova Alt, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 125%;
    text-align: center;

}

.back-link {
    position: absolute;
    top: 40px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.back-link svg {
    width: 24px;
    height: 24px;
    color: currentColor;
}

.main-title {
    font-family: 'FreightText Pro Book', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

/* Main Content Area */
.case-studies-main {
    max-width: 922px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.intro-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 80px;
    font-weight: 400;
    letter-spacing: 12%;
}

/* Case Study Section */
.case-study {
    margin-bottom: 100px;
    text-align: center;
}

.case-study:last-child {
    margin-bottom: 0;
}

.case-study-numeral {
    font-size: 24px;
    font-weight: 100;
    color: #CB30E0;
    letter-spacing: 0.02em;
    font-family: 'FreightTextProBook','Times New Roman', serif;
}

.case-study-title {
    font-family: 'FreightText Pro Book', 'Times New Roman', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.case-study-body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 32px;
    font-weight: 400;
}

/* Divider */
.case-study-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-divider);
    margin: 0 auto 32px;
    max-width: 600px;
}

/* Labels Container */
.case-study-labels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 20px;
}

.label-divider {
    width: 1px;
    height: 16px;
    background-color: var(--color-divider);
    flex-shrink: 0;
}

    .metadata-bar {
        align-items: flex-start;
        gap: 12px;
        border-top: 1px solid #E1DFDA;
        justify-content: space-between;
        display: flex;
        flex-direction: row;
        max-width: 882px;
        margin: auto;
        height: 50px;
        align-items: center;
    }

    .metadata-divider {
      width: 1px;
      height: 14px;
      background-color: #E1DFDA;
      flex-shrink: 0;
      height: 50px;
    }

    .metadata-item {
        padding: 0;
    }

.case-study-main {
    text-align: center;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 48px 80px;
}

.case-study-content{
    padding: 0 48px;
}

.case-study-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle, select {
    background: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: "FreightTextProMedium-Regular";
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 2px;
    color: #21201D;
}

.dropdown-buttonarrow{
    display: flex;
    align-items: end;
    cursor: pointer;
}
.rotateArrow{
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1000;
    min-width: 250px;
    background: white;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: none;
    text-align: center;
    transform: translateX(-50%);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    font-size: 20px;
    line-height: 1.5em;
}

.dropdown-item:hover {
    background-color: #eee;
}
  

/* Responsive Design */
@media (max-width: 768px) {
    .case-studies-header {
        padding: 30px 15px 40px;
    }

    .back-link {
        top: 30px;
        left: 15px;
        font-size: 13px;
    }

    .main-title {
        font-size: 20px;
        padding-top: 30px;
    }

    .case-studies-main {
        padding: 0 15px 60px;
    }

    .intro-text {
        font-size: 16px;
        margin-bottom: 60px;
    }

    .case-study {
        margin-bottom: 70px;
    }

    .case-study-title {
        font-size: 28px;
    }

    .case-study-body {
        font-size: 16px;
    }

    .case-study-numeral {
        font-size: 18px;
    }

    .label {
        font-size: 10px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 18px;
    }

    .case-study-title {
        font-size: 24px;
    }

    .case-study-labels {
        flex-direction: column;
        gap: 12px;
    }

    .label-divider {
        display: none;
    }

    .label {
        padding: 0;
    }
}

