/* Our History Section - Premium Timeline Design */

.sp-history-section {
    padding: 100px 0;
    background-color: var(--nexros-bg);
    position: relative;
    overflow: hidden;
}

/* Background Ellipse Decorations */
.sp-history-section::before,
.sp-history-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(55, 163, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.sp-history-section::before {
    top: -300px;
    right: -200px;
}

.sp-history-section::after {
    bottom: -300px;
    left: -200px;
}

.sp-history-section .sp-container {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px !important;
}

.sp-history-layout {
    display: flex;
    gap: 80px;
}

/* Left Column: Sticky Title */
.sp-history-sticky-col {
    flex: 0 0 40%;
}

.sp-history-sticky-inner {
    position: sticky;
    top: 120px;
}

.sp-history-section .sub-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primaryColor);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.sp-history-section .sub-title img {
    height: 18px;
    width: auto;
}

.sp-history-section .main-title {
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: var(--primaryFont);
}

.sp-history-section .lead-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--silver);
    max-width: 90%;
}

/* Right Column: Timeline Content */
.sp-history-timeline-col {
    flex: 1;
}

.history-item-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.history-item-wrapper:last-child {
    margin-bottom: 0;
}

/* The vertical year logic */
.history-year-sm {
    font-family: var(--primaryFont);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primaryColor);
    opacity: 0.3;
    writing-mode: vertical-lr;
    /* Modern vertical text */
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.history-info {
    background: var(--nexros-glass-bg);
    border: 1px solid var(--nexros-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: var(--borderRadiusLg);
    width: 100%;
    transition: var(--transition);
}

.history-item-wrapper:hover .history-info {
    border-color: var(--primaryColor);
    box-shadow: none !important;
}

.history-year-lg {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    font-family: var(--primaryFont);
}

.history-content {
    font-size: 1.063rem;
    line-height: 1.7;
    color: var(--silver);
}

.history-content p {
    margin-bottom: 20px;
}

.history-content blockquote {
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primaryColor);
    border-radius: 0 20px 20px 0;
    font-style: italic;
    color: #111827;
    font-size: 1.25rem;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .sp-history-layout {
        flex-direction: column;
        gap: 60px;
    }

    .sp-history-sticky-col {
        flex: 0 0 100%;
    }

    .sp-history-sticky-inner {
        position: static;
    }

    .sp-history-section .main-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .sp-history-section {
        padding: 60px 0;
    }

    .history-info {
        padding: 30px;
        border-radius: 1rem; /* Standardized to 16px */
    }

    .sp-history-section .main-title {
        font-size: 28px;
    }

    .history-year-lg {
        font-size: 2rem;
    }

    .history-year-sm {
        display: none;
    }

    .history-content blockquote {
        font-size: 1.1rem;
        padding: 20px;
    }
}