
    h1 {
        text-align: center;
        font-size: 2.2em;
        margin: 0;
        margin-bottom: 1vh;
    }

    h3{
        text-align: center;
        font-size: 1em;
        margin: 0;
    }

.h-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .waves-container {
    position: absolute;
    bottom: -1%;
    width: 100%;
    height: 35%; /* Adjust height as needed */
    overflow: hidden;
    z-index: 1; /* Place it behind the nav but in front of the background */
}

.wave {
    position: absolute;
    bottom: 0;
    left: -90%;
    width: 300%; /* Extend beyond the viewport for continuous movement */
    height: 90%;
    animation: wave-animation 30s infinite ease-in-out;
}

.wave1 {
    animation-duration: 13s;
    position: absolute;
    bottom: 0;
    left: -80%;
}

.wave2 {
    animation-duration: 12s;
}

.wave3 {
    animation-duration: 11s;
}

.wave4 {
    animation-duration: 10s;
}


@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10%); /* Move to the left */
    }
    100% {
        transform: translateX(0); /* Move back to the original position */
    }
}

footer p {
    color: white !important;
    z-index: 10;
    position: relative;
}

.webinars-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-gap: 3rem; /* spacing between items */
    margin: 4rem auto; /* add some margin around */
    width: 90%; /* adjust as needed */
    max-width: 1200px; /* optional max width for a neat layout */
    position: relative;
    z-index: 2; /* ensure it shows clearly above background elements */
    margin-top: 1rem !important;
}

/* Styles for the hyperlinks/images */
.webinars-container a {
    text-decoration: none; /* remove underline */
    display: block; /* make the link a block so entire box is clickable */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative; 
}

/* The images themselves */
.webinars-container img {
    width: 100%;
    height: auto; /* maintain aspect ratio */
    border-radius: 8px; 
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
    display: block; /* ensure no inline spacing issues */
    transition: transform 0.3s ease;
}

/* Subtle floating illusion: use a keyframe animation */
@keyframes subtleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Apply the floating animation to each image container */
.webinars-container a {
    animation: subtleFloat 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


/* Staggering with nth-child - this is just an example pattern */
/* Every 1st item in a row (4n+1) starts immediately */
.webinars-container a:nth-child(4n+1) {
    animation-delay: 0s;
}

/* Every 2nd item in a row (4n+2) starts after 0.5s */
.webinars-container a:nth-child(4n+2) {
    animation-delay: 1.5s;
}

/* Every 3rd item in a row (4n+3) starts after 1s */
.webinars-container a:nth-child(4n+3) {
    animation-delay: 1s;
}

/* Every 4th item in a row (4n) starts after 1.5s */
.webinars-container a:nth-child(4n) {
    animation-delay: 0.5s;
}

/* On hover, we can add a "wiggle" effect. Let's define a wiggle keyframe: */
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-3deg); }
    30% { transform: rotate(3deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* On hover, temporarily override the subtle float with a wiggle animation */
.webinars-container a:hover {
    animation: wiggle 0.5s ease-in-out;
    transform: translateY(0px); /* reset any offset so wiggle starts from neutral position */
    scale: 1.15;
}

.webinars-container img {
    padding: 0.2em;
    max-height: 12vh;
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.5s ease;
    transform: translateY(10px); /* optional slight slide */
}

.webinars-container.loaded img {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure the link and the chat bubble are positioned properly */
.protection-plus-link {
    position: relative; /* or position parent container if needed */
}

/* Chat bubble styling */
.chat-bubble {

    transform: translateY(-20px);
    /* background: rgb(129, 178, 243, 0.2); */
    background: #f4f4f4;
    color: #333;
    padding: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.1);
    max-width: 50vw;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3;
    opacity: 0; /* Hidden by default */
    z-index: 999; /* Ensure it appears on top of other elements */
    border: #ddd 0.5px solid;
    /* Animation: fade in after 5s delay, then stay visible */
    animation: showBubble 1s ease forwards 4s;
}


/* Keyframe to fade in the bubble */
@keyframes showBubble {
    to { opacity: 1; }
}

#bg-fadedplus{
    opacity: 3% !important;
    scale: 0.3;
    bottom: unset;
}


/* Responsive adjustments (optional) */
@media (max-height: 800px) {
    .chat-bubble{
        font-size: 0.75em;
        /* position: absolute;
        top: 14%; */
        padding: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-height: 615px) {
    .chat-bubble{
        display: none;
    }

}

@media (max-width: 1000px) {

h1{
    font-size: 1.5em;
}

h3 {
    font-size: 0.85em;
}
}

@media (max-width: 700px) {
    .webinars-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .waves-container {
    bottom: -5%;
}

h1 {
    font-size: 1.25em;
}

h3 {
    font-size: 0.7em;
    max-width: 65%;
    text-align: center;
}

.chat-bubble{
        font-size: 0.75em;
        /* position: absolute;
        top: 13%; */
        padding: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

}

@media (max-height: 600px) {
    .chat-bubble{
        font-size: 0.75em;
        /* position: absolute;
        top: 13%; */
        padding: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 600px) {
    .webinars-container {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2rem; /* spacing between items */
          margin: 2rem auto; /* add some margin around */

    }

    h1 {
        font-size: 1em;
    }

    h3 {
    font-size: 0.5em;
}


    .waves-container {
    bottom: -8%;
}

    footer p {
        text-shadow: #000000 1px 1px 2px;
        font-size: 0.8em;
    }

    .chat-bubble{
        display: none;

    }
}
