* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc; /* Light gray background */
    min-height: 100vh;
    color: #334155; /* Darker text color for better contrast */
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utility class */
.hidden {
    display: none !important;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between; /* Align logo to left, potential nav to right */
    align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    padding: 15px 30px; /* Increased padding */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.logo-image {
    height: 45px; /* Slightly larger logo */
    width: auto;
    object-fit: contain;
}

.logo-icon { /* This was display: none; keeping it as per original CSS for now */
    display: none;
}

.logo-text {
    font-size: 24px; /* Slightly larger text */
    font-weight: 700;
    color: white;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
}

.home-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.home-btn i {
    font-size: 0.9em;
}

/* Main Blog Content */
.blog-main-content {
    flex: 1;
    padding: 10px 0;
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b; /* Darker title */
    text-align: center;
    margin-bottom: 10px;
}

.blog-page-subtitle {
    font-size: 1.1rem;
    color: #475569;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Softer shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0; /* Separator line */
}

.blog-post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows button to stick to bottom */
}

.blog-post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.blog-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #0ea5e9; /* Accent color on hover */
}

.blog-post-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.blog-post-meta .author {
    font-weight: 500;
}

.blog-post-excerpt {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: #0ea5e9;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

.read-more-btn:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
}

.read-more-btn i {
    margin-left: 5px;
}


/* Footer - Using styles from user prompt */
.footer {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    margin-top: 60px; /* Increased margin top */
    padding: 40px 30px 20px; /* Increased padding */
    border-radius: 12px 12px 0 0; /* Softer radius */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 30px;
    margin-bottom: 30px; 
}

.footer-section h4 {
    font-size: 18px; /* Larger section titles */
    font-weight: 600;
    margin-bottom: 20px; 
    color: white;
    position: relative;
    padding-bottom: 8px;
}
.footer-section h4::after { /* Underline effect for titles */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: rgba(255,255,255,0.5);
}

.footer-logo {
    display: flex;
    flex-direction: column; /* Stack logo and text */
    align-items: center; /* Center items */
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px; /* Add padding */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Add border */
    border-radius: 16px; /* Add border-radius */
    background: rgba(255, 255, 255, 0.1); /* Add background */
    backdrop-filter: blur(10px); /* Add backdrop-filter */
    max-width: 250px; /* Add max-width */
    margin-left: auto; /* Center the block */
    margin-right: auto; /* Center the block */
}

.footer-logo-image {
    height: 50px; /* Adjusted size */
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 20px; 
    font-weight: 700; /* Bolder */
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem; /* Consistent font size */
    margin: 0;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px; 
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem; 
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px; /* Slight indent on hover */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px; /* Space between items if they wrap */
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem; 
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px; 
}

.footer-social a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px; 
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: white;
    transform: scale(1.1); /* Grow effect on hover */
}

/* Responsive Design Adjustments */
@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .blog-page-title {
        font-size: 2.2rem;
    }
    .blog-page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header {
        padding: 15px 20px;
        flex-direction: column; /* Stack logo and potential nav */
        gap: 15px;
        align-items: flex-start;
    }
    .logo-image {
        height: 40px;
    }
    .logo-text {
        font-size: 22px;
    }

    .blog-page-title {
        font-size: 2rem;
    }
    .blog-page-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .blog-posts-grid {
        grid-template-columns: 1fr; /* Single column for posts */
        gap: 25px;
    }
    .blog-post-title {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        text-align: left; /* Adjust alignment if needed */
    }
     .footer-section {
        text-align: center; /* Center footer sections */
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo {
        align-items: center; /* Center logo in its section */
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .header {
        padding: 10px 15px;
    }
    .logo-image {
        height: 35px;
    }
    .logo-text {
        font-size: 20px;
    }

    .blog-page-title {
        font-size: 1.6rem;
    }
    .blog-page-subtitle {
        font-size: 0.9rem;
    }
    .blog-post-title {
        font-size: 1.2rem;
    }
    .blog-post-excerpt {
        font-size: 0.9rem;
    }
    .read-more-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 30px 20px 15px;
    }
    .footer-section h4 {
        font-size: 16px;
    }
    .footer-links a, .footer-description, .footer-bottom p {
        font-size: 0.8rem;
    }
    .footer-social a {
        font-size: 18px;
    }
}

/* Remove styles that are not relevant to the blog */
.back-btn, .page-title, .page-title.show,
.progress-container, .progress-bar,
.segment, .segment.active, .professional-info, .avatar, .avatar-icon, .info,
.speech-bubble, .speech-bubble::before,
.interactive-element, .risk-profile-test, .risk-options, .risk-option, .risk-icon,
.portfolio-simulator, #segment2 .portfolio-simulator, #segment2 .portfolio-simulator > h3,
#segment2 .portfolio-simulator > .portfolio-chart, #segment2 .portfolio-simulator .simulator-button-container,
.portfolio-chart, .chart-segment, .chart-segment::before, .bonds::before, .stocks::before, .funds::before,
@keyframes fillChart, .simulator-button-container, .simulator-btn, .simulator-btn::before, .simulator-btn::after,
.btn-icon, .btn-text, .btn-arrow, @keyframes gradientShift, @keyframes pulseGlow, @keyframes iconBounce,
.simulator-button-container::before, @keyframes floatingParticles,
.notification-center, .notification-center h3, .notifications, .notification, .notification.rebalance,
.notification.reinvest, @keyframes slideInNotification, .notification-icon, .notification-text,
.notification-link, .notification-link .notification:hover,
.video-section, .professional-video, .welcome-video,
.navigation, .nav-btn, .nav-btn:hover:not(:disabled), .nav-btn:disabled,
.segment-indicators, .indicator, .indicator.active, #professionalsNavigation, #professionalsNavigation.hidden,
.cta-section, .cta-section.show, .cta-section h2, .cta-section p, .cta-button, .cta-button:hover,
.welcome-section, .welcome-content h1, .welcome-description, .feature-highlights, .feature-item,
.feature-item:hover, .feature-icon, .feature-item h3, .feature-item p,
.navigation-buttons, .nav-button, .nav-button.primary, .nav-button.primary:hover,
.nav-button.secondary, .nav-button.secondary:hover, .button-icon,
.video-container, .video-overlay, .video-overlay h3, .video-overlay p,
.professionals-wrapper, .professionals-wrapper.hidden {
    display: none !important; /* Or simply remove these rules */
}

/* Blog Article Page Specific Styles */
.blog-article-content {
    flex: 1;
    padding: 20px 0;
    background-color: #fff; /* White background for article area */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 30px; /* Padding inside the article container */
}

.article-navigation {
    margin-bottom: 30px;
}

.back-to-blog-btn {
    display: inline-flex; /* Use inline-flex for icon alignment */
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0ea5e9;
    font-weight: 500;
    padding: 10px 15px;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-blog-btn:hover {
    background-color: #0ea5e9;
    color: white;
}

.back-to-blog-btn i {
    font-size: 0.9em;
}

.blog-post-full {
    /* Styles for the full blog post content */
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.article-title {
    font-size: 2.2rem; /* Slightly smaller than main blog title, but still prominent */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.article-meta .author {
    font-weight: 500;
}

.article-main-image {
    width: 100%;
    max-height: 400px; /* Limit image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px; /* Space after image, before text starts */
}

.article-body {
    font-size: 1rem; /* Standard text size */
    line-height: 1.7;
    color: #334155;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0ea5e9; /* Accent underline for H2 */
    display: inline-block; /* To make border-bottom fit content */
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 30px; /* Indent list items */
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.article-body a:hover {
    text-decoration: underline;
    color: #0369a1;
}

.article-body blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #475569;
}

/* Responsive adjustments for article page */
@media (max-width: 768px) {
    .blog-article-content {
        padding: 20px;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .article-body h2 {
        font-size: 1.5rem;
    }
    .article-body h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.6rem;
    }
     .article-meta {
        font-size: 0.85rem;
    }
    .article-body {
        font-size: 0.95rem;
    }
    .article-body h2 {
        font-size: 1.3rem;
    }
     .article-body h3 {
        font-size: 1.1rem;
    }
    .back-to-blog-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}