/* About Section Styles */
.about-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

/* Header Styles */
.about-header {
    text-align: center;
    margin: 0 1.5rem 1.5rem 1.5rem;
    position: relative;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 2rem;
    background: linear-gradient(90deg,
        var(--theme-primary) 0%,
        rgba(var(--rgb-primary), 0.8) 25%,
        var(--theme-accent) 50%,
        rgba(var(--rgb-primary), 0.8) 75%,
        var(--theme-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(var(--rgb-primary),0.1);
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {background-position: 0% center;}
    50% {background-position: 100% center;}
    100% {background-position: 0% center;}
}
/* Continuous swirly underline */
.about-header h2::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 100 20"><path d="M0,10 Q25,20 50,10 T100,10" fill="none" stroke="%23e74c3c" stroke-width="2"/></svg>');
    background-repeat: repeat-x;
    background-size: 100px 20px;
}

/* Banner Styles */
.history-banner {
    position: relative;
    margin-bottom: 4rem;
    overflow: hidden;
    height: 700px;
}



.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(var(--rgb-shadow), 0.7) 30%, transparent);
    display: flex;
    justify-content: center;
    align-items: end;
}

.banner-content {
    max-width: 650px;
    color: white;
    text-align: center;
    margin-bottom: 5rem;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* History & Success Section */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header i {
    font-size: 2rem;
    margin-right: 1rem;
    color: #e74c3c;
}

.section-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

/* History & Success */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #e74c3c;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    min-height: 2.5rem;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6.5rem;
    text-align: center;
    padding-right: -0.5rem;
    font-weight: bold;
    background-color: #e74c3c;
    color: white;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.timeline-content {
    left: 8rem;
    padding: 0.8rem 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
    position: relative;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 100%;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.trophy-case {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.trophy-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0.1rem 0.5rem;
    border-left: 5px solid #3498db;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    color: #34495e;
    transition: all 0.3s ease;
    word-wrap: break-word;
    max-width: 100%;
}

.trophy-item:hover {
    transform: translateX(5px);
    border-color: var(--theme-primary);
}

.trophy-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.year {
    font-weight: bold;
    color: #e74c3c;
    min-width: 60px;
    margin-right: 15px;
    font-size: 1.1rem;
}

.achievement {
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.2;
}

/* Features Section */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Color Themes for Feature Cards */
.affiliation-card {
    border-top: 4px solid #3498db;
}

.affiliation-card .feature-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.affiliation-card .feature-btn {
    background-color: #3498db;
    color: white;
}

.affiliation-card .feature-btn:hover {
    background-color: #2980b9;
}

.diversity-card {
    border-top: 4px solid #2ecc71;
}

.diversity-card .feature-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.diversity-card .feature-btn {
    background-color: #2ecc71;
    color: white;
}

.diversity-card .feature-btn:hover {
    background-color: #27ae60;
}

.approach-card {
    border-top: 4px solid #f39c12;
}

.approach-card .feature-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.approach-card .feature-btn {
    background-color: #f39c12;
    color: white;
}

.approach-card .feature-btn:hover {
    background-color: #e67e22;
}

/* Responsive Adjustments */

@media (max-width: 1200px) {

    .timeline{
        width: 20rem;
    }

    .timeline::before{
        left: 3rem;
    }

    .timeline-year{
        left: -4rem;
    }

    .timeline-content{
        left: 4rem;
    }

}
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }

}

@media (max-width: 768px) {
    .about-header h2 {
        font-size: 2rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 0;
        margin: 0 auto;
    }

    .timeline::before {
        left: 4.2rem;
    }

    .timeline-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        min-height: auto;
        gap: 1.2rem;
    }

    .timeline-year {
        position: relative;
        width: 3.8rem;
        font-size: 0.8rem;
        padding: 0.2rem 0.3rem;
        flex-shrink: 0;
        left: 0;
        top: 0.5rem;
    }

    .timeline-content {
        position: relative;
        left: 0;
        flex: 1;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .timeline-content::before {
        display: block;
        left: -7px;
        top: 10px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid white;
    }
}

@media (max-width: 576px) {

    .history-banner {
        height: 30vh !important;
        width: 100%;
        overflow: hidden;
    }

    /* Ensure the image covers the 50vh area and stays centered */
    .history-banner img {
        object-fit: cover;
        object-position: center;
    }

    .banner-content {
        color: white;
        margin-bottom: 0;
    }

    .banner-content h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .banner-content p {
        font-size: 0.8rem;
    }
}