/* ================================
   ATLAS EVENT DIRECTORY PRO – FINAL (2026 strengthened version)
   Overrides Elementor widget / page custom CSS more reliably
   ================================ */

body .atlas-events-container,
.elementor .atlas-events-container,
.elementor-widget-container .atlas-events-container,
.elementor-section .atlas-events-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto 40px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ================================
   EVENT ROW – 3 COLUMN GRID
   Higher specificity + !important on layout
   ================================ */
body .atlas-events-container > .atlas-event-row,
.elementor .atlas-event-row,
.elementor-widget-container .atlas-event-row,
.elementor-section .atlas-event-row {
    display: grid !important;
    grid-template-columns: 90px 1fr 160px !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 20px 24px !important;
    margin-bottom: 18px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Box-sizing safety net */
body .atlas-events-container *,
.elementor * {
    box-sizing: border-box !important;
}

/* ================================
   DATE COLUMN
   ================================ */
.atlas-col-date,
body .atlas-col-date,
.elementor .atlas-col-date {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #2563eb !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* ================================
   MAIN COLUMN
   ================================ */
.atlas-col-main,
body .atlas-col-main,
.elementor .atlas-col-main {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.atlas-title,
body .atlas-title,
.elementor .atlas-title {
    margin: 0 0 4px 0 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
}

.atlas-venue,
body .atlas-venue,
.elementor .atlas-venue {
    font-size: 13px !important;
    color: #4b5563 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Visit Website inside middle column */
.atlas-btn-website,
body .atlas-btn-website,
.elementor .atlas-btn-website {
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: #2563eb !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.atlas-btn-website::after {
    content: "↗" !important;
    font-size: 14px !important;
}

.atlas-btn-website:hover,
body .atlas-btn-website:hover,
.elementor .atlas-btn-website:hover {
    text-decoration: underline !important;
}

/* ================================
   RIGHT COLUMN – BUTTONS
   ================================ */
.atlas-col-buttons,
body .atlas-col-buttons,
.elementor .atlas-col-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

.atlas-btn-order,
body .atlas-btn-order,
.elementor .atlas-btn-order {
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    background: #ea580c !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.atlas-btn-order:hover,
body .atlas-btn-order:hover,
.elementor .atlas-btn-order:hover {
    background: #c2410c !important;
}

/* ================================
   MOBILE RESPONSIVE
   Stronger mobile overrides
   ================================ */
@media (max-width: 840px) {
    body .atlas-events-container > .atlas-event-row,
    .elementor .atlas-event-row {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .atlas-col-buttons,
    body .atlas-col-buttons,
    .elementor .atlas-col-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }

    .atlas-venue,
    body .atlas-venue,
    .elementor .atlas-venue {
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .atlas-btn-website,
    body .atlas-btn-website,
    .elementor .atlas-btn-website {
        justify-content: center !important;
    }

    .atlas-btn-order,
    body .atlas-btn-order,
    .elementor .atlas-btn-order {
        min-width: 48% !important;
    }
}