@charset "UTF-8";

/*
Theme Name: Egy Event
Theme URL: https://elshaikh.net/
Version: 1.0
Author: Elshaikh
Author URI: https://elshaikh.net/
License URI: https://elshaikh.net/themes-license
*/

/* الخط الوحيد: Zain فقط (من assets/fonts/Zain) */
html,
body {
    font-family: 'Zain', sans-serif;
}

/* Hero search form: ارتفاع على قد المحتوى so it doesn’t shift when fonts/content load */
#hero-search-form {
    flex-shrink: 0;
    height: auto;
    min-height: 0;
    will-change: auto;
    box-sizing: border-box;
}

#hero-search-form input#hero-search-input {
    min-height: 3.5rem;
    line-height: 1.5;
}

#hero-search-form .grid.grid-cols-2>div {
    min-height: 3rem;
}

#hero-search-form button[type="submit"] {
    min-height: 3rem;
}

#hero-search-form .flex.items-center.bg-slate-50 {
    min-height: 3.5rem;
}

@media (min-width: 1024px) {
    #hero-search-form {
        min-height: 0;
        height: auto;
    }

    #hero-search-form input#hero-search-input {
        min-height: 4rem;
    }

    #hero-search-form .grid.grid-cols-2>div {
        min-height: 3.5rem;
    }

    #hero-search-form button[type="submit"] {
        min-height: 3.5rem;
    }

    #hero-search-form .flex.items-center.bg-slate-50 {
        min-height: 4rem;
    }
}

/* CLS: contain layout in hero content column so font/icon reflow doesn’t shift page */
/* Cookie consent banner – عرض على قد المحتوى، مسافة من تحت، زوايا دائرية وظل */
.cookie-consent-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 2rem);
    z-index: 9999;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.98);
    color: #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-banner--hidden {
    transform: translateX(-50%) translateY(calc(100% + 1.25rem));
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-banner__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-consent-banner__link {
    color: #43cea2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-banner__link:hover {
    color: #67e0b5;
}

.cookie-consent-banner__btn {
    flex-shrink: 0;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    background: linear-gradient(135deg, #43cea2, #38b2ac);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-consent-banner__btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(67, 206, 162, 0.4);
}

.cookie-consent-banner__actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.cookie-consent-banner__btn--reject {
    color: #fff;
    background: #c53030;
    border: none;
}

.cookie-consent-banner__btn--reject:hover {
    background: #9b2c2c;
    box-shadow: 0 4px 14px rgba(197, 48, 48, 0.4);
}

.dark .cookie-consent-banner {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Single event contact buttons: hover tooltip (CSS only) */
.single-event-contact-btn {
    position: relative;
}

.single-event-contact-btn__label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    background: #0f172a;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.single-event-contact-btn:hover .single-event-contact-btn__label,
.single-event-contact-btn:focus .single-event-contact-btn__label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
}

.dark .single-event-contact-btn__label {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* CLS: contain layout in hero content column (لا نستخدم contain على النص لتجنب قص الحروف النازلة) */
.hero-content-col {
    contain: layout;
}

/* فقرة الهيرو: مسافة سطر كافية ومساحة تحت للنزولات حتى لا يُقصّ النص من تحت */
.hero-description {
    line-height: 1.75;
    padding-bottom: 0.15em;
}

/* العبارات الكبيرة في كامل الموقع: منع قص الحروف النازلة (ن، ي، ر، ق...) */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.6;
    padding-bottom: 0.12em;
}

.text-2xl,
.text-3xl,
.text-4xl,
.text-5xl,
.text-6xl,
.text-7xl {
    line-height: 1.6 !important;
    padding-bottom: 0.12em;
}

.page-content p,
.prose p {
    line-height: 1.75;
    padding-bottom: 0.1em;
}

/* Event info row: أيقونة/صورة بحجم تلقائي وأصغر */
.single-event-info-icon {
    width: auto;
    min-width: auto;
    height: auto;
    object-fit: contain;
}

.single-event-info-icon i {
    font-size: 1.25em;
}

.single-event-info-icon img {
    max-width: 2rem;
    max-height: 2rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Scroll styling for dropdown lists */
.custom-scrollbar {
    min-height: 0;
    /* allows flex child to shrink and scroll */
    -webkit-overflow-scrolling: touch;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Styled checkboxes to match dropdown design */
.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.375rem;
    background-color: #fff;
    display: inline-grid;
    place-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-checkbox:checked {
    background-color: #43cea2;
    border-color: #43cea2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l4 4 8-8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
}

.form-checkbox:focus-visible {
    outline: 2px solid rgba(67, 206, 162, 0.35);
    outline-offset: 2px;
}

.dark .form-checkbox {
    background-color: #0f172a;
    border-color: #334155;
}

.dark .form-checkbox:checked {
    background-color: #43cea2;
    border-color: #43cea2;
}

/* Hide horizontal scrollbar for category strip */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Clamp category descriptions to 3 lines and keep hover smooth */
.category-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lazy load: hidden until in viewport, then fade in */
.lazy-img {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lazy-img.lazy-loaded {
    opacity: 1;
}

.imageLoader {
    transition: opacity 0.35s ease;
    opacity: 0;
}

.imageLoader.loaded,
.imageLoader.lazy-loaded {
    opacity: 1;
}

/* Upcoming slider alignment */
#upcoming-swiper .swiper-wrapper {
    align-items: stretch;
}

#upcoming-swiper .swiper-slide {
    height: auto !important;
    display: flex;
}

#upcoming-swiper .upcoming-card {
    height: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.page-content p,
.page-content li,
.page-content blockquote {
    line-height: 1.5 !important;
}

/* تمييز روابط المحتوى باللون الأخضر */
.page-content a,
.prose a {
    color: #43cea2;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.page-content a:hover,
.prose a:hover {
    color: #38b2ac;
}

.dark .page-content a,
.dark .prose a {
    color: #67e0b5;
}

.dark .page-content a:hover,
.dark .prose a:hover {
    color: #43cea2;
}

/* صور المحتوى (figure.wp-caption): زوايا دائرية وظل */
.wp-caption,
figure.wp-caption {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wp-caption img,
figure.wp-caption img {
    border-radius: 1rem;
    display: block;
    max-width: 100%;
    height: auto;
}

.dark .wp-caption,
.dark figure.wp-caption {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Breadcrumb general styles */
.single-event-hero__breadcrumbs {
    line-height: 1.6 !important;
    overflow-y: visible !important;
}

.single-event-hero__breadcrumbs a,
.single-event-hero__breadcrumbs span {
    line-height: 1.6 !important;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .single-event .single-event-hero {
        text-align: center;
        padding-top: 8rem !important;
    }

    .single-event .single-event-hero .container {
        padding-top: 2rem;
    }

    .single-event .single-event-hero__breadcrumbs,
    .single-event .single-event-hero__tags,
    .single-event .single-event-hero__meta {
        justify-content: center;
    }

    .single-event .single-event-hero__breadcrumbs {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        align-items: center;
        line-height: 1.6;
        min-height: 2em;
        padding: 0.5rem 0;
        height: auto;
    }

    .single-event .single-event-hero__breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .single-event .single-event-hero__breadcrumbs a,
    .single-event .single-event-hero__breadcrumbs span {
        white-space: nowrap;
        flex-shrink: 0;
        display: inline-block;
        line-height: 1.5;
        vertical-align: middle;
    }

    .single-event .single-event-hero__breadcrumbs i {
        flex-shrink: 0;
        display: inline-block;
        vertical-align: middle;
    }

    .single-event .single-event-hero__tags {
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .single-event .single-event-hero__tags span {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .single-event .single-event-hero__title {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    .single-event .single-event-hero__meta {
        gap: 12px;
        font-size: 0.95rem;
    }

    .single-event .single-event-hero__meta i {
        font-size: 1rem;
    }

    .single-event .single-event-hero__aside {
        align-items: center;
    }

    .single-event .single-event-hero__aside>span {
        align-self: stretch;
        text-align: right;
    }

    .single-event .single-event-hero__countdown {
        gap: 14px;
        padding: 14px 16px;
        width: 100%;
        justify-content: space-between;
    }

    .single-event .single-event-hero__countdown>div:not([data-countdown-sep]) {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .single-event .single-event-hero__countdown [data-countdown-unit] {
        font-size: 1.8rem;
        display: inline-block;
    }

    .single-event .single-event-hero__countdown [data-countdown-label] {
        font-size: 0.75rem;
        display: inline-block;
    }

    .single-event .single-event-body {
        text-align: center;
    }

    .single-event .single-event-body .prose {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .single-event .single-event-body .js-vote-block {
        justify-content: center;
        gap: 10px;
    }

    .single-event .single-event-body .js-vote-block.egyevent-vote-loading .js-vote-btn {
        pointer-events: none;
        opacity: 0.7;
        cursor: not-allowed;
    }

    .single-event .single-event-layout {
        row-gap: 24px;
    }

    .single-event .single-event-share {
        padding: 24px 20px;
        text-align: center;
    }

    .single-event .single-event-share__row {
        gap: 20px;
    }

    .single-event .single-event-share__left,
    .single-event .single-event-share__right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .single-event .single-event-share__left .flex-wrap {
        justify-content: center;
        gap: 12px;
    }

    .single-event .single-event-share__right {
        flex-direction: column;
        align-items: center;
    }

    .single-event .single-event-share__link {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .single-event .single-event-share__link input {
        text-align: right;
    }

    .single-event .single-event-info-row {
        flex-direction: row;
        align-items: center;
        text-align: right;
        gap: 12px;
    }

    .single-event .single-event-info-row p,
    .single-event .single-event-info-row a {
        text-align: right;
    }
}

.page-content>h1:first-child,
.page-content>h2:first-child,
.page-content>h3:first-child,
.page-content>h4:first-child {
    margin-top: 0 !important;
}

@media (max-width: 640px) {
    footer .footer-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    footer .footer-main>*:first-child {
        grid-column: 1 / -1;
    }

    footer .footer-section--menu {
        text-align: center;
    }

    footer .footer-section--menu .footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .footer-main>*:first-child {
        text-align: center;
        align-items: center;
    }

    footer .footer-main>*:first-child>a {
        justify-content: center;
    }

    footer .footer-main>*:first-child .text-slate-600,
    footer .footer-main>*:first-child .text-slate-300 {
        text-align: center;
    }

    footer .footer-main>*:first-child .flex {
        justify-content: center;
    }
}

/* Footer menus (أقسام المكان، أبرز المدن): مسافة واضحة بين العناصر */
.footer-menu {
    gap: 0 0;
}

.footer-menu>li+li {
    margin-block-start: 0.75rem;
}

/* Footer bottom menu: على الديسكتوب كل الروابط في سطر واحد جنب بعض، على الموبايل شبكة عمودين والنص في النص */
.footer-bottom-nav__list,
.footer-bottom-nav ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.5rem;
    row-gap: 0.5rem;
}

.footer-bottom-nav li {
    text-align: inherit;
}

.footer-bottom-nav li+li {
    margin-inline-start: 0;
}

.footer-bottom-nav a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom-nav a:hover {
    text-decoration: underline;
}

/* الموبايل فقط: عمودين، النص في النص، والـ border و padding-bottom للقائمة */
@media (max-width: 767px) {

    .footer-bottom-nav__list,
    .footer-bottom-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.09);
        padding-bottom: 20px;
    }

    .footer-bottom-nav li {
        width: 100%;
        text-align: center;
    }
}

/* الفوتر على الموبايل: margin-bottom 5rem، ونص الحقوق/صنع بحب بعرض 100% وفي النص */
@media (max-width: 767px) {
    footer {
        margin-bottom: 5rem;
    }

    .footer-bottom-bar .footer-bottom-bar__copyright,
    .footer-bottom-bar .footer-bottom-bar__made {
        width: 100%;
        text-align: center;
    }
}

/* تخطيط نموذج النشرة: سطر أول = بريد + زر، سطر ثان = مدينة + نوع */
.egyevent-newsletter-form__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.egyevent-newsletter-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.egyevent-newsletter-form__row--1 .egyevent-newsletter-email {
    flex: 1;
    min-width: 12rem;
}

.egyevent-newsletter-form__row--2 .custom-select {
    flex: 1;
    min-width: 10rem;
}

/* صندوق النشرة خارج الفوتر (تحت الماين، فوق الفوتر) */
.footer-newsletter-bar {
    direction: rtl;
}

.footer-newsletter-cta {
    background: linear-gradient(180deg, #ebefff 0%, #f5f5ff 40%, #ffffff 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

.footer-newsletter-cta__title {
    margin: 0 auto;
    max-width: 36rem;
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #a0a8bf;
}

@media (min-width: 640px) {
    .footer-newsletter-cta__title {
        font-size: 2.25rem;
    }
}

.footer-newsletter-cta__desc {
    margin: 0.75rem auto 0;
    max-width: 36rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #a0a8bf;
}

.footer-newsletter-bar #egyevent-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.footer-newsletter-bar .egyevent-newsletter-form__row {
    display: flex;
    align-items: center;
}

.footer-newsletter-bar .egyevent-newsletter-form__row--single {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.footer-newsletter-bar .egyevent-newsletter-form__row--single .egyevent-newsletter-email {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-newsletter-bar .egyevent-newsletter-form__row--single .custom-select {
    flex: 0 1 auto;
    min-width: 7rem;
}

.footer-newsletter-bar .egyevent-newsletter-form__row--single button[type="submit"] {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .footer-newsletter-bar .egyevent-newsletter-form__row--single {
        flex-wrap: wrap;
    }
}

.footer-newsletter-bar .egyevent-newsletter-email,
.footer-newsletter-bar .custom-select__trigger {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    font-size: 0.875rem;
    background: #f8f8f8;
    color: #333;
}

.footer-newsletter-bar .egyevent-newsletter-email::placeholder {
    color: #b0b0b0;
}

.footer-newsletter-bar .egyevent-newsletter-email:focus,
.footer-newsletter-bar .custom-select__trigger:focus {
    outline: 0;
    border-color: #a0a8bf;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(160, 168, 191, 0.2);
}

.footer-newsletter-bar .egyevent-newsletter-email {
    min-width: 0;
}

.footer-newsletter-bar .custom-select {
    min-width: 0;
}

.footer-newsletter-bar .custom-select__trigger::after {
    border-top-color: #888;
}

.footer-newsletter-bar #egyevent-newsletter-form button[type="submit"] {
    flex: none;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.footer-newsletter-bar #egyevent-newsletter-form button[type="submit"]:hover {
    background: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.footer-newsletter-bar #egyevent-newsletter-message {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    text-align: center;
}

.dark .footer-newsletter-bar #egyevent-newsletter-message {
    color: #94a3b8;
}

.footer-newsletter-bar .custom-select__list {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.footer-newsletter-bar .custom-select__option {
    color: #333;
}

.footer-newsletter-bar .custom-select__option:hover {
    background: #f0f0f0;
}

.footer-newsletter-bar .custom-select__option.is-selected {
    background: #ebefff;
    color: #6366f1;
}

/* Custom dropdown (نشرة الفوتر) */
.custom-select {
    position: relative;
    min-width: 140px;
}

.custom-select__trigger {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.875rem;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    transition: border-color 0.2s;
}

.custom-select__trigger:hover {
    border-color: #94a3b8;
}

.custom-select__trigger::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
}

.custom-select__list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 2px;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.custom-select.is-open .custom-select__list {
    display: block;
}

.custom-select__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s;
}

.custom-select__option:hover {
    background: #f1f5f9;
}

.custom-select__option.is-selected {
    background: #e0e7ff;
    color: #4338ca;
}

.custom-select select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    left: -9999px;
}

/* صفحة اقتراح فعالية – custom dropdown */
.add-event-dropdown {
    position: relative;
}

.add-event-dropdown__list-wrap {
    display: none;
}

.add-event-dropdown.is-open .add-event-dropdown__list-wrap {
    display: flex;
}

.add-event-dropdown__list {
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.add-event-dropdown.is-open .add-event-dropdown__list {
    display: block;
}

.add-event-dropdown__option.add-event-dropdown__option--hidden {
    display: none;
}

/* صفحة اقتراح فعالية – توجل (الفئات المستهدفة) – أسلوب checkbox-wrapper-36 */
.checkbox-wrapper-36 *,
.checkbox-wrapper-36 *::before,
.checkbox-wrapper-36 *::after {
    box-sizing: border-box;
}

.checkbox-wrapper-36 .add-event-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkbox-wrapper-36 .add-event-toggle-track {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    height: 44px;
    padding: 6px;
    position: relative;
    transition: transform 300ms ease, box-shadow 300ms ease;
    width: 100px;
    flex-shrink: 0;
    border: 1px solid var(--tw-slate-200, #e2e8f0);
}

.dark .checkbox-wrapper-36 .add-event-toggle-track {
    background: var(--tw-slate-800, #1e293b);
    border-color: var(--tw-slate-600, #475569);
}

.checkbox-wrapper-36 .add-event-toggle-track::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e2e8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' fill='%2394a3b8' stroke-linecap='round' d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px;
    transition: left 300ms ease, background 150ms linear;
}

.dark .checkbox-wrapper-36 .add-event-toggle-track::after {
    background-color: #475569;
}

.checkbox-wrapper-36:active .add-event-toggle-track {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.checkbox-wrapper-36 .add-event-toggle-input:checked+.add-event-toggle-track::after {
    left: 62px;
    background: var(--tw-primary, #0d9488) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath stroke='white' fill='white' stroke-linecap='round' d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px;
}

.checkbox-wrapper-36 .add-event-toggle-input:focus-visible+.add-event-toggle-track {
    outline: 2px solid var(--tw-primary, #0d9488);
    outline-offset: 2px;
}

/* صفحة اقتراح فعالية – مناطق رفع الملفات (شكل موحّد) */
.add-event-file-zone.drag-over {
    border-color: var(--tw-primary, #0d9488);
    background-color: rgba(13, 148, 136, 0.05);
}

.add-event-file-zone.has-file {
    border-style: solid;
    border-color: var(--tw-primary, #0d9488);
}

.add-event-file-preview img {
    max-height: 8rem;
    width: auto;
    object-fit: contain;
}

.add-event-profile-preview {
    font-size: 0.875rem;
    color: var(--tw-primary, #0d9488);
    font-weight: 700;
    padding: 0.5rem;
    word-break: break-all;
}

/* نافذة النشرة المنبثقة (تظهر بعد 10 ثوانٍ، زر ذكرني لاحقاً يخفيها 24 ساعة) */
.egyevent-newsletter-popup {
    direction: rtl;
    z-index: 2147483647;
}

.egyevent-newsletter-popup__inner {
    overflow: visible;
}

.egyevent-newsletter-popup__scroll {
    max-height: 40vh;
}

.egyevent-newsletter-popup__row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.egyevent-newsletter-popup__row .custom-select {
    flex: 1;
    min-width: 0;
}

/* اتجاه النص في الـ dropdown: الكلام من اليمين والأيقونة تبقى مكانها */
.egyevent-newsletter-popup .custom-select__trigger {
    direction: rtl;
    text-align: right;
    justify-content: flex-start;
}

.egyevent-newsletter-popup .custom-select__trigger::after {
    left: 0.75rem;
    right: auto;
}

.egyevent-newsletter-popup .custom-select__option {
    direction: rtl;
    text-align: right;
}

/* المدينة والنوع: الكلام من اليمين (البوب أب + الفوتر) */
.footer-newsletter-bar .custom-select__trigger {
    direction: rtl;
    text-align: right;
    justify-content: flex-start;
}

.footer-newsletter-bar .custom-select__option {
    direction: rtl;
    text-align: right;
}

/* نموذج النشرة البريدية (Tailwind أساسي؛ أي تنسيق إضافي هنا) */
#egyevent-newsletter-form button[type="submit"] {
    background-color: var(--tw-primary, #0d9488);
}

#egyevent-newsletter-message.success {
    color: #059669;
}

#egyevent-newsletter-message.error {
    color: #dc2626;
}

.logo-text {
    line-height: 21px;
    margin-right: 15px;
    font-weight: 600;
}

.logo-text span.text-secondary {
    font-size: 15px;
}