:root {
    --color-primary-white: rgb(240, 240, 240);
    --color-background-dark-green: #024e02; /* Dark green */
    --color-background-gradient: linear-gradient(to top, rgba(2, 78, 2, 1) 6%, rgba(69, 125, 69, 1) 42%, rgba(114, 156, 114, 1) 62%, rgba(175, 199, 175, 1) 85%, rgba(255, 255, 255, 0) 100%);
}

.card-event {
    width: 24rem;
    height: 36rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    color: var(--color-primary-white);
    box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
}

.card-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background-gradient);
    clip-path: inset(100% 0 0 0); /* Start clipped */
    transition: clip-path 0.5s ease; /* Smooth transition for the clip-path */
    z-index: 1; /* Ensure it is behind the content */
}

.card-event img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.9;
    transition: opacity .2s ease-out;
    z-index: 2; /* Ensure image is above the background */
}

.card-event h2 {
    position: absolute;
    padding-left: 30px;
    inset: auto auto 30px 0;
    margin: 0;
    transition: inset .3s .3s ease-out;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    width: 100%;
    z-index: 2; /* Ensure heading is above the background */
    color: var(--color-primary-white); /* Set text color to your desired color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Adjust shadow for better readability */
    
}

.card-event p, 
.card-event a {
    position: absolute;
    opacity: 0;
    max-width: 80%;
    transition: opacity .3s ease-out;
    z-index: 2; /* Ensure text is above the background */
}

.card-event p {
    inset: auto auto 70px 30px;
}

.card-event a {
    inset: auto auto 40px 30px;
    color: inherit;
    text-decoration: none;
    
}

.card-event:hover::before {
    animation: wipe-in-up .5s cubic-bezier(.25, 1, .30, 1) forwards; /* Trigger animation on hover */
}

.card-event:hover h2 {
    inset: auto auto 150px 0; /* Adjust to position it closer to the bottom */
    transition: inset .2s ease-out;
    color: var(--color-primary-white);
}

.card-content-event {
    position: relative; /* Ensure positioning is based on the card content */
    padding: 30px; /* Add padding to create space */
    height: 100%; /* Ensure it takes full height */
}


.card-event:hover p, 
.card-event:hover a {
    opacity: 1;
    transition: opacity .1s ease-in;
    color: var(--color-primary-white);
}

.card-event a:hover {
    background-color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 5px;
    color: var(--color-background-dark-green);
    box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.card-event:hover img {
    transition: opacity .2s ease-in;
    opacity: .5;
}

.material-symbols-outlined {
    vertical-align: middle;
}

@keyframes wipe-in-up {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.calendar-box {
    position: absolute;
    top: 10px; /* Position at the bottom */
    left: 10px; /* Align with card padding */
    text-align: center;
    border-radius: 3px;
    background: #024e02;
    box-shadow: 0 30px 30px -25px rgba(1, 85, 29, 0.205);
    z-index: 2;
}

.calendar-month, .calendar-day, .calendar-year {
    display: block;
}

.calendar-month {
    font-size: .85rem;
    font-weight: bold;
    color: #f8faf8; /* Dark green */
    width: 100%;
    padding: 5px 15px;
}

.calendar-day {
    font-size: 2.5rem; /* Larger font size for day */
    font-weight: bold;
    color: #024e02; /* Dark green */
    background-color: #f8faf8;
}

.calendar-year {
    font-size: .75rem;
    color: #f3f5f3; /* Dark green */
    padding: 5px'
}

.event-container {
    display: flex;
    justify-content: center; /* Center the entire container */
    gap: 2em; /* Space between event cards */
    width: 100%; /* Full width */
    align-items: center;
}

.event-image {
    flex: 0 0 40%; /* Set to a specific size for the image */
}

.event-image img {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove bottom space from images */
    border-radius: 10px; /* Optional rounded corners for images */
}

.event-header {
    flex: 1; /* Allow header to grow */
}

.event-title {
    color: #024e02; /* Title color */
}

.event-title h1 {
    text-shadow: 2px 2px 4px rgba(71, 70, 70, 0.7); /* Improved readability */
    margin: 0; /* Remove default margin */
}

.event-calendar-box {
    text-align: center; /* Center text in calendar box */
    border-radius: 10px; /* Rounded corners */
    background: linear-gradient(145deg, #1a4d1a, #0d3b0d); /* Gradient background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Shadow for depth */
    display: flex; 
    flex-direction: row; /* Horizontal layout */
    justify-content: space-around; /* Evenly space items */
    align-items: center; /* Center items vertically */
    width: 70%; /* Full width */
    margin-bottom: 1em; /* Space below each card */
    height: 3em;
    overflow: hidden;
}

.event-calendar-month,
.event-calendar-day,
.event-calendar-year {
    flex: 1; /* Equal width for each column */
}

.event-calendar-month {
    font-size: 1rem; /* Font size for month */
    font-weight: bold; /* Bold for emphasis */
    color: #e0e0e0; /* Light color for month */
    text-transform: uppercase; /* Uppercase for style */
    letter-spacing: 1px; /* Spacing for readability */
}

.event-calendar-day {
    font-size: 2.75rem; /* Larger font size for day */
    font-weight: bold; /* Bold for emphasis */
    color: #ffffff; /* White for contrast */
    background-color: rgba(255, 255, 255, 0.3); /* Translucent background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.event-calendar-day:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Hover effect */
}

.event-calendar-year {
    font-size: .85rem; /* Font size for year */
    color: #b0b0b0; /* Light gray for year */
    letter-spacing: 0.5px; /* Spacing for readability */
}
