body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1c4044;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.text-box {
    width: 100%;
}

.text-box h1 {
    margin-top: 0;
}

.floating-text {
    display: inline-block;
    background-color: #2a6066;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 180px;
}

.buttons a, .dropdown > a {
    text-decoration: none;
    color: #fff;
    background-color: #1c4044;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
    display: block;
    box-sizing: border-box;
    white-space: nowrap;
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1c4044;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.buttons a:hover, .dropdown > a:hover, .dropdown-content a:hover {
    background-color: #2a6066;
}

.image img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 30px;
    }

    .text-box {
        max-width: 50%;
        margin-right: 30px;
    }

    .image {
        max-width: 45%;
        margin-top: 0;
    }

    .buttons {
        flex-direction: row;
        justify-content: center; /* Center buttons horizontally */
        align-items: center;
        gap: 15px;
        width: auto; /* Allow the container to adjust width based on content */
        max-width: 400px; /* Set a max-width to limit button size on desktop */
    }

    .buttons a, .dropdown > a {
        width: auto; /* Allow buttons to adjust to the content width */
        max-width: 180px; /* Apply a consistent width limit to both buttons */
        flex-grow: 1; /* Allow buttons to grow equally */
        display: block;
    }

    .dropdown-content {
        min-width: 150px;
        width: 100%;
    }
}
