/* ==========================================================================
   IMAGE WITH TEXT SECTION STYLES
   ========================================================================== */

.iwt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: stretch; /* Image right side text height match karegi */
}

/* Image Column Styling */
.iwt-image-col {
    width: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
}

.iwt-image-col img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Content Column Styling */
.iwt-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.iwt-content-col .capsule {
    display: inline-block;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.iwt-heading {
    color: var(--clr-black);
    margin-bottom: 24px;
}

.iwt-desc {
    color: #4B5563;
    margin-bottom: 16px;
}
.iwt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.stat-card {
    background: #4FC1511F;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 24px, Green Color (#4FC151), Bold */
.stat-number {
    font-family: var(--body-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-green);
    line-height: 120%;
}

/* 14px Text Color */
.stat-label {
    font-family: var(--body-font);
    font-size: 14px;
    color: #555555;
    line-height: 130%;
}

section.about-us .section-header {
    text-align: center;
}
@media (max-width: 1024px) {
    .iwt-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .iwt-image-col {
        height: 400px;
        min-height: auto;
    }

    .iwt-image-col img {
        position: static;
    }

    .iwt-stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet pe 2x2 grid */
    }
}

@media (max-width: 640px) {
    .iwt-image-col {
        height: 280px;
    }

    .iwt-stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile layout matching reference */
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }
}
/* ==========================================================================
   HISTORY SECTION STYLES
   ========================================================================== */

.history-section .section-header {
    margin-bottom: 60px;
}

.history-section .capsule {
    display: inline-block;
    border-radius: 20px;
    margin-bottom: 16px;
}

.history-section .section-title {
    color: #000;
}

/* History Grid Layout */
.history-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 75%;
    margin: 0px auto;
    max-height: 700px;
}

/* Base History Card */
.history-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 335px;
    box-sizing: border-box;
}

/* Variants */
.history-card.card-green {
    background: #4FC1511A;
}

.history-card.card-white {
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
}

/* Vertical Year Badge */
.year-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 8px 6px;
    border-radius: 40px;
    font-family: var(--heading-font);
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 1.3;
    min-height: 90px;
}
.history-card-content {
    display: grid;
    gap: 36px;
}
.card-green .year-badge {
    background: #025C42;
}

.card-white .year-badge {
    background: #000000;
}

/* Card Content */
.card-content h3 {
    color: #000000;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--clr-black-70);
}

/* Connecting Line Styling */
.history-item {
    position: relative;
    display: flex;
    width: 100%;
}

.connector-line {
    position: absolute;
    border: 1.5px dashed;
    border-image-source: linear-gradient(90deg, rgba(2, 92, 66, 0) 0%, #025C42 100%);
    border-image-slice: 1;
    pointer-events: none;
}

/* Desktop Staggered Positioning & Connectors */
@media (min-width: 769px) {
    .history-item-1 { align-self: flex-start; margin-left: 50px; }
    .history-item-2 { justify-content: flex-end; right: 100px;top:-45px;}
    .history-item-3 { align-self: flex-start; margin-left: 15%; top:-75px;}
    .history-item-4 { justify-content: flex-end;top:-125px; }
    .history-item-5 { align-self: flex-start; top:-145px;}
    .desktop-connector {
        position: absolute;
        pointer-events: none;
        z-index: 0;
    }
    .history-item-2 .history-card:before{
        position: absolute;
        content: '';
        background-image: url('../images/Vector 135.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        top: -60px;
        left: -230px;
        width: 100%;
        height: 60px;
    }
    .history-item-4 .history-card:before{
        position: absolute;
        content: '';
        background-image: url('../images/Vector 135.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        top: -45px;
        left: -230px;
        width: 100%;
        height: 45px;
    }
    .history-item-3 .history-card:before{
        position: absolute;
        content: '';
        background-image: url('../images/arrow-right.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        top: -55px;
        right: -130px;
        width: 100%;
        height: 55px;
    }
    .history-item-5 .history-card:before{
        position: absolute;
        content: '';
        background-image: url('../images/Vector 137.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        top: -5px;
        right: -106%;
        width: 100%;
        height: 90px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .history-section .section-header {
        margin-bottom: 36px;
    }

    .history-timeline {
        gap: 40px;
        align-items: center;
        max-height: 100%;
        max-width: 100%;
    }
.history-item .history-card:before{
        position: absolute;
        content: '';
        background-size: 100% 100%;
        background-repeat: no-repeat;
}
    .history-card {
                max-width: 75%;
    }

    .history-item {
        margin-left: 0 !important;
    }
    .history-item.history-item-2, .history-item.history-item-4 {
    justify-content: flex-end;
}

    /* Mobile Connector Line */
    .mobile-connector {
        position: absolute;
        bottom: -40px;
        left: 50%;
        width: 2px;
        height: 40px;
        border-left: 1.5px dashed #025C42;
    }

    .history-item:last-child .mobile-connector {
        display: none;
    }
}