/* History Section Styles */
.history-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Anchor offsets to account for fixed header */
#vision-excellence, #why-bkse {
    scroll-margin-top: 120px;
}

/* Highlight effect when accessed via anchor link */
#vision-excellence:target {
    animation: highlightPulse 2s ease-in-out;
    border-left: 4px solid #ff6b35 !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(31, 79, 150, 0.15)) !important;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.history-content {
    padding-left: 30px;
}

/* Fix for experience box visibility */
.history-section .about-three__experience-box {
    position: relative;
    z-index: 10;
}

.history-section .about-three__img-box {
    position: relative;
    z-index: 1;
}

.history-section .about-three__img-one,
.history-section .about-three__img-two {
    position: relative;
    z-index: 2;
}

/* Make the single image larger and more prominent */
.history-section .about-three__img-one {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.history-section .about-three__img-one img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-section .about-three__img-one:hover img {
    transform: scale(1.05);
}

.history-subtitle {
    color: #1f4f96;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.history-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #1f4f96, #ff6b35);
}

.history-highlight-box {
    background: linear-gradient(135deg, rgba(31, 79, 150, 0.1), rgba(255, 107, 53, 0.1));
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    border-left: 4px solid #1f4f96;
    transition: all 0.3s ease;
}

.history-highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.history-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1f4f96, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.history-icon i {
    color: #fff;
    font-size: 24px;
}

.history-content-box h4 {
    color: #1f4f96;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.history-content-box p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Timeline Styles */
.history-timeline {
    position: relative;
    margin-top: 60px;
}

.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #1f4f96, #ff6b35);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 50px 0;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 40px);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #1f4f96, #ff6b35);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(31, 79, 150, 0.3);
}

.timeline-item:nth-child(odd) .timeline-year::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #1f4f96;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-year::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 10px solid #1f4f96;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    color: #1f4f96;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Timeline Dots */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #1f4f96;
    border: 3px solid #fff;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    box-shadow: 0 0 0 5px rgba(31, 79, 150, 0.2);
    z-index: 2;
}

/* Current Status Section */
.history-current-status {
    background: linear-gradient(135deg, rgba(31, 79, 150, 0.05), rgba(255, 107, 53, 0.05));
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 80px;
}

.campus-info-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.campus-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.campus-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1f4f96, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.campus-icon i {
    color: #fff;
    font-size: 32px;
}

.campus-content h4 {
    color: #1f4f96;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.campus-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.campus-schools {
    list-style: none;
    padding: 0;
    margin: 0;
}

.campus-schools li {
    color: #555;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.campus-schools li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1f4f96;
    font-weight: bold;
}

.legacy-highlight {
    background: linear-gradient(135deg, rgba(31, 79, 150, 0.1), rgba(255, 107, 53, 0.1));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.legacy-highlight h5 {
    color: #1f4f96;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.legacy-highlight p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .history-content {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        text-align: left !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-year::after {
        display: none;
    }
    
    .campus-info-box {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 60px 0;
    }
    
    .history-current-status {
        padding: 40px 20px;
        margin-top: 40px;
    }
    
    .campus-info-box {
        padding: 30px 20px;
    }
    
    .timeline-item {
        margin: 30px 0;
        padding-left: 50px !important;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
}

@media (max-width: 576px) {
    .history-highlight-box {
        flex-direction: column;
        text-align: center;
    }
    
    .history-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
    .campus-icon {
        margin: 0 auto 20px;
    }
}
