/* Event List Container */
.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Individual Event Card */
.event {
    position: relative;
    background: #fff;
    border-radius: 14px;
    height: 600px;
    flex: 1 1 calc(20% - 20px);
    border: solid 2px #e6e5e5;
    display: flex;
    flex-direction: column;
    padding: 15px;
    color: #0032a0;
    transition: background 0.3s ease-in-out;
    overflow: hidden;
    z-index: 0; /* ensures base background is below overlay */
    
  }
  
  .event::before {
    content: '';
    position: absolute;
    inset: 0; /* shorthand for top/left/right/bottom: 0 */
    background-color: rgba(0, 0, 255, 0.5); /* Blue overlay */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1; /* sits above background but below text */
  }
  
  .event:hover::before {
    opacity: 1;
  }
  
  .event * {
    position: relative;
    z-index: 2; /* keep text/content above overlay */
  }


/* Media Queries for responsiveness */

/* Large screens (desktops, wider viewports) */
@media (min-width: 1200px) {
    .event {
        flex: 1 1 calc(25% - 20px);
    
    }
}

/* Medium screens (tablets, smaller desktops) */
@media (max-width: 1199px) and (min-width: 768px) {
    .event {
        flex: 1 1 calc(33.333% - 20px); /* 3 items per row */
    }
}

/* Small screens (mobile phones) */
@media (max-width: 767px) {
    .event {
        flex: 1 1 calc(50% - 20px); /* 2 items per row */
    }
}

/* Extra small screens (narrow mobile devices) */
@media (max-width: 480px) {
    .event {
        flex: 1 1 100%; /* 1 item per row */
    }
}



/* Event Content */
.event-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    font-family: "Helvetica Neue", Helvetica, Arial;
}

/* Date Container */
.event-date {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial;
    
}

.event-day {
    font-size: 5.9rem;
    font-weight: bold;
    line-height: 1;
    
}

.event-month-year {
    font-size: 1.5rem;
}

/* Meeting Name */
.meeting-name {
    color:#222 !important;
    font-size: 20px;
    margin: 10px 0;
}
.event-content:hover .meeting-name {
    color:#fff !important;
}
/* Blurb - Initially Hidden */
.blurb {
    display: none;
    font-size: 1.1rem;
    margin-top: 10px;
    color: #fff;
}

/* Speakers */
.speakers {
    padding-top:10px;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

}

.event-content:hover .speakers {
    
}

/* Event Signup - Initially Hidden */
.event-signup {
    display: none;
    margin-top: 15px;
}

.event-location {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

/* Event Button */
.event-button {
    display: inline-block;
    width: 90%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border-radius: 24px !important;
    border: solid 1px #fff;
    transition: background-color 0.3s ease;
    font-size:1.5rem;
}

.event-button:hover {
    background-color: #fff;
    color: #0032a0;
}

/* Thumbnail Image */
.thumbnail {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Hover Effects */
.event:hover {
    background-size: cover;
    background-position: center center;
    color: #fff;
}

.event:hover .blurb,
.event:hover .event-signup {
    display: block; /* Show blurb and signup on hover */
}

/* Image visibility on hover */
.event:hover .thumbnail {
    display: none; /* Hide the image on hover */
}

.event:hover {
    background-size: 300%; /* Scale background image */
    background-position: center center;
    color: #fff;
    background-image: url(''); /* Default background */
}

/* Add color overlay using ::after on hover */
.event:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 50, 160, 0.3); /* Blue overlay with opacity */
    z-index: 1; /* Ensure the overlay is above the background */
    pointer-events: none; /* Allow interactions with content */
    transition: background-color 0.3s ease;
}
.pagination {
    text-align: center;
    margin-top: 10px;
}

.pagination-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0032a0;
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.pagination-button:hover {
    background-color: #0032a0;
    color:#ddd;
}

.pagination-button.active {
    background-color: #0032a0;
    color:#fff;
    pointer-events: none; /* Disable clicking on active page */
}

#event_head {
    display: flex;
    margin-bottom: 20px;
}

#event_head .left-column {
    width: 40%;
    background-size: cover;
    background-position: center;
    height: 300px; /* Adjust as needed */
}

#event_head .right-column {
    width: 60%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
h1#event-name {
    font-size:2.9rem;
    color:#0032a0;
}
#event-date{
    font-size:1.9rem;
    color:#555;
}

.event_detail_info {
    display: flex;
    margin-left: 10%;
    margin-right: 10%;
}

.event_detail_info .left-column {
    width: 40%;
    padding: 20px;
}

.event_detail_info .right-column {
    width: 60%;
    padding: 20px;
}
.right-colum .blurb{
    font-size:1.4em;

}

.past-event {
    color: red;
}

.future-event {
    color: green;
}

#eventcontact > span {
    font-size: 1.9rem;
}
#contact-location{
     display:inline-block;
    width:100%;
    padding-top:10px;
    padding-bottom:10px;
    /*! border-bottom: solid 1px #bbbcbc; */
    border-top: solid 1px #bbbcbc;
}
#event-present{
    font-size: 2.4rem;
    font-weight: 400;
    display:inline-block;
    text-decoration: none;
    width:100%;
    padding-top:10px;
    padding-bottom:10px;
 
    border-top: solid 1px #bbbcbc;
}
#contact-name{
    display: block;
    padding-top:10px;
    padding-bottom:10px;
}
#event-email{
    display:inline-block;
    width:100%;
    padding-top:10px;
    padding-bottom:10px;
   
    border-top: solid 1px #bbbcbc;
}
#event-email > a {
    text-decoration: none;
    color:#0032a0;
  
}

#event-date-time{
    display:inline-block;
    width:100%;
    padding-top:10px;
    padding-bottom:10px;
    border-bottom: solid 1px #bbbcbc;
    border-top: solid 1px #bbbcbc;
}

.left-column .event_date{
    font-size:2.2em !important;
    font-weight:400;
}
.event-blurb{
    font-weight: 400;
    font-size: 1.9rem;
}
.event-hr{
    border:solid 1px;
    background:#0032a0;
}
.event-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0032a0;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.event-button:hover {
    color:#fff;
    background-color: #0056b3;
}
.event {
    position: relative !important; /* Override Isotope's absolute positioning */
}

/* Tablet view (768px and below) */
@media (max-width: 768px) {
    #event_head {
        flex-direction: column;
    }

    #event_head .left-column,
    #event_head .right-column {
        width: 100%;
        padding-top:10px;
        padding-bottom: 10px;
        height: auto; /* Allow the height to adjust based on content */
    }

    #event_head .left-column {
        height: 200px; /* Adjust height for tablet */
    }

    .event_detail_info {
        flex-direction: column;
    }

    .event_detail_info .left-column,
    .event_detail_info .right-column {
        width: 100%;
        padding: 10px;
    }
}

/* Mobile view (480px and below) */
@media (max-width: 480px) {
    h1#event-name {
    font-size:1.8em;
    color:#0032a0;
}
    #event_head {
        flex-direction: column;
        margin-bottom: 15px;
    }

    #event_head .left-column {
        height: 150px; /* Adjust height for mobile */
    }

    #event_head .right-column {
        padding: 0px;
        text-align: center;
    }

    .event_detail_info {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .event_detail_info .left-column,
    .event_detail_info .right-column {
        width: 100%;
        padding: 0px;
        margin: 0px;
        text-align: center;
    }

    .event_detail_info .left-column {
        margin-bottom: 15px;
    }

    .event_button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.filter-dropdown {
    margin-bottom: 20px;
    width:300px;
    margin-left:10px;
}

#filter {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #0032a0;
    background-color: #fff;
    cursor: pointer;
    width:220px;
}

#filter-label{
    color: #0032a0;
    font-size: 16px;
    font-weight:800;
    display:inline-block;
    margin-left:10px;
    margin-right:10px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 10%;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* New icon-based nav */
.stream-card-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto; /* push nav to right */
  flex-direction: row-reverse;
}

.stream-card-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.stream-card-nav img {
  filter: invert(.8);
  height: 40px;
  width: 40px;
  transition: filter .3s ease;
}

.stream-card-nav img:hover {
  filter: invert(.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 320px;
    position: relative;
    border-radius: 4px;
}
.modal-content h2{
    font-size: 2.1rem;
    color:#0032a0;
}
.modal-content p{
    font-size:1.8rem;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.submit-button {
    background-color: #0032a0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}
