* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background: linear-gradient(90deg, #cdffd8 0%, #94b9ff 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    animation: backgroundFade 2s ease-in-out forwards;
}

/* Override dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
        background: linear-gradient(90deg, #cdffd8 0%, #94b9ff 100%);
        color: #333;
    }
}

@keyframes backgroundFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Background animation with pulsing tags */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-tag {
    position: absolute;
    background: rgba(0, 86, 179, 0.5);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 0;
    animation: pulse 6s infinite ease-in-out;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    25% { opacity: 0.6; transform: scale(1.2); }
    50% { opacity: 0; transform: scale(0.8); }
}

.background-tag:nth-child(1) { animation-delay: 0s; }
.background-tag:nth-child(2) { animation-delay: 0.75s; }
.background-tag:nth-child(3) { animation-delay: 1.5s; }
.background-tag:nth-child(4) { animation-delay: 2.25s; }
.background-tag:nth-child(5) { animation-delay: 3s; }
.background-tag:nth-child(6) { animation-delay: 3.75s; }
.background-tag:nth-child(7) { animation-delay: 4.5s; }
.background-tag:nth-child(8) { animation-delay: 5.25s; }

header {
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    z-index: 100;
}

.logo {
    max-width: 150px;
    height: auto;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 2px solid #007BFF;
    margin: 0 auto 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #007BFF;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: #0056b3;
}

.nav-menu {
    display: flex;
    position: relative;
}

.close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #007BFF;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: #0056b3;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
    z-index: 0;
}

.deals-header,
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 10px;
    color: #007BFF;
}

.deals-preview,
.page-preview,
footer .follow-footer-text,
footer p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 24px;
    color: #555;
    text-decoration: none;
    transition: transform 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.social-icon:hover {
    transform: rotate(360deg) scale(1.1);
    color: #333;
}

.social-icon i {
    line-height: 1;
}

.social-icon .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

footer {
    padding: 20px;
    text-align: center;
    width: 100%;
    z-index: 0;
}

footer .privacy-terms-link {
    color: #666;
    text-decoration: none;
    font-size: clamp(0.70rem, 2vw, 0.85rem);
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, text-decoration 0.3s ease;
}

footer .privacy-terms-link:hover {
    color: #007BFF;
    text-decoration: underline;
}

.page-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
}

.page-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #007BFF;
    margin-bottom: 15px;
}

.page-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #333;
    margin-bottom: 15px;
}

.page-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-content ul li {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #333;
    margin-bottom: 10px;
}

.page-content a {
    color: #007BFF;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    footer .privacy-terms-link,
    .background-tag,
    .social-icon,
    .nav-menu,
    nav ul li a,
    body {
        transition: none;
        animation: none;
    }
}

@media (max-width: 1000px) {
    header {
        width: 90%;
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }

    .background-tag {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        max-width: 100%;
        margin: 0;
    }

    .deals-header,
    .page-header {
        margin-bottom: 20px;
    }

    h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .deals-preview,
    .page-preview,
    footer .follow-footer-text,
    footer p {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
        margin-bottom: 5px;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }

    header {
        flex-direction: row;
        align-items: center;
        padding: 10px;
        border-radius: 0;
    }

    .logo {
        max-width: 120px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 250px;
        background: linear-gradient(90deg, rgba(205, 255, 216, 0.7) 0%, rgba(148, 185, 255, 0.7) 100%);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        z-index: 2000;
        padding: 20px;
        transform: translateY(-100%);
        justify-content: center;
        text-align: center;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .close-menu {
        display: block;
        top: 32px;
        right: 35px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        padding-top: 40px;
        padding-bottom: 10px;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 8px 12px;
    }

    footer {
        padding: 10px;
        border-radius: 0;
    }

    footer .privacy-terms-link {
        font-size: clamp(0.60rem, 1.6vw, 0.75rem);
        padding: 2px 4px;
    }

    .page-content {
        padding: 15px;
        margin: 0 10px 15px;
    }

    .page-content h3 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .page-content p,
    .page-content ul li {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }

    .background-tag {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    header {
        width: 97%;
        max-width: 97%;
        margin: 0 auto;
        margin-bottom: 15px;
    }

    .close-menu {
        top: 30px;
        right: 13px;
    }

    .logo {
        max-width: 100px;
    }

    .profile-photo {
        width: 60px;
        height: 60px;
    }

    footer {
        padding: 15px;
    }

    footer .privacy-terms-link {
        font-size: clamp(0.70rem, 1.5vw, 0.80rem);
        padding: 2px 3px;
    }

    .social-links {
        gap: 5px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
        color: #333;
    }

    .nav-menu {
        max-height: 200px;
        padding: 15px;
        
    }

    nav ul {
        gap: 10px;
        padding-top: 30px;
        padding-bottom: 5px;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .background-tag {
        font-size: 0.6rem;
        padding: 4px 6px;
    }
}

/* ==========================================================================
   HEBREW PAGE RTL LIST STYLING
   ========================================================================== */

.hebrew-page .page-content ul {
    list-style: disc;
    padding-right: 20px;
    padding-left: 0;
    direction: rtl;
    text-align: right;
}

.hebrew-page .page-content ul li {
    text-align: right;
    direction: rtl;
}

.hebrew-page .page-content ul ul {
    padding-right: 20px;
    padding-left: 0;
}
   
   