/* Basic reset for our template */
.eg-main-content {
    background-color: #fff;
}

/* grid item sizing (similar to your td-block-span66 inline style) */
.td-block-span66.eg-event-card {
    float: left;
    padding: 0 2%;
    min-height: 395px;
    box-sizing: border-box;
    width: 50%;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .td-block-span66.eg-event-card {
        width: 100%;
        min-height: auto;
    }
}

/* excerpt */
.eg-event-excerpt {
    text-align: justify;
    height: 70px;
    border-bottom: 1px #ddd dotted;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* meta lines */
.eg-event-meta .eg-meta-line {
    font-size: 12px;
    line-height: 22px;
    margin-bottom: 10px;
}

/* sponsored badge */
.eg-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
}

.eg-badge-sponsored {
    background: #4db2ec;
}

/* buttons */
.eg-btn {
    display: inline-block;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 500;
}

.eg-btn-primary {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.eg-btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

.eg-btn-outline {
    background-color: #fff;
    color: #222;
    border-color: #222;
}

.eg-event-actions {
    margin-top: 10px;
}

/* Load more */
.eg-load-more-wrap {
    text-align: center;
    margin: 20px 0 40px;
}

.eg-load-more {
    cursor: pointer;
    padding: 10px 20px;
    background: #F46523;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    border: none;
}

.eg-load-more.eg-is-loading {
    opacity: 0.7;
}

/* Simple loader stub */
.eg-loader {
    width: 40px;
    height: 40px;
    margin: 10px auto 0;
    border-radius: 50%;
    border: 3px solid #eee;
    border-top-color: #333;
    animation: eg-spin 1s linear infinite;
}
@keyframes eg-spin {
    to { transform: rotate(360deg); }
}

/* Submit form */
.eg-submit-form-wrap {
    margin-top: 40px;
    padding: 20px;
    border: 5px solid #cde7ff;
    background: #fff;
}

.eg-submit-title {
    text-align: center;
    color: #36c2b9;
    margin-bottom: 15px;
}

.eg-submit-form .eg-form-row {
    margin-bottom: 15px;
}

.eg-form-row label span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #000;
}

.eg-submit-form input,
.eg-submit-form textarea {
    width: 100%;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.eg-form-row-half {
    width: 48%;
    float: left;
}

.eg-form-row-half:nth-child(odd) {
    margin-right: 4%;
}

@media (max-width: 767px) {
    .eg-form-row-half {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}

.eg-form-status {
    margin: 10px 0;
    font-size: 13px;
}

.eg-form-status.eg-success {
    color: #2e7d32;
}

.eg-form-status.eg-error {
    color: #c62828;
}

.eg-field-error {
    border-color: #c62828;
}

/* Modal */
.eg-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.eg-modal.eg-modal-open {
    display: block;
}

.eg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.eg-modal-dialog {
    position: relative;
    max-width: 40%;
    margin: 40px auto;
    background: #fff;
    border-radius: 5px;
    padding: 20px 25px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.eg-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.eg-modal-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.eg-modal-date-block .ev_start_date,
.eg-modal-date-block .ev_end_date {
    font-size: 30px;
    font-weight: bold;
    display: inline-block;
}

.eg-modal-date-block .ev_month {
    display: block;
    font-size: 12px;
}

.eg-modal-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.eg-modal-thumb img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.eg-modal-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.eg-modal-col {
    width: 50%;
}

@media (max-width: 767px) {
    .eg-modal-row {
        flex-direction: column;
    }
    .eg-modal-col {
        width: 100%;
    }
}

.eg-modal-section {
    margin-bottom: 20px;
}

.eg-modal-section h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.eg-modal-text {
    font-size: 14px;
    color: #5d5454;
}

.eg-modal-links {
    text-align: center;
    margin-top: 10px;
}

.eg-modal-links .eg-btn-link {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
	color: var(--logo-color);
}

.eg-modal-organiser .eg-organiser-layout {
    display: flex;
    gap: 20px;
}

.eg-organiser-more-events {
    width: 40%;
    border: 1px solid #ddd;
    background: #e2e2e2;
    padding: 10px 20px 20px;
}

.eg-organiser-description {
    width: 60%;
}

.eg-organiser-more-events ul {
    max-height: 135px;
    overflow-y: auto;
    list-style: none;
    padding-left: 0;
}

.eg-organiser-more-events li {
    margin-bottom: 8px;
}

.eg-organiser-profile-link,
.eg-organiser-read-more {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.eg-modal-org-news .eg-org-news-list {
    margin-top: 10px;
}

.eg-org-news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.eg-org-news-thumb img {
    width: 80px;
    height: 55px;
    object-fit: cover;
}

.eg-modal-bottom-actions {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.eg-modal-bottom-actions {
    justify-content: space-between;
}

.eg-modal-bottom-item a {
    font-size: 14px;
}

.eg-modal-share i {
    margin-left: 5px;
}

/* Loading text */
.eg-modal-loading {
    text-align: center;
    padding: 40px 0;
}

/* Body lock when modal open */
body.eg-modal-open-body {
    overflow: hidden;
}


.eg-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px,1fr));
    gap: 26px;
    padding-top: 10px;
}

/* Card */
.eg-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.eg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.eg-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.eg-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-badge.eg-paid {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(90deg,#f86a24,#fe8800);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border-radius: 50px;
}

.eg-countdown {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    box-shadow: 0 0 5px rgba(0,0,0,.12);
}

/* Body */
.eg-card-body {
    padding: 18px 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eg-card-title {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}

.eg-card-meta {
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 8px;
    color: #666;
}

.eg-card-meta i {
    margin-right: 4px;
    color: #0077b6;
}

.eg-card-excerpt {
    flex: 1;
    font-size: 16px;
    color: #555;
    margin-bottom: 14px;
}

.eg-btn.eg-view {
    text-align: center;
    padding:10px 14px;
    background:#0077b6;
    color:#fff;
    font-weight:bold;
    border-radius:8px;
    text-decoration:none;
    border:none;
    cursor:pointer;
    transition: background .2s ease;
}

.eg-btn.eg-view:hover {
    background:#005f92;
}

/* Live started styling */
.eg-countdown.started {
    background: #ff2975;
    color: #fff;
}

.eg-events-list-section{margin-bottom: 30px;}








.eg-event-list-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eg-event-row {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all .2s ease;
}

.eg-event-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Date Box */
.eg-date-box2 {
    width: 70px;
    height: 70px;
    background: #0077b6;
    color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 16px;
}

.eg-day {
    font-size: 24px;
    line-height: 20px;
}
.eg-month {
    font-size: 14px;
    text-transform: uppercase;
}

/* Content */
.eg-event-info {
    flex: 1;
}

.eg-event-title {
    margin: 0 0 5px;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.eg-event-title a {
    text-decoration: none;
    color: inherit;
}

.eg-meta {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

.eg-meta i {
    color: #0077b6;
    margin-right: 4px;
}

/* Sponsored */
.eg-badge-sponsored {
    display: inline-block;
    background: #ff7a00;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 8px;
    font-weight: bold;
}

/* Action Button */
.eg-event-action {
    display: flex;
    align-items: center;
}

.eg-btn {
    background: #0077b6;
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.eg-btn:hover {
    background: #005f92;
}

/* Mobile */
@media(max-width: 768px){
    .eg-event-row {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }
    .eg-event-action {
        justify-content: flex-start;
        padding-top: 10px;
    }
}

.eg-event-row {
    transition: .25s;
}
.eg-event-link:hover .eg-event-row {
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}
.eg-countdown {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 6px;
	font-family: 'Red Hat Display';
}

.eg-countdown.started {
    background: #ff0000;
}


/* Sponsored Ribbon */
.eg-event-row {
    position: relative;
}

/* Sponsored Ribbon */
.eg-ribbon {
    position: absolute;
    top: 17px;
    right: -37px;
    background: linear-gradient(135deg, #ff7b00, #ff3c00);
    color: #fff;
    width: 102px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    letter-spacing: 0.5px;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Right Tail */
.eg-ribbon::before {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0;
    border-width: 8px 8px 0 0;
    border-style: solid;
    border-color: rgba(0,0,0,0.25) transparent transparent transparent;
}

/* Left Tail */
.eg-ribbon::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    border-width: 8px 0 0 8px;
    border-style: solid;
    border-color: rgba(0,0,0,0.25) transparent transparent transparent;
}

/* Hover Sparkle */
.eg-event-link:hover .eg-ribbon {
    filter: brightness(1.08);
}


