/* ==================== VARIABLES ==================== */
:root {
    --primary: #4a9bd9;
    --primary-dark: #2a6faa;
    --primary-light: #b8daf5;
    --secondary: #3a7cb8;
    --secondary-dark: #1d3557;
    --secondary-light: #a8dadc;
    --accent: #5bb8e8;
    --accent-dark: #3498c7;
    --gold: #f0b429;
    --bg-light: #f8f9fa;
    --bg-cream: #eef6fc;
    --text-dark: #2b2d42;
    --text-medium: #555;
    --text-light: #888;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.22);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Heebo', 'Rubik', Arial, sans-serif;
    --font-display: 'Rubik', 'Heebo', Arial, sans-serif;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 16px 0;
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-logo-img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.main-nav.scrolled .nav-logo-img {
    height: 44px;
    filter: none;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    transition: var(--transition);
    position: relative;
}

.main-nav.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.main-nav.scrolled .nav-hamburger span {
    background: var(--text-dark);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--secondary-dark, #1d3557);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: background-image 0.5s ease-in-out;
}

.hero-section.hero-bg-loaded {
    animation: heroFadeIn 0.5s ease-in-out;
}

@keyframes heroFadeIn {
    from { opacity: 0.92; }
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.10) 0%, transparent 60%),
        linear-gradient(135deg, var(--hero-overlay-from, rgba(29, 53, 87, 0.45)) 0%, var(--hero-overlay-to, rgba(230, 57, 70, 0.40)) 100%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-logo {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--accent);
    text-shadow: 0 4px 30px rgba(244, 162, 97, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-light);
    font-weight: 300;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.7;
}

.hero-scroll a:hover {
    opacity: 1;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.45);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(69, 123, 157, 0.35);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(69, 123, 157, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(244, 162, 97, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(244, 162, 97, 0.5);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.keren-section {
    position: relative;
    background:
        linear-gradient(180deg, var(--section-overlay-from, rgba(238,246,252,0.85)) 0%, var(--section-overlay-to, rgba(238,246,252,0.9)) 100%),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=60') center/cover no-repeat;
}

.keren-section .section-bg {
    display: none;
}

.activities-section {
    position: relative;
    background:
        linear-gradient(180deg, var(--section-overlay-from, rgba(255,255,255,0.82)) 0%, var(--section-overlay-to, rgba(240,244,248,0.88)) 100%),
        url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1920&q=60') center/cover no-repeat;
}

.activities-section .section-bg {
    display: none;
}

.donate-section {
    background:
        linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

.donate-section .section-bg {
    background:
        url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1920&q=60') center/cover no-repeat;
    opacity: 0.04;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== CARDS ==================== */
.cards-grid {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-5 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 57, 70, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(244, 162, 97, 0.1) 100%);
    color: var(--primary);
    transition: var(--transition);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
    transform: scale(1.1);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.card:hover .card-link {
    gap: 10px;
}

.card-disabled {
    position: relative;
}

.badge-soon {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==================== ABOUT TEXT BOX ==================== */
.about-text-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
    border-right: 5px solid var(--primary);
    position: relative;
    z-index: 1;
}

.about-text-box p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.about-text-box p:last-child {
    margin-bottom: 0;
}

/* ==================== DONATE SPECIFIC ==================== */
.nedarim-box {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin-top: 48px;
    color: var(--white);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nedarim-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.nedarim-box h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 12px;
    position: relative;
}

.nedarim-box p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 24px;
    position: relative;
}

.nedarim-btn {
    font-size: 1.2rem !important;
    padding: 18px 48px !important;
    position: relative;
}

.nedarim-note {
    font-size: 0.85rem !important;
    opacity: 0.7 !important;
    margin-bottom: 0 !important;
    margin-top: 16px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #0d1b2a 100%);
    color: var(--white);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    color: var(--white);
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
    color: var(--secondary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-mission {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--accent);
    padding-right: 8px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-donate-btn {
    margin-top: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.developer-credit {
    margin-top: 10px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.developer-credit a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.developer-credit a:hover,
.developer-credit a:focus-visible {
    color: var(--white);
    text-decoration: none;
}

.developer-credit:hover {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
    .developer-credit {
        font-size: 0.65rem;
        line-height: 1.7;
    }
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--modal-content-bg, var(--white));
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.4s ease;
    z-index: 1;
}

.modal.active .modal-content {
    animation: modalIn 0.4s ease;
}

.modal-wide {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-header {
    background:
        linear-gradient(135deg, var(--modal-header-overlay-from, rgba(74,155,217,0.85)) 0%, var(--modal-header-overlay-to, rgba(52,152,199,0.85)) 100%),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&q=60') center/cover no-repeat;
    color: var(--white);
    padding: 40px 36px;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.modal-header-therapy {
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
}

.modal-header-food {
    background: linear-gradient(135deg, #00b894, #55efc4);
}

.modal-header-financial {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.modal-body {
    padding: 36px;
}

.modal-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 24px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal-body ul,
.modal-body ol {
    padding-right: 24px;
    margin-bottom: 16px;
}

.modal-body li {
    color: var(--text-medium);
    margin-bottom: 8px;
    list-style: disc;
    line-height: 1.6;
}

.modal-body ol li {
    list-style: decimal;
}

.note {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==================== STEPS ==================== */
.steps-list {
    margin: 24px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.step:hover {
    background: rgba(230, 57, 70, 0.05);
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.step strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==================== DOWNLOAD AREA ==================== */
.download-area {
    text-align: center;
    padding: 28px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin: 24px 0;
    border: 2px dashed rgba(230, 57, 70, 0.2);
}

.contact-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.contact-note a {
    color: var(--primary);
    font-weight: 600;
}

.contact-note a:hover {
    text-decoration: underline;
}

/* ==================== GALLERY ==================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.gallery-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.gallery-placeholder:hover {
    background: linear-gradient(135deg, #d5d5d5, #ececec);
}

/* ==================== BASKET OPTIONS ==================== */
.basket-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.basket-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.basket-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.basket-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.basket-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.basket-price {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.basket-card p {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ==================== HOK OPTIONS ==================== */
.hok-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.hok-amount {
    padding: 16px;
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
}

.hok-amount:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hok-custom {
    font-size: 1rem;
}

/* ==================== VACATION MODAL ==================== */
.modal-vacation .modal-content {
    overflow: hidden;
}

.vacation-bg {
    min-height: 500px;
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.8), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?w=1200&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vacation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.vacation-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 48px;
}

.vacation-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.vacation-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.unavailable-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 32px;
    border-radius: var(--radius-xl);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.vacation-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ==================== PAGE HEADER (sub-pages) ==================== */
.page-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(29, 53, 87, 0.9) 0%, rgba(230, 57, 70, 0.75) 100%),
        url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1920&q=80') center/cover no-repeat;
    text-align: center;
    color: var(--white);
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 60%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 50px;
}

.page-header-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.page-header-content p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.contact-section .section-bg {
    background:
        url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&q=60') center/cover no-repeat;
    opacity: 0.03;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contact-form-box h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-box h3 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Per-field validation errors ---- */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e63946 !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12) !important;
}
.form-group.has-error label {
    color: #c0392b;
}
.form-group-error {
    display: none;
    font-size: 0.8rem;
    color: #c0392b;
    font-weight: 600;
    margin-top: 5px;
    padding-right: 4px;
    animation: fieldErrIn 0.18s ease-out;
}
.form-group-error i { margin-left: 4px; }
.form-group.has-error .form-group-error { display: block; }
.form-group.is-valid input,
.form-group.is-valid select,
.form-group.is-valid textarea {
    border-color: #00b894 !important;
}
@keyframes fieldErrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes formShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.form-shake { animation: formShake 0.4s ease-out; }

.form-submit-btn {
    width: 100%;
    justify-content: center;
}

.form-success {
    text-align: center;
    padding: 32px;
}

.form-success i {
    font-size: 3rem;
    color: #00b894;
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-medium);
}

.form-error-box {
    margin-top: 16px;
    padding: 14px 18px;
    background: #fdecea;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.form-error-box i {
    color: #c1121f;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-box {
        padding: 24px;
    }
}

.contact-donate-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    color: var(--white);
    text-align: center;
}

.contact-donate-box h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-donate-box p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .page-header-content h1 {
        font-size: 2.2rem;
    }
}

/* ==================== THERAPY PAGE ==================== */
.page-header-therapy {
    background-color: var(--secondary-dark, #1d3557);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.page-header-therapy .page-header-overlay {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.10) 0%, transparent 60%),
        linear-gradient(135deg, var(--page-header-overlay-from, rgba(29, 53, 87, 0.50)) 0%, var(--page-header-overlay-to, rgba(230, 57, 70, 0.45)) 100%);
}

.page-header-contact {
    background-color: var(--secondary-dark, #1d3557);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.page-header-contact .page-header-overlay {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.10) 0%, transparent 60%),
        linear-gradient(135deg, var(--page-header-overlay-from, rgba(29, 53, 87, 0.50)) 0%, var(--page-header-overlay-to, rgba(230, 57, 70, 0.45)) 100%);
}

.page-header-project {
    background-color: var(--secondary-dark, #1d3557);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.page-header-project .page-header-overlay {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(230, 57, 70, 0.10) 0%, transparent 60%),
        linear-gradient(135deg, var(--page-header-overlay-from, rgba(29, 53, 87, 0.50)) 0%, var(--page-header-overlay-to, rgba(230, 57, 70, 0.45)) 100%);
}

/* Dynamic project content */
.project-content-area {
    padding: 40px 0;
    line-height: 1.85;
    font-size: 1.05rem;
    color: var(--text-dark, #1a1a2e);
    border: none !important;
}

.project-content-area .ql-editor {
    padding: 0;
    overflow: visible;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.project-content-area h2,
.project-content-area h3 {
    color: var(--text-dark, #1a1a2e);
    margin: 28px 0 14px;
}

.project-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.project-content-area p {
    margin-bottom: 14px;
}

.project-content-area ul,
.project-content-area ol {
    margin-bottom: 14px;
    padding-right: 28px;
}

/* Projects section on homepage */
.projects-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
}

.card-dynamic {
    position: relative;
    overflow: hidden;
}

a.card-dynamic {
    text-decoration: none;
    color: inherit;
}

.card-dynamic .card-icon {
    color: #fff !important;
}

.card-dynamic h3 {
    transition: color 0.2s ease;
}

.card-dynamic:hover h3 {
    color: var(--primary);
}

.page-header-icon {
    display: inline-flex;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.therapy-prospect-section {
    background: var(--white);
    padding: 80px 0;
}

.therapy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.therapy-main-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.therapy-content-col h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.therapy-highlight {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
}

.therapy-content-col > p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.therapy-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.therapy-benefit-card {
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.benefit-free {
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    color: var(--white);
}

.benefit-free .benefit-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.benefit-subsidy {
    background: var(--bg-light);
    border: 2px solid rgba(230, 57, 70, 0.15);
    color: var(--text-dark);
}

.benefit-subsidy i {
    font-size: 1.8rem;
    color: var(--primary);
}

.benefit-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.therapy-details-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.therapy-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.therapy-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.therapy-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.therapy-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.therapy-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.therapy-info-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

.therapy-cta-section {
    background: var(--white);
    padding: 80px 0;
}

.therapy-cta-box {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    color: var(--white);
}

.therapy-cta-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.therapy-cta-box > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.therapy-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.therapy-contact-bar {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.therapy-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    transition: var(--transition);
}

.therapy-contact-item:hover {
    opacity: 1;
}

.therapy-contact-item i {
    font-size: 1.2rem;
}

.therapy-cta-box .note {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .therapy-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .therapy-info-grid {
        grid-template-columns: 1fr;
    }

    .therapy-benefits {
        grid-template-columns: 1fr;
    }

    .therapy-cta-box {
        padding: 36px 24px;
    }

    .therapy-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== PROSPECT BOX ==================== */
.prospect-image {
    margin: -36px -36px 24px -36px;
    border-radius: 0;
    overflow: hidden;
}

.prospect-image img {
    width: 100%;
    height: auto;
    display: block;
}

.prospect-box {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
}

.prospect-box h3 {
    margin-top: 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .basket-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 32px;
        box-shadow: var(--shadow-xl);
        transition: 0.4s ease;
        z-index: 999;
        gap: 4px;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
        padding: 14px 20px;
        width: 100%;
        border-radius: var(--radius-md);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--primary);
        color: var(--white) !important;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-logo {
        width: 160px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-3,
    .cards-5 {
        grid-template-columns: 1fr;
    }

    .about-text-box {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 28px 24px;
    }

    .modal-body {
        padding: 24px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .basket-options {
        grid-template-columns: 1fr;
    }

    .hok-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .nedarim-box {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 130px;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 12px;
    }

    .btn {
        min-height: 48px;
        padding: 12px 22px;
    }

    .btn-lg {
        padding: 16px 26px;
        font-size: 1rem;
        min-height: 52px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .hok-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .hok-amount {
        font-size: 1.1rem;
        padding: 12px;
    }

    /* --- Modals on small phones --- */
    .modal {
        align-items: flex-start;
        padding: 10px 0;
    }

    .modal-content {
        width: 96%;
        max-height: 94vh;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 24px 18px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-header i {
        font-size: 2rem;
    }

    .modal-body {
        padding: 20px 18px;
        font-size: 0.97rem;
    }

    .modal-body h3 {
        font-size: 1.15rem;
    }

    .modal-body h4 {
        font-size: 1.02rem;
    }

    .modal-close {
        top: 10px;
        left: 10px;
        width: 44px;
        height: 44px;
    }

    .download-area .btn {
        width: 100%;
    }

    /* Therapy page buttons fill width on small phones */
    .therapy-buttons .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* Extra small phones (<= 360px): prevent Hero text clipping */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-logo {
        width: 110px;
    }

    .nav-logo-img {
        height: 40px;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ==================== PARTICLE HEARTS ==================== */
.particle-heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
