/* Resetting basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body style */
body {
    font-family: Arial, sans-serif;
    background-color: #31511E; /* Warna latar belakang hijau */
    color: #333; /* Warna teks gelap untuk kontras */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container to center content */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Mengisi seluruh tinggi layar */
    padding: 20px; /* Padding for mobile screens */
}

/* Content styling */
.content {
    display: flex;
    flex-wrap: wrap; /* Allow for wrapping on smaller screens */
    max-width: 1200px;
    width: 100%;
    background-color: 508D4E;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    gap: 20px; /* Gap between text and image */
}

/* Text section styling */
.text {
    flex: 1;
    padding: 20px;
}

/* Heading and paragraph styles */
.text h2 {
    font-size: 22px;
    color: #31511E;
    margin-bottom: 10px;
}

.text p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Image section styling */
.image {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack the image and button vertically */
}

/* Styling the image */
.image img {
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin-bottom: 20px; /* Add space between image and button */
}

/* Hover effect on image */
.image img:hover {
    transform: scale(1.05);
}

/* Button styling */
button {
    background-color: #31511E;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Button hover effect */
button:hover {
    background-color: #1e3d0d;
    transform: scale(1.05);
}

/* Footer styling */
footer {
    background-color: white;
    color: #31511E;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    border-top: 1px solid #ddd;
}

footer a {
    color: #31511E;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #1e3d0d;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    /* Stack the content vertically on smaller screens */
    .content {
        flex-direction: column;
        padding: 20px; /* Adjust padding for mobile */
    }

    .text h2 {
        font-size: 20px;
    }

    .text p {
        font-size: 14px;
    }

    button {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Adjust the image size for smaller screens */
    .image img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .text h2 {
        font-size: 18px;
    }

    .text p {
        font-size: 13px;
    }

    button {
        padding: 8px 20px;
        font-size: 12px;
    }
}
