section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    row-gap: 20px;
    /* margin-top: 20px; */
    margin-bottom: 20px;
    width: 100%;
    align-items: center;
    /* width: 30vw; */
}

.btns a {
    padding: 12px;
    background-color: rgb(63, 165, 233);
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: row-reverse;
    width: fit-content;
    font-weight: bold;
}

.btns a:hover {
    background-color: rgb(33, 133, 203);
}

.btns div {
    display: inline-block;
    text-align: center;
}

.bottom section {
    /* margin-top: 20px; */
    border-top: 1px solid #ccc;
    padding-top: 20px;
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.bottom section div {
    display: inline-flex !important;
    margin-left: 5px;
}


.btn-icon {
    display: inline-flex !important;
    margin-left: 5px;
}


.video-background {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* יחס רוחב-גובה של 16:9 */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.videos-and-btns {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    justify-content: center;
    align-items: center;
}




.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* font-size: 1.1rem; */
    text-align: right;
    color: #333 !important;
    top: 40vh;
    position: absolute;
    right: 5vw;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    border-left: solid 3px #7272722d;
    padding-left: 7vw;
}

@media (max-width: 1324px) {
    .contact-info {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        right: 5vw;
        padding-left: 5vw;
    }
}

.contact-info h2 {
    margin-bottom: 10px;
    text-align: right;
    color: rgb(252, 69, 57)
}

.contact-info a {
    color: rgb(63, 165, 233);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info span:not(:has(a)) {
    user-select: none;
}

.contact-info span {
    color: #333 !important;
}

.contact-info div {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}


@media (max-width: 1000px) {
    .videos-and-btns {
        flex-direction: column;
    }
    .contact-info {
        flex-direction: row;
        position:static;
        font-size: 1rem;
        border-left: none;
        padding: 0;
    }
    .contact-info div {
        align-items: center;
        margin: 15px;
    }
}




.btn-icon[name="מדריך"]:hover::before {
    display: inline-block;
}
.btn-icon[name="מדריך"]::before {
    content: "מדריך";
    display: none;
    width: max-content;
    height: max-content;
}
.btn-icon[name="מדריך"]:hover i {
    display: none;
}






.search-model {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search h2 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: white;
}
.search {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

.search div {
    display: flex;
    align-items: center;
}

.search input {
    width: 400px;
    height: 50px;
    font-size: 1.5rem;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 0 20px 20px 0;
    outline: none;
    color: #333;
}

.search button {
    padding: 3px 0px 3px 6px;
    font-size: 1.5rem;
    height: 50px;
    width: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    border-radius: 20px 0 0 20px;
    background-color: rgb(240, 240, 240);
    animation: none;
}
.search button:hover i {
    animation: flip 0.3s linear;
    transform: rotateY(180deg);
}
.search button:not(:hover) i {
    animation: flipReveres 0.3s linear;
    transform: rotateY(0deg);
}

@keyframes flip {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(180deg);
    }
}

@keyframes flipReveres {
    from {
        transform: rotateY(180deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

@media (max-width: 1000px) {
    .search input {
        width: 250px;
        height: 40px;
        font-size: 1.2rem;
    }
    .search h2 {
        font-size: 2rem;
    }
    .search button {
        height: 40px;
        width: 40px;
        font-size: 1.2rem;
        padding: 0px 0px 4px 6px;
    }
}





.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    user-select: none;
}

.card {
    background-color: #e9e9e930;
    border: 5px solid #c7c7c71f;
    border-radius: 15px;
    padding: 15px;
    width: 325px;
    height: 125px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
}

.card div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.card p {
    margin-top: 5px;
    color: #555;
    font-weight: normal;
    font-size: 1rem;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}



.ic-meir {
    background: url("/svg/meir.svg") no-repeat center;
    width: 6em;
    height: 6em;
    display: inline-block;
    background-size: contain;
}

.ic-nave {
    background: url("/svg/nave.svg") no-repeat center;
    width: 6em;
    height: 6em;
    display: inline-block;
    background-size: contain;
}

.ic-sharon {
    background: url("/svg/sharon.svg") no-repeat center;
    width: 6em;
    height: 6em;
    display: inline-block;
    background-size: contain;
}

.ic-harel {
    background: url("/svg/harel.svg") no-repeat center;
    width: 6em;
    height: 6em;
    display: inline-block;
    background-size: contain;
}

.ic-yaron {
    background: url("/svg/yaron.svg") no-repeat center;
    width: 6em;
    height: 6em;
    display: inline-block;
    background-size: contain;
}

.ic-buaz {
    background: url("/svg/buaz.svg") no-repeat center;
    width: 6.5em;
    height: 6.5em;
    display: inline-block;
    background-size: contain;
}


.updates {
    text-align: center;
    direction: rtl;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    background: #f4f6f8;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll 0s linear infinite;
    list-style: none;
    padding: 0;
    margin: 0;
    /* transform: translateX(50%); */
}

.ticker-track li {
    white-space: nowrap;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.ticker-track li:not(:first-child) {
    padding: 0 30px;
    border-right: 2px solid #ccc;
}
.ticker-track li:first-child {
    padding-left: 30px;
}



@keyframes scroll {
    0% {
        transform: translateX(50%);
    }
    100% {
        transform: translateX(0);
    }
}