.mt {margin-top: 30px;}
.td-post-content {
    font-size: 18px;
    line-height: 1.7;
}

/* Featured Image + Countdown */
.featured-image-wrap {position: relative;margin-bottom: 90px}
.singl-event-mobile-featured-img img {border-radius: 10px !important;}/*durga added code 08-12-2025 */
.event-countdown-wrapper {
    position: absolute;
    bottom: -17%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.75);
    padding: 16px 32px;
    border-radius: 12px;
    display: flex;
    gap: 40px;
    z-index: 10;
    backdrop-filter: blur(3px);
    text-align: center;
}
#single-event-countdown {display: flex;gap: 26px;color: #fff;text-align: center;}
#single-event-countdown span {font-size: 32px;font-weight:700;display:block;line-height:1;}
#single-event-countdown small {font-size: 12px;opacity:.8;}

/* Sidebar Cards */
.event-card {background:#fff;border-radius:12px;box-shadow:0 8px 26px rgba(0,0,0,.10);margin-bottom:30px;overflow:hidden;}
.event-card h4 {font-size:18px;}
.event-card :is(h1, h2, h3, h4, h5, h6,){background:var(--logo-color); color: #fff; padding:14px 20px;margin:0;font-weight:700;border-bottom:1px solid #eaeaea;}
.event-card-body {padding:16px 20px;}
.disclaimer{
    font-weight: 400 !important;
    font-style: italic;
}

/* Organizer Card */
.organizer-card {cursor:pointer;transition:all .25s;}
.organizer-card:hover {transform:translateY(-4px);box-shadow:0 14px 32px rgba(0,0,0,.18);}
.organizer-thumb {width:100%;height:140px;background:#fff;border-bottom:1px solid #ebebeb;display:flex;align-items:center;justify-content:center;padding:10px;background: linear-gradient(180deg,#fff,#f5f7fa);}
.organizer-thumb img {width:auto;max-width:100%;max-height:100%;object-fit:contain;}

.org-name {font-size:18px;font-weight:700;margin-top:10px;margin-bottom:2px;}
.org-tagline {font-size:14px;color:#444;opacity:.85;margin-bottom:4px;}
.org-cta {font-size:16px;margin-top:6px;color:var(--logo-color);opacity:.7;}
.alllinks {font-size:16px;color:var(--logo-color);}
.organizer-card:hover .org-cta {opacity:1;font-weight:600;}

/* Organizer News */
.recent-org-news {display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #eee;}
.recent-org-news:last-child {border:none;}
.recent-org-news a {display:flex;align-items:center;gap:10px;width:100%;text-decoration:none;}
.recent-org-thumb {width:80px;height:60px;object-fit:cover;border-radius:4px;background:#f4f4f4;}
.recent-org-title {font-size:15px;color:#000;line-height:1.3;font-weight:600;}
.recent-org-news:hover .recent-org-title {text-decoration:underline;}

/* Mobile */
@media(max-width:768px), (max-width: 480px) {
    #single-event-countdown span {font-size:20px;}
    .event-countdown-wrapper {padding:10px 16px;gap:10px;bottom:5%;position:relative;}
    .featured-image-wrap {position: relative;margin-bottom: 0px} /*durga added code 08-12-2025 */
    .singl-event-mobile-featured-img img {border-radius: 10px !important;}
    .td-post-content { margin-top: 0px;}/*code 08-12-2025 end*/
}

.single-event-full-title .entry-title {
    text-align: center;
    margin-bottom: 25px;
	font-family: var(--downtown-serif-font) !important;
    font-size: 72px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    .single-event-full-title .entry-title {
        font-size: 28px;
        line-height: 1.3;
    }
}


/* Center everything inside the event social card body */
.event-social-card .event-card-body {
    text-align: center;
    padding: 48px 3px;
}

/* Center the icon row */
.event-social-card .event-social-icons {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Icon button */
.event-social-card .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e5cff, #003fd1);
    transition: all 0.25s ease;
    text-decoration: none;
}

/* Icon inside */
.event-social-card .social-icon i {
    font-size: 22px;
    color: #FFF;
}

/* Hover effect */
.event-social-card .social-icon:hover {
    background: var(--logo-color);
    transform: translateY(-2px);
}

.event-social-card .social-icon:hover i {
    color: #FFF;
}

/* Center the paragraph text */
.event-social-card .event-card-body p {
    text-align: center;
    margin-top: 21px;
	margin-bottom: 0;
    color: #333;
}




/* CTA BUTTON CENTER */
.event-cta-wrap{
    display:flex;
    justify-content:center;
    gap:20px;
    margin:40px 0;
}

/* Buttons */
.event-btn{
    padding:14px 34px;
    font-size:16px;
    border-radius:30px;
    font-weight:600;
    cursor:pointer;
    border:none;
    transition:all .25s ease;
}

.event-btn.primary{
    background:var(--logo-color);
    color:#fff;
}

.event-btn.primary:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.event-btn.outline{
    background:#fff;
    border:2px solid var(--logo-color);
    color:var(--logo-color);
}

.event-btn.outline:hover{
    background:var(--logo-color);
    color:#fff;
}

.event-btn.full{width:100%;}

/* MODAL */
.event-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.event-modal.active{display:flex;}

.event-modal-dialog{
    background:#fff;
    width:100%;
    max-width:520px;
    border-radius:14px;
    padding:0 30px;
    position:relative;
    animation:popup .3s ease;
}

@keyframes popup{
    from{transform:scale(.92);opacity:0}
    to{transform:scale(1);opacity:1}
}

.event-modal-dialog h3{
    margin:0 0 20px;
    font-size:22px;
}

.event-modal-close{
    position:absolute;
    right:16px;
    top:14px;
    background:none;
    font-size:26px;
    border:none;
    cursor:pointer;
}

/* Agenda form */
.agenda-form input{
    width:100%;
    padding:14px;
    margin-bottom:14px;
    border-radius:8px;
    border:1px solid #ddd;
}


/* ==================================================
   MODAL OVERLAY
================================================== */
.event-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    z-index: 9999;
}

.event-modal.active{
    display: flex;
}

/* Desktop center */
@media (min-width: 768px){
    .event-modal{
        align-items: center;
        justify-content: center;
    }
}

/* Mobile / Zoom safe */
@media (max-width: 767px){
    .event-modal{
        align-items: flex-start;
        justify-content: center;
        padding: 10px 0;
    }
}

/* ==================================================
   MODAL DIALOG (ZOOM SAFE)
================================================== */
.event-modal-dialog{
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;

    /* 🔑 KEY FIX */
    max-height: 90vh; /* safe viewport height */
    overflow: hidden;
}

/* ==================================================
   HEADER
================================================== */
.event-modal-header{
    flex-shrink: 0;
    padding: 10px 20px;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.event-modal-header h3{
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

/* ==================================================
   BODY (AUTO-ADJUST)
================================================== */
.event-modal-body{
    flex: 1 1 auto;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* 🔑 Prevent zoom clipping */
    min-height: 0;
	overflow-x: clip;
}

/* Desktop: natural height */
@media (min-width: 768px){
    .event-modal-body{
        overflow-y: auto;
    }
}

/* ==================================================
   FOOTER
================================================== */
.event-modal-footer{
    flex-shrink: 0;
    padding: 14px 20px;
    background: #f7f8fa;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================================================
   MOBILE SCROLLBAR HIDE (OPTIONAL)
================================================== */
@media (max-width: 767px){
    .event-modal-body::-webkit-scrollbar{
        width: 0;
    }
}

#enquiryModal form input[type="text"],
#enquiryModal form input[type="email"],
#enquiryModal form select,
#enquiryModal form textarea{
    height: 30px;
    margin-bottom: 8px;
}
#enquiryModal .event-btn {
    padding: 4px 27px;
	}

#frmEnquiryNow .event-btn {display: none;}
