/* Reset and Base Styles */
:root {
    --primary-color: #2563EB;
    --secondary-color: #1E293B;
    --accent-color: #F43F5E;
    --text-color: #1E293B;
    --light-gray: #F8FAFC;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --header-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    border-radius: var(--border-radius);
    /* box-shadow: var(--box-shadow); */
    margin-top: 20px;
    margin-bottom: 10px;
    /* min-height: 60vh; */
    /* padding-top: 40px;
    padding-bottom: 40px; */
}

/* Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}
.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sticky-header .logo img {
    height: 40px;
}
.sticky-header .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.sticky-header .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}
.sticky-header .nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.sticky-header .mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}
@media (max-width: 900px) {
    .sticky-header .nav-links {
        display: none;
        position: absolute;
        top: 5px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 100vw;
        box-shadow: var(--box-shadow);
        z-index: 100;
        padding: 10px 0 10px 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    .sticky-header .nav-links.open {
        display: flex;
    }
    .sticky-header .mobile-menu-toggle {
        display: block;
    }
}

.cta-button {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}
.cta-button:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}
.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* דוקומנטציה - שלבים, הערות, הגדרות */
.step, .step-title, .step-description, .important-note, .required-settings, .sub-step-desc, .login-images {
    text-align: left !important;
    direction: ltr !important;
}

.step {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 22px;
    padding: 18px 14px 14px 14px;
    box-shadow: var(--box-shadow);
}
.step-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1.08rem;
}
.step-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.9rem;
}
.step-description {
    font-size: 1rem;
}
.important-note {
    color: var(--accent-color);
    font-weight: 500;
    margin: 8px 0;
}
.required-settings {
    background-color: var(--light-gray);
    border-right: 4px solid var(--primary-color);
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: var(--border-radius);
}
.settings-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}
.required-settings ul {
    margin: 0;
    padding-right: 20px;
}
.required-settings li {
    margin-bottom: 4px;
}
.sub-step-desc {
    background-color: var(--light-gray);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: 500;
}

/* תוכן ראשי */
h1, h2, h3 {
    color: var(--primary-color);
}
h1 {
    text-align: left;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 18px;
}
h2 {
    text-align: left;
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
h3 {
    text-align: left;
}

/* קישורים */
a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}
a:hover {
    color: #4bb3fd;
}

/* תמונות ווידאו */
img, video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0px auto 0 auto;
    border-radius: 6px;
    background: #fff;
    image-rendering: -webkit-optimize-contrast;
}

/* רספונסיביות */
@media (max-width: 600px) {
    .container {
        margin-top: 0px;
        padding: 10px 2vw;
    }
    nav .menu, .nav-links {
        gap: 10px;
        padding: 8px 8px;
    }
    h1 {
        font-size: 1.2rem;
    }
    .step {
        padding: 8px 4px 8px 4px;
    }
    .login-images {
        flex-direction: column;
    }
    .login-images img {
        width: 100%;
        margin-top: 10px;
    }
    .step img, .step video, .login-images img {
        max-width: 90%;
    }
    .login-images {
        flex-direction: column;
        gap: 10px;
    }
}

body[lang='he'] .step img, body[lang='he'] .step video, body[lang='he'] .login-images img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 60%;
    height: auto;
}

@media (max-width: 600px) {
    body[lang='he'] .step img, body[lang='he'] .step video, body[lang='he'] .login-images img {
        max-width: 90%;
    }
}

body[lang='en'] .step img, body[lang='en'] .step video, body[lang='en'] .login-images img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 60%;
    height: auto;
}

@media (max-width: 600px) {
    body[lang='en'] .step img, body[lang='en'] .step video, body[lang='en'] .login-images img {
        max-width: 90%;
    }
}

/* פוטר */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    margin-top: 40px;
}
footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}
.footer-links a {
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.card-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--header-height);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px 20px;
}

/* Separate text and images in .step and .login-images */
.step img, .step video, .login-images img {
    display: block;
    max-width: 60%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 18px;
    margin-bottom: 18px;
    border-radius: 6px;
}

/* For .login-images, use flex column for separation */
.login-images {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}