/* Main Container */

/* Add these to your existing CSS */

.event-archive-toggle {
    text-align: right;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.btn-archive {
    display: inline-block;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: #ffffff;
    background-color: #004062;
    padding: 8px 35px 8px 35px;
    border-style: none;
    border-radius: 2px 2px 2px 2px;
}

.btn-archive:hover {
    background: #772432;
color: #ffffff;
}
a.btn-read-more-event-title {
    text-decoration: none !important;
}
a.btn-read-more-event-title:hover h3{
    text-decoration: none !important;
    color:#772432 !important;
}

p{font-weight: 400 !important;}
.event-location a {
    color: inherit;
   text-decoration: none !important;
    transition: color 0.2s ease;
}

.event-location a:hover {
    color: #3f51b5;
    text-decoration: none !important;
}

#location-fields {
    margin-bottom: 15px;
    border-left: 3px solid #eee;
    padding-left: 12px;
}

/* Make the location URL field full width */
#location-fields .components-base-control {
    width: 100%;
}


.event-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Event Card */
.event-card {
  
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: white;
    border:1px solid #a5b7ba59;
    border-top: 1px solid #eee;
}

.event-card-header {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    cursor: pointer;
}

.event-image {
     flex: 0 0 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 5px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 50px;
}

.event-content {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
    position: relative;
}

.event-type-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.event-type-badge.inperson {   color: #7e8487;
    background: #E3E4E8;
    border: 1px solid #E3E4E8;
    
    font-family: "Lato", Sans-serif;
}
.event-type-badge.online {   color: #7e8487;
    background: #E3E4E8;
    border: 1px solid #E3E4E8;
    font-family: "Lato", Sans-serif;
}
.event-type-badge.hybrid {  color: #7e8487;
    background: #E3E4E8;
    border: 1px solid #E3E4E8;
    font-family: "Lato", Sans-serif;
}

.event-content h3 {
margin: 0 0 15px 0;
    font-size: 24px;
    color: #222;
    font-family: "Lato", Sans-serif;
    font-weight: 500;
    width: 90%;
}

.event-meta {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.event-meta span {
    color: #666;
    font-size: 14px;
}

.event-meta i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

/* Buttons */
.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.btn-register, .btn-read-more, .btn-toggle-details {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-register {
    background: #3f51b5;
    color: white;
}

.btn-register:hover {
    background: #303f9f;
}

.btn-read-more {
    color: #7e8487;
    transition-duration: 0.1s !important;
    padding: 8px 12px;
    height: 42px;
    width: 42px;
    border-style: none;
    border-radius: 2px 2px 2px 2px;
    text-decoration: none !important;
    transition: background 0.3s ease;
    border: 1px solid #E3E4E8;
    border-radius: 50px;
}

.btn-read-more:hover {
    color: #7e8487;
    background: #E3E4E8;
border: 1px solid #E3E4E8;
}
.btn-read-more:focus {
    color: #ffffff  !important;
    background: #004062 !important;
}
.btn-toggle-details {
    color: #7e8487;
    transition-duration: 0.1s !important;
    padding: 8px 12px;
    height: 42px;
    width: 42px;
    border-style: none;
    border-radius: 2px 2px 2px 2px;
    text-decoration: none !important;
    transition: background 0.3s ease;
    border: 1px solid #E3E4E8;
    border-radius: 50px;
    margin-left: auto;
}
.btn-toggle-details:hover{
background-color: #722833 !important;
}


.btn-toggle-details [type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
   background-color: #722833 !important;
}



/* Event Details */
.event-card-details {
    padding:30px 30px;
background: #FFFFFF;
    border-top: 1px solid #eee;
    display: none;
}

.event-description {
    padding: 20px 0;
}

.btn-download-agenda {
      color: #004062;
    background-color: #00406200;
    transition-duration: 0.1s !important;
    padding: 12px 20px 12px 20px;
    border-style: none;
    border-radius: 2px 2px 2px 2px;
    text-decoration: none !important;
    transition: background 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid #e3e4e8;
    border-radius: 80px;
}

.btn-download-agenda:hover {
     color: #004062;
    background: #e3e4e8;
}

.btn-download-agenda i{padding-right:8px;}







/* Single Event Styles */
.event-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.event-header {
    margin-bottom: 40px;
    text-align: center;
}

.event-title {
    margin: 20px 0;
    font-size: 2.5rem;
    color: #333;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 0px;
    margin-bottom: 20px;
    color: #666;
}

.event-meta span {
     display: flex;
     
    align-items: center;
    gap: 5px;
    padding: 4px 10px;

    font-family: "Lato", Sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}
.event-meta span a{text-decoration:none  !important; color: #666 !important;}
.event-meta span a:hover{text-decoration:none  !important; color: #722833 !important;}
.event-featured-image {
    margin: 0 auto 30px;
    max-width: 800px;
}

.event-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-description {


    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.5em;
    letter-spacing: 0px;
    word-spacing: 0em;
    color: #324A6D;
}

.event-registration {
    text-align: center;
    margin-top: 40px;
}

.btn-register {
   color: #7e8487;
    background-color: #ffffff;
    transition-duration: 0.1s !important;
    padding: 8px 35px 8px 35px;
    border-style: none;
    
    text-decoration:none !important;
    transition: background 0.3s ease;
    border:1px solid #E3E4E8;
    border-radius:150px;
}

.btn-register:hover {
  color: #7e8487;
    background: #E3E4E8;
    border: 1px solid #E3E4E8;
}

/* Responsive */
@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
    }
}





.event-share-buttons {

    display: flex;
    align-items: center;
    gap: 10px;
}

.event-share-buttons span {
    font-size: 14px;
    color: #666;
}

.share-btn {
    color: #25D366;
    transition-duration: 0.1s !important;
    padding: 8px 12px;
    height: 42px;
    width: 42px;
    border-style: none;
    border-radius: 2px 2px 2px 2px;
    text-decoration: none !important;
    transition: background 0.3s ease;
    border: 1px solid #E3E4E8;
    border-radius: 50px;
}

.share-btn:hover {
       color: #7e8487;
    background: #E3E4E8;
border: 1px solid #E3E4E8;
}




/* Responsive */
@media (max-width: 768px) {
    .event-card-header {
        flex-direction: column;
    }
    
    .event-image {
        flex: 0 0 auto;
        height: auto;
        /*max-height: 200px;*/
        margin-bottom: 15px;
    }
    
    .event-content {
        padding: 0;
    }
    
    .event-actions {
        justify-content: flex-start;
    }
    
    .btn-toggle-details {
        margin-left: 0;
    }
}