/* En-tête du blog */
.blog-header {
    padding: 60px 0;
    background-color: #F5F5F5;
}

.blog-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 40px;
}

.blog-header-text {
    flex: 1;
}

.blog-header-image {
    flex: 1;
    text-align: center;
    display: grid !important;
}

.blog-header-image video {
    max-width: 100%;
    border-radius: 12px;
    height: 327px;
    width: 582px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333333;
}

.section-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    color: #3BB4E5;
}

.section-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 20px;
}

.views_number {
    display: contents !important;
}

/* Filtres et recherche */
.blog-filters {
    padding: 30px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
}

.search-bar {
    display: flex;
    margin-bottom: 20px;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
    border: 1px solid #E0E0E0;
    border-radius: 30px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
}

.search-button {
    background-color: #3BB4E5;
    color: #FFFFFF;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #2a9fd0;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #F5F5F5;
    color: #333333;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.filter-btn:hover,
.filter-btn.active {
    background-color: #3BB4E5;
    color: #FFFFFF;
}

.filter-all.active {
    background-color: #333333;
}

.filter-info:hover,
.filter-info.active {
    background-color: #FF7A00;
}

.filter-podcast:hover,
.filter-podcast.active {
    background-color: #FF7A00;
}

.filter-topics:hover,
.filter-topics.active {
    background-color: #3BB4E5;
}

.filter-talk:hover,
.filter-talk.active {
    background-color: #8A4FFF;
}

.filter-exams:hover,
.filter-exams.active {
    background-color: #FF7A00;
}

.filter-radio:hover,
.filter-radio.active {
    background-color: #8A4FFF;
}

.filter-quiz:hover,
.filter-quiz.active {
    background-color: #4CD964;
}

.filter-quotes:hover,
.filter-quotes.active {
    background-color: #8A4FFF;
}

/* Articles */
.recent-articles,
.featured-articles {
    padding: 60px 0;
}

.recent-articles {
    background-color: #FFFFFF;
}

.featured-articles {
    background-color: #F5F5F5;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

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

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

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

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

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
}

.badge-blue {
    background-color: #3BB4E5;
}

.badge-orange {
    background-color: #FF7A00;
}

.badge-purple {
    background-color: #8A4FFF;
}

.badge-green {
    background-color: #4CD964;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-excerpt {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666666;
}

.article-date i {
    margin-left: 5px;
}

.read-more {
    color: #3BB4E5;
    font-weight: 500;
}

.read-more i {
    margin-right: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.pagination a.active,
.pagination a:hover {
    background-color: #3BB4E5;
    color: #FFFFFF;
}

/* Réseaux sociaux */
.social-media {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.social-link i {
    font-size: 24px;
    margin-left: 15px;
}

.social-link.facebook {
    background-color: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

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

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

.social-link.linkedin {
    background-color: #0A66C2;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #FFFFFF;
}


/* Responsive */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-header-content {
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .social-link {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .category-filters {
        gap: 5px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .footer-content {
        flex-direction: column;
    }
}






.tab-icon {
    margin-right: 10px;
}

.bg-light-gray {
    background-color: #f1f5f6;
}

.rounded-lg {
    border-radius: 50px !important;
}

.rounded-md {
    border-radius: 40px !important;
}

.border-primary {
    border-color: #3fa7d6 !important;
}

.text-primary {
    color: #3fa7d6 !important;
}

@media (max-width: 768px) {
    .custom-tab {
        width: 150px;
        height: 100px;
    }

    .tab-icon {
        width: 50px;
        height: 50px;
    }

    .fs-3 {
        font-size: 1.5rem !important;
    }

    .fs-5 {
        font-size: 1rem !important;
    }
}

.borderless {
    border: none;
}

#block-sd-academy-content {
    display: none;
}