﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
body {
    font-family: 'Heebo', sans-serif;
}

.hero {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.bg-blur {
    display: block;
    width: 100%;
    height: 400px;
    filter: blur(7px);
    transform: scale(1.1); /* נגד חיתוך קצוות */
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    font-size: 1.8rem;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

.btn-main {
    background-color: #00c28b;
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}

    .btn-main:hover {
        background-color: #00a87b;
    }


.btn-main {
    background-color: #00c28b;
    color: white;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size:1.5rem;
}

    .btn-main:hover {
        background-color: #00a478;
    }

.section-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .section-card:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

h5 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: darkblue;
    text-shadow: 2px 2px 3px #1b4965;
    padding: 5px 10px;
    margin: 0 0 10px 0;
}

.card-text {
    font-size: 23px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: darkblue;
    /*   text-shadow: 2px 2px 5px #1b4965; */
    padding: 5px 10px;
    margin: 0 0 10px 0;
}

footer {
    background-color: #f5f5f5;
    padding: 30px;
    text-align: center;
}

.nav-item {
    position: relative;
    margin-right: 15px; /* ריווח בין פריטים */
}

.nav-link {
    text-decoration: none;
    color: darkblue;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
}

    .nav-link:hover {
        background-color: #f0f0f0;
        border-radius: 5px;
    }

.system-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1a1a1a;
    direction: rtl;
    text-align: right;
}

.system-name {
    display: flex;
    justify-content: flex-end; /* יישור לימין */
    gap: 8px;
    direction: rtl;
    text-align: right;
}

.badge-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.system-subtitle {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.image-hover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* חשוב - שומר פרופורציה גם בלי גובה */
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}

    .image-hover-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.5s ease-in-out;
    }

.image-hover-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3; /* שמירה על פרופורציות */
    overflow: hidden;
    margin: auto;
    border-radius: 12px;
}

    .image-hover-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: opacity 0.4s ease-in-out;
    }

    .image-hover-container .image-hover {
        opacity: 0;
        z-index: 2;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .image-hover-container .image-default {
        opacity: 1;
        z-index: 1;
    }

    .image-hover-container:hover .image-hover {
        opacity: 1;
    }

    .image-hover-container:hover .image-default {
        opacity: 0;
    }


.rtl-text {
    direction: rtl;
    text-align: right;
}
.amerlogo {
    height: 60px;
}

.system-separator {
    height: 4px;
    background: #00c28b;
    width: 80px;
    margin: 40px auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .amerlogo {
        height: 40px;
    }
    .hero {
        width: 100%;
        max-height: 220px;
        height: 50vh;
    }

    .bg-blur {
        height: 220px;
        transform: scale(1.05);
    }

    .overlay-text h1 {
        font-size: 2rem;
        text-align:right;
        margin-right:10%;
    }

    .overlay-text h2 {
        font-size: 1.7rem;
        padding: 0 10px;
        text-align: right;
        margin-right: 10%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p, .card-text {
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .system-title {
        font-size: 1.3rem;
    }

    .btn-main {
        font-size: 1rem;
        padding: 8px 20px;
        margin-bottom: 15px;
    }

    .image-hover-container {
        aspect-ratio: 3/2;
        max-height: 160px;
    }

    .navbar .nav-link {
        font-size: 16px;
    }

    .px-5 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .navbar-nav .nav-link {
        display: block;
        margin: 6px 0;
    }
}

.navbar-nav .nav-link {
    background-color: #add8e67d;
    color: darkblue;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid white;
    margin: 0 1px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    text-align: center;
    width: 160px;
}

    /* אפקט מעבר */
    .navbar-nav .nav-link:hover {
        background-color: #0056b3;
        color: white;
        font-weight: bold;
        text-decoration: none;
    }

