/* Cross-functional section styles */
.cross-functional {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    padding: 5rem 0;
}

.cross-functional-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto -3rem;
}

/* Improved diagram styles with overlapping circles */
.cross-functional-diagram {
    position: relative;
    max-width: 900px;
    height: 500px;
    margin: 0 auto 4rem;
    padding: 2rem 0;
}

.cross-functional-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #C00000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: absolute;
    z-index: 2;
    transition: all 0.3s ease;
}

.cross-functional-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cross-functional-circle-inner {
    padding: 1.5rem;
}

.cross-functional-circle-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Center circle - MoneTech */
.cross-functional-circle-center {
    top: 23%;
    left: 31%;
    transform: translate(0%, 0%);
    width: 340px;
    height: 340px;
    background-color: #990000;
    z-index: 5;
}

/* Product Owner circle */
.cross-functional-circle-product {
    top: 15%;
    left: 10%;
    z-index: 3;
}

/* Finance circle */
.cross-functional-circle-finance {
    top: 15%;
    right: 10%;
    z-index: 3;
}

/* IT circle */
.cross-functional-circle-it {
    bottom: 0%;
    left: 10%;
    z-index: 3;
}

/* Customer circle */
.cross-functional-circle-customer {
    bottom: 0%;
    right: 10%;
    z-index: 3;
}

/* Circle labels */
.cross-functional-circle-label {
    position: absolute;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    width: 200px;
}

.cross-functional-label-product {
    top: 10%;
    left: 25%;
    transform: translateX(-50%);
}

.cross-functional-label-finance {
    top: 10%;
    right: 25%;
    transform: translateX(50%);
}

.cross-functional-label-it {
    bottom: 10%;
    left: 25%;
    transform: translateX(-50%);
}

.cross-functional-label-customer {
    bottom: 10%;
    right: 25%;
    transform: translateX(50%);
}

.personas-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 0rem;
    position: relative;
    z-index: 3;
}

.persona-tab {
    padding: 1rem 2rem;
    background-color: white;
    border: 2px solid #ddd;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.persona-tab:first-child {
    border-radius: 4px 0 0 0;
}

.persona-tab:last-child {
    border-radius: 0 4px 0 0;
}

.persona-tab.active {
    background-color: #C00000;
    color: white;
    border-color: #C00000;
}

.personas-content {
    position: relative;
}

.persona-content {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.persona-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.persona-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.persona-icon {
    font-size: 3rem;
    color: #C00000;
    margin-right: 1.5rem;
}

.persona-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #C00000;
}

.persona-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.persona-benefit {
    display: flex;
    align-items: flex-start;
}

.persona-benefit-icon {
    color: #C00000;
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.client-portal {
    background-color: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}

.client-portal-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.client-portal-icon {
    font-size: 3rem;
    color: #C00000;
    margin-right: 1.5rem;
}

.client-portal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #C00000;
}

.client-portal-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.client-portal-feature {
    text-align: center;
}

.client-portal-feature-icon {
    font-size: 2.5rem;
    color: #C00000;
    margin-bottom: 1rem;
}

.client-portal-feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .persona-benefits {
        grid-template-columns: 1fr;
    }
    
    .client-portal-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cross-functional-diagram {
        height: 410px;
        max-width: 610px;
    }
    
    .cross-functional-circle {
        width: 180px;
        height: 180px;
    }
    
    .cross-functional-circle-center {
        width: 210px;
        height: 210px;
        top: 32%;
        left: 33%;
    }
}

@media (max-width: 768px) {
    .personas-tabs {
        flex-wrap: wrap;
    }
    
    .persona-tab {
        width: 50%;
        text-align: center;
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
    
    .persona-tab:first-child {
        border-radius: 4px 0 0 0;
    }
    
    .persona-tab:nth-child(2) {
        border-radius: 0 4px 0 0;
    }
    
    .persona-tab:nth-child(3) {
        border-radius: 0 0 0 4px;
    }
    
    .persona-tab:last-child {
        border-radius: 0 0 4px 0;
    }
    
    .client-portal-features {
        grid-template-columns: 1fr;
    }
    
    .cross-functional-diagram {
        height: 880px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cross-functional-circle {
        position: relative;
        transform: none;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
    
    .cross-functional-circle-center {
        order: 1;
        transform: none;
    }
    
    .cross-functional-circle-product {
        order: 2;
    }
    
    .cross-functional-circle-finance {
        order: 3;
    }
    
    .cross-functional-circle-it {
        order: 4;
    }
    
    .cross-functional-circle-customer {
        order: 5;
    }
    
    .cross-functional-circle-label {
        position: relative;
        margin-top: -1rem;
        margin-bottom: 1rem;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
    }
}
