:root {
    --maroon-dark: #6B0E1F; /* Deeper maroon for headers */
    --maroon-primary: #78141C; /* Primary maroon */
    --red-accent: #D93954; /* Accent red */
    --text-primary: #333333;
    --text-secondary: #555555;
    --heading-color: #2D2D2D; /* Darker grey for headings */
    --light-grey-bg: #F8F8F8; /* Very light grey for section differentiation */
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --link-color: #B3003C; 
    --highlight-bg: rgba(217, 57, 84, 0.05);
    --transition-standard: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Define CSS variables for the deals graphic */
    --figure2-level1-bg: #76111F;
    --figure2-level2-bg: #A11D2E;
    --figure2-level3-bg: #D0495E;
    --figure2-level4-bg: #E68293;
    --figure2-text-color: #FFFFFF;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
    color: var(--text-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-header {
    background-color: var(--maroon-dark);
    color: var(--white);
    padding: 15px 0;
    border-bottom: 4px solid var(--red-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

#main-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red-accent), var(--maroon-primary));
}

#main-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

#main-header .logo-placeholder {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
}
#main-header .logo-placeholder span {
    font-weight: 400;
    opacity: 0.8;
}


#hero-section {
    background: linear-gradient(120deg, rgba(158, 27, 27, 0.7), rgba(102, 20, 20, 0.85)), url('background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15));
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

#hero-section .hero-container {
     max-width: 1200px;
     margin: 0 auto;
     position: relative;
     z-index: 1;
     animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero-section .eyebrow-text {
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

#hero-section .eyebrow-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--red-accent);
}

#hero-section h1 {
    font-size: 4.2em;
    font-weight: 800;
    margin: 15px 0 20px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    max-width: 800px;
}

#hero-section .subtitle {
    font-size: 1.6em;
    font-weight: 300;
    margin: 0 0 30px 0;
    line-height: 1.4;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInDelay 1.2s ease-in-out;
    border-left: 3px solid var(--red-accent);
    padding-left: 15px;
}

@keyframes fadeInDelay {
    0% { opacity: 0; transform: translateY(10px); }
    30% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

#hero-section .publish-info {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.3px;
}


#main-content {
    flex-grow: 1;
    padding: 50px 0;
    position: relative;
}

#main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.03), transparent);
    z-index: -1;
}

.content-container {
    max-width: 1000px; /* Reading width */
    margin: 0 auto;
    padding: 0 30px;
}

.content-section {
    background-color: var(--white);
    padding: 35px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition-standard);
}

.content-section:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.content-section.intro-section { /* Specific styling for first non-foldable section */
     border: none;
     background-color: transparent;
     box-shadow: none;
     padding: 10px 0 20px; /* remove padding if it's just text */
}

.content-section.intro-section:hover {
    transform: none;
}

.content-section.intro-section p {
    font-size: 1.2em; /* Slightly larger intro text */
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

.content-section.intro-section p:first-of-type {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--red-accent);
}


h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 600;
    margin-top: 0;
}

h2 { /* Main section titles within content */
    font-size: 2.2em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--maroon-primary);
    letter-spacing: -0.5px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--red-accent);
}

.foldable-section h3, .content-section h3 { /* Sub-headings */
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--maroon-dark);
    letter-spacing: -0.3px;
}

p, ul {
    margin-bottom: 1.5em;
    font-size: 1.05em;
}

p:last-child, ul:last-child {
    margin-bottom: 0;
}

ul {
    padding-left: 25px;
}

li {
    margin-bottom: 0.9em;
    position: relative;
}

ul li::marker {
    color: var(--red-accent);
}

strong { 
    color: var(--heading-color);
    font-weight: 600;
}

.foldable-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 30px;
    background-color: var(--white);
    overflow: hidden; /* Ensures border-radius is respected by summary */
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition-standard);
}

.foldable-section:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.foldable-section summary {
    padding: 22px 30px;
    font-size: 1.6em; /* Larger, more like a section title */
    font-weight: 600;
    color: var(--maroon-primary);
    background-color: var(--light-grey-bg);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    list-style-position: inside;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    letter-spacing: -0.3px;
}

.foldable-section summary::-webkit-details-marker {
    display: none;
}

.foldable-section summary::before {
    content: '+';
    margin-right: 15px;
    font-size: 1.2em;
    color: var(--red-accent);
    font-weight: 400;
    transition: var(--transition-standard);
}

.foldable-section[open] summary::before {
    content: '–';
    transform: rotate(90deg);
}

.foldable-section summary:hover,
.foldable-section summary:focus {
    background-color: #EAEAEA; /* Slightly darker grey on hover */
}

.foldable-section[open] summary {
    border-bottom: 1px solid var(--border-color);
    background-color: #ECECEC;
}

.foldable-content {
    padding: 35px;
    background-color: var(--white);
}

img.figure-image {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition-standard);
}

img.figure-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: -15px;
    margin-bottom: 30px;
    font-size: 0.95em;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#main-footer {
    background-color: var(--text-primary); /* Dark grey footer */
    color: #A0A0A0; /* Light grey text */
    padding: 35px 20px;
    text-align: center;
    font-size: 0.9em;
    margin-top: 60px; /* Ensure space above footer */
    position: relative;
}

#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon-primary), var(--red-accent));
}

#main-footer p {
    margin: 0;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-standard);
}

a:hover, a:focus {
    color: var(--maroon-dark);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after, a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Pull quote styling */
.pullquote {
    font-size: 1.4em;
    line-height: 1.5;
    padding: 25px 40px;
    margin: 30px 0;
    position: relative;
    font-weight: 300;
    color: var(--maroon-dark);
    background-color: var(--highlight-bg);
    border-radius: 8px;
}

.pullquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3em;
    color: var(--red-accent);
    opacity: 0.3;
    line-height: 1;
}

/* Key fact highlight */
.key-fact {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--highlight-bg);
    color: var(--maroon-dark);
    font-weight: 600;
    border-radius: 4px;
}

/* Deals graphic styles */
.deals-graphic {
    --figure2-base-padding-inline: 1.5em; /* Base horizontal padding */
    --figure2-indent-step: 2em;         /* Indentation increase per level */
    --figure2-padding-block: 1.2em;    /* Vertical padding for each item */
    
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Ensure font consistency */
    margin: 30px auto; /* Mimics .figure-image margin */
    max-width: 100%;   /* Mimics .figure-image max-width */
    background-color: var(--white, #FFF); /* Add a base background in case of transparency issues with underlying page */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.deal-item {
    color: var(--figure2-text-color);
    padding-top: var(--figure2-padding-block);
    padding-bottom: var(--figure2-padding-block);
    padding-right: var(--figure2-base-padding-inline);
    transition: filter 0.2s ease-in-out, opacity 0.3s ease; /* For hover effect and collapsing */
    position: relative;
    cursor: pointer;
}

.deal-item:hover {
    filter: brightness(115%); /* Subtle hover interaction */
}

/* Collapse/expand icons */
.deal-item::after {
    content: '-';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    color: var(--figure2-text-color);
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.deal-item.collapsed::after {
    content: '+';
}

/* Collapsed state styling */
.deal-item.collapsed:not(#deal-global) .deal-content {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

/* When parent is collapsed, hide children completely */
.deal-item.collapsed ~ .deal-item:not(#deal-global) {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#deal-global {
    background-color: var(--figure2-level1-bg);
    padding-left: var(--figure2-base-padding-inline);
}
#deal-tech {
    background-color: var(--figure2-level2-bg);
    padding-left: calc(var(--figure2-base-padding-inline) + var(--figure2-indent-step));
}
#deal-subset {
    background-color: var(--figure2-level3-bg);
    padding-left: calc(var(--figure2-base-padding-inline) + 2 * var(--figure2-indent-step));
}
#deal-acqui-hiring {
    background-color: var(--figure2-level4-bg);
    padding-left: calc(var(--figure2-base-padding-inline) + 3 * var(--figure2-indent-step));
}

.deal-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5em; /* Gap between text and stats sections */
    flex-wrap: nowrap; /* Default: no wrap. Will be changed in media query. */
    transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.deal-text {
    flex-grow: 1; /* Allows text block to take available space */
    min-width: 60%; /* Ensure it has enough space before stats might push it */
}

.deal-text h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 0.25em 0;
    color: var(--figure2-text-color);
    line-height: 1.3;
}

.deal-text p {
    font-size: 0.85em;
    margin: 0;
    color: var(--figure2-text-color);
    opacity: 0.9;
    line-height: 1.5;
}

.deal-stats {
    text-align: right;
    flex-shrink: 0; /* Prevents stats block from shrinking excessively */
    min-width: fit-content; /* Try to keep numbers on one line if possible */
    padding-right: 25px; /* Add padding to prevent overlap with +/- icons */
}

.deal-number {
    display: block;
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
    color: var(--figure2-text-color);
    white-space: nowrap; /* Keep number on one line */
}

.deal-label {
    display: block;
    font-size: 0.8em;
    margin-top: 0.2em;
    color: var(--figure2-text-color);
    opacity: 0.9;
    white-space: nowrap;
}

.deal-percentage-group {
    margin-top: 0.75em;
}

.deal-percentage {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
    color: var(--figure2-text-color);
    white-space: nowrap;
}

.deal-percentage-label {
    display: block;
    font-size: 0.8em;
    margin-top: 0.2em;
    color: var(--figure2-text-color);
    opacity: 0.9;
    white-space: nowrap;
}

/* Drivers section styles */
.drivers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.driver-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.driver-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.driver-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    background-color: var(--light-grey-bg);
    list-style: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.driver-item summary::-webkit-details-marker {
    display: none;
}

.driver-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    font-size: 24px;
    color: var(--maroon-primary);
    font-weight: 500;
    line-height: 1;
    transition: transform 0.3s ease;
}

.driver-item[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}

.driver-item summary:hover {
    background-color: #EAEAEA;
}

.driver-icon {
    flex-shrink: 0;
}

.driver-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maroon-primary);
    margin-right: 30px;
    line-height: 1.3;
}

.driver-content {
    padding: 0;
    background: linear-gradient(to bottom, #f8f8f8, #ffffff);
    border-top: 1px solid var(--border-color);
}

.driver-inner {
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.driver-stat-card {
    flex-shrink: 0;
    padding: 14px 10px;
    background: linear-gradient(135deg, var(--maroon-primary), #A51B33);
    color: white;
    border-radius: 8px;
    text-align: center;
    width: 120px;
    box-shadow: 0 4px 12px rgba(123, 20, 28, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.driver-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.driver-inner p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
    padding-top: 4px;
}

/* Responsive adjustments for drivers */
@media (max-width: 768px) {
    .driver-title {
        font-size: 1.1rem;
    }
    
    .driver-inner {
        gap: 20px;
        padding: 20px;
    }
    
    .driver-stat-card {
        width: 105px;
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .driver-item summary {
        padding: 15px 20px;
    }
    
    .driver-item summary::after {
        right: 15px;
    }
    
    .driver-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .driver-title {
        font-size: 1rem;
        margin-right: 20px;
    }
    
    .driver-inner {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
        align-items: center;
    }
    
    .driver-stat-card {
        width: 85px;
        padding: 8px 5px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero-section {
        padding: 80px 20px;
    }
    
    #hero-section h1 {
        font-size: 2.8em;
    }
    
    #hero-section .subtitle {
        font-size: 1.3em;
    }

    .foldable-section summary {
        font-size: 1.3em;
        padding: 18px 25px;
    }
    
    .foldable-content, .content-section {
        padding: 25px;
    }
    
    body {
        font-size: 15px;
    }
    
    .content-section.intro-section p {
        font-size: 1.1em;
    }
    
    .pullquote {
        font-size: 1.2em;
        padding: 20px 30px;
    }
} 

/* Region Matrix Styles */
.region-matrix {
    margin: 30px auto;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    background-color: var(--white);
    transition: var(--transition-standard);
    border: 1px solid var(--border-color);
}

.region-matrix:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.region-item {
    border-top: 1px solid var(--border-color);
}

.region-item:first-child {
    border-top: none;
}

.region-item summary {
    padding: 18px 25px;
    cursor: pointer;
    position: relative;
    list-style: none;
    background-color: var(--light-grey-bg);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.region-item summary::-webkit-details-marker {
    display: none;
}

.region-item summary::after {
    content: '-';
    position: absolute;
    right: 25px;
    font-size: 24px;
    font-weight: 500;
    color: var(--maroon-primary);
    transition: transform 0.3s ease;
}

.region-item:not([open]) summary::after {
    content: '+';
}

.region-item summary:hover {
    background-color: #EAEAEA;
}

.region-item[open] summary {
    background-color: #ECECEC;
    border-bottom: 1px solid var(--border-color);
}

.region-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--maroon-primary);
}

/* Americas region styling */
.region-item.americas summary {
    background-color: rgba(158, 27, 27, 0.08);
}

.region-item.americas[open] summary {
    background-color: rgba(158, 27, 27, 0.12);
}

.region-item.americas summary:hover {
    background-color: rgba(158, 27, 27, 0.15);
}

/* EMEA region styling */
.region-item.emea summary {
    background-color: rgba(27, 94, 158, 0.08);
}

.region-item.emea[open] summary {
    background-color: rgba(27, 94, 158, 0.12);
}

.region-item.emea summary:hover {
    background-color: rgba(27, 94, 158, 0.15);
}

/* APAC region styling */
.region-item.apac summary {
    background-color: rgba(27, 158, 119, 0.08);
}

.region-item.apac[open] summary {
    background-color: rgba(27, 158, 119, 0.12);
}

.region-item.apac summary:hover {
    background-color: rgba(27, 158, 119, 0.15);
}

/* Matrix content styling */
.region-content {
    padding: 20px;
    background-color: var(--white);
}

.matrix-sectors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.sector-item {
    background-color: #f8f8f8;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.sector-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sector-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.sector-impact {
    font-size: 1.8em;
    font-weight: 700;
    margin: 10px 0;
    border-radius: 4px;
    display: inline-block;
    padding: 2px 10px;
}

.sector-impact.high {
    color: white;
    background: linear-gradient(135deg, var(--maroon-primary), #A51B33);
}

.sector-impact.medium-high {
    color: white;
    background: linear-gradient(135deg, #C43748, #D35062);
}

.sector-impact.medium {
    color: white;
    background: linear-gradient(135deg, #D35062, #E27180);
}

.sector-impact.low {
    color: white;
    background: linear-gradient(135deg, #E27180, #F0A8B1);
}

.sector-drivers {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .matrix-sectors {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .sector-impact {
        font-size: 1.6em;
    }
    
    .region-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .matrix-sectors {
        grid-template-columns: 1fr;
    }
    
    .region-item summary {
        padding: 15px 20px;
    }
    
    .sector-item {
        padding: 12px;
    }
} 

/* Challenges Matrix Styles */
.challenges-matrix {
    position: relative;
    margin: 30px 0;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.challenges-timeline {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to right, var(--maroon-primary), var(--red-accent));
    padding: 12px 20px;
    color: white;
    position: relative;
}

.timeline-label {
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    z-index: 2;
}

.timeline-label.pre-deal {
    text-align: left;
}

.timeline-label.during {
    text-align: center;
}

.timeline-label.post-deal {
    text-align: right;
}

.challenges-timeline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.3);
    z-index: 1;
}

.challenges-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.challenge-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.challenge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.challenge-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    background-color: var(--light-grey-bg);
    list-style: none;
    position: relative;
}

.challenge-item summary::-webkit-details-marker {
    display: none;
}

.challenge-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: var(--maroon-primary);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.challenge-item[open] summary::after {
    content: '−';
}

.challenge-item summary:hover {
    background-color: #EAEAEA;
}

.challenge-icon {
    flex-shrink: 0;
}

.challenge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.challenge-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maroon-primary);
}

.challenge-percentage {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--maroon-primary);
    padding-right: 30px;
}

.challenge-content {
    padding: 20px;
    background: linear-gradient(to bottom, #f8f8f8, #ffffff);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-description, 
.challenge-elements, 
.challenge-opinion, 
.challenge-cases {
    line-height: 1.6;
    color: var(--text-secondary);
}

.challenge-description strong, 
.challenge-elements strong, 
.challenge-opinion strong, 
.challenge-cases strong {
    color: var(--heading-color);
}

/* Responsive adjustments for challenges */
@media (max-width: 768px) {
    .challenge-title {
        font-size: 1.1rem;
    }
    
    .challenge-percentage {
        font-size: 1.5rem;
    }
    
    .challenge-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .challenges-timeline {
        padding: 10px;
    }
    
    .timeline-label {
        font-size: 0.9em;
    }
    
    .challenge-item summary {
        padding: 12px 15px;
    }
    
    .challenge-title {
        font-size: 1rem;
    }
    
    .challenge-percentage {
        font-size: 1.3rem;
        padding-right: 25px;
    }
    
    .challenge-icon svg {
        width: 32px;
        height: 32px;
    }
} 

/* Company Selector Styles */
.companies-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.company-item {
    width: 120px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.company-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--red-accent);
    transition: width 0.3s ease;
}

.company-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.company-item:hover::before {
    width: 100%;
}

.company-item.active {
    border-color: var(--red-accent);
    background-color: var(--highlight-bg);
}

.company-item.active::before {
    width: 100%;
}

.company-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-name {
    font-weight: 600;
    color: var(--maroon-primary);
    transition: color 0.2s ease;
}

.company-item:hover .company-name {
    color: var(--red-accent);
}

.company-item.active .company-name {
    color: var(--red-accent);
}

/* Company Retention Data Styles */
.company-retention-container {
    position: relative;
    margin: 20px 0 40px;
}

.company-retention-data {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.company-retention-data.active {
    display: block;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.retention-info {
    background-color: var(--light-grey-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-left: 3px solid var(--red-accent);
}

.retention-info h4 {
    color: var(--maroon-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.retention-info p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments for company selector */
@media (max-width: 768px) {
    .companies-selector {
        gap: 10px;
    }
    
    .company-item {
        width: 100px;
        padding: 12px;
    }
    
    .company-logo {
        height: 60px;
    }
    
    .company-name {
        font-size: 0.9em;
    }
    
    .retention-info h4 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .companies-selector {
        gap: 8px;
    }
    
    .company-item {
        width: 85px;
        padding: 10px;
    }
    
    .company-logo {
        height: 50px;
    }
    
    .company-name {
        font-size: 0.85em;
    }
    
    .retention-info {
        padding: 15px;
    }
    
    .retention-info h4 {
        font-size: 1.2em;
    }
} 