/* ========================================
   TARGETED CORRECTIONS
   Investment Outlook + Homepage Logo Fix
   NO REDESIGN - ONLY REFINEMENT
   ======================================== */

/* ==========================================
   1. HOMEPAGE - BRAND SHOWCASE LOGO FIX
   ========================================== */

/* Reduce oversized logo in Strategic Investment Facilitation section */
.brand-showcase-logo img {
    height: 70px !important; /* Reduced from 130px */
    width: auto !important;
}

/* Ensure horizontal grid alignment with proper spacing */
.brand-showcase-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo section - prevent domination */
.brand-showcase-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text section - balanced flex */
.brand-showcase-text {
    flex: 1;
    color: white;
    padding: 0 1rem;
}

.brand-showcase-text h3 {
    font-size: 2rem !important; /* Slightly reduced for balance */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

.brand-showcase-text p {
    font-size: 1.1rem !important; /* Slightly reduced for proportion */
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

/* CTA section - stable positioning */
.brand-showcase-cta {
    flex: 0 0 auto;
}

/* ==========================================
   2. INVESTMENT OUTLOOK - CARD REFINEMENT
   ========================================== */

/* Ensure all insight blocks have consistent, proportional height */
.insight-block {
    background: #ffffff;
    padding: 1.75rem !important; /* Balanced padding */
    border-radius: 6px;
    border-left: 3px solid #4d6db8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    min-height: 200px !important; /* Proportional minimum */
    max-height: none !important; /* Allow content to breathe */
    display: flex;
    flex-direction: column;
}

.insight-block h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #272147;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.insight-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.insight-block ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.insight-block ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4d6db8;
    font-weight: bold;
    font-size: 1.2rem;
}

.insight-block ul li:last-child {
    margin-bottom: 0;
}

/* Remove excessive empty space in insight blocks */
.insight-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
}

/* Outlook cards - prevent oversized empty blocks */
.outlook-card {
    background: #ffffff;
    padding: 2rem !important; /* Controlled padding */
    border-radius: 8px;
    border-left: 4px solid #4d6db8;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 220px !important; /* Proportional */
    max-height: none !important; /* Content-driven */
}

.outlook-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #272147;
}

.outlook-card ul.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outlook-card ul.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.outlook-card ul.bullet-list li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4d6db8;
    font-weight: bold;
}

/* Framework steps - balanced proportions */
.framework-step {
    background: #ffffff;
    padding: 2rem !important;
    border-radius: 8px;
    border-left: 4px solid #4d6db8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    min-height: 260px !important; /* Appropriate height */
    max-height: none !important;
    display: flex;
    flex-direction: column;
}

.framework-step .step-number-large {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4d6db8, #728bc7);
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(77, 109, 184, 0.25);
}

.framework-step h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #272147;
    margin-bottom: 1rem;
}

.framework-step ul.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.framework-step ul.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.framework-step ul.bullet-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4d6db8;
    font-weight: bold;
}

/* Data panel - prevent oversized empty blocks */
.data-panel {
    background: linear-gradient(135deg, #272147 0%, #3a316a 100%);
    padding: 3rem 2rem !important;
    border-radius: 10px;
    margin: 2.5rem 0 !important;
}

.data-panel-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

/* ==========================================
   3. RESPONSIVE ADJUSTMENTS
   ========================================== */

/* Tablet Portrait */
@media (max-width: 991px) {
    /* Homepage logo - proportional scaling */
    .brand-showcase-logo img {
        height: 60px !important;
    }
    
    .brand-showcase-container {
        gap: 2rem !important;
    }
    
    .brand-showcase-text h3 {
        font-size: 1.75rem !important;
    }
    
    .brand-showcase-text p {
        font-size: 1rem !important;
    }
    
    /* Investment Outlook - single column */
    .insight-blocks {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .insight-block,
    .outlook-card,
    .framework-step {
        min-height: auto !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Homepage logo - mobile scaling */
    .brand-showcase-logo img {
        height: 50px !important;
    }
    
    .brand-showcase-container {
        flex-direction: column;
        gap: 1.5rem !important;
        text-align: center;
    }
    
    .brand-showcase-text {
        padding: 0;
    }
    
    .brand-showcase-text h3 {
        font-size: 1.5rem !important;
    }
    
    .brand-showcase-text p {
        font-size: 0.95rem !important;
    }
    
    /* Investment Outlook - mobile refinement */
    .insight-block,
    .outlook-card,
    .framework-step {
        padding: 1.5rem !important;
    }
    
    .data-panel {
        padding: 2rem 1.5rem !important;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    .brand-showcase-logo img {
        height: 45px !important;
    }
    
    .brand-showcase-text h3 {
        font-size: 1.35rem !important;
    }
}

/* ==========================================
   4. ENSURE NO EMPTY PLACEHOLDER BLOCKS
   ========================================== */

/* Hide any empty content blocks */
.insight-block:empty,
.outlook-card:empty,
.framework-step:empty {
    display: none !important;
}

/* Hide blocks with only empty ul elements */
.insight-block ul:empty,
.outlook-card ul:empty,
.framework-step ul:empty {
    display: none !important;
}

/* If block has heading but no list content, adjust padding */
.insight-block:has(h4):not(:has(li)),
.outlook-card:has(h3):not(:has(li)),
.framework-step:has(h3):not(:has(li)) {
    min-height: 120px !important;
    padding: 1.5rem !important;
}

/* ==========================================
   5. VISUAL BALANCE & PROFESSIONALISM
   ========================================== */

/* Ensure proper spacing between sections */
.section {
    padding: 5rem 0 !important;
}

/* Chart sections - proportional height */
.chart-wrapper-large {
    position: relative;
    height: 320px !important;
    max-width: 100%;
}

/* CTA section - balanced */
.outlook-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(77, 109, 184, 0.15);
    border-radius: 12px;
    padding: 3rem 2.5rem !important;
    text-align: center;
    margin: 3rem 0 !important;
}

.outlook-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #272147;
    margin-bottom: 1rem;
}

.outlook-cta p {
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FINAL CHECKS - NO DESIGN CHANGES
   ========================================== */

/* Maintain brand colors */
/* #272147, #3a316a, #4d6db8, #728bc7, #96a9d5, #ffffff */

/* Maintain Montserrat typography */
/* All font families preserved */

/* Maintain existing structure */
/* Only refinement applied - no redesign */
