/* ===== STATISTIQUES ===== */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--dark-color);
    margin-top: 0.25rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.bourse-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
    border-left: 5px solid var(--primary-color);
}

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

.bourse-card-header {
    padding: 20px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.bourse-card-type {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.type-national {
    background-color: var(--primary-color);
    color: white;
}

.type-international {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.type-particulier {
    background-color: var(--tertiary-color);
    color: white;
}

.bourse-card-title {
    font-size: 20px;
    margin-bottom: 5px;
    padding-right: 100px;
}

.bourse-card-organization {
    font-size: 14px;
    color: var(--gray-color);
}

.bourse-card-body {
    padding: 20px;
}

.bourse-card-deadline {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bourse-card-deadline i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.deadline-date {
    font-size: 18px;
    font-weight: 600;
}

.deadline-countdown {
    font-size: 14px;
    color: var(--gray-color);
}

.bourse-card-info {
    margin-bottom: 20px;
}

.bourse-card-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.bourse-card-info-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 25px;
    margin-right: 10px;
}

.bourse-card-desc {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.bourse-detail-box {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.bourse-detail-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.bourse-detail-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    background-color: white;
    color: var(--dark-color);
}

.bourse-detail-title {
    font-size: 28px;
    margin-bottom: 10px;
    margin-right: 100px;
}

.bourse-detail-organization {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.bourse-detail-meta {
    display: flex;
    flex-wrap: wrap;
}

.bourse-detail-meta-item {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 10px;
}

.bourse-detail-meta-item i {
    font-size: 20px;
    margin-right: 10px;
}

.bourse-detail-body {
    padding: 30px;
}

.bourse-detail-section {
    margin-bottom: 30px;
}

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

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

.bourse-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bourse-detail-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.bourse-detail-list li:before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 14px;
}

.timeline {
    position: relative;
    padding-left: 45px;
    margin-bottom: 30px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -30px;
    top: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-date {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.timeline-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.badge-custom {
    background-color: #e9f7ef;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.pagination .page-item .page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 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-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);
}

.custom-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 57, 0.25);
}

.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);
}

.stats-box {
    text-align: center;
    margin-bottom: 30px;
}

.stats-box .stats-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stats-box .stats-label {
    color: var(--dark-color);
    font-weight: 500;
}

.quick-filter-btn {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.quick-filter-btn.active,
.quick-filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.section-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.section-tab .nav-item {
    margin: 0 5px;
}

.section-tab .nav-link {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.section-tab .nav-link.active,
.section-tab .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 150, 57, 0.3);
}

.eligibility-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.eligibility-item:hover {
    background-color: #e9f7ef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.eligibility-item-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.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);
}

.sidebar-contact {
    background-color: #e9f7ef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-contact-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.sidebar-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.sidebar-contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 10px;
    margin-top: 3px;
}

.sidebar-tip {
    background-color: #fff3cd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
}

.sidebar-tip-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #856404;
}

.testimony-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

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

.testimony-content {
    margin-bottom: 15px;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimony-content:before,
.testimony-content:after {
    content: '"';
    font-size: 30px;
    color: var(--primary-color);
    position: absolute;
}

.testimony-content:before {
    left: 0;
    top: -5px;
}

.testimony-content:after {
    right: 0;
    bottom: -20px;
}

.testimony-author {
    display: flex;
    align-items: center;
}

.testimony-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.testimony-author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.testimony-author-info p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 0;
}

.related-bourse {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s;
    border-left: 5px solid var(--primary-color);
}

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

.related-bourse-body {
    padding: 15px;
}

.related-bourse-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.related-bourse-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.related-bourse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.related-bourse-link:hover {
    color: #007c30;
}

.funding-details {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.funding-details h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.funding-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funding-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.funding-list li:last-child {
    border-bottom: none;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

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

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    margin-top: 5px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .filter-box {
        margin-bottom: 20px;
    }
    
    .quick-filter-btn {
        margin-bottom: 10px;
    }
    
    .bourse-detail-meta-item {
        margin-right: 20px;
    }
    
    .bourse-detail-status {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .bourse-detail-title {
        margin-right: 0;
    }
}
