/*
Theme Name: Scionex Summits Child
Theme URI: https://scionexsummits.com/
Description: Child theme for Scionex Summits Multisite, extending Hello Elementor.
Author: Your Name
Author URI: https://scionexsummits.com/
Template: hello-elementor
Version: 1.0.2
*/

/* =========================================================================
   Global/Shared Styles
   ========================================================================= */
body {
    font-family: Arial, sans-serif;
    color: #333;
}
.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #cc0033; /* Accent color under the title */
    padding-bottom: 5px;
}

/* =========================================================================
   5. ALL SPEAKERS GRID SHORTCODE STYLES: [scionex_all_speakers]
   ========================================================================= */

.scionex-all-speakers-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.scionex-all-speakers-grid {
    display: grid;
    /* Default: 5 profiles in a row */
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 20px;
}

.speaker-profile-card {
    text-align: center;
}

/* Speaker Image and Hover Effect */
.speaker-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.speaker-image-container:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.speaker-photo-full {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1; /* Ensures perfect square profile images */
    object-fit: cover;
}

/* Hover Link Overlay */
.speaker-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(204, 0, 51, 0.8); /* Red overlay matching the buttons */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.speaker-image-container:hover .speaker-link-overlay {
    opacity: 1; /* Show on hover */
}

.link-icon {
    color: white;
    font-size: 2rem;
    padding: 10px;
    border: 2px solid white;
    border-radius: 50%;
}

/* Speaker Text Details */
.speaker-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #333;
}

.speaker-designation {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin: 0;
}

/* =========================================================================
   4. MULTISITE SUMMIT LIST STYLES (Existing styles for main page)
   ========================================================================= */

.scionex-summit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.scionex-summit-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.scionex-left-col {
    width: 350px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: #fff;
}

.scionex-left-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.scionex-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.scionex-location {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: capitalize;
}

.scionex-date {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.scionex-right-col {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scionex-conf-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.scionex-speakers-list {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.scionex-speaker-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scionex-speaker-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.scionex-speaker-details {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.scionex-speaker-role {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.scionex-speaker-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.scionex-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-self: flex-end;
}

.scionex-btn {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 3px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: none;
}

.scionex-btn-site {
    background-color: #cc0033;
    color: #ffffff;
    border: none;
}

.scionex-btn-site:hover {
    background-color: #a8002a;
}

.scionex-btn-speakers {
    background-color: #cc0033;
    color: #ffffff;
    border: none;
}

.scionex-btn-speakers:hover {
    background-color: #a8002a;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1200px) {
    /* For All Speakers Grid: Adjust to 4 columns on medium screens */
    .scionex-all-speakers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 15px;
    }
}

@media (max-width: 992px) {
    /* For All Speakers Grid: Adjust to 3 columns on tablets */
    .scionex-all-speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Summit Card (Previous Section) */
    .scionex-summit-card {
        flex-direction: column;
    }

    .scionex-left-col {
        width: 100%;
        min-height: 180px;
    }

    .scionex-right-col {
        width: 100%;
        padding: 15px;
        gap: 10px;
    }

    .scionex-buttons {
        flex-direction: row;
        align-self: center;
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }

    .scionex-btn {
        flex: 1;
        padding: 10px 10px;
        font-size: 0.75rem;
    }

    /* All Speakers Grid: Adjust to 2 columns on mobile */
    .scionex-all-speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
}

@media (max-width: 480px) {
    /* All Speakers Grid: Adjust to 1 column on small mobile */
    .scionex-all-speakers-grid {
        grid-template-columns: 1fr;
    }
}