/**
 * Frontend Styles for YH Events Manager
 */

.e-con>.e-con-inner {

    max-width: 1300px !important;

    width: 100%;
}

/* Hide sidebar when events shortcode is present */
body:has(.yh-events-container) .sidebar,
body:has(.yh-events-container) aside,
body:has(.yh-events-container) #sidebar,
body:has(.yh-events-container) .widget-area,
body:has(.yh-events-container) #secondary,
body:has(.yh-events-container) .site-sidebar {
    display: none !important;
}

/* Make content full width when events are present */
body:has(.yh-events-container) .content-area,
body:has(.yh-events-container) .site-main,
body:has(.yh-events-container) .main-content,
body:has(.yh-events-container) #main,
body:has(.yh-events-container) .entry-content {
    width: 100% !important;
    max-width: 100% !important;
}

body:has(.yh-events-container) .site-content,
body:has(.yh-events-container) .container,
body:has(.yh-events-container) .wrapper {
    max-width: 100% !important;
}

.yh-events-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 0px;
    width: 100%;
}

/* Section Headers */
.yh-events-section {
    margin-bottom: 60px;
}

.yh-events-section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    /* background: #2c2c2c;
    padding: 40px 20px;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%); */
}

.yh-section-title {
    color: #ffffff !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    text-align: center !important;
    position: relative !important;
    padding-bottom: 10px !important;
    display: inline-block !important;
}

.yh-section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100px !important;
    height: 4px !important;
    background-color: #f89d35 !important;
    border-radius: 2px !important;
}

/* Event Cards */
.yh-events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.yh-event-card {
    display: flex;
    background: #ffffff;
    height: 330px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.yh-event-image {
    flex: 0 0 40%;
    min-width: 300px;
    overflow: hidden;
}

.yh-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.yh-event-details {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yh-event-title {
    margin: 0 0 10px 0 !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.yh-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.yh-event-title a:hover {
    color: #0066cc;
}

.yh-event-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
}

.yh-event-meta .yh-icon-location {
    align-self: flex-start !important;
    margin-top: 0 !important;
}

.yh-event-icon {
    display: inline-block;
    width: 20px;
    /* height: 20px;*/
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.yh-event-icon {
    color: #4A90E2;
    margin-right: 10px;
    font-size: 18px;
}

.yh-event-icon.yh-icon-calendar::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f073";
}

.yh-event-icon.yh-icon-clock::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f017";
}

.yh-event-icon.yh-icon-location::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f3c5";
    top: -3px;
    position: relative;
}

.yh-event-icon.yh-icon-email::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0e0";
}

.yh-event-icon.yh-icon-phone::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f095";
}

.yh-event-meta-text {
    flex: 1;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.yh-event-read-more {
    margin-top: 8px;
    display: block;
    font-size: 18px;
}

.yh-event-read-more a {
    color: #a1c43b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.yh-event-read-more a:hover {
    color: #8dae2f;
    text-decoration: underline;
}

/* Single Event Page - Ensure full width for header */
body.single-yh_event .site-content,
body.single-yh_event .content-area,
body.single-yh_event .site-main,
body.single-yh_event #main,
body.single-yh_event .entry-content,
body.single-yh_event .container,
body.single-yh_event .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Single Event Page */
.yh-single-event {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    clear: both;
}

/* Header Background with Title (Full Width) */
.yh-event-header-bg {
    display: none !important;
    background: #1a1a2e;
    /*  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);*/
    background: #003349 !important;
    /*padding: 131px 20px;*/
    padding: 131px 20px 0px 20px;
    text-align: left;
    width: 100%;
    margin: 0;
    clear: both;
    /*display: block;*/
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
    height: 48vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 50px;
}

/* Override any container constraints for full width */
body.single-yh_event .yh-event-header-bg {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure header breaks out of any container */
body.single-yh_event .site-content .yh-event-header-bg,
body.single-yh_event .content-area .yh-event-header-bg,
body.single-yh_event .site-main .yh-event-header-bg,
body.single-yh_event #main .yh-event-header-bg {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.yh-event-header-title {
    color: #ffffff;
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    text-align: left;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
}

.yh-container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.yh-event-breadcrumbs {
    max-width: 1200px;
    margin: 20px auto;
    /* padding: 0 20px; */
    font-size: 14px;
    color: #666;
}

.yh-event-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

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

.yh-event-banner {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
    /*display: block;*/
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100%;
}

.yh-event-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.yh-event-details-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 30px auto;
    max-width: 1200px;
    text-align: center;
}

.yh-event-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.yh-event-info-item {
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.yh-event-content {
    margin-bottom: 40px;
    /* text-align: center;*/
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.yh-event-title-single {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.yh-event-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.yh-event-description p {
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Sponsors Section */
.yh-event-sponsors {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.yh-sponsors-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-transform: uppercase;
}

.yh-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.yh-sponsor-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.yh-sponsor-logo {
    margin-bottom: 15px;
}

.yh-sponsor-logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

.yh-sponsor-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.yh-sponsor-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.yh-sponsors-thanks {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.yh-sponsors-thanks p {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Ticket Button Section */
.yh-event-ticket-section {
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
}

.yh-ticket-button {
    /*display: inline-block;
    background: #a1c43b !important;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);*/

    font-size: 16px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    border-radius: 5px !important;
    line-height: 32px !important;
    padding: 10px 40px !important;
    background-color: #9fc645 !important;
    font-weight: 600 !important;
    font-family: 'ProximaNova-Semibold';
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: all 0.4s ease 0s;

    /* ADD THIS LINE BELOW */
    border: 1px solid transparent !important;

    /* OPTIONAL: To ensure it's not a focus ring */
    outline: none !important;
}

.yh-ticket-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    z-index: -1 !important;
    transform: translateX(-50%) !important;
    transition: width 0.4s ease !important;
}

.yh-ticket-button:hover::before {
    width: 100% !important;
}

.yh-ticket-button:hover {
    /* background: linear-gradient(135deg, #8BC34A 0%, #FFC107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;*/
    background-color: #9fc645 !important;
    border: 1px solid transparent !important;
    color: #fff !important;
}

.yh-event-ticket-section a.yh-ticket-button {
    color: #fff !important;
}

.yh-event-ticket-section a.yh-ticket-button:hover {
    color: #fff !important;
}


/* Social Media Sharing */
.yh-event-social-sharing {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* display: none !important; */
}

.yh-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.yh-social-icon:hover {
    background-color: #222222;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.yh-social-icon i {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.yh-social-icon:hover i {
    transform: scale(1.1);
}

.yh-social-x i {
    margin: 0px;
    padding: 0px;
    align-items: center;
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yh-event-card {
        flex-direction: column;
        height: auto !important;
    }

    .yh-event-image {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .yh-event-details {
        padding: 24px 20px;
    }

    .yh-event-title {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    .yh-event-meta {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .yh-event-read-more {
        margin-top: 15px;
    }

    .yh-section-title {
        font-size: 32px;
    }

    .yh-event-title-single {
        font-size: 28px;
    }

    .yh-sponsors-grid {
        grid-template-columns: 1fr;
    }
}

/* 
 * New Styles for Single Event Layout Changes 
 */

/* Address Section (Top) */
.yh-event-address-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    white-space: normal;
}

.yh-event-address-section .yh-event-icon {
    color: #4A90E2;
    margin-right: 8px;
    font-size: 1.4em;
    vertical-align: middle;
}

.yh-event-address-text {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    vertical-align: middle;
}

/* Inline Meta Info */
.yh-event-meta-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.yh-event-meta-inline .yh-event-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    /* Override column stack margin */
}

.yh-event-meta-inline .yh-event-info-item span {
    font-size: 16px;
    color: #555;
    text-align: left;
}

.yh-event-meta-inline .yh-event-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #4A90E2 !important;
}

.yh-event-meta-inline a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.yh-event-meta-inline a:hover {
    color: #0066cc;
}

/* Highlight Image */
.yh-event-highlight-image {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

.yh-event-highlight-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for inline meta */
@media (max-width: 768px) {
    .yh-event-meta-inline {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Placeholder styling for empty upcoming events */
.yh-upcoming-events-placeholder {
    background: #ffffff;
    padding: 30px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    border-top: 4px solid #0087c1;
    margin: 0 auto;
    max-width: 100%;
}

.yh-upcoming-events-placeholder p {
    margin-bottom: 15px;
}

.yh-upcoming-events-placeholder p:last-child {
    margin-bottom: 0;
}

/* 
 * Back to Events button & layout styling
 */

.yh-back-to-events {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #008cbc;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    /* border: 1px solid #003349; */
    font-family: inherit;
}

/* .yh-back-to-events:hover {
    background-color: #ffffff;
    color: #003349 !important;
    border-color: #003349;
} */

.yh-back-text {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.yh-back-to-events:hover .yh-back-text {
    color: #fff !important;
}

.yh-back-arrow {
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* .yh-back-to-events:hover .yh-back-arrow {
    transform: translateX(-4px);
    color: #003349 !important;
} */

.yh-social-sharing-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .yh-event-social-sharing {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }

    .yh-section-title {
        font-size: 30px !important;
    }
}