/* Limit root container width in editor */
body.edit-post-page .is-root-container.is-desktop-preview.is-layout-constrained.wp-block-post-content-is-layout-constrained.has-global-padding.alignfull.wp-block-post-content.block-editor-block-list__layout,
body.block-editor-page .is-root-container.is-desktop-preview.is-layout-constrained.wp-block-post-content-is-layout-constrained.has-global-padding.alignfull.wp-block-post-content.block-editor-block-list__layout {
    max-width: 1200px !important;
}

.hero-event {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Limit width in editor to match block container width */
.editor-styles-wrapper .hero-event,
.block-editor-block-list__layout .hero-event,
.wp-block[data-type="acf/hero-event"] .hero-event,
.is-root-container .hero-event {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-event__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(24px, 2.33vw, 60px);
    padding-right: clamp(24px, 2.33vw, 60px);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Limit width in editor to match block container width */
.editor-styles-wrapper .hero-event__inner,
.block-editor-block-list__layout .hero-event__inner {
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (min-width: 1920px) {
    .hero-event__inner {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Logo */
.hero-event__logo {
    position: absolute;
    top: 10px;
    right: clamp(24px, 2.33vw, 60px);
    z-index: 3;
}

.hero-event__logo-image {
    max-width: 200px;
    height: auto;
    display: block;
}

.hero-event__logo-link {
    display: inline-block;
    text-decoration: none;
}

.hero-event__logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Content Layout */
.hero-event__content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 900px;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Text */
.hero-event__text {
    flex: 1;
}

.hero-event__title {
    margin: 0 0 24px 0;
    font-family: "Lexend", sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    color: #FFFFFF;
}

.hero-event__title[style*="font-size"] {
    font-size: var(--title-font-size) !important;
}

.hero-event__subtitle {
    margin: 0 !important;
    font-family: "Lexend", sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    line-height: 1.5;
    color: #FFFFFF;
    display: flex !important;
    align-items: center;
    gap: clamp(16px, 4vw, 32px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-event__subtitle-text {
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-event__subtitle-line {
    flex: 0 0 33.333%;
    width: 33.333%;
    height: 2px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 0) 0%, rgba(46, 204, 113, 0.6) 100%) !important;
    align-self: center;
    flex-shrink: 0;
}

/* Button */
.hero-event__button-wrapper {
    flex-shrink: 0;
    margin-top: 20px;
}

.hero-event__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 213px !important;
    height: 46px;
    padding: 10px 20px;
    border-radius: 50px;
    gap: 10px;
    font-family: "Lexend", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box !important;
}

.hero-event__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Empty State */
.hero-event-empty-state {
    padding: 40px 20px;
    text-align: center;
    min-height: 400px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 20px 0;
}

.hero-event-empty-title {
    color: rgba(0, 0, 0, 0.6) !important;
    font-family: Lexend, sans-serif;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
}

.hero-event-empty-click {
    color: rgba(0, 0, 0, 0.4) !important;
    font-family: Lexend, sans-serif;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-event__inner {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .hero-event__content {
        flex-direction: column;
        gap: 40px;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-event__button-wrapper {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    
    .hero-event__inner {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .hero-event__logo {
        right: 30px;
    }
    
    .hero-event__logo-image {
        max-width: 150px;
    }
    
    .hero-event__content {
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 30px;
    }
    
    .hero-event__subtitle {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hero-event__subtitle-line {
        flex: 0 0 33.333%;
        width: 33.333%;
    }
    
    .hero-event__subtitle-text {
        flex: 1;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-event__button {
        padding: 14px 32px;
        font-size: 16px;
    }
}

