/* =====================================================
   EVENT GLOBAL
===================================================== */

.events-home-section,
.event-detail-page {
    box-sizing: border-box;
}

.events-home-section *,
.event-detail-page * {
    box-sizing: border-box;
}

.events-home-section img,
.event-detail-page img {
    max-width: 100%;
}

.status-upcoming {
    background: #fff2d8 !important;
    color: #a36900 !important;
}

.status-live {
    background: #dff8ea !important;
    color: #118356 !important;
}

.status-completed {
    background: #eceff3 !important;
    color: #697386 !important;
}

/* =====================================================
   HOME EVENTS
===================================================== */

.events-home-section {
    clear: both;
    float: none !important;
    width: 100%;
    background: #fffaf7;
    padding: 100px 0;
    overflow: hidden;
}

.event-section-title {
    margin-bottom: 55px;
}

/* remove old theme/project interference */

.events-home-section .owl-carousel,
.events-home-section .owl-stage-outer,
.events-home-section .owl-stage,
.events-home-section .owl-item,
.event-carousel-item {
    height: auto !important;
    min-height: 0 !important;
}

.events-home-section .owl-item {
    display: flex;
}

.event-carousel-item {
    width: 100%;
    padding: 3px;
}

.event-card {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f0ece9;
    box-shadow: 0 12px 35px rgba(23, 31, 48, 0.07);
    transition: 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(23, 31, 48, 0.12);
}

/* IMAGE */

.event-card-image {
    height: 235px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.event-card-image > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.event-card-status {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.event-card-status.status-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 7px;

    animation: eventPulse 1.3s infinite;
}

@keyframes eventPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.event-card-timer {
    position: absolute !important;
    left: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    right: auto !important;

    z-index: 4;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;

    padding: 9px 13px !important;

    border-radius: 9px;

    background: rgba(20, 27, 43, 0.92) !important;
    color: #ffffff !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;

    transform: none !important;
}

/* CONTENT */

.event-card-body {
    padding: 24px 25px 22px;
}

.event-card-meta {
    min-height: 25px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}

.event-card-location {
    color: #ef8157;
    font-size: 14px;
    line-height: 1.4;
}

.event-card-location i {
    margin-right: 5px;
}

.event-card-price {
    color: #ef8157;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.event-card-title {
    color: #21252d;
    font-family: inherit;
    font-size: 23px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.event-card-date {
    color: #8791a2;
    font-size: 13px;
    margin-bottom: 13px;
}

.event-card-date i {
    margin-right: 6px;
}

.event-card-description {
    color: #6f7887;
    font-size: 15px;
    line-height: 1.6;

    margin: 0;

    min-height: 48px;
}

.event-card-bottom {
    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #ebedf1;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
}

.event-card-registration {
    color: #ef8157;
    font-size: 14px;
    font-weight: 500;
}

.event-card-link {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #117d70;
    color: #fff !important;

    text-decoration: none !important;

    transition: 0.2s ease;
}

.event-card-link:hover {
    transform: translateX(3px);
}

/* OWL */

.events-home-section .owl-stage {
    display: flex;
}

.events-home-section .owl-item {
    display: flex;
    flex: 0 0 auto;
}

.events-home-section .owl-nav {
    margin-top: 30px;
}

.events-home-section .owl-dots {
    margin-top: 28px;
}

.events-home-section .owl-dot span {
    width: 10px !important;
    height: 10px !important;
}

/* EMPTY */

.event-empty-state {
    padding: 60px 20px;
    border-radius: 20px;
    background: white;
}

.event-empty-state > i {
    font-size: 35px;
    margin-bottom: 15px;
}

/* =====================================================
   EVENT DETAIL
===================================================== */

.event-detail-page {
    clear: both;
    float: none !important;

    width: 100%;

    padding: 70px 0 100px;

    background: #f7f8fa;

    position: relative;

    overflow: visible !important;
}

/* GRID */

.event-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 0.95fr);

    gap: 30px;

    align-items: start;
}

.event-detail-content {
    min-width: 0;
}

/* IMAGE */

.event-detail-image {
    width: 100%;
    height: 480px;

    margin: 0 0 24px;

    border-radius: 20px;

    overflow: hidden;

    position: relative;

    background: #eee;

    box-shadow: 0 12px 35px rgba(20, 30, 50, 0.08);
}

.event-detail-image > img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center;

    display: block;
}

.event-detail-image-status {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 2;

    padding: 9px 16px;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;
}

/* TIMER */

.event-live-timer {
    width: 100%;

    min-height: 125px;

    padding: 25px 30px;

    margin-bottom: 25px;

    border-radius: 19px;

    background: linear-gradient(135deg, #101a2b, #183555);

    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    box-shadow: 0 15px 35px rgba(18, 35, 58, 0.13);
}

.event-live-label {
    display: block;

    color: rgba(255, 255, 255, 0.68);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    margin-bottom: 7px;
}

.event-live-timer strong {
    display: block;

    color: white;

    font-size: clamp(29px, 4vw, 42px);
    line-height: 1;

    font-weight: 800;
}

.event-timer-status {
    display: inline-flex;
    align-items: center;

    padding: 10px 17px;

    border-radius: 50px;

    font-size: 13px;
    font-weight: 700;

    flex: 0 0 auto;
}

.event-timer-status.status-live::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: currentColor;

    margin-right: 7px;
}

/* MAIN CARD */

.event-main-card,
.event-registration-card {
    width: 100%;

    padding: 30px;

    margin-bottom: 25px;

    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 10px 35px rgba(20, 30, 50, 0.06);
}

.event-main-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    margin-bottom: 25px;
}

.event-small-heading {
    display: block;

    color: #2669d5;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.event-main-heading h1 {
    color: #1e2633;

    font-size: 34px;
    line-height: 1.25;

    margin: 0;
}

.event-main-price {
    flex: 0 0 auto;

    min-width: 145px;

    padding: 13px 17px;

    border-radius: 13px;

    background: #edf4ff;

    text-align: right;
}

.event-main-price small {
    display: block;

    color: #8a94a4;

    font-size: 10px;
}

.event-main-price strong {
    display: block;

    margin-top: 2px;

    color: #1c63ce;

    font-size: 19px;
}

.event-description {
    color: #647084;

    font-size: 15px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

.event-description p:last-child {
    margin-bottom: 0;
}

.event-description img {
    max-width: 100% !important;
    height: auto !important;
}

/* SCHEDULE */

.event-schedule-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 25px;
}

.event-schedule-item {
    min-width: 0;

    padding: 22px;

    border-radius: 17px;

    background: #fff;

    box-shadow: 0 8px 28px rgba(20, 30, 50, 0.055);
}

.event-icon,
.event-sidebar-icon {
    width: 46px;
    height: 46px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 12px;

    background: #edf4ff;
    color: #2767d1;

    font-size: 17px;
}

.event-schedule-item .event-icon {
    margin-bottom: 20px;
}

.event-schedule-item > span,
.event-schedule-item > strong,
.event-schedule-item > small {
    display: block;
}

.event-schedule-item > span {
    color: #8994a5;

    font-size: 11px;

    margin-bottom: 5px;
}

.event-schedule-item > strong {
    color: #232d3c;

    font-size: 15px;

    overflow-wrap: anywhere;
}

.event-schedule-item > small {
    color: #98a1b0;

    margin-top: 3px;
}

/* REGISTRATION */

.event-registration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;
}

.event-registration-header h2 {
    color: #202936;

    font-size: 32px;

    margin: 3px 0 8px;
}

.event-registration-header p {
    margin: 0;

    color: #7c8797;
}

.event-registration-price {
    flex: 0 0 auto;

    background: #edf4ff;
    color: #1d63ce;

    padding: 12px 16px;

    border-radius: 13px;

    font-size: 19px;
    font-weight: 800;
}

.event-registration-placeholder {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 28px;

    padding: 18px;

    border: 1px dashed #cdd7e4;

    border-radius: 14px;

    background: #f9fbff;
}

.event-registration-placeholder-icon,
.event-registration-closed-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 13px;

    background: #eaf2ff;
    color: #2466cf;
}

.event-registration-placeholder strong,
.event-registration-placeholder span {
    display: block;
}

.event-registration-placeholder strong {
    color: #283344;
}

.event-registration-placeholder span {
    margin-top: 3px;

    color: #8590a0;

    font-size: 12px;
}

.event-registration-closed {
    display: flex;
    align-items: center;

    gap: 15px;
}

.event-registration-closed-icon {
    background: #f0f1f4;
    color: #697386;
}

/* =====================================================
   SIDEBAR
===================================================== */

.event-detail-sidebar {
    min-width: 0;

    position: sticky;
    top: 100px;

    align-self: start;
}

.event-sidebar-card {
    width: 100%;

    padding: 27px;

    margin-bottom: 22px;

    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 10px 35px rgba(20, 30, 50, 0.06);
}

.event-sidebar-card h3 {
    color: #202834;

    font-size: 22px;

    margin: 0 0 17px;
}

.event-sidebar-row {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 17px 0;

    border-bottom: 1px solid #e9edf2;
}

.event-sidebar-row > div:last-child {
    min-width: 0;
}

.event-sidebar-row span,
.event-sidebar-row strong {
    display: block;
}

.event-sidebar-row span {
    color: #8994a5;

    font-size: 11px;

    margin-bottom: 4px;
}

.event-sidebar-row strong {
    color: #253043;

    font-size: 13px;

    line-height: 1.5;

    overflow-wrap: anywhere;
}

.event-sidebar-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;
}

.event-register-btn {
    width: 100%;

    min-height: 55px;

    margin-top: 20px;

    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 12px;

    background: #2768d7;

    color: #fff !important;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none !important;

    transition: 0.2s ease;
}

.event-register-btn:hover {
    background: #1959c5;
}

/* MORE EVENTS */

.event-related-card {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px 0;

    border-bottom: 1px solid #e9edf2;

    text-decoration: none !important;
}

.event-related-card:last-child {
    border-bottom: 0;
}

.event-related-card img {
    width: 82px !important;
    height: 70px !important;

    flex: 0 0 82px;

    object-fit: cover;

    border-radius: 11px;
}

.event-related-card > div {
    min-width: 0;
}

.event-related-card span,
.event-related-card strong {
    display: block;
}

.event-related-card span {
    color: #8993a3;

    font-size: 11px;

    margin-bottom: 4px;
}

.event-related-card strong {
    color: #273142;

    font-size: 13px;
    line-height: 1.45;
}

.event-no-related {
    color: #8b95a5;

    margin: 0;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199px) {
    .event-detail-grid {
        grid-template-columns:
            minmax(0, 1.65fr)
            minmax(285px, 0.85fr);

        gap: 24px;
    }

    .event-detail-image {
        height: 410px;
    }
}

/* =====================================================
   MOBILE / TABLET
===================================================== */

@media (max-width: 991px) {
    .events-home-section {
        padding: 75px 0;
    }

    .event-detail-page {
        padding: 50px 0 75px;
    }

    .event-detail-grid {
        display: block;
    }

    .event-detail-content {
        width: 100%;
    }

    .event-detail-sidebar {
        position: static !important;

        width: 100%;

        margin-top: 25px;
    }

    .event-detail-image {
        height: 400px;
    }

    .event-schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   PHONE
===================================================== */

@media (max-width: 767px) {
    .events-home-section {
        padding: 60px 0;
    }

    .event-section-title {
        margin-bottom: 35px;
    }

    .event-card-image {
        height: 230px;
    }

    .event-card-body {
        padding: 21px;
    }

    .event-card-title {
        font-size: 21px;
    }

    /* detail */

    .event-detail-page {
        padding: 30px 0 60px;
    }

    .event-detail-image {
        height: 330px;

        border-radius: 16px;
    }

    .event-live-timer {
        min-height: 0;

        padding: 22px;

        border-radius: 16px;
    }

    .event-live-timer strong {
        font-size: 29px;
    }

    .event-main-card,
    .event-registration-card,
    .event-sidebar-card {
        padding: 22px;

        border-radius: 16px;
    }

    .event-main-heading,
    .event-registration-header {
        display: block;
    }

    .event-main-price,
    .event-registration-price {
        width: fit-content;

        margin-top: 18px;

        text-align: left;
    }

    .event-main-heading h1 {
        font-size: 27px;
    }

    .event-registration-header h2 {
        font-size: 27px;
    }

    .event-schedule-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 575px) {
    .events-home-section .container,
    .event-detail-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .event-card-image {
        height: 215px;
    }

    .event-card-status {
        top: 10px;
        right: 10px;

        min-height: 34px;

        padding: 7px 13px;

        font-size: 12px;
    }

    .event-card-timer {
        left: 10px !important;
        bottom: 10px !important;

        padding: 8px 10px !important;

        font-size: 11px !important;
    }

    .event-card-meta {
        display: block;
    }

    .event-card-price {
        display: block;

        margin-top: 5px;
    }

    .event-card-description {
        min-height: 0;
    }

    /* Detail */

    .event-detail-image {
        height: 260px;
    }

    .event-live-timer {
        display: block;
    }

    .event-timer-status {
        margin-top: 17px;
    }

    .event-live-timer strong {
        font-size: 26px;
    }

    .event-main-card,
    .event-registration-card,
    .event-sidebar-card {
        padding: 19px;
    }

    .event-main-heading h1 {
        font-size: 24px;
    }

    .event-registration-header h2 {
        font-size: 24px;
    }

    .event-registration-placeholder {
        align-items: flex-start;
    }

    .event-sidebar-row {
        align-items: flex-start;
    }
}

/* =====================================================
   SIMPLE EVENT BANNER
===================================================== */

.event-simple-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 15px;

    margin-bottom: 16px;

    border-radius: 30px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.event-simple-status.status-live::before {
    content: "";

    width: 7px;
    height: 7px;

    margin-right: 7px;

    border-radius: 50%;

    background: currentColor;

    animation: eventPulse 1.2s infinite;
}

.sub-banner-inner-con p i {
    margin-right: 5px;
}

.event-banner-divider {
    display: inline-block;
    margin: 0 12px;
    opacity: 0.6;
}

@media (max-width: 767px) {
    .sub-banner-inner-con p {
        line-height: 2;
    }

    .event-banner-divider {
        margin: 0 6px;
    }
}

@media (max-width: 575px) {
    .event-banner-divider {
        display: none;
    }

    .sub-banner-inner-con p i {
        margin-left: 8px;
    }
}

/* =====================================================
   EVENT REGISTRATION FORM
===================================================== */

.event-registration-form {
    margin-top: 28px;
}

.event-form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.event-form-group {
    min-width: 0;
}

.event-form-full {
    grid-column: 1 / -1;
}

.event-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #293445;

    font-size: 13px;

    font-weight: 700;
}

.event-form-group input {
    width: 100%;

    min-height: 52px;

    padding: 10px 15px;

    border: 1px solid #dde3ea;

    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #273142;

    font-size: 14px;

    transition: 0.2s ease;
}

.event-form-group input:focus {
    border-color: #2669d5;

    box-shadow: 0 0 0 3px rgba(38, 105, 213, 0.08);
}

.event-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 25px;

    padding-top: 22px;

    border-top: 1px solid #e8edf3;
}

.event-form-footer span,
.event-form-footer strong {
    display: block;
}

.event-form-footer span {
    color: #8b95a5;

    font-size: 11px;
}

.event-form-footer strong {
    margin-top: 3px;

    color: #202b3a;

    font-size: 20px;
}

.event-submit-btn {
    min-height: 52px;

    padding: 12px 24px;

    border: 0;

    border-radius: 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    background: #2768d7;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;
}

.event-submit-btn:hover {
    background: #1959c5;
}

.event-form-alert {
    padding: 13px 16px;

    margin: 20px 0;

    border-radius: 10px;

    font-size: 13px;
}

.event-form-success {
    background: #e7f8ef;

    color: #087849;

    border: 1px solid #ccefdc;
}

.event-form-error {
    background: #fff0f0;

    color: #b42318;

    border: 1px solid #ffd6d3;
}

@media (max-width: 767px) {
    .event-form-grid {
        grid-template-columns: 1fr;
    }

    .event-form-full {
        grid-column: auto;
    }

    .event-form-footer {
        display: block;
    }

    .event-submit-btn {
        width: 100%;

        margin-top: 18px;
    }
}
