* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.event-page {
    position: relative;
    width: 100%;
    height: 65vh;
    display: -webkit-box; /* Old flex syntax */
    display: -webkit-flex; /* Old flex syntax */
    display: flex; /* Modern syntax */
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Ensure the background image covers the area responsively */
.event-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure the video doesn't overflow */
}

.event-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Modern browsers */
    -o-object-fit: cover; /* Opera */
    z-index: -1;
    filter: brightness(0.7);
}
/* events card */

/* Base styles for headers */
h1 {
    font-weight: 400;
    text-align: center;
    font-family: sans-serif;
    color: #555;
}

/* Event listing container */
.listevents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-container {
    margin: 10px;
    display: grid;
    grid-template-areas: 'photo info';
    grid-template-columns: 150px 1fr;
    width: 65%;
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    line-height: 1.75em;
    border-radius: 8px;
    overflow: hidden; /* Prevent overflow issues */
}

.photo-container {
    font-size: 1.5em;
    background-color: #2e4124;
    color: white;
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Safari-friendly alternative to 'flex: 0 0 auto' */
    flex-grow: 0;
}

@supports (-webkit-appearance: none) {
    .photo-container {
        /* Specific tweaks for Safari */
        flex-shrink: 0;
        height: auto; /* Try setting a fixed or auto height for Safari */
    }
}


/* Info container styles */
.info-container {
    padding: 20px;
    justify-content: space-between;
    background-color: #f9f9f9;
}

/* Date styling */
.nepalidate {
    font-size: 1.2rem;
    color: rgb(235, 245, 222);
}

/* Event name styling */
.event-name {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0;
    color: #2e4124;
    text-transform: capitalize;
}

/* Event location with icon */
.event-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.event-location::before {
    content: '\f041'; /* Font Awesome map-marker icon */
    font-family: 'FontAwesome';
    margin-right: 5px;
    color: #2e4124;
}

/* Event description styling */
.event-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Event contact link styling */
.contact-link {
    display: inline-block;
    padding: 10px;
    background-color: #3c552e;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: #587c49;
}

/* FontAwesome icon setup */
.contact-link i {
    margin-right: 5px;
}

/* Dividers between sections for better spacing */
.event-location, .event-description, .event-contact {
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.event-contact {
    border-bottom: none;
}

/* Responsive styles */
@media (max-width: 800px) {
    .card-container {
        width: 90%; /* Full width on smaller screens */
    }

    .event-name {
        font-size: 1.4rem; /* Slightly smaller font size for event names */
    }

    .event-description {
        font-size: 0.9rem; /* Smaller description */
    }

    .contact-link {
        text-align: center; /* Center text in buttons */
    }

    .photo-container {
        font-size: 1.2em; /* Adjust font size for smaller screens */
    }
}

/* Extra responsive adjustments for very small screens */
@media (max-width: 400px) {
    .card-container{
        grid-template-columns: 80px 1fr;
    }

    .event-name {
        font-size: 1.2rem; /* Further reduce event name size */
    }

    .nepalidate {
        font-size: 1rem; /* Reduce date size */
    }

    .event-location,
    .event-description {
        font-size: 0.8rem; /* Reduce font sizes for very small screens */
    }
}



  .no-events {
    text-align: center;
    padding: 50px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #555;
}

.no-events i {
    font-size: 4rem;
    color: #1c581c;
    margin-bottom: 12px;
}

.no-events p {
    font-size: 1.1rem;
    color: #777;
}


.event-form {
    position: relative;
    max-width: 600px;
    margin: 10%;
    background: white;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5a5245;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="file"] {
    padding: 10px;
    font-size: 16px;
}

button {
    background-color: #DA7B29;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d88a00;
}

@media (max-width: 600px) {
    .blog-form {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}