/* ======= BASE STYLING ======= */
.history-page * {
    box-sizing: border-box;
}

.history-page {
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #001F3F;
    font-size: 1rem;
}

/* ======= HEADER SECTION ======= */
.history-header {
    background: url('/images/history/historybg.png') no-repeat center center/cover;
    height: 30rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 5rem;
}

.history-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 100%;
    background-color: rgba(0, 31, 63, 0.6);
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 2;
    padding: 1rem 2rem;
}

.overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.overlay p {
    font-size: 1.5rem;
    max-width: 70%;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ======= INTRO ROW ======= */
.row {
    text-align: center;
    margin: 3rem auto 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #001F3F;
}

/* ======= MAIN CONTENT ======= */
.row1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.left-column,
.right-column {
    flex: 1 1 45%;
}

.left-column {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    font-size: 1rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* ======= IMAGES ======= */
.historypic {
    width: 100%;
    max-width: 500px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.95);
    animation: fade-in 1.5s ease-in-out forwards;
}

.historypic.second {
    animation-delay: 0.8s;
}

/* ======= ANIMATIONS ======= */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .overlay h1 {
        font-size: 2.5rem;
    }

    .overlay p {
        font-size: 1.3rem;
    }

    .left-column,
    .right-column {
        flex: 1 1 100%;
    }

    .historypic {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .history-header {
        height: 40vh;
    }

    .overlay h1 {
        font-size: 2rem;
    }

    .overlay p {
        font-size: 1.1rem;
    }

    .row1 {
        flex-direction: column;
        padding: 1rem;
    }

    .left-column,
    .right-column {
        padding: 1rem;
    }
}
