/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
    background: linear-gradient(135deg, #8834ae, #39ccb7);
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
}

/* Section Styling */
section {
    padding: 30px 15px;
    margin: 15px 0;
    text-align: center;
}

/* Card Container */
.card-container, .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between cards */
    padding: 0 15px; /* Inner padding for container */
    max-width: 100%; /* Prevent overflow */
    margin: 0 auto; /* Center the container */
}

/* Individual Cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure no overflow */
    word-wrap: break-word; /* Handle long text */
    overflow-wrap: break-word;
}

/* Button Styling */
button {
    margin: 15px auto;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, silver, #8834ae, #39ccb7);
    border: none;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: block;
    max-width: 100%; /* Prevent overflow */
    width: auto;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #39ccb7, #8834ae, silver);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-container, .box-container {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    button {
        width: 100%; /* Full-width buttons for mobile */
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px 10px;
    }

    button {
        font-size: 0.9rem;
    }

    .card {
        padding: 15px; /* Slightly smaller padding for small screens */
    }
}
