.hero-section {
    height: 60vh;
    min-height: 500px;
    background:
        url(https://plus.unsplash.com/premium_photo-1661497675847-2075003562fd?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8Y29ycG9yYXRlfGVufDB8fDB8fHww) center / cover no-repeat;
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e7f5ff;
    opacity: 0.7;
    /* Adjust as needed */
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    /* max-width: 900px; */
    padding: 2rem;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 700px;
    color: var(--dark);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-content p::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 1rem auto 0;
}

.btn-cta {
    background-color: var(--secondary);
    color: white;
    padding: 10px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-cta:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-cta:hover::before {
    left: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* our story section */
.ourstory {
    margin-top: 10px;
    position: relative;
    max-width: 1000px;
    margin: 10px auto;
}

/* SVG path styling */
.ourstory svg {
    position: absolute;
    left: 50%;
    top: -65px;
    transform: translateX(-50%);
    height: 140%;
    width: 420px;
    z-index: 0;
}

/* Timeline items */
.ourstory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 70px 0;
    position: relative;
    z-index: 1;
}

/* Left and right alternation */
.ourstory-item.left {
    flex-direction: row;
}

.ourstory-item.right {
    flex-direction: row-reverse;
}

/* Content order */
.ourstory-item .ourstory-content {
    order: 1;
    background: white;
    padding: 25px 30px;
    border-radius: 25px;
    width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 4px solid #06b6d4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
    transition: border-color 0.3s ease;
}

.ourstory-item.left .ourstory-content {
    text-align: left;
}

.ourstory-item.right .ourstory-content {
    text-align: left;
}

/* Offset each step vertically to align with SVG path bends */
.step-1 .ourstory-content {
    top: 20px;
    left: 35px;
    border-top-color: #3bb0ff;
}

.step-2 .ourstory-content {
    top: 15px;
    left: -28px;
    border-top-color: #4c71f2;
}

.step-3 .ourstory-content {
    top: 0px;
    left: 35px;
    border-top-color: #ba5ff1;
}

.step-4 .ourstory-content {
    top: -25px;
    left: -25px;
    border-top-color: #f36ecc;
}

.step-5 .ourstory-content {
    top: -40px;
    left: 40px;
    border-top-color: #f97316;
}

/* Timeline circle (year) */
.ourstory-icon {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.05),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    z-index: 2;
}

.step-1 .ourstory-icon {
    top: 92px;
    left: 55%;
}

.step-2 .ourstory-icon {
    top: 85px;
    left: 45%;
}

.step-3 .ourstory-icon {
    top: 70px;
    left: 56%;
}

.step-4 .ourstory-icon {
    top: 45px;
    left: 45%;
}

.step-5 .ourstory-icon {
    top: 30px;
    left: 56%;
}

/* Title style */
.title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Description style */
.desc {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive: Tablets (≤1024px) */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0;
    }

    .ourstory svg {
        height: 139%;
    }

    .ourstory-item .ourstory-content {
        width: 400px;
    }

    .step-1 {
        margin-top: 90px;
    }

    .step-1 .ourstory-content {
        left: -25px;
    }
    
    .step-2 .ourstory-content {
        left: 25px;
    }
    
    .step-3 .ourstory-content {
        left: -25px;
    }
    
    .step-4 .ourstory-content {
        left: 25px;
    }
    
    .step-5 .ourstory-content {
        left: -25px;
    }

    .step-1 .ourstory-icon {
        top: 100px;
        left: 62%;
    }

    .step-2 .ourstory-icon {
        left: 39%;
    }

    .step-3 .ourstory-icon {
        left: 61%;
    }

    .step-4 .ourstory-icon {
        left: 39%;
    }

    .step-5 .ourstory-icon {
        top: 46px;
        left: 61%;
    }
}

/* Responsive: Mobile (≤576px) */
@media (max-width: 576px) {
    .ourstory {
        padding: 30px 15px;
        max-width: 100%;
    }

    .ourstory svg {
        width: 230px;
        height: 119%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .ourstory-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }

    .ourstory-content {
        width: 100% !important;
        padding: 18px;
        position: static !important;
        top: auto !important;
        left: auto !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .ourstory-icon {
        display: none;
    }

    .step-1 .ourstory-content {
        left: 0;
    }
    
    .step-2 .ourstory-content {
        left:0;
    }
    
    .step-3 .ourstory-content {
        left: 0;
    }
    
    .step-4 .ourstory-content {
        left:0;
    }
    
    .step-5 .ourstory-content {
        left: 0;
    }
}