/* =========================
   Video Toggle Button
   Elementor-safe override
   ========================= */

/* Base button */
.elementor-widget-loop-grid a.elementor-button.video-toggle-btn,
a.elementor-button.video-toggle-btn{
  background-color: transparent !important;

  font-family: "Geologica", Sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-transform: capitalize !important;
  line-height: 1.5em !important;

  color: var(--e-global-color-f873fc2) !important;
  fill: var(--e-global-color-f873fc2) !important;

  border: 1px solid #53B0E6 !important;
  border-radius: 22rem !important;
  padding: .50em 1.5em !important;

  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease !important;
}

/* Prevent Elementor from forcing white text */
.elementor-widget-loop-grid a.elementor-button.video-toggle-btn:visited,
a.elementor-button.video-toggle-btn:visited{
  color: var(--e-global-color-f873fc2) !important;
  fill: var(--e-global-color-f873fc2) !important;
}

/* =========================
   Hover state (primary)
   ========================= */
.elementor-widget-loop-grid a.elementor-button.video-toggle-btn:hover,
a.elementor-button.video-toggle-btn:hover{
  background-color: var(--e-global-color-738aa9c) !important;
  border-color: #53B0E6 !important;

  color: var(--e-global-color-f873fc2) !important;
  fill: var(--e-global-color-f873fc2) !important;

  box-shadow: 0 6px 18px rgba(83, 176, 230, 0.25) !important;
  transform: translateY(-1px);
}

/* =========================
   Keyboard accessibility
   ========================= */
.elementor-widget-loop-grid a.elementor-button.video-toggle-btn:focus-visible,
a.elementor-button.video-toggle-btn:focus-visible{
  outline: 2px solid currentColor !important;
  outline-offset: 3px !important;
}


/* ================================================
   THRIVE CHURCH HAWAII
   THE EVENTS CALENDAR - SINGLE EVENT TEMPLATE
   ================================================ */


/* ================================================
   1. MAIN CONTAINER
   ================================================ */

.single-tribe_events .church-single-event {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.single-tribe_events .church-single-event
.tribe-events-back {
    margin-bottom: 36px;
}

.single-tribe_events .church-single-event
.tribe-events-single-event-title {
    margin: 0 0 32px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    color: #161b2c;
}


/* ================================================
   2. TWO-COLUMN LAYOUT
   ================================================ */

.single-tribe_events .church-event-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    margin: 36px 0 60px;
}


/* ================================================
   3. LEFT COLUMN
   ================================================ */

.single-tribe_events .church-event-main {
    min-width: 0;
    width: 100%;
}

/* Featured image */

.single-tribe_events .church-event-image {
    margin: 0 0 32px;
}

.single-tribe_events
.church-event-image .tribe-events-event-image {
    margin: 0;
    width: 100%;
}

.single-tribe_events .church-event-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Event description */

.single-tribe_events
.church-event-main .tribe-events-single-event-description {
    width: 100%;
    max-width: none;
    margin: 0;
    line-height: 1.75;
    font-size: 16px;
    color: #161b2c;
}

.single-tribe_events
.church-event-main .tribe-events-single-event-description p {
    max-width: none;
    margin-bottom: 18px;
}

.single-tribe_events
.church-event-main .tribe-events-single-event-description h2 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #161b2c;
}

.single-tribe_events
.church-event-main .tribe-events-single-event-description h3 {
    margin: 28px 0 14px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

.single-tribe_events
.church-event-main .tribe-events-single-event-description ul,
.single-tribe_events
.church-event-main .tribe-events-single-event-description ol {
    margin: 0 0 22px 24px;
}


/* ================================================
   4. RIGHT SIDEBAR
   ================================================ */

.single-tribe_events .church-event-sidebar {
    width: 100%;
    min-width: 0;
}

.single-tribe_events .church-event-card {
    padding: 28px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.single-tribe_events .church-event-card-heading {
    margin: 0 0 26px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #161b2c;
}


/* ================================================
   5. EVENT INFORMATION
   ================================================ */

.single-tribe_events .church-event-info {
    margin-bottom: 26px;
}

.single-tribe_events .church-event-info-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #69707c;
}

.single-tribe_events .church-event-info-value {
    font-size: 15px;
    line-height: 1.6;
    color: #161b2c;
}

.single-tribe_events .church-event-info-value strong {
    font-weight: 600;
}

/* Date and time */

.single-tribe_events .church-event-time {
    margin-top: 4px;
    color: #555b69;
}

.single-tribe_events .church-event-end-date {
    margin-top: 4px;
    color: #69707c;
}

/* Venue and address */

.single-tribe_events .church-event-address {
    margin-top: 5px;
    color: #555b69;
    line-height: 1.6;
}

.single-tribe_events .church-event-address br {
    display: block;
    content: "";
    margin-bottom: 2px;
}

/* Directions link */

.single-tribe_events .church-directions-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #3048ff;
    text-decoration: none;
}

.single-tribe_events .church-directions-link:hover,
.single-tribe_events .church-directions-link:focus {
    color: #192dc4;
    text-decoration: underline;
}


/* ================================================
   6. PLANNING CENTER REGISTRATION
   ================================================ */

.single-tribe_events .church-event-registration {
    margin: 30px 0 16px;
}

.single-tribe_events .church-register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    box-sizing: border-box;
    padding: 15px 18px;

    background: #3048ff;
    color: #ffffff !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    border: 0;
    border-radius: 6px;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.single-tribe_events .church-register-button:hover {
    background: #192dc4;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.single-tribe_events .church-register-button:focus-visible {
    outline: 3px solid #192dc4;
    outline-offset: 3px;
}

.single-tribe_events .church-registration-note {
    margin: 9px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #69707c;
}


/* ================================================
   7. ADD TO CALENDAR
   ================================================ */

.single-tribe_events .church-calendar-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.single-tribe_events
.church-calendar-actions .tribe-events-cal-links {
    margin: 0;
}

.single-tribe_events
.church-calendar-actions .tribe-events-c-subscribe-dropdown__container {
    margin: 0;
}

/* Keep calendar control secondary */

.single-tribe_events
.church-calendar-actions .tribe-events-c-subscribe-dropdown {
    max-width: 100%;
}


/* ================================================
   8. EVENT NAVIGATION
   ================================================ */

.single-tribe_events
.church-single-event #tribe-events-header {
    margin: 0;
}

.single-tribe_events
.church-single-event .tribe-events-nav-pagination {
    margin: 0;
}


/* ================================================
   9. TABLET
   ================================================ */

@media (max-width: 900px) {

    .single-tribe_events .church-event-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 28px 0 45px;
    }

    .single-tribe_events .church-event-sidebar {
        width: 100%;
    }

    .single-tribe_events .church-event-card {
        padding: 26px;
    }

}


/* ================================================
   10. MOBILE
   ================================================ */

@media (max-width: 767px) {

    .single-tribe_events .church-single-event {
        width: 100%;
    }

    .single-tribe_events
    .church-single-event .tribe-events-single-event-title {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    /* Stack columns and show details first */

    .single-tribe_events .church-event-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-top: 24px;
    }

    .single-tribe_events .church-event-sidebar {
        order: -1;
        width: 100%;
    }

    .single-tribe_events .church-event-main {
        order: 1;
        width: 100%;
    }

    /* Sidebar */

    .single-tribe_events .church-event-card {
        padding: 22px;
        border-radius: 8px;
    }

    .single-tribe_events .church-event-card-heading {
        font-size: 19px;
        margin-bottom: 22px;
    }

    .single-tribe_events .church-event-info {
        margin-bottom: 22px;
    }

    /* Registration */

    .single-tribe_events .church-event-registration {
        margin-top: 24px;
    }

    .single-tribe_events .church-register-button {
        padding: 16px 20px;
        font-size: 16px;
    }

    /* Featured image */

    .single-tribe_events .church-event-image {
        margin-bottom: 24px;
    }

    .single-tribe_events .church-event-image img {
        border-radius: 6px;
    }

    /* Event description */

    .single-tribe_events
    .church-event-main .tribe-events-single-event-description {
        font-size: 16px;
        line-height: 1.7;
    }

    .single-tribe_events
    .church-event-main .tribe-events-single-event-description h2 {
        font-size: 24px;
    }

}


/* ================================================
   11. SMALL PHONES
   ================================================ */

@media (max-width: 400px) {

    .single-tribe_events .church-event-card {
        padding: 18px;
    }

    .single-tribe_events
    .church-single-event .tribe-events-single-event-title {
        font-size: 27px;
    }

}
