/* =========================================
   WORK AREA PAGE STYLES
   ========================================= */

.work-area-page * {
    box-sizing: border-box;
}

.work-area-page {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.work-area-page h1, 
.work-area-page h2, 
.work-area-page h3, 
.work-area-page h4 {
    font-family: 'Times New Roman', Georgia, serif;
    color: var(--color-primary);
    font-weight: 600;
}

.work-area-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title Styles */
.work-area-page .section-header {
    margin: 50px 0 30px;
}

.work-area-page .section-header h2 {
    font-size: 36px;
    display: inline-block;
    position: relative;
    margin-bottom: 0;
}

.work-area-page .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--separator-color);
}

/* Collaboration Areas (Cards) */
.work-area-page .collaboration-section {
    padding-bottom: 60px;
}

.work-area-page .card {
    display: flex;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Soft dynamic border */
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    align-items: center;
    gap: 40px;
}

.work-area-page .card-icon {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: var(--color-sea-blue); /* Updated to match site identity */
}

.work-area-page .card-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

/* Card Paragraphs via Automad Blocks */
.work-area-page .card-text-block .am-block {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: var(--color-text-muted);
    font-size: 15px;
}

.work-area-page .topics-title {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
}

/* --- Dynamic Inline List for Topics --- */
.work-area-page .topics-list-content .am-block {
    margin: 0 !important;
}

.work-area-page .topics-list-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: inline;
}

.work-area-page .topics-list-content ul li {
    display: inline;
    color: var(--color-text-main);
    font-size: 14px;
    line-height: 2;
}

/* Automatically inject the red dot between list items */
.work-area-page .topics-list-content ul li + li::before {
    content: "\2022"; /* Unicode for bullet */
    color: var(--color-accent);
    font-size: 1.2em;
    margin: 0 6px;
    vertical-align: middle;
    display: inline-block;
}

/* Diagnostics Section */
.work-area-page .diagnostics-section {
    background-color: var(--color-bg-light);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.work-area-page .diagnostics-bg-icon {
    position: absolute;
    /* Moved left by changing -10% to -2% (closer to the center) */
    right: -2%; 
    /* Moved up by changing 20% to a negative value to push it to the top corner */
    top: -5%; 
    font-size: 400px;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
}

.work-area-page .diag-intro {
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 15px;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

.work-area-page .diag-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.work-area-page .diag-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-area-page .diag-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.work-area-page .diag-brand h3 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.work-area-page .diag-brand-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    display: block;
}

.work-area-page .mindsonar-icon { 
    font-size: 30px; 
    color: var(--color-primary); 
}

.work-area-page .mtq48-text { 
    font-family: 'Open Sans', Arial, sans-serif; 
    font-size: 32px; 
    font-weight: 700; 
    color: var(--color-primary); 
}

.work-area-page .mtq48-sup { 
    font-size: 14px; 
    vertical-align: super; 
}

.work-area-page .diag-card h4 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.work-area-page .diag-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.work-area-page .diag-footer-box {
    background-color: var(--color-bg-footer-top); 
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.work-area-page .diag-footer-icon {
    font-size: 24px;
    color: var(--color-sea-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.work-area-page .diag-footer-box p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Wrapper for uploaded logos in diag cards */
.work-area-page .diag-logo-wrapper {
    margin-bottom: 20px;
    min-height: 40px; /* Ensures space even if empty */
}

/* Strip default Automad block margins */
.work-area-page .diag-logo-wrapper .am-block {
    margin: 0 !important;
}

/* Ensure the logo aligns left and doesn't stretch weirdly */
.work-area-page .diag-logo-wrapper img {
    display: block;
    max-height: 60px; /* Adjust this if you want the logo bigger/smaller */
    width: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .work-area-page .card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .work-area-page .diag-cards-container {
        grid-template-columns: 1fr;
    }
}