@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700;800&display=swap');

/* --- הגדרת פונטים --- */
@font-face {
    font-family: 'MyCuFont'; 
    src: url('fonts/Cu_font-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- הגדרת משתני צבעים --- */
:root {
    --bg-dark: #172433;        /* הרקע הכהה */
    --brand-orange: #f89a48;   /* הלוגו והדגשות (CTA) */
    --secondary-blue: #2a4669; /* כחול ביניים */
    --highlight: #f3e8c4;      /* צבע בהיר להקפצה/אור */
    --accent-red: #a95b49;     /* גוון אדמדם לאפקטים */
    --text-white: #ffffff;     /* טקסט רגיל */
}

/* =========================================
   1. הגדרות בסיס ומשתנים (RESET & GLOBAL)
   ========================================= */
* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Rubik', sans-serif !important;
    margin: 0;
    padding-top: 90px;
    background-color: #0d1b2a;
    color: white;
    direction: rtl;
    overflow-x: clip;
}

/* --- הגדרות טיפוגרפיה גלובליות (מניעת יתומים ואיזון שורות) --- */
p, li, a, span {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/* =========================================
   2. HEADER DESKTOP
   ========================================= */
.site-header {
    background-color: #0d1b2a;
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
}

.container {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- צד ימין: לוגו ותפריט --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.8));
    cursor: pointer;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-item {
    height: 90px;
    display: flex;
    align-items: center;
    position: static;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding: 35px 0;
    transition: color 0.3s;
}

.nav-link:hover { color: #ff9f1c; }

/* --- MEGA MENU --- */
.mega-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 993px) {
    .mega-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        border-top: 5px solid #ff9f1c;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        padding: 40px 0;
        z-index: 9999;
    }

    .nav-item:hover .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .mega-content {
        max-width: 1350px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .menu-list { width: 70%; }

    .categories-grid, .months-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px 40px;
        width: 100%;
        text-align: right;
    }

    .months-grid {
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
    }

    .category-item, .month-item {
        color: #333;
        font-size: 16px;
        text-decoration: none;
        display: block;
        padding: 5px 0;
        transition: 0.2s;
    }

    .category-item:hover, .month-item:hover {
        color: #ff9f1c;
        font-weight: bold;
    }

    .promo-image-container {
        width: 25%;
        border-radius: 10px;
        overflow: hidden;
    }

    .promo-image {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* --- צד שמאל --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.club-btn {
    border: 2px solid #ff9f1c;
    color: #ff9f1c;
    padding: 6px 20px;
    font-size: 16px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    transition: 0.3s all ease;
    white-space: nowrap;
}

.club-btn:hover {
    background-color: #ff9f1c;
    color: #0d1b2a;
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.6);
}

.search-container {
    background-color: #233d53;
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    width: 220px;
    transition: 0.3s;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    width: 100%;
    outline: none;
    padding: 0 10px;
    text-align: right;
}

.search-input::placeholder { color: #aebbc5; }

.search-icon-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 18px;
    cursor: pointer;
}

/* --- כפתור פרופיל (עם התיקון לבועה!) --- */
.profile-btn {
    position: relative; /* חובה בשביל הבועה */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.profile-btn i { font-size: 24px; }

.profile-btn:hover {
    background-color: #ff9f1c;
    color: #0d1b2a;
}

/* הבועה (Tooltip) שחזרה */
.profile-btn::after {
    content: "היקום שלי";
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: #0d1b2a;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}

.profile-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   3. MOBILE RESPONSIVE HEADER
   ============================================================ */

/* 1. ברירת מחדל: דסקטופ */
#mobileMenu, .hamburger-btn {
    display: none !important;
}

.desktop-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- הגדרות מובייל (עד 992px) --- */
@media (max-width: 992px) {

    /* הסתרת דסקטופ */
    .desktop-only, 
    .nav-list {
        display: none !important;
    }

    /* התאמות הדר */
    .site-header { height: 60px; padding: 0 15px; }
    body { padding-top: 60px; }
    .container { padding: 0; }
    .header-left { gap: 0; width: auto; }
    
    /* כפתור המבורגר */
    .hamburger-btn {
        display: block !important;
        font-size: 24px;
        color: white;
        margin: 0;
        z-index: 10001;
        background: none; border: none; cursor: pointer;
    }

    /* תפריט צד נפתח */
    #mobileMenu {
        display: block !important;
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #0d1b2a;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 0; 
        overflow-y: auto;
    }

    #mobileMenu.open { transform: translateX(0); }

    /* --- תיקון החלק העליון --- */
    .mobile-menu-top {
        padding: 20px 20px 0 20px;
        background-color: transparent !important;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* תיבת חיפוש */
    .mobile-search-box {
        display: flex; align-items: center;
        background: rgba(255,255,255,0.1);
        border-radius: 8px; padding: 8px 12px;
        margin-bottom: 0;
    }

    .mobile-search-box input {
        width: 100%; background: transparent; border: none; outline: none;
        color: white; font-size: 16px; text-align: right;
    }
    
    .mobile-search-box button {
        background: transparent; border: none; color: #ccc; font-size: 18px;
    }

    /* קונטיינר לקישורים העליונים (פרופיל ומועדון) */
    .mobile-user-actions {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 0;
    }

    /* --- עיצוב אחיד לכל השורות --- */
    .toggle-btn, 
    .mobile-link {
        width: 100%;
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        background: none; 
        border: none;
        color: white; 
        font-family: 'Rubik', sans-serif; 
        font-size: 18px;
        font-weight: 400;
        padding: 20px 0;
        text-decoration: none;
        cursor: pointer;
        margin: 0;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-user-actions .mobile-link:last-child {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-link.club-link {
        color: #ff9f1c !important;
        font-weight: 700;
        margin-top: 0;
    }

    .profile-link {
        justify-content: flex-start;
        gap: 10px;
        flex-direction: row; 
    }
    
    .profile-link i {
        order: 0;
    }

    /* רשימה ראשית */
    .mobile-nav-list {
        list-style: none; padding: 0 20px;
        margin: 0;
        display: flex; flex-direction: column;
    }

    .mobile-item { width: 100%; }

    /* הגריד הפנימי */
    .mobile-submenu { 
        display: none !important;
        padding: 10px 0 20px 0;
        background-color: transparent;
    }
    
    .mobile-submenu.grid-layout.open,
    #monthsContainerMobile {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .mobile-submenu.open {
        display: block !important;
    }

    /* עיצוב הכפתורים הפנימיים */
    .mobile-submenu a, 
    .month-item {
        background-color: rgba(255,255,255,0.05) !important;
        color: #ffffff !important;
        text-decoration: none; text-align: center;
        padding: 12px 5px !important;
        border-radius: 6px;
        font-size: 15px !important; line-height: 1.2;
        display: flex; align-items: center; justify-content: center;
        min-height: 50px;
        border: 1px solid rgba(255,255,255,0.05) !important;
        cursor: pointer; font-weight: normal !important;
        margin: 0;
    }

    .mobile-submenu a:active, 
    .month-item:active {
        background-color: rgba(255, 159, 28, 0.2) !important;
        border-color: #ff9f1c !important;
    }
}

/* ==========================================================================
   4. HERO SECTIONS — Decoupled: Index vs Gift Card
   ========================================================================== */

/* ── Shared typography (both heroes inherit these) ─────────────────────── */
.hero-title {
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    margin: 0 0 0.75rem;
    color: var(--secondary-blue, #2a4669);
    letter-spacing: 2px;
}

.highlight-text { color: var(--brand-orange, #f89a48); }

.promo-tag {
    display: inline-block;
    background-color: var(--brand-orange, #f89a48);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.promo-headline {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--bg-dark, #0b1120);
}

.promo-desc {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    color: #2a4669;
    margin-bottom: 2rem;
    max-width: 390px;
    text-align: right;
}

.btn-primary {
    display: inline-block;
    background-color: var(--bg-dark, #0b1120);
    color: white;
    padding: clamp(0.85rem, 1.5vw, 1.2rem) clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    background-color: var(--brand-orange, #f89a48);
    transform: translateY(-3px);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}


/* ══════════════════════════════════════════════════════════════════════════
   INDEX.HTML HERO
   Selector scope: .index-hero
   HTML:  .index-hero > .hero-content > .promo-box
                      > .hero-image > img[planet.svg]
   ══════════════════════════════════════════════════════════════════════════ */

/* Container */
.index-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 8%, 10%);
    gap: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateX(-2.9vw);
}

/* White box */
.index-hero .promo-box {
    background-color: rgba(255, 255, 255, 0.92);
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    width: 100%;
    text-align: right;
    color: var(--bg-dark, #0b1120);
    position: relative;
    z-index: 2;
    animation: slideIn 0.8s ease-out both;
    flex-shrink: 0;
}

/* SVG container */
.index-hero .hero-image {
    flex: 0 0 clamp(260px, 40vw, 500px);
    max-width: clamp(260px, 40vw, 500px);
    display: flex;
    align-items: center;
    margin-right: clamp(-60px, -4vw, -20px);
    position: relative;
    z-index: 3;
}

/* planet.svg */
.index-hero .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.04);
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.65));
    transition: filter 0.4s ease;
}

@media (max-width: 900px) {
    .index-hero {
        padding: clamp(5rem, 8vw, 7rem) clamp(1rem, 5%, 4rem);
    }
    .index-hero .promo-box {
        max-width: 440px;
        text-align: right;
    }
    .index-hero .hero-image {
        flex: 0 0 clamp(220px, 38vw, 380px);
        max-width: clamp(220px, 38vw, 380px);
        margin-right: clamp(-50px, -3vw, -15px);
    }
}

@media (max-width: 500px) {

  .index-hero {
    flex-direction: column;
    padding: 2rem 5px 1rem 5px;
    align-items: center;
    transform: none;
  }

  .index-hero .promo-box {
    width: clamp(260px, 90vw, 310px);
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.8rem 1.5rem 2.8rem 1.5rem;
    transform: translateX(6vw);
  }

  .index-hero .promo-desc {
    font-size: clamp(1.05rem, 3.5vw, 1.3rem);
    margin-bottom: 1rem;
    text-align: right;
    max-width: 95%;
    margin-left: auto;
  }

  .index-hero .hero-image {
    width: clamp(145px, 39vw, 180px);
    align-self: flex-end;
    margin-top: clamp(-125px, -28vw, -120px);
    margin-left: -30px;
    margin-right: 0;
    transform: translateX(6vw);
    z-index: 5;
  }

  .index-hero .hero-image img {
    transform: scale(1.0);
    filter: drop-shadow(4px 8px 12px rgba(20, 20, 60, 0.75));
  }
  .index-hero .hero-title {
    font-size: clamp(1.6rem, 5vw, 1.8rem);
  }
  .index-hero .promo-headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .index-hero .btn-primary {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1.2rem, 4vw, 2rem);
  }

}
/* ══════════════════════════════════════════════════════════════════════════
   GIFT CARD HERO
   Selector scope: .gift-hero
   HTML:  .gift-hero > .promo-box > .hero-image > img[CU gift motion.svg]
   ══════════════════════════════════════════════════════════════════════════ */

/* Container */
.gift-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 8%, 10%);
    gap: 0;
    position: relative;
    overflow: visible;
    z-index: 1;
    transform: translateX(-2.9vw);
}

/* White box */
.gift-hero .promo-box {
    background-color: rgba(255, 255, 255, 0.92);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 480px;
    width: 100%;
    text-align: right;
    color: var(--bg-dark, #0b1120);
    position: relative;
    z-index: 2;
    animation: slideIn 0.8s ease-out both;
    flex-shrink: 0;
}

.gift-hero .promo-desc {
    max-width: 90%;
    margin-left: auto;
}

/* SVG container */
.gift-hero .hero-image {
    flex: 0 0 clamp(240px, 35vw, 420px);
    max-width: clamp(240px, 35vw, 420px);
    display: flex;
    align-items: center;
    margin-right: clamp(-80px, -4vw, -40px);
    position: relative;
    z-index: 3;
}

/* CU gift motion.svg */
.gift-hero .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.04);
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.65));
    transition: filter 0.4s ease;
}

@media (max-width: 900px) {
    .gift-hero {
        padding: clamp(5rem, 8vw, 7rem) 1.5rem;
        transform: none;
    }
    .gift-hero .promo-box {
        max-width: 360px;
    }
    .gift-hero .promo-desc {
        max-width: 80%;
    }
    .gift-hero .hero-image {
        flex: 0 0 clamp(230px, 38vw, 320px);
        max-width: clamp(230px, 38vw, 320px);
        margin-right: clamp(-110px, -10vw, -70px);
    }
}
@media (max-width: 600px) {

  .gift-hero {
    flex-direction: column;
    padding: 2rem 5px 1rem 5px;
    align-items: center;
    transform: none;
  }

  .gift-hero .promo-box {
    width: clamp(260px, 90vw, 380px);
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.8rem 1.5rem 3rem 1.5rem;
    transform: translateX(6vw);
  }

  .gift-hero .promo-desc {
    font-size: clamp(1.05rem, 3.5vw, 1.3rem);
    margin-bottom: 1rem;
    text-align: right;
    max-width: 75%;
    margin-left: auto;
  }

  .gift-hero .hero-image {
    width: clamp(165px, 45vw, 240px);
    align-self: flex-end;
    margin-top: clamp(-160px, -28vw, -125px);
    margin-left: -15px;
    margin-right: 0;
    transform: translateX(6vw);
    z-index: 5;
  }

  .gift-hero .hero-image img {
    transform: scale(1.0);
    filter: drop-shadow(4px 8px 12px rgba(20, 20, 60, 0.75));
  }
  .gift-hero .hero-title {
    font-size: clamp(1.6rem, 5vw, 1.8rem);
  }
  .gift-hero .promo-headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .gift-hero .btn-primary {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1.2rem, 4vw, 2rem);
  }

}

/* =========================================
   5. CAROUSELS (V7) - RESPONSIVE SYSTEM
   ========================================= */

.carousel-section {
    position: relative;
    direction: ltr;
    padding: 0.5rem 300px 3rem; 
}

.carousel-title {
    font-size: 2.4rem;
    color: var(--text-white, white);
    margin-bottom: 10px;
    font-weight: 500;
    text-align: right;
    direction: rtl;
    padding-right: 15px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 15px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-white, white);
    font-size: 5rem;
    font-weight: 100;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    transition: all 0.3s;
    opacity: 0.7;
    height: auto;
    display: block;
}

.nav-btn:hover {
    opacity: 1;
    color: var(--brand-orange, #f89a48);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { right: -60px; }
.next-btn { left: -60px; }

/* Cards */
.vertical-card {
    flex: 0 0 auto;
    width: 170px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.vertical-poster-frame {
    width: 100%;
    height: 255px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--secondary-blue, #2a4669);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.horizontal-card {
    flex: 0 0 auto;
    width: 260px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.horizontal-poster-frame {
    width: 100%;
    height: 195px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--secondary-blue, #2a4669);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.vertical-poster-frame img,
.horizontal-poster-frame img,
.bravo-poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bravo card – Epilation_bravo_carrousel (3:2 ratio) */
.bravo-card {
    flex: 0 0 auto;
    width: 280px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.bravo-poster-frame {
    width: 100%;
    height: 187px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--secondary-blue, #2a4669);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

@media (min-width: 992px) {
    .vertical-card:hover, 
    .horizontal-card:hover,
    .bravo-card:hover {
        transform: translateY(-10px);
    }
    .vertical-card:hover .vertical-poster-frame,
    .horizontal-card:hover .horizontal-poster-frame,
    .bravo-card:hover .bravo-poster-frame {
        box-shadow: 0 0 20px 2px rgba(243, 232, 196, 0.6);
        border-color: var(--highlight, #f3e8c4);
    }
}

.event-name {
    font-size: 1.8rem;
    color: var(--text-white, white);
    margin: 0;
    text-align: center;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .carousel-section {
        padding: 0.5rem 40px 2rem; 
    }
    
    .nav-btn {
        font-size: 3rem; 
        opacity: 0.5;
    }
    
    .prev-btn { right: -30px; }
    .next-btn { left: -30px; }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 0.25rem 0; 
    }

    .carousel-title {
        margin-bottom: 5px; 
        font-size: 1.8rem;
        margin-top: 0; 
    }

    .carousel-track {
        gap: 12px; 
        padding: 5px 15px 5px; 
    }

    .nav-btn {
        display: none;
    }

    .vertical-card {
        width: 128px;
    }
    
    .vertical-poster-frame {
        height: 191px;
        margin-bottom: 4px;
    }

    .horizontal-card {
        width: 195px;
    }

    .horizontal-poster-frame {
        height: 146px;
        margin-bottom: 4px;
    }

    .bravo-card {
        width: 210px;
    }

    .bravo-poster-frame {
        height: 140px;
        margin-bottom: 4px;
    }
    
    .event-name {
        white-space: normal; 
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2; 
        height: 2.4em; 
        direction: rtl; 
        padding: 0 2px;
    }
}

/* =========================================
   6. VIP BANNER (V3)
   ========================================= */
.full-banner-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;        
    gap: 60px;                      
    align-items: center;
    width: 100%;
    padding: 40px 60px;
    margin: 6rem 0;
    
    background: radial-gradient(circle farthest-corner at 0% 50%, 
        rgba(243, 232, 196, 1) 0.56%, 
        rgba(244, 221, 179, 1) 2.89%, 
        rgba(245, 193, 134, 1) 7.51%, 
        rgba(248, 154, 72, 1) 13.12%, 
        rgba(243, 232, 196, 1) 36.47%, 
        rgba(236, 219, 185, 1) 43.04%, 
        rgba(218, 184, 154, 1) 55.24%, 
        rgba(189, 129, 106, 1) 71.6%, 
        rgba(169, 91, 73, 1) 81.77%, 
        rgba(171, 95, 77, 1) 83.55%, 
        rgba(178, 108, 88, 1) 85.47%, 
        rgba(189, 130, 107, 1) 87.46%, 
        rgba(205, 160, 133, 1) 89.5%, 
        rgba(225, 199, 167, 1) 91.55%, 
        rgba(243, 232, 196, 1) 93.06%, 
        rgba(248, 154, 72, 1) 100%
    );
    box-shadow: 0 10px 40px -10px rgba(189, 129, 106, 0.4);
    border-radius: 0;
}

.banner-content {
    text-align: right;
    max-width: 70%; 
}

.banner-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem;
    color: #2c1a12;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.banner-content p {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    line-height: 1.3;
    color: #4a2c20;
    margin: 0;
    font-weight: 500;
}

.brand-font {
    font-family: 'MyCuFont', sans-serif;
    font-size: 5rem;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
    position: relative;
    top: -4px;      
    margin: 0 -3px; 
}

.brand-font strong {
    font-weight: normal;
}

.cta-button {
    background-color: #1a1a1a;
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: scale(1.1);
    background-color: #000;
}

/* =========================================
   7. CATEGORIES & GALLERY
   ========================================= */
/* --- 1. המעטפת הראשית (החלק שהיה חסר וקובע את השוליים) --- */
.categories-section {
    padding: 0 clamp(1rem, 5vw, 300px) 40px;
    text-align: right;
    width: 100%;
    position: relative;
}

/* --- 2. קונטיינר הכפתורים (ממורכז ומוגבל ברוחב 1200 פיקסל) --- */
.categories-nav-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* --- 3. עיצוב הכפתורים (שומרים על העיצוב הקיים + הופכים לריבוע) --- */
.cat-btn {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* מבטיח ריבוע מושלם */
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
    background: linear-gradient(-44.1deg, 
        rgba(169, 91, 73, 1) 0%, 
        rgba(185, 121, 99, 1) 12.02%, 
        rgba(210, 169, 141, 1) 33.49%, 
        rgba(228, 203, 171, 1) 52.46%, 
        rgba(239, 224, 189, 1) 68.02%, 
        rgba(243, 232, 196, 1) 78.21%, 
        rgba(255, 255, 255, 1) 100%
    );
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cat-icon {
    width: 55%;
    height: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: invert(22%) sepia(13%) saturate(2126%) hue-rotate(178deg) brightness(95%) contrast(89%);
    mix-blend-mode: multiply; 
}

.cat-label {
    position: absolute;
    bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.cat-btn:hover {
    background: #f89a48;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(248, 154, 72, 0.4);
}

.cat-btn:hover .cat-icon {
    transform: scale(1.1) translateY(-15px);
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
}

.cat-btn:hover .cat-label {
    opacity: 1;
    transform: translateY(0);
}

.cat-btn.active-category {
    background: #f89a48 !important; 
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(248, 154, 72, 0.4);
}

.cat-btn.active-category .cat-icon {
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
    transform: scale(1.1) translateY(-15px);
}

.cat-btn.active-category .cat-label {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. הגלריה (מקבלת את הריווח מהמעטפת למעלה) --- */
.gallery-container {
    margin-top: 40px; 
    direction: rtl;
}

/* ========== Gallery Phase A ========== */
.gallery-phase-a-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    direction: rtl;
}

.gpa-item {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background-color: #222;
    border: 1px solid var(--secondary-blue, #2a4669);
    aspect-ratio: 3 / 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.gpa-poster {
    width: 100%;
    height: 100%;
    position: relative;
}

.gpa-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gpa-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.gpa-overlay h3 {
    margin: 0 auto;
    width: 100%;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-family: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.gpa-item:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    box-shadow: 0 0 20px 2px rgba(243, 232, 196, 0.6);
    border-color: #f3e8c4;
}

.gpa-item:hover img {
    transform: scale(1.1);
}

.gpa-item:hover .gpa-overlay {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1400px) {
    .gallery-phase-a-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .gallery-phase-a-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gpa-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
        padding: 30px 10px 10px;
    }
    .gpa-overlay h3 {
        font-size: 1.3rem;
        font-weight: 500;
        line-height: 1.1;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    }
}

@media (max-width: 900px) {
    .gallery-phase-a-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    grid-auto-flow: dense; 
}

.gallery-item {
    display: block; 
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background-color: #222;
    border: 1px solid #2a4669; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.gallery-item.vertical {
    grid-column: span 1;
    aspect-ratio: 2 / 3.2; 
}

.gallery-item.horizontal {
    grid-column: span 2;
    aspect-ratio: 4 / 3; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.6s ease;
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0; 
    width: 100%;
    padding: 70px 10px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    color: white;
    text-align: center;
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.poster-overlay h3 {
    margin: 0 auto;
    width: 100%;
    font-size: 1.5rem; 
    font-weight: 400; 
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-family: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    box-shadow: 0 0 20px 2px rgba(243, 232, 196, 0.6);
    border-color: #f3e8c4;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1500px) {
    .site-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .carousel-section {
        padding: 0.5rem 5rem 3rem;
    }

    .categories-section {
        padding: 0 5rem 40px 5rem; 
    }
}

@media (max-width: 1200px) {
    .poster-overlay {
        opacity: 1 !important; 
        transform: translateY(0) !important; 
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
        padding: 30px 10px 10px; 
    }

    .poster-overlay h3 {
        font-size: 1.5rem; 
        font-weight: 500; 
        line-height: 1.1; 
        text-shadow: 0 2px 4px rgba(0,0,0,0.9); 
    }
}

@media (max-width: 900px) {
    /* Header - שחזור הגדרות */
    .site-header { flex-direction: column; gap: 1rem; padding: 2rem; }
    .main-nav { order: 3; width: 100%; margin-top: 1rem; }
    .main-nav ul { justify-content: space-between; gap: 1rem; }
    .header-actions { width: 100%; justify-content: space-between; }
    .search-box { flex-grow: 1; margin-left: 1rem; }

    /* Carousels - שחזור הגדרות */
    .carousel-section { padding: 1rem 20px; }
    .nav-btn { display: none; }

    /* Banner - התיקון החדש (מקטין ומסדר את הבאנר) */
    .full-banner-link {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 15px;
        background-position: center;
        margin: 20px 0;
    }
    .banner-content {
        text-align: center !important;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    .banner-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .banner-content p {
        font-size: 1.4rem;
        line-height: 1.4;
        margin: 0;
        padding: 0 10px;
    }
    .brand-font {
        font-size: 2.2rem;
        top: 0;
        display: inline;
    }
    .cta-button {
        font-size: 1.5rem;
        padding: 10px 30px;
        width: auto;
        align-self: center;
    }

    /* Categories & Gallery - הקוד שעבד לך מצוין */
    .categories-section {
        padding: 0 15px 2rem 15px;
    }
    .categories-nav-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 100%;
        margin: 0;
    }
    .cat-btn {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        height: auto;
    }
    .cat-label {
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================
   8. FOOTER
   ========================================= */

.site-footer {
    background: var(--highlight, #f3e8c4) !important;
    color: var(--bg-dark, #172433);
    margin-top: 6rem;
    width: 100%;
    padding: 0; 
    border: none;
}

.footer-content {
    padding: 2rem clamp(1rem, 5vw, 300px);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 250px;
    gap: 40px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-col {
    text-align: right;
}

.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    padding-top: 0;
    border: none !important; 
    box-shadow: none !important;
}

.footer-logo {
    width: 200px; 
    height: auto;
    margin-bottom: 0;
    filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.6));
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px; 
    margin-bottom: 15px;
    width: 100%;
    margin-top: 2rem;
}

.social-icon {
    display: inline-block;
    line-height: 0;
}

.social-icon img {
    width: 26px; 
    height: 26px;
    display: block; 
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: invert(24%) sepia(13%) saturate(3087%) hue-rotate(178deg) brightness(94%) contrast(88%);
}

.social-icon:hover img {
    transform: translateY(-3px) scale(1.1);
    filter: invert(39%) sepia(19%) saturate(1476%) hue-rotate(314deg) brightness(95%) contrast(85%);
}

/* רשתות חברתיות — מוסתרות זמנית */
.social-icon[aria-label="TikTok"],
.social-icon[aria-label="X"],
.social-icon[aria-label="LinkedIn"] {
    display: none;
}

.footer-newsletter {
    width: 100%;
    text-align: right;
    margin-bottom: 20px;
    margin-top: 0; 
    padding-top: 0; 
}

.footer-newsletter-text {
    margin-top: 0;
    font-size: 1.6rem;
    color: #2a4669;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-newsletter-text .newsletter-tagline {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    font-style: normal;
    color: #4a6a89;
    margin-top: 8px;
}

.footer-newsletter-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 1.5rem
}

.footer-newsletter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2a4669;
    flex-shrink: 0;
    cursor: pointer;
}

.footer-newsletter-checkbox label {
    font-size: 1.2rem;
    color: #2a4669;
    cursor: pointer;
    line-height: 1.4;
}

.footer-newsletter-email {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 420px;
    min-height: 46px;
}

.footer-newsletter-email input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: none;
    border-radius: 0 8px 8px 0; /* במקום 0 30px 30px 0 */
    font-size: 1.3rem;
    font-family: inherit;
    color: #2a4669;
    background: #ffffff;
    direction: rtl;
    outline: none;
}

.footer-newsletter-email input[type="email"]:focus {
    box-shadow: none;
}

.footer-newsletter-email button {
    padding: 0 22px;
    background: #2a4669;
    color: white;
    border: none;
   border-radius: 8px 0 0 8px;
    font-size: 1.3rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.footer-newsletter-email button:hover {
    background: #f89a48;
}

.footer-email-container a {
    font-size: 1.6rem; 
    color: var(--secondary-blue);
    text-decoration: none; 
    font-weight: 400; 
    display: block; 
    margin-top: 15px; 
    transition: color 0.3s;
}

.footer-email-container a:hover {
    color: var(--accent-red);
}

.footer-heading {
    display: none;
    font-size: 1.8rem;
    font-weight: 500; 
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #172433;
}

.footer-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 8px;
}

.footer-links-split {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 2px;
}

.footer-cats-grid a,
.footer-links-list a {
    text-decoration: none;
    color: #2a4669;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    line-height: 1.6;
}

.footer-cats-grid a:hover,
.footer-links-list a:hover {
    color: #a95b49;
    font-weight: 700;
    transform: translateX(-3px);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-bottom {
    text-align: center;
    padding: 0 0 2rem 0; 
    color:#2a4669;
    font-size: 1.2rem;
    background: transparent; 
    border: none;
}

.footer-bottom p {
    margin: 5px 0;
}

.credits {
    font-weight: 700;
    direction: ltr; 
    color:#2a4669;
}

@media (max-width: 1200px) {
    .footer-content {
        padding: 3rem clamp(1.5rem, 4vw, 3rem);
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
        align-items: start;
    }
    .newsletter-col {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-newsletter { text-align: center; }
    .footer-newsletter-email { margin: 0 auto; }
    .footer-links-split {
        gap: 30px;
    }
    .brand-col {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.25rem;
        gap: 2rem;
    }

   .footer-newsletter-email {
        flex-direction: row;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-newsletter-email {
        flex-direction: column;
        max-width: 320px;
        gap: 0.5rem;
        height: auto;
    }
    .footer-newsletter-email input[type="email"],
    .footer-newsletter-email button {
        border-radius: 8px;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    .footer-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links-split { grid-template-columns: 1fr; }
}

/* =========================================
   9. PRODUCTION HERO (V3)
   ========================================= */

.prod-hero-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.prod-main-area {
    position: relative;
    width: 100%;
    height: auto; 
    min-height: 550px;
    padding: 60px 0; 
    display: flex;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

.prod-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.hero-svg-anim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.prod-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.2) 100%);
    z-index: 2;
}

.prod-content-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 50px;
    align-items: center; 
}

.prod-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    color: var(--text-white);
    margin: 0 0 25px 0;
}

.prod-desc {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 1.6rem; 
    line-height: 1.5;
    color: #f0f0f0; 
    max-width: 95%;
    margin-bottom: 40px;
}

.cu-btn-primary {
    display: inline-block;
    background-color: var(--brand-orange);
    color: var(--secondary-blue); 
    font-family: 'Rubik', sans-serif;
    font-weight: 700; 
    font-size: 1.8rem; 
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 154, 72, 0.4);
}

.cu-btn-primary:hover {
    background-color: #fff; 
    color: var(--brand-orange); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.prod-media-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.gallery-card {
    display: block;
    position: relative;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.25); 
    transform: none;
    transition: all 0.4s ease;
}

.gallery-card img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-badge {
    position: absolute;
    bottom: 0; 
    right: 0;
    background: var(--brand-orange);
    color: var(--secondary-blue);
    padding: 8px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-top-left-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-badge {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}

.photo-credit {
    display: block;
    text-align: right;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 0.5rem;
    align-self: flex-end;
    width: 100%;
    max-width: 650px;
}

.prod-info-strip {
    background-color: #111d2b; 
    padding: 25px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-flex-tight {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 60px; 
}

.info-unit {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-align: right;
}

.custom-icon {
    width: 45px; 
    height: 45px;
    display: block;
    filter: brightness(0) invert(1); 
}

.text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-label {
    font-size: 1rem;
    color: #ccc; 
    margin-bottom: 2px;
}

.info-value {
    font-family: 'Rubik', sans-serif;
    font-size: 1.4rem; 
    font-weight: 700;
    color: #fff;
}

@media (max-width: 900px) {
    .prod-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .prod-text-col { order: 2; }
    .prod-media-col { order: 1; }

    .gallery-card {
        max-width: 100%;
    }

    .info-flex-tight {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 20px;
        justify-items: start;
    }
    
    .info-unit {
        width: 100%;
    }
}

/* =========================================
   10. EVENT CONTENT
   ========================================= */

.event-content-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    background-image: radial-gradient(circle at 20% 50%, rgba(248, 154, 72, 0.08), transparent 50%);
}

.content-grid-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr; 
    gap: 50px;
    align-items: stretch; 
}

.synopsis-box {
    background: rgba(255, 255, 255, 0.90); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    color: var(--secondary-blue);
    text-align: right;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.synopsis-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-blue);
    margin-top: 0; 
}

.synopsis-text {
    font-size: 1.8rem;
    line-height: 1.7;
    font-weight: 400;
}

.synopsis-text p {
    margin-bottom: 20px;
}

.synopsis-text p:last-child {
    margin-bottom: 0;
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%; 
    padding-top: 0; 
}

.credit-group {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.credit-group.no-border {
    border-bottom: none;
    padding-bottom: 0; 
}

.sidebar-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    margin-top: 0; 
}

.names-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.credit-link {
    color: #ccc;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.credit-link:hover {
    color: var(--brand-orange);
    transform: translateY(-2px);
}

.credit-link i {
    font-size: 0.8em;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.2s;
}

.credit-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

.warnings-container {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
}

.warning-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.warning-row:last-child {
    margin-bottom: 0;
}

.warning-row i { width: 20px; text-align: center; }

@media (max-width: 992px) {
    .content-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        display: block; 
    }

    .synopsis-box {
        margin-bottom: 40px;
        height: auto; 
    }

    .event-sidebar {
        height: auto;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .warnings-container {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .event-content-section { padding: 40px 0; }
    .synopsis-box { padding: 25px; }
    .synopsis-title { font-size: 2.2rem; }
    .synopsis-text { font-size: 1.6rem; }
}

/* =========================================
   11. SCHEDULE GRID
   ========================================= */

.schedule-section {
    background-color: #0f1a26;
    padding: 60px 0;
    direction: rtl;
    position: relative;
    z-index: 5;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.section-title {
    grid-column: 1 / -1;
    font-size: 2.4rem;
    color: #fff;
    font-weight: 500;
    text-align: right;
    padding-right: 0; 
    margin-bottom: 15px;
    margin-top: 0;
}

.date-card {
    background: linear-gradient(180deg, #1e2d3b 0%, #4a6572 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.date-card:hover {
    background: linear-gradient(-44.1deg, rgba(169, 91, 73, 1) 0%, rgba(185, 121, 99, 1) 12.02%, rgba(210, 169, 141, 1) 33.49%, rgba(228, 203, 171, 1) 52.46%, rgba(239, 224, 189, 1) 68.02%, rgba(243, 232, 196, 1) 78.21%, rgba(255, 255, 255, 1) 100%);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 10px 30px rgba(248, 154, 72, 0.3);
}

.date-area { text-align: center; margin-bottom: 10px; line-height: 1; }
.day-number { display: block; font-size: 3.5rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.month-name { display: block; font-size: 1.4rem; font-weight: 500; color: #fff; }
.location-text { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.details-area { border-top: 1px solid rgba(255,255,255,0.3); width: 60%; padding-top: 10px; text-align: center; color: #fff; }
.time { font-size: 1.5rem; font-weight: 700; margin-bottom: 2px; }
.venue { font-size: 1.1rem; font-weight: 400; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.date-card:hover .day-number,
.date-card:hover .month-name,
.date-card:hover .location-text,
.date-card:hover .details-area {
    color: #2a4669 !important;
}
.date-card:hover .details-area { border-top-color: #2a4669; }

.hidden-card {
    display: none !important;
}

.load-more-card {
    grid-column: span 2; 
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px;
    background: transparent; 
    border: none; 
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-card:hover {
    color: var(--brand-orange);
    transform: translateY(-2px); 
}

@media (max-width: 600px) {
    .load-more-card { grid-column: span 2; }
}

@media (max-width: 1400px) { .schedule-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .schedule-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
    .schedule-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .date-card { border-radius: 6px; }
    .day-number { font-size: 2.8rem; }
    .load-more-card { grid-column: span 2; }
}

.date-card.is-sold-out {
    background: linear-gradient(-44.1deg, 
        rgba(51, 51, 51, 1) 0%, 
        rgba(93, 93, 93, 1) 15.24%, 
        rgba(141, 141, 141, 1) 34.93%, 
        rgba(175, 175, 175, 1) 52.34%, 
        rgba(196, 196, 196, 1) 66.61%, 
        rgba(204, 204, 204, 1) 75.96%, 
        rgba(242, 242, 242, 1) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    opacity: 0.74;
    pointer-events: none;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.date-card.is-sold-out * {
    color: #fff !important; 
}

.date-card.is-sold-out::before {
    content: "SOLD OUT";
    position: absolute;
    top: 15px;
    left: -32px;
    background-color: #a95b49; 
    color: #fff;
    text-align: center;
    width: 120px;
    padding: 5px 0;
    transform: rotate(-45deg);
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- ADDED: FILTER BAR (שנעלם) --- */
.filter-bar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0; 
    margin-bottom: 10px; 
    position: relative;
    z-index: 10;
    scroll-margin-top: 150px;
}
.filter-wrapper {
    display: flex;
    gap: 60px;
    direction: rtl;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 10px;
}

.filter-btn:hover, .filter-btn.active {
    color: #ff9f1c;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 15px;
    min-width: 180px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.filter-dropdown.show {
    display: flex;
}

.filter-option {
    color: #0b1120; 
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
    padding: 5px 10px; 
    border-radius: 4px;
}

.filter-option:hover {
    color: #ff9f1c; 
    background-color: rgba(0,0,0,0.05); 
}

/* === Tooltip לאזור — גלוי רק בעכבר / דסקטופ === */
@media (hover: hover) and (pointer: fine) {
    [data-tooltip] {
        position: relative;
    }
    [data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        margin-bottom: 6px;
        transform: translateX(-50%);
        background: rgba(17, 27, 45, 0.97);
        color: #f3e8c4;
        padding: 0.3rem 0.7rem;
        border-radius: 0.45rem;
        font-size: 1.1rem;
        font-weight: 400;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.18s ease;
        border: 1px solid rgba(243, 232, 196, 0.3);
        z-index: 9999;
        direction: rtl;
        font-family: 'Rubik', sans-serif;
    }
    [data-tooltip]:hover::after {
        opacity: 1;
    }
}

.filter-bar-container + * {
    margin-top: 0 !important;
}

/* --- ADDED: SIMILAR EVENTS SECTION (התוספת החדשה בלבד) --- */
.similar-events-section {
    /* רקע כהה שמשתלב עם התחתית */
    background-color: var(--bg-dark);
    /* ריווח מותאם אישית כדי לשבת טוב מעל הפוטר */
    padding-bottom: 60px;
    margin-top: 0;
    position: relative;
    z-index: 5;
}

/* התאמות ספציפיות לקרוסלה הזו אם צריך */
.similar-events-section .carousel-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* =========================================
   מערכת תוכן גנרית (Content System)
   מתאים ל: אודות, משפטי, שאלות ותשובות, תמיכה
   ========================================= */

/* 1. העוטף הראשי של העמוד - מגדיר רוחב ומירכוז */
.generic-page-wrapper {
    max-width: 800px;        /* רוחב אופטימלי לקריאה */
    width: 90%;              /* במובייל תופס כמעט הכל */
    margin: 0 auto;          /* מירכוז */
    padding-bottom: 80px;    /* רווח בסוף הדף */
}

/* 2. כותרות העמוד (מופיעות פעם אחת בראש הדף) */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.main-title {
    font-size: 3.5rem;       /* כותרת ענקית */
    font-weight: 600;
    color: #ffffff;          /* לבן (כי זה על הרקע הכהה של האתר) */
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.sub-title {
    font-size: 1.4rem;
    color: #cbd5e1;          /* אפור בהיר */
    font-weight: 400;
}
.narrow-text {
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}
.gift-sub {
    max-width: 700px; /* התחלה טובה למשפט ארוך יותר */
    margin: 0 auto;
    text-wrap: pretty;
    line-height: 1.6;
}

/* 3. "אבן הבסיס" - כרטיס תוכן בודד */
.content-card {
    background-color: rgba(255, 255, 255, 0.95); /* כמעט אטום */
    border-radius: 20px;
    padding: 60px;           /* ריפוד פנימי נדיב */
    margin-bottom: 40px;     /* רווח בין אבן לאבן */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    
    text-align: right;
    direction: rtl;

    /* --- קסם הניווט --- */
    /* זה מבטיח שכ שמגיעים לכרטיס דרך לינק, הוא לא נדבק לתקרה */
    scroll-margin-top: 140px; 
}

/* כותרת פנימית בתוך הכרטיס */
.card-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2a4669;          /* הכחול שביקשת */
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(42, 70, 105, 0.1); /* קו הפרדה עדין */
}

/* גוף הטקסט */
.card-body {
    font-size: 1.3rem;       /* טקסט גדול וקריא (כ-21px) */
    line-height: 1.7;        /* רווח שורות נוח */
    color: #334155;          /* אפור כהה לקריאות */
}

.card-body p {
    margin-bottom: 20px;
}

.card-body ul {
    padding-right: 30px;
    margin-bottom: 20px;
}

.card-body li {
    margin-bottom: 10px;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .content-card { padding: 30px 20px; } /* פחות ריפוד כדי לחסוך מקום */
    .card-title { font-size: 1.8rem; }
    .card-body { font-size: 1.15rem; }
}

/* =========================================
   ACCOUNT PAGE – טבלת אירועים
   ========================================= */

.account-main {
    padding-top: 1rem;
    padding-bottom: 0;
    
    /* הטריק: הוספנו פילטר כחול-כהה עם 70% אטימות מעל תמונת ה-SVG */
    background-image: linear-gradient(rgba(11, 17, 32, 1), rgba(11, 17, 32, 1)), url('images/club_bg_stars.svg');
    
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #0b1120;
    min-height: 100vh;
}

/* Profile section: internal padding so it touches the footer cleanly */
#profile-section {
    padding-bottom: 4rem;
}

/* Account page footer: kill the global margin-top so no dark seam shows */
.account-main + .site-footer {
    margin-top: 0;
}

.account-title {
    font-size: 2.8rem;
    color: #ffffff;
    max-width: 68rem;
    margin: 0 auto 1.875rem;
    padding: 0 1.25rem;
    text-align: center;
}

/* --- כרטיסיית האירועים --- */
.account-events-box {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

.events-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 1.35rem;
    color: #1a2a4e;
    table-layout: fixed;
}

/* === רוחב עמודות קבוע — מונע גלילה אופקית בדסקטופ === */
.events-table thead th:nth-child(1) { width:  6%; } /* הצגת הכרטיסים */
.events-table thead th:nth-child(2) { width: 16%; } /* שם האירוע */
.events-table thead th:nth-child(3) { width: 17%; } /* מיקום */
.events-table thead th:nth-child(4) { width: 10%; } /* תאריך */
.events-table thead th:nth-child(5) { width:  7%; } /* שעה */
.events-table thead th:nth-child(6) { width:  7%; } /* מחיר */
.events-table thead th:nth-child(7) { width:  9%; } /* כמות כרטיסים */
.events-table thead th:nth-child(8) { width: 13%; } /* הטבת CULTURE CLUB */
.events-table thead th:nth-child(9) { width: 15%; } /* מספר הזמנה */

.events-table thead th {
    background: #f4f6fa;
    color: #1a2a4e;
    padding: 0.75rem 0.625rem;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 2px solid #e5e7eb;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    vertical-align: bottom;
    line-height: 1.35;
}

.events-table tbody tr {
    background: #ffffff;
    transition: background 0.15s ease;
}

.events-table tbody tr:hover {
    background: #fcfcfc;
}

.events-table tbody td {
    padding: 0.8125rem 0.625rem;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

/* עמודת הטבת CULTURE CLUB — כפתור מותר לגלוש ל-2 שורות */
.events-table tbody td:nth-child(8) .cell-action-btn {
    white-space: normal;
    text-align: right;
    line-height: 1.4;
}

.events-table tbody tr:last-child td {
    border-bottom: none;
}

/* שם האירוע ומיקום — עד 2 שורות עם ellipsis */
.events-table .cell-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* עמודות צרות — מרכוז ואין עטיפה */
.events-table tbody td:nth-child(4),
.events-table tbody td:nth-child(5),
.events-table tbody td:nth-child(6) {
    text-align: center;
    white-space: nowrap;
}

/* עמודת כמות כרטיסים - מרכוז */
.events-table tbody td:nth-child(7) {
    text-align: center;
}

/* עמודת הצגת כרטיסים */
.events-table tbody td:nth-child(1) {
    text-align: center;
    font-weight: 600;
}

/* עמודת מספר הזמנה — טקסט מעומעם ומרוכז */
.events-table tbody td:nth-child(9) {
    color: #636e72;
    font-size: 1.15rem;
    text-align: center;
}

/* עמודת הטבת CULTURE CLUB — מרוכז */
.events-table tbody td:nth-child(8) {
    text-align: center;
}

/* === מפריד עתידי / עבר: 4px navy על גבי השורה הראשונה של עבר === */
.events-table tbody tr.event-past-first td {
    border-top: 4px solid #1a2a4e;
}

/* === שורות אירועים שעברו === */
.events-table tbody tr.event-past td {
    color: #636e72;
}

.events-table tbody tr.event-past a.event-link {
    color: #636e72;
}

.events-table tbody tr.event-past .cell-action-btn {
    color: #9aa5b4;
    border-color: #d1d5db;
}

.events-table tbody tr.event-past:hover {
    background: #fafafa;
}

/* קישורים בטבלה */
.events-table a.event-link {
    color: #1a2a4e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.events-table a.event-link:hover {
    color: var(--brand-orange, #f89a48);
    text-decoration: underline;
}

/* כפתורי פעולה בתוך תאים */
.events-table .cell-action-btn {
    background: transparent;
    border: 1px solid #d1d9e6;
    color: #1a2a4e;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    padding: 0.3rem 0.625rem;
    border-radius: 0.375rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    white-space: nowrap;
}

.events-table .cell-action-btn:hover {
    border-color: var(--brand-orange, #f89a48);
    color: var(--brand-orange, #f89a48);
    background: rgba(248, 154, 72, 0.05);
}

.events-table .cell-action-btn:focus {
    outline: none;
    box-shadow: none;
}

.events-table .cell-action-btn i {
    font-size: 1.15rem;
}

/* כפתור "צפה בכל האירועים" */
.btn-show-all {
    display: block;
    margin: 1.5rem auto 0;
    background: transparent;
    color: #1a2a4e;
    border: 1.5px solid #1a2a4e;
    padding: 0.6rem 2.25rem;
    border-radius: 3rem;
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-show-all:hover {
    background: #1a2a4e;
    color: #ffffff;
    box-shadow: none;
}

/* --- פופ-אפ גנרי --- */
.account-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 22000;
    justify-content: center;
    align-items: center;
}

.account-popup-overlay.active {
    display: flex;
}

.account-popup {
    background: #fff;
    border-radius: 1rem;
    padding: 2.1875rem 2.5rem 1.875rem;
    max-width: 31.25rem;
    width: 90%;
    position: relative;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.35);
    animation: popupSlideIn 0.3s ease;
    direction: rtl;
    text-align: right;
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(-1.875rem) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-close-btn {
    position: absolute;
    top: 0.75rem;
    left: 0.875rem;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-close-btn:hover {
    color: var(--accent-red, #a95b49);
}

.popup-title {
    font-size: 2rem;
    color: var(--secondary-blue, #2a4669);
    margin: 0 0 0.9375rem;
    font-weight: 700;
}

.popup-body {
    font-size: 1.4rem;
    color: #475569;
    line-height: 1.7;
}

.popup-placeholder {
    padding: 1.25rem 0;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

/* --- רספונסיב לטבלת האירועים --- */
@media (max-width: 1100px) {
    .events-table {
        font-size: 1.15rem;
    }

    .events-table thead th {
        font-size: 1.05rem;
        padding: 0.625rem 0.5rem;
    }

    .events-table tbody td {
        padding: 0.625rem 0.5rem;
    }
}

@media (max-width: 992px) {
    .account-title {
        font-size: 2.2rem;
    }

    .account-events-box {
        padding: 0 0.75rem 1.5rem;
    }

    .events-table {
        font-size: 1.05rem;
    }

    .events-table thead th {
        font-size: 0.95rem;
        padding: 0.5rem 0.4rem;
    }

    .events-table tbody td {
        padding: 0.5625rem 0.4rem;
    }
}

@media (max-width: 600px) {
    .account-main {
        padding-top: 3.75rem;
    }

    .account-title {
        font-size: 2rem;
        text-align: center;
    }

    .account-events-box {
        padding: 0 0.5rem 1.25rem;
    }

    .events-table {
        font-size: 1rem;
    }

    .events-table thead th {
        font-size: 0.9rem;
        padding: 0.5rem 0.375rem;
    }

    .events-table tbody td {
        padding: 0.5rem 0.375rem;
    }

    .account-popup {
        padding: 1.5625rem 1.25rem;
    }

    .popup-title {
        font-size: 1.7rem;
    }
}


/* =========================================
   GLOBAL RESPONSIVE UTILITIES (v1.0)
   Reusable classes for fluid layouts.
   ========================================= */

/* --- Max-width form/content constraints --- */
.max-w-form    { max-width: 28rem;  width: 100%; margin-left: auto; margin-right: auto; }
.max-w-content { max-width: 56rem;  width: 100%; margin-left: auto; margin-right: auto; }
.max-w-narrow  { max-width: 20rem;  width: 100%; margin-left: auto; margin-right: auto; }
.max-w-wide    { max-width: 75rem;  width: 100%; margin-left: auto; margin-right: auto; }

/* --- Fluid responsive padding (no edge-touching on mobile) --- */
.px-fluid { padding-left: clamp(1rem, 4vw, 3rem); padding-right: clamp(1rem, 4vw, 3rem); }
.py-fluid { padding-top: clamp(1rem, 4vw, 3rem); padding-bottom: clamp(1rem, 4vw, 3rem); }

/* --- Flex helpers --- */
.flex-center-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; }
.flex-row-fluid   { display: flex; flex-wrap: wrap; gap: 1rem; }
.flex-col-center  { display: flex; flex-direction: column; align-items: center; }

/* --- Grid helpers (auto-fit avoids stretching disease) --- */
.grid-buttons    { display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); gap: 0.625rem; }
.grid-cards-sm   { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.grid-cards-md   { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }

/* --- Stretch protection: button/input doesn't grow past its content needs --- */
.btn-fit         { width: fit-content; align-self: center; margin-left: auto; margin-right: auto; }
.input-fit       { max-width: 22rem; width: 100%; }

/* --- Min-height for text containers (text-dominance rule) --- */
.minh-text       { min-height: 2.5rem; height: auto; }

/* --- Prevent horizontal scroll bleeds --- */
.no-x-overflow   { overflow-x: hidden; max-width: 100%; }

/* --- Visibility helpers --- */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block; }
}

/* --- Global safety: prevent any element from causing horizontal scroll --- */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

/* =========================================================================
   CU_FINAL design sync — ADDITIVE footer rules (nav-section, WhatsApp/contact,
   expandable "galaxies" SEO section). Appended only; existing rules untouched.
   Higher-specificity .site-footer .footer-content override switches the desktop
   grid to the 3-column (newsletter | nav-section | brand) layout this markup
   needs, without editing the original .footer-content rule above.
   ========================================================================= */
.site-footer .footer-content {
    grid-template-columns: 1.2fr 4fr 250px;
}

/* WhatsApp row in footer brand-col */
.footer-whatsapp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.footer-whatsapp-row img {
    width: 20px;
    height: 20px;
    display: block;
    filter: invert(24%) sepia(13%) saturate(3087%) hue-rotate(178deg) brightness(94%) contrast(88%);
}
.footer-whatsapp-row a {
    font-size: 1.25rem;
    color: var(--secondary-blue, #2a4669);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    direction: ltr;
}
.footer-whatsapp-row a:hover { color: #25D366; }

.footer-contact-link {
    margin-top: 6px;
    text-align: center;
}
.footer-contact-link a {
    font-size: 1.3rem;
    color: var(--secondary-blue, #2a4669);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact-link a:hover {
    color: var(--brand-orange, #f89a48);
}

/* === Footer nav-section === */
.nav-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 8px;
    align-items: start;
}

.footer-nav-col {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-nav-col li a {
    text-decoration: none;
    color: #2a4669;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    line-height: 1.6;
}

.footer-nav-col li a[href="/producer-info"] {
    font-weight: 600;
}

.footer-nav-col li a:hover {
    color: #a95b49;
    font-weight: 700;
    transform: translateX(-3px);
}

/* === Footer galaxies expandable === */
.footer-galaxies-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: #2a4669;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s;
    direction: rtl;
    margin-top: 0;
    grid-column: 1 / -1;
}

.footer-galaxies-trigger span {
    text-shadow: none;
}

.footer-galaxies-trigger:hover {
    color: #a95b49;
}

.footer-galaxies-trigger .fg-chevron {
    display: inline-block;
    transition: transform 0.45s ease;
    font-size: 1rem;
    line-height: 1;
    text-shadow: none;
}

.footer-galaxies-trigger.is-open .fg-chevron {
    transform: rotate(180deg);
    text-shadow: none;
}

.footer-galaxies-expanded {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.38s ease;
    background: rgba(23, 36, 51, 0.9);
    border-top: 1px solid rgba(23, 36, 51, 0.3);
    direction: rtl;
}

.footer-galaxies-expanded.is-open {
    max-height: 1200px;
    opacity: 1;
}

.fg-inner {
    padding: 1.75rem 300px 1.25rem;
}

.fg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 1.5rem;
}

.fg-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fg-col ul li a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    transition: color 0.2s;
}

.fg-col ul li a:hover {
    color: #f89a48;
}

@media (max-width: 1200px) {
    .nav-section { grid-column: 1 / -1; }
    .fg-inner { padding: 1.75rem 3rem 1.25rem; }
    .fg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-section { grid-template-columns: repeat(2, 1fr); }
    .footer-galaxies-trigger { order: 3; }
    .brand-col { order: 4; }
    .fg-inner { padding: 1.25rem 1rem 1rem; }
}

@media (max-width: 480px) {
    .nav-section { grid-template-columns: 1fr 1fr; }
    .fg-inner { padding: 1rem 0.75rem; }
    .fg-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1rem; }
}
