/* General styles for the events container */
.events {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 100px;
    max-width: 1200px;
    margin: 0 auto; /* Centers the container on the page */
}

/* Individual event boxes */
.box {
    width: 23%; /* Default for desktops: 4 boxes per row */
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Event image styles */
.box-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Event heading styles */
.box-heading {
    font-size: 1.4rem;
    margin: 15px 0 10px;
    color: #333;
    font-weight: 600;
}

.box-subheading {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color: #333;
    font-weight: 400;
}

/* Event description */
.box-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Register button */
.register-button {
    padding: 12px 25px;
    background-color: #842029;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.register-button:hover {
    background-color: #2f090c;
    transform: scale(1.05);
}

/* Full-width section styles */
.full-width-box {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Background image for the full-width box */
.image-container {
    background-image: url('https://westbyassociates.com/wp-content/uploads/bfi_thumb/shaking-hands-1-3c0qf3yyq5dbe4z760jef79rod0872cplqqbaynuuqnragumk.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 400px; /* Adjust the height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Overlay styles */
.overlay-content {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

/* Overlay heading and description */
.overlay-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Overlay buttons */
.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.button, .button1 {
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.button {
    background-color: #7c1a1a;
}

.button:hover {
    color: #780b0b;
    background-color: #ffffff;
}

.button1 {
    border: 2px solid #ffffff;
}

.button1:hover {
    color: #000000;
    background-color: #ffffff;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 1024px) {
    .box {
        width: 48%; /* Adjust to 2 items per row */
    }
    .image-container {
        height: 300px; /* Reduce the height for tablets */
    }
}

@media screen and (max-width: 768px) {
    .box {
        width: 100%; /* Adjust to 1 item per row */
        margin: 10px 0;
    }
    .box-heading {
        font-size: 1.2rem;
    }
    .box-subheading {
        font-size: 1rem;
    }
    .register-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .image-container {
        height: 250px; /* Adjust height for smaller screens */
    }
    .overlay-content h2 {
        font-size: 28px;
    }
    .overlay-content p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .box {
        width: 100%; /* Full-width boxes for small phones */
        margin: 10px 0;
    }
    .box-heading {
        font-size: 1rem;
    }
    .box-subheading {
        font-size: 0.9rem;
    }
    .register-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .overlay-content h2 {
        font-size: 22px;
    }
    .overlay-content p {
        font-size: 14px;
    }
    .button, .button1 {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .image-container {
        height: 200px; /* Reduce height further for small screens */
    }
}
