@import url('https://fonts.googleapis.com/css2?family=Playwrite+IT+Moderna:wght@100..400&family=Playwrite+MX:wght@100..400&family=Playwrite+ZA:wght@100..400&display=swap');

.containerprograms {
    padding: 60px 0 0 0;
    min-height: 100vh;
    width: 100%;
}

.section {
    padding: 100px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cover {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 600px;
    background-color: #4CAF50;
    background-image: url('../Images/Home/cover.png');
    background-size: cover;
    background-position: center;
}

.cover img {
    display: none;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    background-color: rgba(54, 94, 50, 0.4);
}

.overlay-content-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.overlay-logo img {
    width: 200px;
    height: auto;
}

.overlay-text {
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.overlay-text h2 {
    font-size: 3rem;
    font-weight: bolder;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.overlay-text p {
    font-size: 2rem;
    margin: 0;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-family: "Playwrite IT Moderna", cursive;
}

.overlay-text a {
    padding: 10px 30px;
    background-color: #365e32;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.overlay-text a:hover {
    background-color: #379237;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.diagonal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 3;
}

.arrow-down-btn {
    position: absolute;
    bottom: 20px; /* Adjust bottom spacing as needed */
    right: 20px; /* Adjust right spacing as needed */
}

/* Common button styles */
.next-section-btn, .scroll-top-btn {
    background: rgba(76, 175, 80, 0.2); /* Faint green background */
    border: none;
    cursor: pointer;
    outline: none;
    font-size: 2rem;
    border-radius: 10px;
    width: 55px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(76, 175, 80, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    animation: bounce 1.5s ease-in-out infinite;
}

.next-section-btn i, .scroll-top-btn i {
    font-weight: 1000;
}

.next-section-btn:hover, .scroll-top-btn:hover {
    background-color: rgba(76, 175, 80, 0.4);
    transform: scale(1.2);
}

/* Shake animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .next-section-btn, .scroll-top-btn {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .next-section-btn {
        bottom: 15px; /* Adjust bottom spacing for smaller screens */
        right: 15px; /* Adjust right spacing for smaller screens */
    }

    .containerprograms h1 {
        margin-top: 10%;
        font-size: 1.8rem;
    }

    .overlay-content {
        padding: 10px;
    }

    .overlay-logo img {
        width: 150px;
    }

    .overlay-text h2 {
        font-size: 2rem;
    }

    .overlay-text p {
        font-size: 1.5rem;
        margin: 20px 10px; /* Add margin to the left and right */
    }

    .overlay-text a {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .subprograms {
        flex-direction: column;
        align-items: center;
    }

    .subprograms div {
        width: 90%;
        margin: 10px 0;
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .section {
        padding: 60px 0;
    }

    .containerprograms {
        padding: 30px 0;
    }

    .overlay-text {
        padding: 10px;
    }
}

.subprograms {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.subprograms div {
    text-align: center;
    margin: 15px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 300px;
}

.subprograms div:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.subprograms img {
    width: 100%;
    height: 130px;
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
}

.containerprograms p {
    font-size: 1.2rem;
    margin: 10px 100px; /* Add margin to the left and right */
    text-align: justify;
    text-indent: 30px;
}
