/* Related Articles Section - Three Column Grid Layout */

.related-articles-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f8ff 100%);
    border-top: 1px solid rgba(0, 102, 204, 0.1);
    margin-top: 3rem;
}

.related-articles-title {
    font-size: 2rem;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.related-articles-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #4d94ff);
    border-radius: 2px;
}

/* Two Column Grid */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* Article Card */
.related-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thumbnail Container */
.related-article-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
}

.related-article-thumbnail img,
.related-article-thumbnail svg,
.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-thumbnail img {
    transform: scale(1.05);
}

.placeholder-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
}

/* Content Section */
.related-article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge */
.related-article-category {
    display: inline-block;
    background: #0066cc;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Article Title */
.related-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #001f3f;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-article-card:hover .related-article-title {
    color: #0066cc;
}

/* Excerpt */
.related-article-excerpt {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Removed meta information for cleaner design */

/* Responsive Design */

/* Tablet - keep 2 columns */
@media (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .related-article-title {
        font-size: 1.15rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .related-articles-section {
        padding: 3rem 1rem;
    }

    .related-articles-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-article-thumbnail {
        height: 180px;
    }

    .related-article-content {
        padding: 1.25rem;
    }

    .related-article-title {
        font-size: 1.1rem;
    }

    .related-article-excerpt {
        font-size: 0.9rem;
    }
}

/* Large screens - wider spacing */
@media (min-width: 1440px) {
    .related-articles-grid {
        gap: 2.5rem;
        max-width: 1400px;
    }

    .related-article-thumbnail {
        height: 220px;
    }
}

/* Loading animation for lazy images */
.related-article-thumbnail img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Accessibility improvements */
.related-article-card:focus-within {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

.related-article-link:focus {
    outline: none;
}

/* Dark mode disabled - daylight mode only */

/* Print styles */
@media print {
    .related-articles-section {
        display: none;
    }
}