/* Layout for Main Page */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px; /* Ensures the whole section has room to stretch */
    margin: 0 auto;
}

@media (max-width: 991px) {
    .split-container {
        grid-template-columns: 1fr;
    }
}
.right-column .company-overview-section {
    padding: 0;
}

    /* 2. Strip the constraints off the nested container */
    .right-column .company-overview-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

/* 3. Override the old 'about-grid' so the text stops acting like there is a missing image */
.right-column .about-grid {
    display: block !important; /* Forces the text to take up the whole column */
}

/* 4. Let the content breathe and add a little padding on the right side */
.right-column .about-content {
    max-width: 100%;
    padding-right: 20px;
}
/* --- Container Layout --- */
.staircase-timeline-container {
    position: relative;
    max-width: 1050px; /* Increased width so the far-right cards don't get cut off */
    /*margin: 40px auto;*/
    margin: 40px auto 40px 0;
    /* Added 120px padding to the top to make sure the arrow tip is fully visible */
    padding: 120px 20px 40px 160px;
    overflow: visible; /* CRITICAL FIX: Removed 'hidden' so it stops chopping the elements */
}
/* --- Container Layout --- */
/*.staircase-timeline-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;*/
    /* Increased left padding significantly to make room for the steep arrow */
    /*padding: 60px 20px 40px 200px;
    overflow: hidden;
}*/
/* --- The Cards (Right Side Staircase) --- */
.staircase-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staircase-card-wrapper {
    margin-left: calc(var(--step) * 35px);
    filter: drop-shadow(3px 4px 4px rgba(0,0,0,0.15));
}

/* Flat rectangle for the top two cards */
.staircase-box {
    width: 380px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* The pointed chevron for the remaining cards */
.staircase-chevron {
    width: 380px;
    height: 70px;
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(0,0,0,0.1);
}

.j-year {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.j-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Colors matching the image exactly */
.card-green {
    background-color: #00b050;
    color: white;
}

.card-orange {
    background-color: #ed7d31;
    color: white;
}

.card-white {
    background-color: #ffffff;
    color: #0070c0;
}

/* --- The Diagonal Arrow Wrapper --- */
/* --- The Diagonal Arrow Wrapper --- */
/*.staircase-arrow-wrapper {
    position: absolute;*/
    /* Aligning the start point with the bottom left card */
    /*left: 110px;
    bottom: 50px;
    width: 800px;*/ /* Lengthened to reach the very top of the steep stairs */
    /*height: 80px;
    transform-origin: left bottom;*/
    /* The exact mathematical angle of the stairs based on a 35px horizontal shift and 78px total vertical height per card */
    /*transform: rotate(-65.8deg);
    pointer-events: none;
    z-index: 10;
}*/
/* --- The Diagonal Arrow Wrapper --- */
.staircase-arrow-wrapper {
    position: absolute;
    left: 80px; /* Adjusted to pull the arrow slightly left of the bottom card */
    bottom: 50px;
    width: 820px; /* Slight length extension to clear the top card */
    height: 80px;
    transform-origin: left bottom;
    transform: rotate(-65.8deg);
    pointer-events: none;
    z-index: 10; /* Ensures the arrow is layered above any background artifacts */
}

/* The thick line of the arrow */
.staircase-arrow-line {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: #3b5a9d;
}

    /* The tip of the arrow */
    .staircase-arrow-line::after {
        content: '';
        position: absolute;
        right: -24px;
        top: -6px;
        border-left: 25px solid #3b5a9d;
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
    }

/* The text hovering above the arrow */
.staircase-arrow-text {
    position: absolute;
    bottom: 40px;
    left: 80px; /* Pushed further up the arrow line */
    color: #8bb1d8;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* --- Animation States --- */
.animate-card {
    opacity: 0;
    transform: translateY(20px);
}

    .animate-card.show-card {
        opacity: 1;
        transform: translateY(0);
    }

/* Diagonal Reveal */
.animate-final-arrow {
    clip-path: inset(0 100% 0 0);
}

    .animate-final-arrow.show-arrow {
        clip-path: inset(0 -5% 0 0);
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .staircase-timeline-container {
        padding: 20px;
    }

    .staircase-card-wrapper {
        margin-left: 0 !important;
    }

    .staircase-box, .staircase-chevron {
        width: 100%;
        max-width: 320px;
    }

    .staircase-arrow-wrapper {
        position: relative;
        transform: rotate(0deg);
        width: 100%;
        max-width: 320px;
        left: 0;
        bottom: 0;
        margin-bottom: 30px;
        height: auto;
    }

    .staircase-arrow-line, .staircase-arrow-text {
        position: relative;
        bottom: 0;
        left: 0;
    }
}
