

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

.loader-circle:nth-child(2) {
    border-top-color: var(--secondary-color);
    animation-duration: 2s;
}

.loader-circle:nth-child(3) {
    border-top-color: var(--accent-color);
    animation-duration: 2.5s;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.latest-header h2 { margin-bottom: 0; }
.view-all-link { font-weight: 600; font-size: 0.95rem; }

.home-articles {
    border-top: 1px solid #f1f5f9;
    padding-top: 40px;
    padding-bottom: 48px;
    margin-top: 40px;
}

.home-articles .latest-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.home-articles .latest-header h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    margin-top: 6px;
    border-radius: 2px;
}

.home-articles .view-all-link {
    color: #0284c7;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-articles .view-all-link:hover {
    color: #06b6d4;
    transform: translateX(3px);
}

.home-articles .insight-grid {
    gap: 24px;
    align-items: stretch;
}

.home-articles .insight-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-articles .insight-card:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
    border-color: #bae6fd;
    transform: translateY(-4px);
}

.home-articles .insight-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.home-articles .insight-card:hover .insight-image { opacity: 1; }

.home-articles .insight-content {
    padding: 16px 20px;
    background: #fff;
}

.home-articles .insight-meta {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0;
}

.home-articles .insight-title {
    font-size: 17px;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.home-articles .insight-title a { color: #0284c7; }
.home-articles .insight-title a:hover { color: #06b6d4; }

.home-articles .insight-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.home-articles .card-author {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
}

.home-articles .card-author strong {
    color: #374151;
    font-weight: 600;
}

.insight-image-placeholder {
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
    .loader-circle { animation: none !important; }
}

@media (max-width: 1024px) {
    .home-articles .insight-grid { gap: 16px; }
}

@media (max-width: 768px) {
    .home-articles {
        margin-top: 32px;
        padding: 32px 16px 48px;
    }
    .home-articles .insight-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-articles .latest-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (min-width: 769px) {
    
    .home-articles {
        margin-top: 48px !important;
        padding-bottom: 24px !important;
        margin-bottom: 0 !important;
    }

    
    .home-articles .insight-grid {
        margin-bottom: 0 !important;
    }

    
    footer {
        margin-top: 0 !important;
    }
}
