/*
Theme Name: Hallo-Elementor Child
Theme URI: https://summivox.com/
Description: Child theme for the Hello Elementor theme, customized for Multisite Conference Listing.
Author: Your Name
Author URI: https://summivox.com/
Template: hello-elementor
Version: 1.0.1
*/

/* Import the parent theme's stylesheet */
@import url("../hello-elementor/style.css");

/* -------------------------------------------
   Custom Styles for Multisite Conference List
   ------------------------------------------- */

/* Main container styling (Dark background - #133c67) */
.upcoming-conferences-wrapper {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #133c67;
}

/* Individual conference item container */
.conference-item {
    display: flex;
    align-items: center; 
    background-color: #1a1e29;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    position: relative;
}

/* --- FIXED IMAGE DIMENSIONS (350px Width x 250px Height) --- */
.conference-image {
    flex-basis: 350px;  /* Base width for flexbox */
    width: 350px;       /* Fixed Width */
    min-width: 350px;   /* Prevent shrinking below 350px */
    height: 250px;      /* Fixed Height */
    background-color: #333; 
    border-radius: 8px;
    overflow: hidden;
    margin-right: 30px;
    position: relative; 
    flex-shrink: 0;     /* Do not let the image container shrink */
}

/* Ensure the image fills the container 100% */
.conference-image img {
    width: 100%;
    height: 100%;       /* CHANGED: Must be 100% to fill the 250px height */
    object-fit: cover;  /* Crops the image nicely to fit 350x250 */
    display: block;
}

.conference-image .placeholder-text {
    padding: 10px;
    font-size: 12px;
    color: #f0f0f0;
    background-color: #555;
    text-align: center;
}
/* -------------------------------------- */


/* Conference Details */
.conference-details {
    flex-grow: 1; 
}

.conference-details h2 {
    margin: 5px 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.conference-details h2 a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s;
}

.conference-details h2 a:hover {
    color: #61ce70;
}

.conference-meta {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.date-time-divider {
    margin: 0 10px;
}

.conference-description {
    color: #ccc;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.conference-author {
    font-style: italic;
    font-size: 13px;
    color: #999;
}


/* Action Buttons Column */
.conference-actions {
    position: absolute;
    top: 25px;
    right: 25px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.button {
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: 0;
    width: 120px;
    text-transform: uppercase;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.visit-site-button {
    background-color: transparent;
    color: #f0f0f0;
    border: 2px solid #f0f0f0;
}

.visit-site-button:hover {
    background-color: #f0f0f0;
    color: #1a1e29;
    border-color: #f0f0f0;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .conference-item {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 75px; 
    }
    
    /* On mobile, allow width to be responsive, but keep height consistent */
    .conference-image {
        width: 100%; 
        min-width: 100%;
        flex-basis: auto;
        height: 250px; 
        max-width: none; 
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .conference-details {
        width: 100%;
    }
    
    .conference-actions {
        position: absolute;
        top: auto;
        bottom: 20px;
        right: 25px;
    }

    .button {
        width: 120px;
    }
}


/* -------------------------------------------
   Speakers List Design 
   ------------------------------------------- */

.speakers-list-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.speaker-item {
    position: relative;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.speaker-link {
    text-decoration: none;
    display: block;
}

.speaker-image-container {
    position: relative;
    padding-bottom: 120%;
    height: 0;
    overflow: hidden;
}

.speaker-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.8); 
    transition: filter 0.3s ease;
}

.speaker-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to bottom,
        rgba(138, 43, 226, 0.0) 0%, 
        rgba(138, 43, 226, 0.9) 30%, 
        rgba(138, 43, 226, 1.0) 100% 
    );
    height: 45%; 
    padding: 15px 15px 10px 15px;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    pointer-events: none; 
    z-index: 10;
}

.speaker-info-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.speaker-title-job {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.speaker-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    color: white;
}
.speaker-social-icons i {
    font-size: 16px;
}

.speaker-item:hover .speaker-image-container img {
    filter: brightness(1.0);
}
.speaker-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .speakers-list-wrapper {
        grid-template-columns: 1fr;
    }
}