:root {
    --primary-color: #009639; /* Vert du drapeau sénégalais */
    --secondary-color: #f7d618; /* Jaune du drapeau sénégalais */
    --tertiary-color: #ce1126; /* Rouge du drapeau sénégalais */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
}

/* News Header */
.news-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    color: white;
    margin-bottom: 40px;
}

.news-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.news-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.news-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-meta-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 10px;
    font-size: 15px;
}

.news-meta-item i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-share {
    display: flex;
    align-items: center;
}

.social-share span {
    margin-right: 10px;
    font-weight: 500;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share a.facebook:hover {
    background-color: #3b5998;
}

.social-share a.twitter:hover {
    background-color: #1da1f2;
}

.social-share a.linkedin:hover {
    background-color: #0077b5;
}

.social-share a.whatsapp:hover {
    background-color: #25d366;
}

/* Article Summary */
.article-summary {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.article-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-summary p {
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Article Content */
.article-content {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.article-content h2 {
    font-size: 1.375rem;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-content h4 {
    font-size: 1.188rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.article-content h5 {
    font-size: 1.125rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.article-content h6 {
    font-size: 1.063rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    font-style: italic;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content a {
    text-decoration: underline;
}

.article-content a:hover {
    color: #007c30;
}

/* Event Info Box */
.event-info {
    background-color: #e9f7ef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.event-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.event-info h3 i {
    margin-right: 10px;
}

.event-details {
    margin-bottom: 20px;
}

.event-detail-item {
    margin-bottom: 15px;
}

.event-detail-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--dark-color);
}

.event-detail-value {
    color: #495057;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Call for Applications Box */
.call-for-app-info {
    background-color: #fff3cd;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.call-for-app-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #856404;
}

.call-for-app-info h3 i {
    margin-right: 10px;
}

.call-for-app-details {
    margin-bottom: 20px;
}

.call-for-app-item {
    margin-bottom: 15px;
}

.call-for-app-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--dark-color);
}

.call-for-app-value {
    color: #495057;
}

.call-for-app-additional {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
}

.call-for-app-additional h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #856404;
}

.call-for-app-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Countdown Timer */
.deadline-countdown {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
}

.deadline-countdown span {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #856404;
}

/* Countdown Timer (suite) */
#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 5px 10px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-size: 12px;
    margin-top: 5px;
    color: #6c757d;
}

.deadline-passed {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

.deadline-passed i {
    margin-right: 5px;
}

/* Article Tags */
.article-tags {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--dark-color);
}

.tag-badge {
    display: inline-block;
    background-color: #e9f7ef;
    color: var(--primary-color);
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #adb5bd;
}

.author-info {
    flex-grow: 1;
}

.author-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.author-info p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-color);
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin: 40px 0;
}

.related-articles .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.related-articles .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    margin: 40px 0;
}

.comments-section .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.comments-section .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment-form-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.comment-form-container h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}


/* Sidebar Styles */
.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.filter-box {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-box {
    background-color: var(--light-color);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    flex: 1;
}

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

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-box button:hover {
    background-color: #007c30;
    transform: scale(1.05);
}

.list-group-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.list-group-item a:hover {
    color: var(--primary-color);
}

.badge {
    background-color: var(--primary-color);
}

/* Popular Posts */
.popular-post {
    display: flex;
    margin-bottom: 20px;
}

.popular-post:last-child {
    margin-bottom: 0;
}

.popular-post-img {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-title {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: 12px;
    color: var(--gray-color);
}

.popular-post-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Sidebar Events */
.sidebar-event {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.event-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-info {
    flex-grow: 1;
}

.event-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.event-info h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.event-info h4 a:hover {
    color: var(--primary-color);
}

.event-location {
    font-size: 12px;
    color: var(--gray-color);
}

.event-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Sidebar Applications */
.sidebar-application {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-application:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.application-deadline {
    font-size: 12px;
    color: #856404;
    background-color: #fff3cd;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.application-deadline i {
    margin-right: 5px;
}

.sidebar-application h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-application h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-application h4 a:hover {
    color: var(--primary-color);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Newsletter Box */
.newsletter-box {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
}

.newsletter-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
}

.newsletter-box p {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.newsletter-box .form-control {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
}

.newsletter-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-box .btn-custom-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.newsletter-box .btn-custom-primary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Button Styles */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-primary:hover {
    background-color: #007c30;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 150, 57, 0.3);
}

.btn-custom-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-secondary:hover {
    background-color: #e6c40f;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 214, 24, 0.3);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 150, 57, 0.3);
}

/* News Cards */
.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 13px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.news-card-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-excerpt {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .news-title {
        font-size: 32px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 80px 0 40px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .news-meta-item {
        margin-right: 15px;
        font-size: 14px;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
    }
    
    .call-for-app-actions {
        flex-direction: column;
    }
    
    #countdown {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .countdown-item {
        width: 45%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .news-header {
        padding: 60px 0 30px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        margin-top: 15px;
    }
}

.comment {
    transition: all 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reply {
    position: relative;
}

.reply::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bs-primary-color);
}

.comment-author, .reply-author {
    color: var(--bs-primary-color);
}

.comment-content, .reply-content {
    line-height: 1.5;
    word-wrap: break-word;
    color: #787883;
}

.comment-actions button {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.comment:hover .comment-actions button {
    opacity: 1;
}

.reply-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}
