/* ===================================================
   Dotsquares EventsManager - Frontend Styles
   =================================================== */

/* ---- Events List Page Wrapper ---- */
.events-page {
    color: #1a3859;
}

article.event-card {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    padding: 20px;
    text-align: center;
}
.event-card__location {
    padding: 15px 0;
}
.event-card__date {
    font-weight: bold;
}
.event-card__btn {
    background: #1979c3;
    border: 1px solid #1979c3;
    font-weight: 600;
    font-size: 1.8rem;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
}
.event-card__address {
    padding-bottom: 10px;
}
.event-card__address p {
    margin-bottom: 4px;
}
/* ---- Intro Header ---- */
.events-page__intro {
    margin-bottom: 36px;
}

.events-page__heading {
    font-size: 2.4rem;
    font-weight: 600;
    color: #1a3859;
    margin: 0 0 16px;
    line-height: 1.2;
}

.events-page__subheading {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3859;
    margin: 0 0 10px;
}

.events-page__lead {
    font-size: 16px;
    color: #1a3859;
    margin: 0;
    line-height: 1.5;
}

/* ---- Section Title ---- */
.events-page__section {
    margin-top: 36px;
}

.events-page__title {
    font-size: 4rem;
    font-weight: 400;
    color: #1e2a4f;
    margin-bottom: 20px;
}
.events-page__empty {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    background: #f8f8f8;
    border-radius: 8px;
}




/* ---- Events Grid (4-column) ---- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Event Card ---- */
.event-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 18px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.event-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.event-card__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.event-card__image {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.event-card__location {
    font-size: 16px;
    font-weight: 700;
    color: #1a3859;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card__date {
    font-size: 16px;
    font-weight: 700;
    color: #1a3859;
    margin: 0 0 12px;
}

.event-card__venue {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a3859;
    margin: 0 0 6px;
    line-height: 1.4;
}

.event-card__address {
    font-size: 0.85rem;
    color: #1a3859;
    margin: 0 0 18px;
    line-height: 1.45;
    flex-grow: 1;
}

.event-card__btn {
    display: inline-block;
    background: #1a73c9;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-top: auto;
}

.event-card__btn:hover,
.event-card__btn:focus {
    background: #1361b0;
    color: #fff;
    text-decoration: none;
}

/* ===================================================
   Event Detail View Page
   =================================================== */
.event-view {
   /* max-width: 900px;
    margin: 0 auto;*/
    padding: 30px 20px;
    color: #1a3859;
}

.event-view__back {
    margin-bottom: 24px;
}

.event-view__back a {
    color: #1a73c9;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.event-view__back a:hover {
    text-decoration: underline;
}

.event-view__main-image {
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.event-view__image {
    width: 100%;
    height: auto;
    display: block;
}

.event-view__content {
    background: #fff;
    padding: 28px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
}

.event-view__badge {
    display: inline-block;
    background: #1a73c9;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.event-view__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3859;
    margin: 0 0 18px;
    line-height: 1.3;
}

.event-view__meta {
    background: #f5f9fc;
    border-left: 4px solid #1a73c9;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 0 4px 4px 0;
}

.event-view__meta-item {
    margin-bottom: 10px;
    font-size: 16px;
    color: #1a3859;
    line-height: 1.5;
}

.event-view__meta-item:last-child {
    margin-bottom: 0;
}

.event-view__description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 24px;
}

.event-view__btn {
    display: inline-block;
    background: #1a73c9;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.event-view__btn:hover {
    background: #1361b0;
    color: #fff;
    text-decoration: none;
}

/* ===================================================
   Events Widget (Homepage / CMS Section)
   =================================================== */
.events-widget {
    padding: 50px 20px;
    background: #fff;
}

.events-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 30px;
    max-width: 1200px;
}

.events-widget__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3859;
    margin: 0;
}

.events-widget__view-all {
    color: #1a73c9;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.events-widget__view-all:hover {
    text-decoration: underline;
}

.events-widget__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .events-widget__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .events-widget__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .events-widget__grid {
        grid-template-columns: 1fr;
    }
}

.events-widget__item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 18px 16px 20px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.events-widget__item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.events-widget__item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.events-widget__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.events-widget__image {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
}

.events-widget__event-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a3859;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.events-widget__date {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a3859;
    margin: 0 0 10px;
}

.events-widget__location {
    font-size: 0.85rem;
    color: #1a3859;
    margin: 0 0 14px;
}

.events-widget__cta {
    display: inline-block;
    background: #1a73c9;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.events-widget__item:hover .events-widget__cta {
    background: #1361b0;
}
