/* Premium History Page CSS */
.history-page {
    font-family: 'Cerebri Sans', sans-serif;
    color: #1e293b;
    line-height: 1.8;
    background-color: #f8fafc;
}

.text-gradient {
    background: linear-gradient(135deg, #086ad8 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.bg-dark-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
}

.sec-pad {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Hero Section */
.history-hero {
    background: radial-gradient(circle at 10% 20%, rgba(8, 106, 216, 0.05) 0%, rgba(124, 58, 237, 0.05) 90.2%);
    padding: 80px 0;
    text-align: center;
}

.history-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.history-hero p {
    font-size: 17px;
    max-width: 850px;
    margin: 0 auto;
    color: #475569;
}

/* Service Card Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #086ad8;
    box-shadow: 0 15px 30px rgba(8, 106, 216, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(8, 106, 216, 0.08);
    color: #086ad8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #086ad8 0%, #7c3aed 100%);
    color: #ffffff;
}

.service-info h5 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.service-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Vertical Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-row {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-row.left {
    left: 0;
    text-align: right;
}

.timeline-row.right {
    left: 50%;
    text-align: left;
}

.timeline-row::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #ffffff;
    border: 4px solid #086ad8;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-row.right::after {
    left: -10px;
}

.timeline-row:hover::after {
    background-color: #7c3aed;
    border-color: #7c3aed;
    transform: scale(1.2);
}

.timeline-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-row:hover .timeline-content {
    border-color: #086ad8;
    box-shadow: 0 15px 30px rgba(8, 106, 216, 0.06);
    transform: translateY(-3px);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.timeline-text {
    font-size: 15px;
    color: #475569;
    margin: 0;
}

/* Responsiveness for Timeline */
@media (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-row {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .timeline-row.left {
        left: 0;
    }
    
    .timeline-row.right {
        left: 0;
    }
    
    .timeline-row::after {
        left: 21px;
        right: auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .history-hero h1 {
        font-size: 32px;
    }
}

/* Modernized Custom styles to replace inline properties */
.history-breadcrumb {
    padding-top: 15px !important;
    padding-bottom: 20px !important;
}

.history-lead-text {
    color: #475569;
}

.history-timeline-img {
    max-height: 320px;
}

.history-expertise-section {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.service-card-highlight {
    grid-column: span 1;
    margin: 0 auto;
    max-width: 100%;
}

.history-footer-divider {
    border-color: #e2e8f0 !important;
}

