/* === Long Distance Section: Two-Column Layout === */
.long-distance-section {
    width: 100%;
    background: #fff; /* white background */
    padding: 60px 20px;
}
.long-distance-section::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #27c067;
    margin-top: 0px;
}

.long-distance-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 50px; /* space between image and text */
    margin-top: -60px;
}
/* === Long Distance Section: Image Styling === */
.long-distance-image {
    flex: 1 1 45%; /* controls width, adjust as needed */
    max-width: 500px; /* optional: max width */
}

.long-distance-image img {
    width: 100%; /* width follows container flex */
    height: 560px; /* set height you want */
    object-fit: cover; /* ensures image covers the container */
    border-radius: 20px; /* rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    display: block;
    border-right: 8px solid #27c067; /* green border on right side */
    margin-left: 50px;
    margin-top: -190px;
}
/* Optional: control height responsively */
@media (max-width: 768px) {
    .long-distance-image img {
        height: 400px; /* smaller height on mobile */
    }
}
/* Right: Text */
.long-distance-content {
    flex: 1 1 50%;
    text-align: left;
    margin-left: 50px;
    margin-bottom: 230px;
}

.long-distance-content h2 {
    font-size: 4rem;
    margin: 5px; /* remove top & bottom margin */
    font-weight: 900;
    color: #111; /* dark heading for contrast */
    font-family: "Montserrat", serif; /* added font */
}

.long-distance-content p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #333;
}
.long-distance-content p::after {
    content: "";
    display: block;
    width: 60px; /* length of the line */
    height: 2px; /* thickness */
    background: #27c067; /* green */
    margin: 10px 0 0 0; /* space above line */
    border-radius: 1px;
}

.long-distance-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #989696, #0e0f0e);
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 12px #06883c;
    transition: all 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
}

.long-distance-btn:hover {
    background: linear-gradient(135deg, #27c067, #0c7a41);
    box-shadow: 0 0 12px #46cb7d;
    transform: translateY(-4px) scale(1.05);
}
@media (max-width: 768px) {
    .long-distance-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Adjust parent container to control vertical position */
    .long-distance-content {
        text-align: left;
        margin-left: 0;
        margin-top: 10px; /* move the whole content up */
        margin-bottom: 60px;
        padding: 0 15px;
    }

    /* Fine-tune heading inside parent */
    .long-distance-content h2 {
        font-size: 3.5rem;
        margin-top: -5px; /* optional extra nudge */
        margin-bottom: 15px;
    }

    .long-distance-content p {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .long-distance-btn {
        margin-top: 30px;
        font-size: 1.5rem;
    }

    .long-distance-section::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: #27c067;
        margin-top: 40px;
    }

    .long-distance-image img {
        height: 300px;
        margin-left: 0;
        margin-top: 0;
        border-right: 5px solid #27c067;
    }
}
