/**
 * Theme Name: ATER Avada Child Theme
 * Template: Avada
 * Version: 0.2.3
 * 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;
}

#menu-offcanvas-icon-container {
    width: fit-content;
    flex: 1;
}

.newsletter-accordion form button[type="submit"] {
    border-radius: 8px !important;
    text-transform: uppercase !important;
    background-color: #050505 !important;
    padding: 17px 22px !important;
    font-size: 13.3px !important;
    margin-top: 25px !important;
    border: 0px !important;
    color: #fff !important;
    display: flex;
}

.newsletter-accordion form input[type="text"],
.newsletter-accordion form input[type="email"] {
    border: 0px;
    border-bottom: solid 1px #000;
    border-radius: 0px;
    margin-bottom: 5px;
}

.newsletter-accordion form input[type="text"]::placeholder,
.newsletter-accordion form input[type="email"]::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

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

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

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

.bold {
    font-weight: bold;
}

.text-wrap {
    text-wrap: wrap;
}

/*.breadcrumb {
    position: absolute;
    top: -150px;
    right: 60px;
}*/

.underline {
    text-decoration: underline;
    text-underline-offset: 8px;
}

.event-card {
    position: relative;
    min-height: 500px;

    .event-date {
        position: absolute;
        top: 16px;
        left: 19px;
    }
}

.news-card {
    min-height: 215px;
}

.event-date > p {
    border: solid 1px #000;
    padding: 6px 7px;
    width: fit-content;
    margin: 0px auto;
}

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

.remove-margin {
    .fusion-column-wrapper {
        margin: 0px !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;
}

#featured-post-types,
#featured-post-types > .swiper-wrapper {
    height: 100% !important;
}

#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;
}

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

/* Calendar switcher: same look as the tag buttons, heavier so it reads as
   the parent level above city/tag/date. */
.wd-calendar-calendar-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border: solid 2px #000;
    border-radius: 0px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: inherit;
    font-weight: bold;
    font-family: inherit;
    line-height: inherit;
    height: 50px;
}
.wd-calendar-calendar-btn:hover {
    background: #f5f5f5;
}
.wd-calendar-calendar-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Flatpickr event-date picker — match the black/white calendar filter theme.
   Only days with events are enabled; they get a dot marker, empty days are greyed. */
.flatpickr-calendar {
    border-radius: 0;
    border: 1px solid #000;
    box-shadow: none;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
    color: #000;
    fill: #000;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #000;
}
.flatpickr-day {
    position: relative;
    border-radius: 0;
    color: #333;
}
.flatpickr-day.today {
    border-color: #ccc;
}
/* Event days (the only enabled days): emphasised + dot marker. */
.flatpickr-day:not(.flatpickr-disabled) {
    font-weight: bold;
    color: #000;
}
.flatpickr-day:not(.flatpickr-disabled)::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #000;
}
.flatpickr-day:not(.flatpickr-disabled):hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}
.flatpickr-day.selected::after {
    background: #fff;
}
/* .flatpickr-calendar prefix beats the flatpickr default rule (rgba(57,57,57,.1)),
   which Avada's CSS compiler merges into fusion-dynamic-css AFTER this file. */
.flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
    color: #888;
}

.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;
    }
}
