/*
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.0
*/

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

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

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

/* Individual conference item container */
.conference-item {
    display: flex; /* Use flexbox for horizontal layout */
    align-items: center;
    background-color: #1a1e29; /* Slightly lighter dark background for the item */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #f0f0f0; /* Light text color */
}

/* Conference Image Styling */
.conference-image {
    flex-basis: 200px; /* Fixed width for the image container */
    height: 140px;
    background-color: #333; /* Placeholder color/background if image fails to load */
    border-radius: 8px;
    overflow: hidden;
    margin-right: 30px;
    position: relative; 
}

/* IMPORTANT IMAGE STYLES: Ensures the image fills the container */
.conference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    display: block;
}
.conference-image .placeholder-text {
    padding: 10px;
    font-size: 12px;
    color: #f0f0f0;
    background-color: #555;
    text-align: center;
}
/* -------------------------------------- */


/* Conference Details (Title, Description, Author) */
.conference-details {
    flex-grow: 1; /* Takes up available space */
}

.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; /* Hover color for green highlight */
}

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

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

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

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


/* Action Buttons Column */
.conference-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 20px;
    flex-shrink: 0;
}

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

.speakers-button {
    background-color: #61ce70; /* Green color for SPEAKERS */
    color: #0b0f15;
    border: 2px solid #61ce70;
}

.speakers-button:hover {
    background-color: #50b060;
}

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

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

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .conference-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .conference-image {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .conference-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        margin-left: 0;
        margin-top: 20px;
    }
    .button {
        width: 45%;
    }
}

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

/* General Container for the Grid */
.speakers-list-wrapper {
    display: grid;
    /* Create 3 columns, adapting to screen size */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Individual Speaker Card Container */
.speaker-item {
    position: relative;
    overflow: hidden; 
    border-radius: 8px; /* Rounded corners for the whole card */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Link Wrapper */
.speaker-link {
    text-decoration: none;
    display: block;
}

/* Image Styling and Overlay Setup */
.speaker-image-container {
    position: relative;
    /* Ensure the container has a height or aspect ratio */
    padding-bottom: 120%; /* Example for a slightly tall rectangular image */
    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;
}

/* The Purple Bottom Overlay */
.speaker-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Purple Gradient from the image provided */
    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;
}

/* Text Styling */
.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;
}

/* Social Icons (Styling font-awesome or custom icons) */
.speaker-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    color: white;
}
.speaker-social-icons i {
    font-size: 16px;
}


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

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .speakers-list-wrapper {
        grid-template-columns: 1fr;
    }
}