/* Insights Container */
.insights-container {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.insight-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Fix insight headers - full width with no square corners */
.insight-header {
    background: linear-gradient(135deg, #002e5d, #0056b3) !important;
    color: white;
    padding: 20px 30px !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 8px 8px 0 0 !important; /* Rounded top corners */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box !important;
}

/* Ensure the card itself has rounded corners at the top */
.insight-card {
    border-radius: 8px !important;
    overflow: hidden !important; /* This ensures the header's rounded corners work */
}

/* Make date text white on insight headers */
.insight-header .date,
.insight-header .date span,
.insight-header .date p {
    color: white !important;
    opacity: 0.9; /* Keeps it slightly softer but still white */
}

.insight-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: white !important;
}

.date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.insight-content {
    padding: 30px;
}

.insight-content h3 {
    color: #003355;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.insight-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.insight-content ul,
.insight-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.insight-content li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.insight-content li strong {
    color: #003355;
}

/* Hero section styles to match other pages */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/header.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white !important;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white !important;
}

.hero .cta-button {
    display: inline-block;
    background-color: #e4007c;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: center;
}

.hero .cta-button:hover {
    background-color: #003355;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero .container {
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .insight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .date {
        margin-top: 0;
    }
    
    .insights-container {
        padding: 40px 20px;
        max-width: 100%;
    }
    
    .insight-card {
        margin-bottom: 30px;
    }
    
    .insight-header h2 {
        font-size: 1.5rem;
    }
    
    .insight-content {
        padding: 20px;
    }
}

/* Additional fixes for mobile menu on insights page */
@media (max-width: 768px) {
    /* Ensure mobile nav appears above hero */
    .main-nav {
        z-index: 10000;
    }
    
    .hero {
        position: relative;
        z-index: 1;
    }
    
    /* Fix header stacking context */
    .main-header {
        position: relative;
        z-index: 10001;
    }
    
    .header-content {
        position: relative;
        z-index: 10002;
    }
}

/* Print styles for insights */
@media print {
    .main-header,
    .hero,
    .footer,
    .client-portal-button,
    .mobile-menu-toggle,
    .cta-button {
        display: none !important;
    }
    
    .insight-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .insight-header {
        background: none;
        color: black;
        border-bottom: 1px solid #ddd;
    }
    
    .insight-header h2 {
        color: black !important;
    }
    
    .date {
        color: #666 !important;
    }
}