.main {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 20px;
}

.date-time {
    color: #666;
    font-size: 14px;
    text-align: right;
    margin: 20px 0;
    padding-right: 20px;
}

.image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.main-content {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}



.article-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.4;
    /* font-family: 'Almarai', sans-serif; */
}

.presenters {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.presenter {
    text-align: center;
}

.presenter-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #666;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.presenter-name {
    font-size: 16px;
    opacity: 0.9;
}

.article-content {
    padding: 0 20px;
    margin-bottom: 50px;
    line-height: 1.8;
    font-size: 18px;
    text-align: justify;
    margin-top: 20px;
}

.highlighted-text {
    color: #2d4a22;
    font-weight: bold;
    background-color: rgba(45, 74, 34, 0.1);
    padding: 2px 4px;
    border-radius: 3px;

}

.sidebar {
    display: flex;    
    flex-direction: column;
    gap: 25px;
}

/* Social Media Section Styles */
.social-media-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.social-media-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #004B6A;
    padding-bottom: 10px;
}

.post-author {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.social-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Social Media Platform Colors */
.social-link.facebook {
    background-color: #1877f2;
    color: white;
}

.social-link.facebook:hover {
    background-color: #166fe5;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #e8842b 0%, #d45a2f 25%, #c61f3a 50%, #b91c5e 75%, #a81679 100%);
}

.social-link.twitter {
    background-color: #000000;
    color: white;
}

.social-link.twitter:hover {
    background-color: #333333;
}

.social-link.youtube {
    background-color: #ff0000;
    color: white;
}

.social-link.youtube:hover {
    background-color: #cc0000;
}

.social-link.tiktok {
    background-color: #000000;
    color: white;
}

.social-link.tiktok:hover {
    background-color: #ff0050;
}

/* Related Articles Section */
.related-articles {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.related-articles h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #004B6A;
    padding-bottom: 10px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles li a {
    color: inherit;
    text-decoration: none;
    transition: color 300ms ease;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-articles li:last-child a {
    border-bottom: none;
}

.related-articles li a:hover {
    color: #004B6A;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 70% 30%;
        gap: 20px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-content {
        padding: 30px;
        font-size: 16px;
    }

    .social-media-section,
    .related-articles {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 0 15px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-buttons {
        display: none;
    }

    .article-title {
        font-size: 24px;
    }

    .article-header {
        padding: 25px;
    }

    .article-content {
        padding: 25px;
        font-size: 16px;
    }

    .presenters {
        flex-direction: column;
        gap: 20px;
    }

    .presenter-image {
        width: 80px;
        height: 80px;
    }

    .video-section {
        height: 200px;
    }

    /* Social media links on mobile - horizontal layout */
    .social-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .social-link {
        padding: 10px;
        font-size: 12px;
    }

    .social-link span {
        display: none;
    }

    .social-link i {
        font-size: 18px;
        margin: 0 auto;
    }

    .image {
        width: 100%;

        height: auto !important;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }

    .article-header {
        padding: 20px;
    }

    .article-content {
        padding: 20px;
        font-size: 15px;
    }

    .sidebar {
        gap: 15px;
    }

    .social-media-section,
    .related-articles {
        padding: 15px;
    }

    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .social-link {
        padding: 8px;
    }
}

/* Add this to your blog.css file */

/* Related Articles Section */
.related-articles-section {
    margin-top: 50px;
    padding: 0 20px;
    border-top: 2px solid #e9ecef;
    padding-top: 40px;
}

.section-title {
    font-size: 24px;
    margin-top: 0 !important;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--second-color);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 230px));
    gap: 20px;
    margin-bottom: 40px;
}

.related-article-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.related-article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.related-article-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 75, 106, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-related-articles {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* Article Not Found Styling */
.article-not-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.article-not-found h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.article-not-found p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-home-btn {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Almarai', sans-serif;
    transition: background-color 0.3s ease;
}

.back-home-btn:hover {
    background-color: #e56b64;
}

/* Responsive Design for Related Articles */
@media (max-width: 768px) {
    .related-articles-section {
        margin-top: 30px;
        padding: 0 15px;
        padding-top: 30px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-article-image {
        height: 160px;
    }

    .related-article-content {
        padding: 15px;
    }

    .related-article-title {
        font-size: 15px;
    }

    .related-article-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .related-articles-section {
        padding: 0 10px;
        padding-top: 25px;
    }

    .section-title {
        font-size: 18px;
    }

    .related-article-image {
        height: 140px;
    }

    .related-article-content {
        padding: 12px;
    }

    .related-article-title {
        font-size: 14px;
    }

    .related-article-date {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Medium screens - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.article-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}