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

/* =========================================================================
   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 (3 COLUMNS)
   ========================================================================= */

.scionex-summit-list {
    display: grid;
    /* CHANGED: 3 columns with equal width */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; 
    padding: 20px;
    max-width: 1400px; /* Increased width to fit 3 cards */
    margin: 0 auto;
}

.scionex-summit-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer; /* Indicates clickability */
}

/* The anchor that wraps everything */
.scionex-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.scionex-summit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.scionex-left-col {
    width: 100%; /* Image takes full width */
    height: 220px; /* Slightly shorter height for 3-col layout */
    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;
    /* Gradient for better text visibility */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

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

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

/* Add spacing for icons */
.scionex-location i,
.scionex-date i {
    margin-right: 6px;
    font-size: 0.9em;
}

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

.scionex-right-col {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Wrapper for Title and Icon */
.scionex-meta-row {
    display: flex;
    justify-content: space-between; /* Pushes Title left, Arrow right */
    align-items: center;
    width: 100%;
    gap: 10px;
}

.scionex-conf-title {
    font-size: 1.3rem; /* Adjusted for 3 columns */
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Custom Red Circle Button Style */
.scionex-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;          /* Adjusted size for 3 columns */
    height: 40px;         
    background-color: #cc0033; /* Red Background */
    color: #ffffff;       /* White Arrow */
    border-radius: 50%;   /* Make it a circle */
    font-size: 1rem;    
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;       /* Prevent shrinking */
}

/* Hover effect on card triggers button animation */
.scionex-summit-card:hover .scionex-arrow-btn {
    background-color: #a8002a; /* Darker red on hover */
    transform: scale(1.1);     /* Grow slightly on hover */
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1200px) {
    /* Switch summit list to 2 columns on medium screens */
    .scionex-summit-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Speakers Grid */
    .scionex-all-speakers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 768px) {
    /* Summit List: Switch to 1 column on Mobile */
    .scionex-summit-list {
        grid-template-columns: 1fr;
    }

    .scionex-left-col {
        height: 200px;
    }

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

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