/* ===========================
   FUNDS MANAGEMENT PAGE
   =========================== */

/* Hero Section */
.funds-hero {
    height: 60vh;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(20, 20, 20, 0.3), rgba(15, 15, 15, 0.35)), 
                url('../images/hero-mountains-range.jpg') center center/cover no-repeat;
    overflow: hidden;
    filter: contrast(1.15) brightness(1.1);
    padding: 0 80px;
}

.funds-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

.funds-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.funds-hero .hero-content-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

.funds-hero .hero-text {
    max-width: calc(300px + 60px + 750px); /* 1110px - matches content below */
    width: 100%;
}

.funds-hero .hero-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.funds-hero .hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.funds-hero .hero-breadcrumb a:hover {
    color: #ffffff;
}

.funds-hero .breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.funds-hero .breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

.funds-hero .hero-heading {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.funds-hero .hero-subheading {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Funds Section */
.funds-section {
    background: #ffffff;
    padding: 100px 80px;
}

/* Reduce top padding for about section on funds page */
.about-section {
    padding-top: 120px !important;
}

/* Breadcrumb in About Section - Left align with content */
.about-section .about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Breadcrumb outer wrapper - matches content wrapper structure */
.about-section .hero-breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    width: 100%;
}

/* Breadcrumb inner content - left aligned */
.about-section .breadcrumb-inner {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: calc(300px + 60px + 750px); /* card + gap + text max-width */
    text-align: left;
}

/* Content wrapper for card and text (below breadcrumb) */
.about-section .about-content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
}

/* Keep card fixed width - NEVER CHANGES */
.about-section .sustainability-card {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

.about-section .breadcrumb-inner a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-section .breadcrumb-inner a:hover {
    color: #ffffff;
}

.about-section .breadcrumb-inner .breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.about-section .breadcrumb-inner .breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.funds-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Fund Header */
.fund-header {
    margin-bottom: 48px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 32px;
}

.fund-name {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.fund-description {
    font-size: 16px;
    color: #6a737d;
    line-height: 1.6;
    margin: 0;
}

/* Fund Details Table */
.fund-details-table {
    margin-bottom: 48px;
}

.table-heading {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.3px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
}

.details-table tbody tr {
    border-bottom: 1px solid #e1e4e8;
}

.details-table tbody tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
}

.table-label {
    font-weight: 600;
    color: #4a5568;
    width: 240px;
    vertical-align: top;
}

.table-value {
    color: #1a1a1a;
}

/* Key Metrics */
.fund-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    padding: 28px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: #6a737d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1;
}

/* Documents & Actions */
.fund-documents {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-bottom: 48px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.documents-heading {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3a9999;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.document-link:hover {
    color: #2d7a7a;
    text-decoration: underline;
}

.pdf-icon {
    flex-shrink: 0;
    stroke: currentColor;
}

.enquire-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #3a9999;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.enquire-btn:hover {
    background: #2d7a7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 153, 153, 0.3);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.features-list li:before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #3a9999;
    font-weight: 700;
    font-size: 18px;
}

.features-list li:last-child {
    margin-bottom: 0;
}

/* Fund Actions Section */
.fund-actions-section {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    justify-content: center;
}

.fund-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.fund-btn-primary {
    background: #3a9999;
    color: white;
}

.fund-btn-primary:hover {
    background: #2d7a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 153, 153, 0.3);
}

.fund-btn-primary svg {
    width: 18px;
    height: 18px;
}

.fund-btn-secondary {
    background: white;
    color: #3a9999;
    border: 2px solid #3a9999;
}

.fund-btn-secondary:hover {
    background: #3a9999;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 153, 153, 0.2);
}

/* Risk Disclosure */
.risk-disclosure {
    padding: 28px 32px;
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.disclosure-heading {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 12px 0;
}

.risk-disclosure p {
    font-size: 14px;
    line-height: 1.7;
    color: #78350f;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .funds-hero {
        padding: 0 40px;
    }
    
    .funds-hero .hero-heading {
        font-size: 38px;
    }
    
    .funds-section {
        padding: 80px 40px;
    }
    
    .fund-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Reduce about section top padding on tablet */
    .about-section {
        padding-top: 100px !important;
    }
    
    /* Reduce gap but keep card on left */
    .about-section .about-content-wrapper {
        gap: 40px;
    }
    
    /* Card stays 300px - DO NOT CHANGE */
}

/* Keep card on left - reduce gap more */
@media (max-width: 900px) {
    .about-section .about-content-wrapper {
        gap: 32px;
    }
    
    /* Card stays 300px - DO NOT CHANGE */
}

/* MOBILE ONLY - Stack card */
@media (max-width: 768px) {
    /* Reduce about section top padding on mobile */
    .about-section {
        padding-top: 80px !important;
    }
    
    .funds-hero {
        padding: 0 20px;
    }
    
    /* Stack card below text on mobile */
    .about-section .about-content-wrapper {
        flex-direction: column !important;
        gap: 40px;
    }
    
    /* Card stays 300px, centered */
    .about-section .sustainability-card {
        margin: 0 auto;
    }
    
    .about-section .hero-breadcrumb {
        text-align: left;
        margin-bottom: 24px;
    }
    
    .funds-hero {
        min-height: 400px;
    }
    
    .funds-hero .hero-heading {
        font-size: 32px;
    }
    
    .funds-hero .hero-subheading {
        font-size: 16px;
    }
    
    .funds-section {
        padding: 60px 20px;
    }
    
    .fund-name {
        font-size: 24px;
    }
    
    .fund-description {
        font-size: 15px;
    }
    
    /* Make table responsive */
    .table-label,
    .table-value {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .table-label {
        width: 140px;
    }
    
    /* Stack metrics */
    .fund-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    /* Stack documents and button */
    .fund-documents {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    
    .enquire-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .risk-disclosure {
        padding: 20px 24px;
    }
}
}
