/* ריסט בסיסי */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* החלת גופן Heebo על הגוף */
body {
    font-family: 'Heebo', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
}

/* עיצוב הכותרת */
h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* קישור "לכל הקטגוריה" */
.view-all {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    /* צבע ראשי */
    text-decoration: none;
    font-weight: bold;
}

.view-all:hover {
    text-decoration: underline;
    /* קו תחתון בהhover */
}

/* קונטיינר כרטיסיות */
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    /* מרווח קטן יותר בין כרטיסיות */
}

/* עיצוב כרטיסיות */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 290px;
    /* גובה הכרטיס */
    width: 280px;
    /* רוחב הכרטיס */
    margin: 0;
    /* אין מרווח נוסף */
}

.card img {
    width: 100%;
    /* רוחב מלא של הכרטיס */
    height: 54%;
    /* גובה התמונה */
    object-fit: cover;
    /* כיסוי האזור */
}

.card-content {
    padding: 15px;
    /* ריפוד לתוכן */
}

.card h3 {
    font-size: 18px;
    /* גודל פונט גדול יותר */
    margin-bottom: 5px;
    color: #000000;
    /* צבע כהה יותר */
    font-weight: bold;
    /* טקסט מודגש */
}

.card p {
    font-size: 14px;
    /* גודל פונט מותאם */
    color: #000000;
    /* צבע טקסט בהיר יותר */
    margin-bottom: 5px;
    /* מרווח מתחת לפסקאות */
}

.card:hover {
    transform: translateY(-5px);
    /* אפקט הרמה */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* צל עמוק יותר בהhover */
}

/* סגנונות רספונסיביים */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
    background-color: #f5f5f5;
    color: #111;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.2rem;
    line-height: 1.6rem;
    padding: 48px 0 0 0;
}

.content {
    flex: 1 0 auto;
}

header {
    background-color: #fff;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: black;
}

.menu-button {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-button:hover {
    transform: scale(1.1);
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    transition: right 0.3s ease;
    z-index: 1001;
    direction: rtl;
}

.menu-drawer.open {
    right: 0;
}

.menu {
    list-style-type: none;
    padding: 40px;
    margin-top: 60px;
    direction: rtl;
    text-align: right;
}

.menu li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #333;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #000;
}

.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url('./photos/mainbackground.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 0px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideIn 1s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: #7ea3ff;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1.5s ease-out;
    font-size: 18px;
}

.cta-button:hover {
    background-color: #7ea3ff;
    transform: scale(1.1);
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    border-radius: 15px 15px 0 0;
}

.card-content {
    padding: 2px;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.card a {
    display: inline-block;
    background-color: #111;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #333;
}

footer {
    flex-shrink: 0;
    background-color: #222;
    color: #fff;
    padding: 6px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(185, 122, 122, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 9px;
}

.footer-section {
    margin: 20px;
    text-align: center;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #7ea3ff;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    direction: rtl;
}

#newsletterForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 14px;
}

#newsletterForm input[type="email"] {
    padding: 10px;
    font-size: 8px;
    border: 1px solid #222;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 3000px;
}

#newsletterForm button {
    padding: 10px 60px;
    font-size: 8px;
    color: #4000ff;
    background-color: #222;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#newsletterForm button:hover {
    background-color: #222;
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-container {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 20px;
        scroll-snap-type: x mandatory;
    }

    .card {
        max-width: 300px;
        max-height: 400px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .card img {
        height: 200px;
        object-fit: cover;
    }

    .card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .card p {
        font-size: 14px;
        margin-bottom: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .card a {
        font-size: 14px;
        padding: 10px 20px;
        align-self: center;
        margin-top: auto;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: Heebo, sans-serif;
    background: #f5f5f5;
    color: #111
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.2rem;
    line-height: 1.6rem;
    padding: 48px 0 0
}

header {
    background: #fff;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    font-size: 24px;
    font-weight: 700
}

.logo a {
    text-decoration: none;
    color: #000
}

.menu-button {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform .3s
}

.menu-button:hover {
    transform: scale(1.1)
}

.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1)), url(./photos/mainbackground.jpg) no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    overflow: hidden
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px
}

.cta-button {
    display: inline-block;
    background-color: #ff5a5f;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background-color .3s, transform .3s;
    font-size: 18px
}

.cta-button:hover {
    background-color: #ff7e7e;
    transform: scale(1.1)
}

#termsLabel {
    font-size: 14px;
    display: block;
    /* Ensures label text is displayed on separate lines */
    margin-top: 10px;
    line-height: 1.6;
}

#checkboxError {
    display: block;
    margin-top: 10px;
}

.footer-section {
    margin-bottom: 20px;
    /* Adjusts spacing between sections */
}