﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* =========================================
   KREMBOARD CUSTOM STYLES
========================================= */
:root {
    --krembo-blue-dark: #186AB6;
    --krembo-blue-mid: #3d8fd6;
    --krembo-blue-light: #D7EAFF;
    --krembo-blue-pale: #EEF6FF;
    --krembo-brown: #9B6026;
    --krembo-brown-light: #C8893A;
    --krembo-white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--krembo-white);
    color: #333;
    margin: 0;
}


/* ===== NAVBAR ===== */

/*
   סרגל הניווט נמצא בראש הדף בלבד.
   הוא אינו מקובע למסך ולכן נעלם כלפי מעלה בזמן גלילה.
   הלוגו נשאר בצד שמאל והתפריט מוצג בימין.
*/
.navbar {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    width: 100%;
    min-height: 94px;
    padding: 0.75rem 2rem;

    /* האלמנט הראשון הוא הלוגו ולכן הוא נשאר משמאל */
    direction: ltr;

    background-color: var(--krembo-white);
    border-bottom: 2px solid var(--krembo-blue-light);
    box-shadow: 0 3px 14px rgba(24, 106, 182, 0.12);
}

/* הקישור שעוטף את הלוגו */
.navbar > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    border-radius: 10px;
    text-decoration: none;
}

/* הלוגו בצד שמאל */
.navbar > a img {
    display: block;
    width: auto;
    height: 70px;
    max-width: 100%;

    object-fit: contain;
    cursor: pointer;

    transition: transform 0.2s ease;
}

.navbar > a:hover img {
    transform: scale(1.05);
}

/* אזור התפריט בצד ימין */
.navbar > nav {
    flex: 0 1 auto;
    margin-left: auto;

    /* שומר על סדר קריאה תקין בעברית */
    direction: rtl;
}

.navbar nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.navbar nav ul li {
    margin: 0;
    padding: 0;
}

.navbar nav ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0.55rem 0.45rem;

    color: #444;
    border-radius: 8px;

    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            transform 0.2s ease;
}

.navbar nav ul li a:hover {
    color: var(--krembo-blue-dark);
    background-color: var(--krembo-blue-pale);
    transform: translateY(-1px);
}

/* סימון הקישור הפעיל של Blazor */
.navbar nav ul li a.active {
    color: var(--krembo-blue-dark);
    font-weight: 700;
}

/* נגישות למשתמשי מקלדת */
.navbar > a:focus-visible,
.navbar nav ul li a:focus-visible {
    outline: 3px solid rgba(24, 106, 182, 0.45);
    outline-offset: 3px;
}

/*
   הסרגל נמצא בתוך זרימת הדף, לכן אין צורך ברווח מלאכותי
   מעל התוכן הראשי.
*/
.navbar + main {
    padding-top: 0;
}

/* רווח קטן ונעים בעת מעבר ישיר לאזור בעמוד */
#units,
#about-modal {
    scroll-margin-top: 1rem;
}


/* ===== HERO ===== */

.hero-section {
    background: linear-gradient(
            160deg,
            var(--krembo-blue-light) 0%,
            var(--krembo-blue-pale) 60%,
            #fff 100%
    );

    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(24, 106, 182, 0.07);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(155, 96, 38, 0.06);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--krembo-blue-dark);
    letter-spacing: normal;
    text-transform: none;
    margin: 0;
    opacity: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--krembo-brown);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    font-weight: 400;
    max-width: 520px;
    margin: 0;
    line-height: 1.7;
}

.btn-start {
    display: inline-block;
    margin-top: 2.5rem;
    background: var(--krembo-blue-dark);
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(24, 106, 182, 0.28);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-start:hover {
    background: #1258A0;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(24, 106, 182, 0.36);
}


/* ===== ABOUT SECTION ===== */

.about-section {
    background: var(--krembo-white);
    padding: 5rem 2rem;
}

.section-label {
    display: inline-block;
    background: var(--krembo-blue-dark);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.4rem 1.4rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-text h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--krembo-brown);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text {
    max-width: 780px;
    margin: 0 auto;
}

.about-text p {
    color: #555;
    line-height: 1.45;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.about-text p:last-child {
    margin-top: 2.8rem;
    margin-bottom: 0;
}

.about-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--krembo-blue-dark);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    border-bottom: 2px solid var(--krembo-blue-light);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.about-link:hover {
    color: #1258A0;
    border-color: var(--krembo-blue-dark);
}


/* ===== UNITS SECTION ===== */

.units-section {
    background: var(--krembo-blue-pale);
    padding: 5rem 2rem;
}

.units-section .section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.units-header {
    text-align: center;
    margin-bottom: 3rem;
}

.units-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--krembo-brown);
    margin-top: 0.75rem;
}

.units-header p {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.units-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    max-width: 950px;
    margin: 0 auto;
}

.tier-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.tier-content {
    flex: 1 1 500px;
    max-width: 550px;
    min-width: 300px;
}

.tier-image {
    flex: 0 1 250px;
    display: flex;
    justify-content: center;
}

.tier-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.tier-image .img-tzipoy {
    transform: scale(1.1);
}

.tier-image .img-liba {
    transform: scale(1.2);
}

.tier-image .img-base {
    transform: scale(1.3);
}

.tier-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.tier-label h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--krembo-brown);
    white-space: nowrap;
}

.tier-label .tier-line {
    flex: 1;
    height: 1px;
    background: rgba(155, 96, 38, 0.2);
}

.tier-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.unit-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    text-align: center;
    box-shadow: 0 3px 14px rgba(24, 106, 182, 0.09);
    border: 1.5px solid rgba(24, 106, 182, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(24, 106, 182, 0.16);
}

.unit-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--krembo-brown);
    margin-bottom: 0.3rem;
}

.unit-card p {
    font-size: 0.9rem;
    color: #777;
}

.unit-card-full {
    width: 100%;
    grid-column: 1 / -1;
}


/* ===== מצב נעול ליחידות ===== */

.unit-locked {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    filter: grayscale(80%);
}

.unit-locked:hover {
    transform: none;
    box-shadow: 0 3px 14px rgba(24, 106, 182, 0.09);
}


/* ===== UNIT PAGES STYLES ===== */

.unit-page-bg {
    background: linear-gradient(
            170deg,
            var(--krembo-blue-pale) 0%,
            var(--krembo-blue-light) 100%
    );
}

.krembo-title-badge {
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
}

.benefit-icon-wrapper {
    backdrop-filter: blur(2px);
}

.btn-dark-blue {
    background-color: var(--krembo-blue-dark);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-pop-in {
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulseSlow {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite ease-in-out;
}

.circle-unlocked {
    border-color: rgba(24, 106, 182, 0.6);
    background-color: rgba(24, 106, 182, 0.05);
    box-shadow: 0 4px 15px rgba(24, 106, 182, 0.15);
}

.group:hover .circle-unlocked {
    border-color: rgba(24, 106, 182, 1);
    background-color: rgba(24, 106, 182, 0.1);
    box-shadow: 0 4px 20px rgba(24, 106, 182, 0.3);
}

.circle-locked {
    border-color: rgba(24, 106, 182, 0.2);
    background-color: rgba(24, 106, 182, 0.02);
}

.krembo-brown-filter {
    filter: brightness(0) saturate(100%) invert(41%) sepia(49%) saturate(846%) hue-rotate(348deg) brightness(93%) contrast(90%);
}

.benefit-icon-wrapper img {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.group:hover .circle-unlocked img {
    opacity: 1;
    transform: scale(1.05);
}

.circle-locked img {
    opacity: 0.15;
}

.modal-icon {
    opacity: 0.8;
}
/* ===== FOOTER ===== */
footer {
    background: #093C71;
    color: #ffffff;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

footer p,
footer span,
footer div {
    color: #ffffff !important;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

footer .footer-divider {
    margin: 0 0.5rem;
    opacity: 0.4;
}


/* ===== WAVE DIVIDER ===== */

.wave-divider {
    line-height: 0;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--krembo-brown);
    margin-top: 0;
}

.text-krembo-brown {
    color: var(--krembo-brown);
}

.wave-pale {
    background: var(--krembo-blue-pale);
}

.wave-white {
    background: var(--krembo-white);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .units-layout {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* התאמת סרגל הניווט לטאבלט ולטלפון */
    .navbar {
        min-height: 78px;
        gap: 0.65rem;
        padding: 0.45rem 0.75rem;
    }

    .navbar > a img {
        height: 54px !important;
    }

    .navbar > nav {
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .navbar > nav::-webkit-scrollbar {
        display: none;
    }

    .navbar nav ul {
        width: max-content;
        min-width: 100%;
        gap: 0.35rem;
    }

    .navbar nav ul li a {
        min-height: 40px;
        padding: 0.5rem 0.35rem;
        font-size: 0.8rem;
    }

    .navbar + main {
        padding-top: 0;
    }

    #units,
    #about-modal {
        scroll-margin-top: 1rem;
    }
}

@media (max-width: 420px) {
    .navbar {
        min-height: 66px;
        gap: 0.35rem;
        padding: 0.35rem 0.45rem;
    }

    .navbar > a img {
        height: 46px !important;
    }

    .navbar nav ul {
        gap: 0.1rem;
    }

    .navbar nav ul li a {
        min-height: 36px;
        padding: 0.4rem 0.25rem;
        font-size: 0.72rem;
    }

    .navbar + main {
        padding-top: 0;
    }

    #units,
    #about-modal {
        scroll-margin-top: 1rem;
    }
}



/* =========================================
   LOGIN
========================================= */

.kremboard-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;
    overflow-y: auto;

    background:
            radial-gradient(
                    circle at top left,
                    rgba(24, 106, 182, 0.14),
                    transparent 35%
            ),
            radial-gradient(
                    circle at bottom right,
                    rgba(155, 96, 38, 0.1),
                    transparent 35%
            ),
            linear-gradient(
                    145deg,
                    var(--krembo-blue-pale),
                    var(--krembo-blue-light)
            );
}

.kremboard-login-card {
    width: 100%;
    max-width: 480px;
    padding: 2.4rem 2.6rem;
    direction: rtl;
    text-align: right;
    background-color: var(--krembo-white);
    border: 1px solid rgba(24, 106, 182, 0.16);
    border-radius: 22px;
    box-shadow:
            0 20px 55px rgba(24, 106, 182, 0.18),
            0 4px 14px rgba(0, 0, 0, 0.06);
    animation: loginCardEntrance 0.4s ease-out;
}

@keyframes loginCardEntrance {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.4rem;
}

.login-logo {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 85px;
    object-fit: contain;
}

.login-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--krembo-blue-dark);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.kremboard-login-card h1 {
    margin: 0 0 0.9rem;
    color: var(--krembo-brown);
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.login-description {
    margin: 0 0 1.8rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.login-field label {
    color: #333;
    font-size: 0.95rem;
    font-weight: 700;
}

.login-input {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 0.95rem;
    direction: rtl;
    color: #333;
    background-color: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    outline: none;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-input:hover {
    border-color: rgba(24, 106, 182, 0.55);
}

.login-input:focus {
    border-color: var(--krembo-blue-dark);
    box-shadow:
            0 0 0 4px rgba(24, 106, 182, 0.12);
}

.login-input.valid.modified:not([type=checkbox]) {
    outline: none;
    border-color: var(--krembo-blue-dark);
}

.login-field .validation-message {
    color: #b42318;
    font-size: 0.84rem;
    font-weight: 500;
}

.login-input.invalid {
    outline: none;
    border-color: #dc2626;
    box-shadow:
            0 0 0 3px rgba(220, 38, 38, 0.1);
}

.login-error {
    padding: 0.75rem 0.9rem;
    color: #b42318;
    background-color: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 9px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 0.35rem;
    padding: 0.8rem 1.5rem;
    color: #fff;
    background-color: var(--krembo-blue-dark);
    border: none;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
            0 6px 20px rgba(24, 106, 182, 0.26);
    transition:
            background-color 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.login-submit-button:hover {
    background-color: #1258A0;
    transform: translateY(-2px);
    box-shadow:
            0 9px 26px rgba(24, 106, 182, 0.34);
}

.login-submit-button:active {
    transform: translateY(0);
}

.login-submit-button:focus-visible {
    outline: 3px solid rgba(24, 106, 182, 0.3);
    outline-offset: 3px;
}

.login-privacy-note {
    margin: 1.2rem 0 0;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

.login-loading-text {
    padding: 1rem;
    color: var(--krembo-blue-dark);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}


/* =========================================
   CURRENT USER
========================================= */

.kremboard-user-badge {
    position: absolute;

    /* מתחת לתפריט העליון */
    top: 95px;

    /* הצמדה לצד ימין */
    right: 24px;
    left: auto;

    z-index: 120;

    display: inline-flex;
    align-items: center;
    gap: 0.3rem;

    max-width: 280px;
    padding: 0.8rem 1.2rem;

    direction: rtl;
    text-align: right;

    color: var(--krembo-blue-dark);
    background-color: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--krembo-blue-light);
    border-radius: 999px;

    box-shadow:
            0 8px 20px rgba(24, 106, 182, 0.12);

    font-size: 0.95rem;
    font-weight: 600;

    backdrop-filter: blur(7px);
}

.kremboard-user-badge strong {
    color: var(--krembo-brown);
    font-weight: 700;
}

.hero-user-greeting {
    margin: 0;
    color: var(--krembo-blue-dark);
    font-size: 1.15rem;
    font-weight: 700;
}


/* =========================================
   COMPLETION REPORT
========================================= */

.completion-report-message {
    width: fit-content;
    max-width: 680px;
    margin: 1.5rem auto 0;
    padding: 0.85rem 1.3rem;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 12px;
    box-shadow:
            0 4px 14px rgba(22, 101, 52, 0.08);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .kremboard-login-overlay {
        align-items: flex-start;
        padding: 1rem;
    }

    .kremboard-login-card {
        margin: auto 0;
        padding: 1.8rem 1.3rem;
        border-radius: 17px;
    }

    .login-logo {
        max-width: 165px;
        max-height: 70px;
    }

    .login-description {
        font-size: 0.94rem;
    }

    .login-input {
        min-height: 48px;
    }

    .kremboard-user-badge {
        position: absolute;
        top: 105px;

        /* גם במובייל התג מוצמד לימין */
        right: 10px;
        left: auto;

        max-width: calc(100% - 20px);
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }

    .hero-user-greeting {
        font-size: 1rem;
    }

    .completion-report-message {
        width: 100%;
        font-size: 0.88rem;
    }
}

/* =========================================
   השלמת תהליך האונבורדינג
========================================= */

.onboarding-completion-box {
    max-width: 720px;
    margin: 4rem auto 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: #ffffff;
    border: 2px solid var(--krembo-blue-light);
    border-radius: 22px;
    box-shadow:
            0 14px 35px rgba(24, 106, 182, 0.15);
}

.onboarding-completion-icon {
    margin-bottom: 0.7rem;
    font-size: 2.7rem;
}

.onboarding-completion-box h3 {
    margin: 0 0 0.8rem;
    color: var(--krembo-brown);
    font-size: 1.75rem;
    font-weight: 800;
}

.onboarding-completion-box p {
    max-width: 520px;
    margin: 0 auto 1.7rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.onboarding-completion-button {
    min-width: 310px;
    min-height: 54px;
    padding: 0.9rem 2rem;
    color: #ffffff;
    background-color: var(--krembo-blue-dark);
    border: none;
    border-radius: 50px;
    font-family: 'Rubik', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
            0 7px 22px rgba(24, 106, 182, 0.28);
    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            box-shadow 0.2s ease;
}

.onboarding-completion-button:hover:not(:disabled) {
    background-color: #1258A0;
    transform: translateY(-3px);
    box-shadow:
            0 11px 28px rgba(24, 106, 182, 0.35);
}

.onboarding-completion-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.onboarding-completion-success {
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 1.3rem;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 13px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
}

.onboarding-completion-message {
    margin: 1.2rem auto 1rem;
    padding: 0.8rem 1rem;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    font-weight: 700;
}

.onboarding-completion-error {
    color: #b42318;
    background-color: #fff1f1;
    border-color: #fecaca;
}

@media (max-width: 600px) {
    .onboarding-completion-box {
        padding: 2rem 1.2rem;
    }

    .onboarding-completion-button {
        width: 100%;
        min-width: 0;
    }

    .onboarding-completion-box h3 {
        font-size: 1.45rem;
    }
}

/* =========================================
   מסך אודות מלא
========================================= */

/* נעילת הדף הראשי בזמן שמסך האודות פתוח */
body:has(.about-screen-backdrop) {
    overflow: hidden;
}


/* =========================================
   שכבת הרקע שמעל דף הנחיתה
========================================= */

#app .about-screen-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;

    display: block !important;

    width: 100vw !important;
    height: 100vh !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    direction: rtl;

    background-color: rgba(15, 23, 42, 0.58);

    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}


/* =========================================
   עמוד האודות
========================================= */

#app .about-screen-page {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;

    margin: 0 !important;

    color: #24324a;

    background:
            radial-gradient(
                    circle at 5% 34%,
                    rgba(24, 106, 182, 0.08) 0,
                    rgba(24, 106, 182, 0.08) 145px,
                    transparent 146px
            ),
            radial-gradient(
                    circle at 95% 84%,
                    rgba(155, 96, 38, 0.05) 0,
                    rgba(155, 96, 38, 0.05) 185px,
                    transparent 186px
            ),
            linear-gradient(
                    160deg,
                    var(--krembo-blue-light) 0%,
                    var(--krembo-blue-pale) 65%,
                    #ffffff 100%
            ) !important;

    font-family: 'Rubik', sans-serif;
    text-align: right;

    animation: aboutScreenEnter 0.25s ease-out;
}

@keyframes aboutScreenEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   הכותרת העליונה
========================================= */

#app .about-screen-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;

    display: grid !important;

    grid-template-columns:
        minmax(130px, 1fr)
        auto
        minmax(130px, 1fr) !important;

    grid-template-areas:
        "close title logo";

    align-items: center !important;

    width: 100% !important;
    min-height: 76px !important;

    padding: 0 2.25rem !important;

    direction: ltr;

    color: #ffffff !important;
    background-color: #093C71 !important;

    border: 0 !important;

    box-shadow:
            0 3px 16px rgba(15, 23, 42, 0.22);
}

#app .about-screen-header h2 {
    grid-area: title;

    margin: 0 !important;

    color: #ffffff !important;

    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}


/* לוגו כנפיים של קרמבו בצד ימין */

#app .about-screen-brand {
    grid-area: logo;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    justify-self: end;

    min-width: 0;

    padding: 0.25rem 0.55rem;

    background-color: rgba(255, 255, 255, 0.97);

    border-radius: 12px;

    box-shadow:
            0 3px 10px rgba(0, 0, 0, 0.12);
}

#app .about-screen-logo {
    display: block !important;

    width: auto !important;
    max-width: 130px !important;
    max-height: 54px !important;

    object-fit: contain !important;
}


/* כפתור סגירה בצד שמאל */

#app .about-screen-close {
    grid-area: close;

    justify-self: start;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;

    padding: 0 !important;

    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.14) !important;

    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;

    font-family: Arial, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    transition:
            background-color 0.2s ease,
            transform 0.2s ease;
}

#app .about-screen-close:hover {
    background-color: rgba(255, 255, 255, 0.26) !important;
    transform: scale(1.05);
}

#app .about-screen-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}


/* =========================================
   מבנה התוכן הראשי
========================================= */

#app .about-screen-content {
    display: grid !important;

    /* צוות בצד שמאל ואודות בצד ימין */
    grid-template-columns:
        340px
        minmax(660px, 930px) !important;

    grid-template-areas:
        "team project";

    justify-content: space-between;
    align-items: start;

    gap: 4rem !important;

    flex: 1 0 auto;

    width: min(1480px, calc(100% - 3rem)) !important;

    margin: 0 auto !important;
    padding: 3rem 0 2.5rem !important;

    direction: ltr;
}


/* =========================================
   אודות הפרויקט – צד ימין
========================================= */

#app .about-project-panel {
    grid-area: project;

    width: 100%;
    max-width: 930px;

    justify-self: end;
    align-self: start;

    direction: rtl;
}

#app .about-project-title {
    margin: 0 0 0.75rem !important;

    color: var(--krembo-brown) !important;

    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: right !important;
}

#app .about-project-intro {
    max-width: 760px;

    margin:
            0
            0
            1.55rem
            auto !important;

    color: #555f70 !important;

    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    text-align: right !important;
}

#app .about-project-card {
    width: 100%;
    max-width: 880px;

    margin-right: 0;
    margin-left: auto;

    padding: 1.2rem 1.7rem;

    background-color: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(24, 106, 182, 0.13);
    border-radius: 18px;

    box-shadow:
            0 10px 28px rgba(24, 106, 182, 0.11);
}

#app .about-project-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;

    width: 100%;

    padding: 0.78rem 0;

    border-bottom: 1px solid #e7e8ec;

    font-size: 0.98rem;
    line-height: 1.55;
}

#app .about-project-row:last-child {
    border-bottom: 0;
}

#app .about-project-label {
    flex: 0 0 auto;

    color: #8f2f36;

    font-weight: 800;
}

#app .about-project-value {
    min-width: 0;

    color: #34456a;
}

#app .about-project-faculty-link {
    color: #16836f;

    font-weight: 700;
    text-decoration: none;
}

#app .about-project-faculty-link:hover {
    text-decoration: underline;
}


/* =========================================
   הלוגואים שמתחת לפרטי הפרויקט
========================================= */

#app .about-partners {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 1.8rem !important;

    width: 100%;
    max-width: 880px;
    min-height: 120px;

    margin:
            1.5rem
            0
            0
            auto;

    padding: 0.95rem 1.5rem;

    background-color: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(24, 106, 182, 0.08);
    border-radius: 16px;
}

#app .about-partner-logo {
    display: block !important;

    width: auto !important;
    height: auto !important;
    max-width: 100% !important;

    object-fit: contain !important;
}

#app .about-hit-logo {
    width: min(270px, 55%) !important;
    max-height: 95px !important;
}

#app .about-krembo-logo {
    width: min(125px, 30%) !important;
    max-height: 95px !important;
}

#app .about-partner-divider {
    flex: 0 0 1px;

    width: 1px;
    height: 76px;

    background-color: #d8dce4;
}


/* =========================================
   צוות הפרויקט – צד שמאל
========================================= */

#app .about-team-panel {
    grid-area: team;

    display: flex !important;
    flex-direction: column !important;

    gap: 1.35rem !important;

    width: 100%;
    max-width: 340px;

    justify-self: start;

    direction: rtl;
}

#app .about-member-card {
    width: 100%;

    padding: 1.25rem 1.2rem;

    background-color: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(24, 106, 182, 0.11);
    border-radius: 20px;

    text-align: center;

    box-shadow:
            0 9px 24px rgba(70, 75, 90, 0.13);
}

#app .about-member-photo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 0.85rem;
}

#app .about-member-photo {
    display: block !important;

    width: 135px !important;
    height: 135px !important;
    max-width: 135px !important;

    object-fit: cover !important;
    object-position: center !important;

    border: 3px solid var(--krembo-brown-light) !important;
    border-radius: 50% !important;

    box-shadow:
            0 6px 18px rgba(91, 70, 39, 0.18);
}

#app .about-member-card h3 {
    margin: 0 !important;

    color: #263d75 !important;

    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

#app .about-member-role {
    margin: 0.3rem 0 0.85rem !important;

    color: #6b7280 !important;

    font-size: 0.88rem !important;
    text-align: center !important;
}

#app .about-member-contact {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0.5rem !important;

    width: 100% !important;
    min-height: 40px !important;

    margin-top: 0.55rem !important;
    padding: 0.55rem 0.6rem !important;

    border-radius: 10px !important;

    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    text-decoration: none !important;

    overflow-wrap: anywhere;

    transition:
            transform 0.2s ease,
            filter 0.2s ease;
}

#app .about-member-contact:hover {
    transform: translateY(-2px);
    filter: brightness(0.97);
}

#app .about-member-email {
    color: #34456a !important;
    background-color: #fff4dc !important;
}

#app .about-member-linkedin {
    color: #245a89 !important;
    background-color: #e5f3fb !important;
}

#app .about-contact-icon {
    font-size: 1rem;
}

#app .about-linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    color: #ffffff;
    background-color: #0a66c2;

    border-radius: 3px;

    font-size: 0.72rem;
    font-weight: 800;
}


/* =========================================
   תחתית מסך האודות
========================================= */

#app .about-screen-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0.7rem !important;

    width: 100% !important;
    min-height: 52px !important;

    margin-top: auto !important;
    padding: 0.8rem 1.5rem !important;

    color: #ffffff !important;
    background-color: #093C71 !important;

    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

#app .about-footer-separator {
    opacity: 0.65;
}


/* =========================================
   התאמה לטאבלט
========================================= */

@media (max-width: 1050px) {
    #app .about-screen-content {
        grid-template-columns: 1fr !important;

        grid-template-areas:
            "project"
            "team";

        width: min(
                900px,
                calc(100% - 2.5rem)
        ) !important;

        gap: 2rem !important;

        padding-top: 2.3rem !important;
    }

    #app .about-project-panel,
    #app .about-team-panel {
        width: 100%;
        max-width: none;

        justify-self: stretch;
    }

    #app .about-team-panel {
        display: grid !important;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }

    #app .about-project-card,
    #app .about-partners {
        max-width: none;
    }

    #app .about-project-title {
        text-align: center !important;
    }

    #app .about-project-intro {
        max-width: 720px;

        margin:
                0
                auto
                1.55rem !important;

        text-align: center !important;
    }
}


/* =========================================
   התאמה לטלפון
========================================= */

@media (max-width: 640px) {
    #app .about-screen-header {
        grid-template-columns:
            44px
            1fr
            95px !important;

        grid-template-areas:
            "close title logo";

        min-height: 65px !important;

        padding: 0 0.75rem !important;
    }

    #app .about-screen-header h2 {
        font-size: 1.12rem !important;
    }

    #app .about-screen-brand {
        padding: 0.22rem 0.4rem;

        border-radius: 9px;
    }

    #app .about-screen-logo {
        max-width: 76px !important;
        max-height: 38px !important;
    }

    #app .about-screen-close {
        width: 39px !important;
        height: 39px !important;

        font-size: 1.7rem !important;
    }

    #app .about-screen-content {
        width: calc(100% - 1.4rem) !important;

        padding: 1.7rem 0 !important;
    }

    #app .about-project-title {
        font-size: 2rem !important;

        text-align: center !important;
    }

    #app .about-project-intro {
        padding: 0 0.35rem !important;

        font-size: 0.94rem !important;
        text-align: center !important;
    }

    #app .about-project-card {
        padding: 0.85rem 1rem;
    }

    #app .about-project-row {
        display: block;

        padding: 0.75rem 0;
    }

    #app .about-project-label {
        display: block;

        margin-bottom: 0.15rem;
    }

    #app .about-team-panel {
        grid-template-columns: 1fr !important;
    }

    #app .about-member-card {
        max-width: 380px;

        margin: 0 auto;
    }

    #app .about-member-photo {
        width: 130px !important;
        height: 130px !important;
        max-width: 130px !important;
    }

    #app .about-partners {
        gap: 1rem !important;

        padding: 0.9rem !important;
    }

    #app .about-hit-logo {
        width: 58% !important;
    }

    #app .about-krembo-logo {
        width: 29% !important;
    }

    #app .about-screen-footer {
        display: block !important;

        line-height: 1.7 !important;
    }

    #app .about-footer-separator {
        display: none;
    }
}
/* =========================================
   ABOUT – נתונים מספריים
========================================= */

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;

    width: 100%;
    max-width: 820px;

    margin: 3rem auto 0;
    direction: rtl;
}

.about-stat-card {
    position: relative;
    overflow: hidden;

    min-height: 260px;
    padding: 2rem 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
            radial-gradient(
                    circle at top right,
                    rgba(24, 106, 182, 0.1),
                    transparent 45%
            ),
            linear-gradient(
                    145deg,
                    #ffffff,
                    #f5faff
            );

    border: 1px solid rgba(24, 106, 182, 0.15);
    border-radius: 22px;

    box-shadow:
            0 12px 32px rgba(24, 106, 182, 0.12);
}

.about-stat-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 5px;

    background: linear-gradient(
            90deg,
            var(--krembo-blue-dark),
            var(--krembo-blue-mid),
            var(--krembo-brown-light)
    );
}

.about-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin-bottom: 0.8rem;

    background-color: var(--krembo-blue-pale);
    border: 1px solid var(--krembo-blue-light);
    border-radius: 50%;

    font-size: 2rem;

    box-shadow:
            0 7px 18px rgba(24, 106, 182, 0.12);
}

.about-people-icon {
    width: 42px;
    height: 42px;
    fill: var(--krembo-blue-dark);
    opacity: 0.75;
}

.about-stat-number {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--krembo-blue-dark);

    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1;

    direction: rtl;
    font-variant-numeric: tabular-nums;
}

.about-stat-card h3 {
    margin: 0.8rem 0 0.35rem;

    color: var(--krembo-brown);

    font-size: 1.35rem;
    font-weight: 800;
}

.about-stat-card p {
    margin: 0;

    color: #5f6876;

    font-size: 1.35rem;
    line-height: 1.4;
}
/* התאמה לטלפון */

@media (max-width: 640px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.2rem;

        margin-top: 2.2rem;
    }

    .about-stat-card {
        min-height: 230px;
        padding: 1.7rem 1.2rem;
    }

    .about-stat-icon {
        width: 60px;
        height: 60px;

        font-size: 1.7rem;
    }

    .about-stat-number {
        font-size: 3rem;
    }
}
/* =========================================
   יחידה 2 – פס גלילה אופקי
========================================= */

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   יחידה 2 – סרטון
========================================= */
.video-wrapper {
    width: min(92vw, 39vh, 400px);

    margin: 0 auto 3.5rem;
    padding: 8px;

    background-color: #ffffff;

    border-radius: 24px;

    box-shadow:
            0 16px 38px rgba(24, 106, 182, 0.18);

    box-sizing: border-box;
}

.video-container {
    position: relative;

    width: 100%;
    aspect-ratio: 9 / 16;

    overflow: hidden;

    background-color: #ffffff;

    border-radius: 18px;
}

.video-container iframe {
    position: absolute;

    top: 0;
    left: 50%;

    width: 316%;
    max-width: none;
    height: 100%;

    display: block;

    border: 0;

    transform: translateX(-50%);
}


/* =========================================
   יחידה 2 – הורדת האפליקציה ו־QR
========================================= */

.app-download-section {
    width: min(100%, 760px);

    margin: 0 auto 3.5rem;
    padding: 1.15rem 1.25rem;

    direction: rtl;

    background:
            linear-gradient(
                    135deg,
                    #ffffff 0%,
                    #f5faff 100%
            );

    border: 1px solid #d7e7f6;
    border-radius: 22px;

    box-shadow:
            0 12px 28px rgba(24, 106, 182, 0.1);

    box-sizing: border-box;
}

.app-download-inner {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    grid-template-areas:
        "qr text";

    align-items: center;

    gap: 1.15rem;
}

.app-download-text {
    grid-area: text;

    min-width: 0;

    text-align: right;
}

.app-download-label {
    display: inline-block;

    margin-bottom: 0.5rem;
    padding: 0.28rem 0.75rem;

    color: #8c5b3e;
    background-color: #ffffff;

    border: 1px solid #dbeafe;
    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 800;

    box-shadow:
            0 3px 10px rgba(24, 106, 182, 0.06);
}

.app-download-text h2 {
    margin: 0 0 0.55rem;

    color: #0f3d68;

    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.3;
}

.app-download-text p {
    max-width: 420px;

    margin: 0 0 0.9rem;

    color: #36516b;

    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================
   יחידה 2 – כפתורי חנויות
========================================= */

.app-download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0.55rem;
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.45rem;

    min-height: 40px;

    padding: 0.62rem 0.95rem;

    border: 2px solid transparent;
    border-radius: 999px;

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;

    transition:
            transform 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.app-store-button:focus-visible {
    outline: 3px solid rgba(24, 106, 182, 0.35);
    outline-offset: 4px;
}


/* App Store */

.apple-store-button {
    color: #ffffff;
    background-color: #162c43;
    border-color: #162c43;

    box-shadow:
            0 6px 16px rgba(22, 44, 67, 0.16);
}

.apple-store-button:hover {
    color: #ffffff;
    background-color: #0e2032;
    border-color: #0e2032;

    transform: translateY(-2px);

    box-shadow:
            0 9px 20px rgba(22, 44, 67, 0.21);
}


/* Google Play */

.google-play-button {
    color: #ffffff;
    background-color: #186ab6;
    border-color: #186ab6;

    box-shadow:
            0 6px 16px rgba(24, 106, 182, 0.16);
}

.google-play-button:hover {
    color: #ffffff;
    background-color: #145995;
    border-color: #145995;

    transform: translateY(-2px);

    box-shadow:
            0 9px 20px rgba(24, 106, 182, 0.21);
}


/* =========================================
   יחידה 2 – קודי QR
========================================= */

.app-download-qr-area {
    grid-area: qr;

    flex-shrink: 0;
}

.app-download-qr-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 92px);

    align-items: start;

    gap: 0.5rem;

    direction: rtl;
}

.app-qr-card {
    margin: 0;
    padding: 0.42rem 0.3rem;

    text-align: center;

    background-color: rgba(255, 255, 255, 0.92);

    border: 1px solid #d7e7f6;
    border-radius: 13px;

    box-shadow:
            0 5px 13px rgba(15, 61, 104, 0.07);
}

.app-qr-link {
    display: inline-block;

    padding: 0.2rem;

    background-color: #ffffff;

    border: 1px solid #dbeafe;
    border-radius: 9px;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.app-qr-link:hover {
    transform: scale(1.025);

    box-shadow:
            0 6px 14px rgba(15, 61, 104, 0.12);
}

.app-qr-link:focus-visible {
    outline: 3px solid rgba(24, 106, 182, 0.35);
    outline-offset: 3px;
}

.app-qr-link img {
    display: block;

    width: 62px;
    height: 62px;

    max-width: 62px;
    max-height: 62px;

    object-fit: contain;

    background-color: #ffffff;
}

.app-qr-store-name {
    margin: 0.32rem 0 0.05rem;

    color: #186ab6;

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.app-qr-caption {
    margin: 0;

    color: #64748b;

    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================
   יחידה 2 – קרוסלת צילומי מסך
========================================= */

.screenshots-section {
    width: 100%;
    margin: 0 auto 4rem;
    direction: rtl;
    text-align: center;
}

.screenshots-section-title {
    margin: 0 0 0.45rem;
    color: #173f86;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
}

.screenshots-carousel-hint {
    margin: 0 0 1.25rem;
    color: #5f7490;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}


/* מבנה הקרוסלה */

.screenshots-carousel {
    width: min(100%, 980px);
    margin: 0 auto;
}

.screenshots-carousel-stage {
    display: grid;
    grid-template-columns:
        56px
        minmax(120px, 170px)
        minmax(220px, 260px)
        minmax(120px, 170px)
        56px;
    grid-template-areas:
        "left-arrow left-preview active right-preview right-arrow";
    align-items: center;
    justify-content: center;
    gap: 1.25rem;

    width: 100%;
    min-height: 570px;
    direction: ltr;
}


/* חצי הניווט */

.screenshot-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    padding: 0;

    color: #174b97;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 106, 182, 0.12);
    border-radius: 50%;

    box-shadow:
            0 6px 16px rgba(24, 106, 182, 0.16),
            0 1px 3px rgba(15, 23, 42, 0.08);

    cursor: pointer;
    transition:
            transform 0.2s ease,
            color 0.2s ease,
            background-color 0.2s ease,
            box-shadow 0.2s ease;
}

.screenshot-carousel-arrow-left {
    grid-area: left-arrow;
}

.screenshot-carousel-arrow-right {
    grid-area: right-arrow;
}

.screenshot-carousel-arrow svg {
    width: 29px;
    height: 29px;
}

.screenshot-carousel-arrow:hover {
    color: #ffffff;
    background-color: #186ab6;
    transform: scale(1.08);
    box-shadow:
            0 9px 22px rgba(24, 106, 182, 0.25);
}

.screenshot-carousel-arrow:active {
    transform: scale(0.97);
}

.screenshot-carousel-arrow:focus-visible {
    outline: 4px solid rgba(24, 106, 182, 0.28);
    outline-offset: 4px;
}


/* התמונות הצדדיות */

.screenshot-carousel-preview {
    display: block;
    width: 100%;
    aspect-ratio: 205 / 430;
    padding: 4px;
    overflow: hidden;

    background-color: #ffffff;
    border: 2px solid rgba(31, 41, 55, 0.45);
    border-radius: 1.4rem;

    box-shadow:
            0 9px 22px rgba(15, 61, 104, 0.1);

    cursor: pointer;
    opacity: 0.28;
    filter: blur(1.7px) grayscale(18%);
    transform: scale(0.9);

    transition:
            opacity 0.25s ease,
            filter 0.25s ease,
            transform 0.25s ease;
}

.screenshot-carousel-preview-left {
    grid-area: left-preview;
}

.screenshot-carousel-preview-right {
    grid-area: right-preview;
}

.screenshot-carousel-preview:hover {
    opacity: 0.48;
    filter: blur(0.8px) grayscale(8%);
    transform: scale(0.94);
}

.screenshot-carousel-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    border-radius: 1.05rem;
}


/* התמונה המרכזית */

.screenshot-carousel-active {
    grid-area: active;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    animation: screenshotCarouselEnter 0.28s ease-out;
}

@keyframes screenshotCarouselEnter {
    from {
        opacity: 0.45;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.screenshot-carousel-image-button {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 205 / 430;
    padding: 5px;
    overflow: hidden;

    background-color: #ffffff;
    border: 3px solid #8c5b3e;
    border-radius: 1.65rem;

    box-shadow:
            0 17px 32px rgba(15, 61, 104, 0.18),
            0 5px 12px rgba(140, 91, 62, 0.14);

    cursor: default;
}

.screenshot-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    border-radius: 1.3rem;
}

.screenshot-carousel-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 88px;
    margin-top: 0.75rem;
    padding: 0.35rem 0.85rem;

    color: #174b97;
    background-color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 106, 182, 0.12);
    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 800;

    box-shadow:
            0 4px 12px rgba(24, 106, 182, 0.08);
}


/* שכבת זכוכית המגדלת */

.screenshot-hover-layer {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(30, 64, 175, 0.08);
    opacity: 0;

    transition: opacity 0.3s ease;
}

.screenshot-carousel-image-button:hover .screenshot-hover-layer,
.screenshot-carousel-image-button:focus-visible .screenshot-hover-layer {
    opacity: 1;
}

.screenshot-zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.65rem;

    color: #0f3d68;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;

    box-shadow:
            0 6px 18px rgba(15, 61, 104, 0.18);
}


/* כותרת והסבר */

.screenshot-carousel-details {
    width: min(100%, 650px);
    min-height: 122px;
    margin: 1.35rem auto 0;
    padding: 1.25rem 1.5rem;

    direction: rtl;
    text-align: center;

    background-color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 106, 182, 0.13);
    border-radius: 18px;

    box-shadow:
            0 10px 24px rgba(24, 106, 182, 0.08);
}

.screenshot-carousel-details h3 {
    margin: 0 0 0.45rem;
    color: #173f86;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
}

.screenshot-carousel-details p {
    max-width: 560px;
    margin: 0 auto;
    color: #53657a;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.7;
}

.screenshots-open-hint {
    margin: 0.9rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}


/* =========================================
   יחידה 2 – חלון הגדלת תמונה
========================================= */

.image-modal-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: auto;
    max-width: min(95vw, 414px);
    max-height: 94vh;

    padding: 0.55rem 0.55rem 0.45rem;

    overflow-y: auto;

    background-color: #ffffff;

    border-radius: 18px;

    box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.34);
}

.image-modal-image-shell {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin: 0;
    padding: 7px;

    background-color: #eef6ff;

    border: 2px solid #c7ddf5;
    border-radius: 16px;

    box-shadow:
            inset 0 0 0 1px rgba(24, 106, 182, 0.04),
            0 4px 14px rgba(24, 106, 182, 0.1);
}

.image-modal-picture {
    display: block;

    width: auto;
    max-width: min(89vw, 394px);
    max-height: 72vh;
    height: auto;

    object-fit: contain;

    background-color: #ffffff;

    border: 1px solid rgba(24, 106, 182, 0.18);
    border-radius: 11px;
}

.image-modal-caption {
    width: 100%;
    max-width: 394px;

    padding: 0.75rem 0.3rem 0.25rem;

    direction: rtl;
    text-align: right;
}

.image-modal-caption h3 {
    margin: 0 0 0.35rem;

    color: #186ab6;

    font-size: 1.05rem;
    font-weight: 800;
}

.image-modal-caption p {
    margin: 0;

    color: #4b5563;

    font-size: 0.9rem;
    line-height: 1.55;
}


/* =========================================
   יחידה 2 – התאמה למסכי טלפון
========================================= */

@media (max-width: 640px) {

    /* סרטון */

    .video-wrapper {
        width: min(90vw, 37vh);

        padding: 6px;
        margin-bottom: 3rem;

        border-radius: 19px;
    }

    .video-container {
        border-radius: 14px;
    }


    /* הורדת האפליקציה */

    .app-download-section {
        width: 100%;

        padding: 1rem;
        margin-bottom: 2.5rem;

        border-radius: 18px;
    }

    .app-download-inner {
        grid-template-columns: 1fr;

        grid-template-areas:
            "text"
            "qr";

        gap: 1.1rem;
    }

    .app-download-text {
        text-align: center;
    }

    .app-download-label {
        font-size: 0.74rem;
    }

    .app-download-text h2 {
        font-size: 1.12rem;
    }

    .app-download-text p {
        max-width: 360px;

        margin-right: auto;
        margin-left: auto;

        font-size: 0.85rem;
    }

    .app-download-actions {
        flex-direction: column;
    }

    .app-store-button {
        width: 100%;
    }


    /* קודי QR */

    .app-download-qr-grid {
        grid-template-columns:
            repeat(2, 84px);

        justify-content: center;

        gap: 0.45rem;

        margin: 0 auto;
    }

    .app-qr-card {
        padding: 0.38rem 0.25rem;
    }

    .app-qr-link img {
        width: 56px;
        height: 56px;

        max-width: 56px;
        max-height: 56px;
    }

    .app-qr-store-name {
        font-size: 0.68rem;
    }

    .app-qr-caption {
        font-size: 0.53rem;
    }


    /* קרוסלת צילומי המסך */

    .screenshots-section-title {
        font-size: 1.3rem;
    }

    .screenshots-carousel-hint {
        margin-bottom: 0.9rem;
        font-size: 0.8rem;
    }

    .screenshots-carousel-stage {
        grid-template-columns:
            44px
            minmax(0, 210px)
            44px;
        grid-template-areas:
            "left-arrow active right-arrow";
        gap: 0.6rem;

        min-height: 470px;
    }

    .screenshot-carousel-preview {
        display: none;
    }

    .screenshot-carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .screenshot-carousel-arrow svg {
        width: 24px;
        height: 24px;
    }

    .screenshot-carousel-active {
        width: min(56vw, 210px);
        justify-self: center;
    }

    .screenshot-carousel-image-button {
        padding: 4px;
        border-width: 3px;
        border-radius: 1.45rem;
    }

    .screenshot-carousel-image {
        border-radius: 1.1rem;
    }

    .screenshot-carousel-counter {
        min-width: 80px;
        margin-top: 0.6rem;
        font-size: 0.74rem;
    }

    .screenshot-carousel-details {
        min-height: 0;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 15px;
    }

    .screenshot-carousel-details h3 {
        font-size: 1rem;
    }

    .screenshot-carousel-details p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .screenshots-open-hint {
        font-size: 0.77rem;
    }


    /* חלון הגדלת תמונה */

    .image-modal-card {
        max-width: 95vw;

        padding: 0.45rem;
    }

    .image-modal-image-shell {
        padding: 5px;

        border-radius: 14px;
    }

    .image-modal-picture {
        max-width: 88vw;
        max-height: 70vh;

        border-radius: 9px;
    }

    .image-modal-caption {
        max-width: 88vw;

        padding-top: 0.65rem;
    }

    .image-modal-caption h3 {
        font-size: 1rem;
    }

    .image-modal-caption p {
        font-size: 0.86rem;
    }
}

@media (max-width: 390px) {
    .screenshots-carousel-stage {
        grid-template-columns:
            40px
            minmax(0, 190px)
            40px;
        gap: 0.35rem;
        min-height: 430px;
    }

    .screenshot-carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .screenshot-carousel-active {
        width: min(53vw, 190px);
    }
}
