/* Demographics Page Styles */

/* Breadcrumb */
.demographics-breadcrumb span {
    color: #0A0A0A !important;
}

.demographics-breadcrumb span:last-child {
    color: #00388B !important;
}

/* Leaderboard Ad */
.demographics-leaderboard {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* Hero Section */
.demographics-hero {
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

.demographics-hero h1 {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: #0A0A0A;
    text-align: left;
    margin-bottom: 0;
}

.demographics-hero p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #666666;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Grid Layout */
.demographics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

/* Demographics Sections */
.demographics-section {
    margin: 1rem auto 3rem auto;
    padding: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: calc(1440px - 168px);
    width: calc(100% - 168px);
}

.demographics-section .ef-container {
    padding: 0;
    max-width: 100%;
}

/* Card Styles */
.demo-card {
    margin-bottom: 3rem;
}

.demo-card:last-child {
    margin-bottom: 0;
}

.demo-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 1rem;
}

.demo-card-title-sm {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.25rem;
}

.demo-card-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 1rem;
}

.demo-card-link {
    font-family: Inter;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 0px;
    text-decoration: underline;
    text-decoration-style: solid;
    color: #00388B;
    display: block;
    margin-bottom: 0.5rem;
}

/* Content Wrapper */
.demo-content-wrapper {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.demo-content-wrapper-large {
    display: flex;
    gap: 25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Image Container */
.demo-image-container {
    min-width: 200px;
    text-align: center;
}

.demo-image-container-large {
    min-width: 364px;
    text-align: center;
}

.demo-image {
    max-width: 100%;
    height: auto;
}

.demo-image-large {
    max-width: 364px;
    height: auto;
}

/* Table Container */
.demo-table {
    min-width: 200px;
}

.demo-table-large {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

/* Table Header */
.demo-table-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.75rem;
}

.demo-table-header-single {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.75rem;
}

.demo-table-header-text {
    font-size: 18px;
    color: #737373;
}

/* Table Rows */
.demo-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.demo-table-row:last-child {
    margin-bottom: 0;
}

.demo-table-row-multiline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.demo-table-row-single {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.demo-table-row-single:last-child {
    margin-bottom: 0;
}

/* Table Cell */
.demo-table-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-table-cell-multiline {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
}

/* Bullet Points */
.demo-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.demo-bullet-primary {
    background: #00388B;
}

.demo-bullet-secondary {
    background: #00388BE3;
}

.demo-bullet-tertiary {
    background: #00388B54;
}

.demo-bullet-quaternary {
    background: #00388B33;
}

.demo-bullet-quinary {
    background: #00388B1A;
}

.demo-bullet-multiline {
    margin-top: 6px;
    flex-shrink: 0;
}

/* Text Styles */
.demo-text {
    font-size: 18px;
    color: #404040;
}

.demo-text-multiline {
    font-size: 18px;
    color: #404040;
    line-height: 1.4;
}

.demo-text-nowrap {
    font-size: 18px;
    color: #404040;
    white-space: nowrap;
}

.demo-text-auto {
    font-size: 18px;
    color: #404040;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .demographics-hero h1 {
        font-size: 32px;
    }
    
    .demographics-hero p {
        font-size: 16px;
        padding: 0 20px;
    }

    .demographics-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .demographics-grid > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .demographics-section {
        padding: 1.5rem;
    }
    
    .demographics-section .ef-container {
        padding: 0;
    }

    .demo-content-wrapper {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .demo-image-container {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .demo-table {
        width: 100%;
        max-width: 100%;
    }

    .demo-content-wrapper-large {
        gap: 2rem;
    }
}
