/* Section 1 specific styles */
#section1 .hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8px;
    padding-bottom: 95px;
}

#section1 .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

#section1 .hero-text h1,
#section1 .hero-text h2,
#section1 .hero-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#section1 .hero-text h1 {
    margin: 0 auto 15px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #333;
}

#section1 .hero-text h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #333;
    margin: 0 auto 18px;
}

#section1 .hero-text p {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    color: #444;
    margin: 0 auto 40px;
    padding: 0 clamp(15px, 3vw, 40px);
    line-height: 1.7;
    max-width: 760px;
    word-wrap: break-word;
}

#section1 .hero-text span.connect,
#section1 .hero-text span.green-text,
.oki-highlight,
.niitsitapii-highlight {
    display: inline-block;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    background-color: transparent;
    transition: none;
}

#section1 .hero-text span.connect {
    color: rgba(198, 154, 50, 1);
}

#section1 .hero-text span.green-text {
    color: #2f6d2f;
}

.oki-highlight {
    color: #b22222;
}

.niitsitapii-highlight {
    color: #b22222;
}

/* Ensure logos stay in place */
#section1 .cta-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-width: 140px;
    margin: 0 auto;
}

#section1 .cta-logo {
    width: clamp(140px, 18vw, 240px);
    height: auto;
    transition: transform 0.3s ease;
    min-width: 70px; /* Minimum width */
}

#section1 .cta-logo:hover {
    transform: scale(1.1);
}

.open-praries-gif {
    object-fit: contain; /* Ensure the entire GIF is visible */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px; /* Rounded corners */
    position: absolute; /* Ensure it is positioned absolutely */
}

/* Mobile Screen */
@media (max-width: 480px) {
    #section1 .hero {
        padding-bottom: 120px;
    }

    #section1 .hero-text h1 {
        font-size: 8vw;
        min-font-size: 20px; /* Minimum font size */
    }

    #section1 .hero-text h2 {
        font-size: 5vw;
        min-font-size: 18px; /* Minimum font size */
    }

    #section1 .hero-text p {
        font-size: 3.6vw;
        min-font-size: 16px; /* Minimum font size */
        padding-left: 10px; /* Lessen padding on the left */
        padding-right: 10px; /* Lessen padding on the right */
    }

    #section1 .cta-buttons {
        flex-direction: column; /* Stack CTA buttons vertically */
        align-items: center;
        width: fit-content;
        bottom: 15px;
    }

    .open-praries-gif {
            max-width: 100%; /* Limit the width to 100% of the container */
            max-height: 50vh; /* Limit the height to 50% of the viewport height */
            width: auto; /* Maintain aspect ratio */
            height: auto; /* Maintain aspect ratio */
            left: 150px; /* Adjust position for mobile screens */
            top: 50px; /* Move the GIF up */
        }
}

/* Small Screen */
@media (max-width: 768px) {
    #section1 .hero-text h1 {
        font-size: 8vw;
        min-font-size: 20px; /* Minimum font size */
    }

    #section1 .hero-text h2 {
        font-size: 5vw;
        min-font-size: 18px; /* Minimum font size */
    }

    #section1 .hero-text span.connect,
    #section1 .hero-text span.pink-text {
        font-size: inherit; /* Match heading size */
    }

    #section1 .cta-buttons {
        bottom: 20px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: fit-content;
    }

    .open-praries-gif {
        width: 50vw; /* Width for small screens */
        height: 50vh; /* Height for small screens */
        right: -10px; /* Position for small screens */
        top: 400px; /* Position for small screens */
    }
}

/* Medium Screen */
@media (min-width: 769px) and (max-width: 1199px) {
    #section1 .cta-logo {
        width: 18vw; /* Larger width for medium screens */
    }

    .open-praries-gif {
        width: 60vw; /* Width for medium screens */
        height: 45vh; /* Height for medium screens */
        right: -100px; /* Position for medium screens */
        top: 200px; /* Position for medium screens */
    }
}

/* Large Screen */
@media (min-width: 1200px) {
    #section1 .cta-logo {
        width: 12vw; /* Larger width for large screens */
    }

    #section1 .hero-text h1 {
        font-size: 5em;
    }

    #section1 .hero-text h2 {
        font-size: 4em;
    }

    #section1 .hero-text p {
        font-size: 2.5em;
    }

    #section1 .hero-text span.connect,
    #section1 .hero-text span.pink-text {
        font-size: inherit; /* Match heading size */
    }

    #section1 .cta-logo {
        width: 170px;
    }

    .open-praries-gif {
        width: 70vw; /* Width for large screens */
        height: 60vh; /* Height for large screens */
        right: -300px; /* Position for large screens */
        top: 230px; /* Position for large screens */
    }
}

@media (min-width: 1600px) {
    #section1 .cta-logo {
        width: 220px; /* Larger width for expanded page */
    }
}

/* Arrow styles for Section 1 */
#section1 .arrow-container {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 1000;
}

#section1 .arrow {
    width: 30px;
    height: 30px;
    border: solid #333;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#section1 .arrow:hover {
    transform: rotate(45deg) scale(1.2);
}

#section1 .arrow.outline {
    animation: outline 1s infinite alternate;
}