/* IFSA Color Variables */
:root {
    --ifsa-vermillion: #ff4d25;
    --ifsa-warm-grey: #e2eae1;
    --ifsa-cobalt: #2b2e92;
    --ifsa-royal-blue: #267bf7;
    --ifsa-cool-grey: #eeeeee;
    --ifsa-charcoal: #1d3045;
}

/* Fund Grid Styles (for main funds page) */
.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.fund-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fund-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--ifsa-vermillion);
}

/* Fund-specific top borders using fund name selectors */
.fund-card:has(.fund-icon.private-equity)::before {
    background: var(--ifsa-cobalt);
}

.fund-card:has(.fund-icon.core-strategic)::before {
    background: var(--ifsa-vermillion);
}

.fund-card:has(.fund-icon.flexible-annuity)::before {
    background: var(--ifsa-royal-blue);
}

.fund-card:has(.fund-icon.flexible-growth)::before {
    background: var(--ifsa-charcoal);
}

.fund-card:has(.fund-icon.flexible-income)::before,
.fund-card:has(.fund-icon.alternative-flexible)::before {
    background: #95a5a6;
}

.fund-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Fund Hero Styles (for individual pages) */
.fund-hero {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.fund-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--ifsa-royal-blue);
}

.fund-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.fund-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    background: linear-gradient(135deg, var(--ifsa-vermillion) 0%, var(--ifsa-royal-blue) 100%);
}

/* Fund-specific icon colors */
.fund-icon.private-equity {
    background: linear-gradient(135deg, var(--ifsa-cobalt) 0%, var(--ifsa-royal-blue) 100%);
}
.fund-icon.core-strategic {
    background: linear-gradient(135deg, var(--ifsa-vermillion) 0%, #ff6b47 100%);
}
.fund-icon.flexible-annuity {
    background: linear-gradient(135deg, var(--ifsa-royal-blue) 0%, #4d94ff 100%);
}
.fund-icon.flexible-growth {
    background: linear-gradient(135deg, var(--ifsa-charcoal) 0%, var(--ifsa-cobalt) 100%);
}
.fund-icon.flexible-income, .fund-icon.alternative-flexible {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

/* Individual page fund icon - larger */
.fund-hero .fund-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: 20px;
    margin-right: 20px;
}

.fund-title {
    flex: 1;
}

.fund-title h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.fund-title h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.fund-title h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.fund-title .fund-type {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fund-type {
    color: #7f8c8d;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fund-description {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Stats Styles */
.fund-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.fund-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid #e74c3c;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
}

/* Content Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

/* Fund Details */
.fund-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #34495e;
}

.info-card .detail-label {
    font-weight: 600;
}

.detail-value {
    color: #7f8c8d;
}

.info-card .detail-value {
    font-weight: 500;
}

/* Risk Indicator */
.risk-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.info-card .risk-indicator {
    gap: 8px;
    margin-top: 20px;
}

.risk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ecf0f1;
}

.info-card .risk-dot {
    width: 15px;
    height: 15px;
}

.risk-dot.active {
    background: #e74c3c;
}

.risk-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-left: 10px;
}

.info-card .risk-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Performance Chart */
.performance-chart {
    height: 60px;
    background: var(--ifsa-cool-grey);
    border-radius: 8px;
    position: relative;
    margin: 15px 0;
    display: flex;
    align-items: end;
    padding: 10px;
}

.fund-hero .performance-chart {
    height: 80px;
    border-radius: 12px;
    margin: 20px 0;
    padding: 15px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(135deg, var(--ifsa-vermillion) 0%, var(--ifsa-royal-blue) 100%);
    margin: 0 1px;
    border-radius: 2px;
}

/* Fund-specific chart colors */
.fund-card:has(.fund-icon.private-equity) .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-cobalt) 0%, var(--ifsa-royal-blue) 100%);
}
.fund-card:has(.fund-icon.core-strategic) .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-vermillion) 0%, #ff6b47 100%);
}
.fund-card:has(.fund-icon.flexible-annuity) .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-royal-blue) 0%, #4d94ff 100%);
}
.fund-card:has(.fund-icon.flexible-growth) .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-charcoal) 0%, var(--ifsa-cobalt) 100%);
}
.fund-card:has(.fund-icon.flexible-income) .chart-bar,
.fund-card:has(.fund-icon.alternative-flexible) .chart-bar {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}


.fund-hero .chart-bar {
    margin: 0 2px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--ifsa-royal-blue) 0%, #4d94ff 100%);
}

/* Individual fund page theming */
.ifsa-fund-container.theme-private-equity .fund-hero::before { background: var(--ifsa-cobalt); }
.ifsa-fund-container.theme-private-equity .fund-hero .fund-icon,
.ifsa-fund-container.theme-private-equity .fund-hero .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-cobalt) 0%, var(--ifsa-royal-blue) 100%);
}

.ifsa-fund-container.theme-core-strategic .fund-hero::before { background: var(--ifsa-vermillion); }
.ifsa-fund-container.theme-core-strategic .fund-hero .fund-icon,
.ifsa-fund-container.theme-core-strategic .fund-hero .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-vermillion) 0%, #ff6b47 100%);
}

.ifsa-fund-container.theme-flexible-growth .fund-hero::before { background: var(--ifsa-charcoal); }
.ifsa-fund-container.theme-flexible-growth .fund-hero .fund-icon,
.ifsa-fund-container.theme-flexible-growth .fund-hero .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-charcoal) 0%, var(--ifsa-cobalt) 100%);
}

.ifsa-fund-container.theme-flexible-annuity .fund-hero::before { background: var(--ifsa-royal-blue); }
.ifsa-fund-container.theme-flexible-annuity .fund-hero .fund-icon,
.ifsa-fund-container.theme-flexible-annuity .fund-hero .chart-bar {
    background: linear-gradient(135deg, var(--ifsa-royal-blue) 0%, #4d94ff 100%);
}

.ifsa-fund-container.theme-flexible-income .fund-hero::before { background: #95a5a6; }
.ifsa-fund-container.theme-flexible-income .fund-hero .fund-icon,
.ifsa-fund-container.theme-flexible-income .fund-hero .chart-bar {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

/* Content Sections */
.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.objectives-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.suitable-investors h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.suitable-investors p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.investment-strategy {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 4px solid #3498db;
}

.suitable-investors h3, .investment-strategy h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.suitable-investors p, .investment-strategy p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 10px;
}
.suitable-investors {
    padding:5%;
}

.strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.strategy-list li {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.strategy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Fund Link */
.fund-link {
    margin-top: 20px;
    text-align: right;
}

.fund-link a {
    color: var(--ifsa-royal-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.fund-link a:hover {
    color: var(--ifsa-vermillion);
}

/* CTA Section styles removed as requested */

/* Button styles removed with CTA section */

/* Responsive Design */
@media (max-width: 768px) {
    .funds-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .fund-card {
        padding: 20px;
    }
    
    .fund-stats {
        grid-template-columns: 1fr;
    }
    
    .fund-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .fund-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fund-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .fund-title h1 {
        font-size: 2rem;
    }

    /* CTA section mobile styles removed */

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        min-width: 200px;
    }
    .objectives-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}