/**
 * Theme Name: ATER Avada Child Theme
 * Template: Avada
 * Version: 0.1.0
 * Author: WEBDEPLOY
 * Author URI: webdeploy.it
 * Description: ATER child theme for Avada.
 */

#main {
    padding: 30px !important;
}

#content .fusion-text a {
    text-decoration: underline !important;
}

#content .fusion-text a.fusion-button {
    text-decoration: none !important;
}

#content .toggle-content a {
    text-decoration: underline !important;
}

#content .toggle-content a.fusion-button {
    text-decoration: none !important;
}

.fusion-button.button-flat,
#mupwp-form-save {
    border-radius: 8px;
    text-transform: uppercase;
}

.fusion-title h1 {
    font-size: 38px !important;
}

.title-with-icons {
    i {
        margin-top: -5px !important;
    }
}

.italic {
    font-style: italic !important;
}

.off-canvas-close {
    /*color: white !important;*/
    display: none !important;
}

.awb-menu__flyout-close {
    right: 25% !important;
}

/*.awb-off-canvas {
    width: 140% !important;
    max-width: 140% !important;
}*/

.ater-select select {
    border: solid 1px #000;
    border-radius: 0px;
}

#calendar {
    .fusion-nothing-found {
        font-size: 15px !important;
    }
}

#wd-calendar-date-reset {
    border: solid 1px #000;
    border-radius: 0px;
    background-color: #fff;
    color: #000 !important;
    font-weight: bold;
    padding: 8px 16px;
}

.wd-calendar-events-filter-container {
    border: 0px !important;

    p {
        margin: 0px !important;
    }
}

#wd-calendar-date-picker {
    min-width: 20px;
    color: #000 !important;
    flex-shrink: 0;
    padding: 8px 16px;
    border: solid 1px #000;
    border-radius: 0px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    height: 50px;
}

.wd-calendar-events-filter-container select,
.wd-calendar-tag-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: solid 1px #000;
    border-radius: 0px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 50px;
}
.wd-calendar-events-filter-container select {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.wd-calendar-tag-btn:hover {
    background: #f5f5f5;
}
.wd-calendar-tag-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.theaters-carousel {
    padding-bottom: 35px !important;
}

/* === Base timeline item wrapper (the Post Card container) === */
.timeline-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Vertical line in the center */
.timeline-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

/* Columns inside the card (left and right sides) */
.timeline-side {
    width: 50%;
    padding: 0 25px;
    box-sizing: border-box;
}

/* Time moment badge (e.g. "2025 – nowadays") */
.timeline-time {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #0077ff; /* primary accent color */
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    white-space: nowrap;
}

/* Title and description styling */
.timeline-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Center dot on the line (per item) */
.timeline-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 57px; /* roughly aligns with the time badge; adjust if needed */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0077ff;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.3);
    transform: translateX(-50%);
}

/* === Alternating layout on desktop === */
@media (min-width: 900px) {
    /* Odd items: time on the left, content on the right */
    .timeline-card:nth-child(odd) .timeline-side-left {
        text-align: right;
    }

    .timeline-card:nth-child(odd) .timeline-side-right {
        text-align: left;
    }

    /* Even items: time on the right, content on the left */
    .timeline-card:nth-child(even) .timeline-side-left {
        order: 2;
        text-align: left;
    }

    .timeline-card:nth-child(even) .timeline-side-right {
        order: 1;
        text-align: right;
    }
}

/* === Mobile: stacked layout, line on the left === */
@media (max-width: 899px) {
    .timeline-card {
        display: block;
        /*padding-left: 40px;*/
        padding-left: 25px !important;
    }

    .timeline-card::before {
        left: 20px;
        transform: none;
    }

    .timeline-card::after {
        left: 12px;
        transform: none;
    }

    .timeline-side {
        width: 100%;
        padding: 0 0 0 20px;
        text-align: left !important;
        margin-bottom: 15px;
    }

    .timeline-time {
        white-space: normal;
    }
}
