﻿/* === בסיס === */
body {
    margin: 0;
    font-family: "Alef", sans-serif;
    background: #ffffff;
    color: #222;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

p {
    font-size: 22px;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* === כפתורים בראש === */
.header-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: "Noto Sans Hebrew", sans-serif;
    flex-direction: row;
}

.header-buttons .btnRegStart6,
.header-buttons .btnRegStart7 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 60px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    padding: 10px;
    gap: 10px;
}

/* === כפתורי עיצוב ייחודיים === */
.btnRegStart7 {
    background-image: url(../images/phoneb.png);
    background-position: right center;
    background-size: 67px;
    background-repeat: no-repeat;
    background-color: #ffffff !important;
    color: rgb(73 166 215) !important;
    font-size: 22px;
    border-radius: 5px;
    padding: 13px 14px;
    border: 3px solid rgb(73 166 215);
    margin: 20px 5px 0;
    display: inline-block;
    text-align: center;
    width: 40% !important;
}

.btnRegStart6 {
    background-image: url(../images/whatsapp-logo-color-symbol.png);
    background-position: right center;
    background-size: 105px;
    background-repeat: no-repeat;
    background-color: #ffffff !important;
    color: rgb(79, 206, 93);
    font-size: 22px;
    border-radius: 5px;
    padding: 13px 27px 13px 14px;
    border: 3px solid rgb(79, 206, 93);
    margin: 20px 5px 0;
    display: inline-block;
    text-align: center;
    width: 40% !important;
}

/* === וידאו רקע === */
.image-header {
    position: relative;
    height: 400px;
    background: #002b50;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    z-index:0;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.content-on-video {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    padding: 20px;
    text-shadow: none;
    margin-top: 4%;
}

.content-on-video h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.content-on-video p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* === כפתור ראשי === */
.btn-primary {
    background: #ffcb05;
    color: #000;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    margin-top: 10px;
    transition: background 0.3s;
    position: relative;
    z-index: 400;
}

.btn-primary:hover {
    background: #f4b400;
}

/* === סקשנים === */
.section-title {
    text-align: center;
    margin: 60px 0 20px;
    font-size: 2em;
    color: #005fa3;
}

.info-highlight {
    background: #fff;
    padding: 40px 20px;
    margin-top: -20px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.info-highlight .info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.info-box {
    flex: 1 1 250px;
    padding: 10px 20px;
}

.info-box img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.info-box h3 {
    font-size: 1.2em;
    color: #af8c32;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 22px;
    margin-bottom: 1rem;
}

/* === טופס === */
#form2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: auto;
}

label,
input,
.form-control {
    font-weight: bold;
    padding: 12px;
   
    border-radius: 8px;
}

#btnSubmit,
button {
    background-color: #005fa3;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#btnSubmit:hover,
button:hover {
    background-color: #003d66;
}

/* === פוטר === */
footer {
    background: #002b50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
    font-size: 0.9em;
}

/* === תמונת מרצה === */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3 img {
    max-width: 180px;
    width: 100%;
    border-radius: 20px;
}

.col-md-9 {
    flex: 1;
    max-width: 700px;
}

/* === אייקונים === */
.icons-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.icon-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.icon-card h3 {
    font-size: 1.2em;
    color: #222;
    margin-bottom: 10px;
}

.icon-card p {
    font-size: 21px;
    color: #555;
}

/* === מודאלים === */
.modal-content2 {
    background-color: black;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 20%;
    color: white;
    direction: rtl;
    position: fixed; /* חיוני! */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* גבוה מאוד כדי שיהיה מעל הוידאו */
}

/* === מדיה רספונסיביות === */
@media (max-width: 768px) {
    .image-header {
        height: 450px;
        padding: 40px 5px;
    }
    .content-on-video {
       width:100% !important;
    }
    .content-on-video h1 {
        font-size: 27px;
    }

    .content-on-video p {
        font-size: 22px;
    }

    .header-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

        .header-buttons .btnRegStart6,
        .header-buttons .btnRegStart7 {
            width: 48% !important;
            font-size: 19px;
            margin: 0 !important;
            line-height: 100%;
        }

    .info-grid,
    .row.align-items-center {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .col-md-3 img {
        max-width: 120px;
        margin-bottom: 20px;
    }

    .col-md-9 {
        max-width: 100%;
        padding: 0 10px;
    }

    #form2 {
        max-width: 100% !important;
        padding: 0 15px;
    }

    .modal-content2 {
        width: 95% !important;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .btnRegStart7,
    .btnRegStart6 {
        width: 46% !important;
        height: 63px;
        background-position: right center;
        background-size: 38px !important; /* הגדלה של הסמל */
        background-image: none !important;
    }

    .modal-content2 {
        width: 85% !important;
    }
}

/* The Close Button */
#closeBtn {
    float: left;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    color: red;
    margin-top: -23px;
}

    #closeBtn:hover,
    #closeBtn:focus {
        color: orangered;
        text-decoration: none;
        cursor: pointer;
    }


.bg-video,
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header-buttons {
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap;
    }

    .header-buttons .btnRegStart6,
    .header-buttons .btnRegStart7 {
        width: 45%;
        height: 65px;
        font-size: 19px;
        background-size: 48px;
    }
}

.header-buttons .btnRegStart6:hover,
.header-buttons .btnRegStart7:hover {
    transform: scale(1.03);
    transition: transform 0.2s ease-in-out;
}


