/* =========================================================
   SINGLE EVENT - IEJ
   Reemplazo de Event Single Page Builder
   ========================================================= */

.iejs-single-event {
    width: 100%;
}

.iejs-all-events {
    margin-bottom: 20px;
    font-weight: bold;
}

.iejs-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}


/* =========================================================
   COLUMNA PRINCIPAL
   ========================================================= */

.iejs-event-main {
    min-width: 0;
}

.iejs-event-image-area {
    margin-bottom: 25px;
}

.iejs-event-image-area img {
    display: block;
    width: 100%;
    height: auto;
}



.iejs-event-title-date {
    padding: 22px 0 5px;
}

.iejs-event-title-date h1 {
    margin: 0;
    line-height: 1.2;
    font-size: 2.2em;
    font-weight: 600;
}

.iejs-event-title-date.iejs-no-image {
    padding-top: 0;
}

.iejs-event-content {
    margin-top: 25px;
}

.iejs-event-map {
    margin-top: 30px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.iejs-event-sidebar {
    background: #f2f2f2;
    padding: 25px;
    width: 100%;
}

.iejs-sidebar-box {
    margin-bottom: 25px;
    width: 100%;
}

.iejs-sidebar-box:last-child {
    margin-bottom: 0;
}


/* Details / Venue / Organizer */

.iejs-sidebar-box .tribe-events-meta-group {
    width: auto !important;
    padding: 0;
    margin-right: 0;
}

.iejs-sidebar-box h2.tribe-events-single-section-title {
    background: #0E3C68;
    color: #fff;
    margin: 0 0 15px;
    padding: 8px;
    font-size: 1.3em;
    border-radius: 2px;
}

.iejs-sidebar-box .tribe-events-meta-label {
    font-weight: 700;
}

.iejs-sidebar-box .tribe-events-meta-item {
    margin-bottom: 6px;
}

.iejs-event-category {
    line-height: 1.5;
}


/* =========================================================
   CALENDARIOS + MOODLE
   ========================================================= */

.iejs-calendar-links a {
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    width: 100%;
    display: block;
    text-align: center;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: normal;
    font-size: 16px;
    background: #0E3C68;
    transition: opacity 0.2s ease;
    border-radius: 2px;
    padding: 15px 5px;
    margin: 5px 0;
    text-decoration: none;
}

.iejs-calendar-links a:hover {
    opacity: 0.9;
    color: #fff;
}

.iejs-calendar-links .iejs-moodle-link {
    margin-top: 40px;
    font-weight: bold;
}

.iejs-single-event abbr[title] {
    text-decoration: none;
}


/* =========================================================
   COMPARTIR
   ========================================================= */

.iejs-share-section {
    margin-top: 50px;
    padding-top: 10px;
}

.iejs-share-section h2,
.iejs-related-section h2 {
    margin: 0 0 18px;
    font-size: 1.55em;
    line-height: 1.2;
    color: #202c3d;
}

.iejs-share-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.iejs-share-links a {
    display: block;
    color: #0E3C68;
    text-decoration: none;
    line-height: 1;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.iejs-share-links a i {
    display: block;
    font-size: 46px;
}

.iejs-share-links a:hover {
    color: #0E3C68;
    opacity: 0.85;
    transform: translateY(-1px);
}


/* =========================================================
   ACTIVIDADES RELACIONADAS
   ========================================================= */

.iejs-related-section {
    margin-top: 45px;
    margin-bottom: 60px;
}

.iejs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.iejs-related-event {
    min-width: 0;
}

.iejs-related-event a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.iejs-related-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #eeeeee;
}

.iejs-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iejs-related-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 60, 104, 0.88);
    color: #fff;
    padding: 16px 18px;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.25;
    box-sizing: border-box;
}

.iejs-related-event a:hover .iejs-related-title {
    background: rgba(14, 60, 104, 0.94);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .iejs-event-layout {
        grid-template-columns: 1fr;
    }

    .iejs-event-sidebar {
        margin-top: 20px;
    }

    .iejs-related-grid {
        grid-template-columns: 1fr;
    }

    .iejs-event-title-date h1 {
        font-size: 1.8em;
    }
}

/* Ocultar dropdown nativo "Añadir al calendario" */
.iejs-single-event .tribe-events-c-subscribe-dropdown__container {
    display: none !important;
}
