/* About Section Styles */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--mbdi-white) 0%, #f8f9fa 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--mbdi-primary);
    margin: 1rem auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.about-card {
    background: var(--mbdi-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--mbdi-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.about-card:hover:before {
    transform: scaleX(1);
}

.card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--mbdi-primary), var(--mbdi-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--mbdi-white);
}

.about-card h2 {
    color: var(--mbdi-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.about-card p {
    color: var(--mbdi-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    margin: 1rem 0;
    color: var(--mbdi-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.values-list i {
    color: var(--mbdi-primary);
}

.card-footer {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
    }
    
    .about-card h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .card-icon i {
        font-size: 2rem;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* History Timeline - Professional Version */
.history-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(0,102,204,0.2), 
        rgba(0,102,204,0.8), 
        rgba(0,102,204,0.2));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-content {
    background: var(--mbdi-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--mbdi-white);
    border: 4px solid var(--mbdi-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -3.5rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -3.5rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #f8f9fa;
    color: var(--mbdi-primary);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.timeline-date i {
    color: var(--mbdi-primary);
    margin-right: 0.5rem;
}

.timeline-content .timeline-date {
    background: #f8f9fa !important;
    color: var(--mbdi-primary) !important;
}

.timeline-content .timeline-date i {
    color: var(--mbdi-primary) !important;
}

.timeline-content h3 {
    color: var(--mbdi-dark);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
}

.timeline-content p {
    color: var(--mbdi-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 1.5rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 4rem;
        padding-right: 1rem;
    }

    .timeline-content::before {
        left: -2.5rem !important;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 2rem;
    }

    .timeline-date {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 3.5rem;
        padding-right: 0.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}

/* Objectives Section */
.objectives-section {
    padding: 5rem 0;
    background-color: var(--mbdi-white);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.objective-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
}

.objective-icon {
    font-size: 2.5rem;
    color: var(--mbdi-primary);
    margin-bottom: 1rem;
}

.objective-card h3 {
    color: var(--mbdi-dark);
    margin-bottom: 1rem;
}

.objective-card p {
    color: var(--mbdi-gray);
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background: #004594;
    color: var(--mbdi-white);
}

.stats-section .section-title h2,
.stats-section .section-title p {
    color: var(--mbdi-white);
}

.stats-section .section-title:after {
    background: var(--mbdi-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--mbdi-white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--mbdi-white);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding: 0 0 0 4rem;
        justify-content: flex-start;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 4rem;
        right: auto;
    }

    .timeline-content {
        width: 100%;
    }

    .about-grid,
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-date {
        position: relative;
        left: 0;
        margin-bottom: 1rem;
        display: inline-block;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 3rem;
    }

    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Partners Section Styles */
.partners-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, var(--mbdi-white) 100%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: var(--mbdi-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-card h3 {
    color: var(--mbdi-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.partner-card p {
    color: var(--mbdi-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.partner-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.partner-since {
    color: var(--mbdi-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-since i {
    color: var(--mbdi-primary);
}

.partner-type {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .partner-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .partner-card {
        padding: 1.5rem;
    }
    
    .partner-logo {
        width: 80px;
        height: 80px;
    }
    
    .partner-details {
        flex-direction: column;
        gap: 0.8rem;
    }
}