.hero-section {
    min-height: clamp(185px, 38vw, 520px);
    height: auto;
    padding: clamp(20px, 5vw, 72px) clamp(16px, 4vw, 32px);
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #001833;
    color: white;
}

.hero-title {
    font-size: clamp(1.45rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: clamp(8px, 1.8vw, 24px);
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    text-align: center;
    font-size: clamp(0.75rem, 1.4vw, 1.15rem);
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 24, 51, 0.7) 0%,
            rgba(0, 24, 51, 0.5) 50%,
            rgba(0, 24, 51, 0.7) 100%);
    z-index: 2;
}

.history-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    height: auto;
    padding: 80px 20px;
    box-sizing: border-box;
    width: 100%;
    background-color: rgb(248, 249, 255);
    gap: 120px;
    position: relative;
    overflow: hidden;
}

.history-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.history-our-journey {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background-color: #006970;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
}

.history-title {
    color: #001833;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: "Lora", serif;
    margin-top: 0;
}

.history-paragraph {
    color: rgb(67, 71, 78);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    margin-top: 0;
    max-width: 600px;
}

.history-image {
    width: clamp(280px, 38vw, 512px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.policy-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    height: auto;
    padding: 80px 20px;
    box-sizing: border-box;
    width: 100%;
    gap: 120px;
    position: relative;
    overflow: hidden;
}

.policy-image {
    width: clamp(280px, 38vw, 512px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.policy-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 600px;
}

.policy-title {
    color: #001833;
    font-size: 40px;
    font-weight: 600;
    font-family: "Lora", serif;
    margin-bottom: 24px;
    margin-top: 0;
}

.policy-paragraph {
    color: rgb(67, 71, 78);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
}

/* Ensure flex items can shrink properly and don't take excessive space on large screens */
.history-section > div:not(.scroll-shape), 
.policy-section > div:not(.scroll-shape) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.history-content,
.policy-content {
    width: 100%;
    max-width: 600px;
}

.history-section > div:not(.history-content):not(.scroll-shape), 
.policy-section > div:not(.policy-content):not(.scroll-shape) {
    width: 100%;
    max-width: 512px;
    align-items: center;
}

/* Scroll-driven floating cross shapes */
.scroll-shape {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.scroll-shape::before,
.scroll-shape::after {
    content: '';
    position: absolute;
    background-color: #006970;
    border-radius: 14px;
}

.scroll-shape::before {
    width: 34%;
    height: 100%;
    left: 33%;
    top: 0;
}

.scroll-shape::after {
    width: 100%;
    height: 34%;
    top: 33%;
    left: 0;
}

.scroll-shape-lg {
    width: clamp(140px, 20vw, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    opacity: 0.07;
}

.scroll-shape-sm {
    width: clamp(85px, 12vw, 170px);
    height: auto;
    aspect-ratio: 1 / 1;
    opacity: 0.04;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .history-section, 
    .policy-section {
        gap: 60px;
    }
}

@media (max-width: 900px) {
    .history-section {
        flex-direction: column;
        min-height: auto;
        gap: 40px;
        text-align: center;
    }

    .history-content {
        align-items: center;
    }

    .policy-section {
        flex-direction: column-reverse;
        min-height: auto;
        gap: 40px;
        text-align: center;
    }

    .policy-content {
        align-items: center;
    }

    .history-image,
    .policy-image {
        width: 100%;
        max-width: 440px;
    }
}

@media (max-width: 768px) {
    .history-title, 
    .policy-title {
        font-size: 32px;
    }
    
    .history-image,
    .policy-image {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .history-title, 
    .policy-title {
        font-size: 28px;
    }

    .history-section, 
    .policy-section {
        padding: 60px 16px;
    }
}