:root {
    --bg-color: #f4f4f4;
    --surface-color: #ffffff;
    --primary-color: #007bff;
    --text-color: #333333;
    --text-secondary-color: #6c757d;
    --border-color: #dee2e6;
    --neon-glow-color: rgba(0, 123, 255, 0.8);
    --neon-glow-hover-color: rgba(0, 123, 255, 0.5);
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    width: 160px;
    flex-shrink: 0;
    margin: 20px;
    margin-top: 100px;
    height: 600px;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-secondary-color);
    border-radius: 8px;
    background-color: var(--surface-color);
}

.site-wrapper {
    width: 100%;
    max-width: 1100px;
}

.container {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    text-decoration: none;
    color: var(--text-color);
}

.site-title-he {
     font-family: 'Heebo', 'Montserrat', sans-serif;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}

html[dir="rtl"] .main-nav ul {
    gap: 20px;
}

.main-nav a {
    color: var(--text-secondary-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s, text-shadow 0.3s, box-shadow 0.3s;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active {
    color: var(--primary-color);
    background-color: transparent;
    text-shadow: 0 0 8px var(--neon-glow-color);
}

/* --- Language Switcher --- */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

html[dir="rtl"] .language-switcher {
     margin-left: 0;
     margin-right: 20px;
}

.lang-button {
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-secondary-color);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8em;
    transition: all 0.2s;
}

.lang-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--neon-glow-color);
}

/* --- Main Content --- */
main {
    padding: 40px 0;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

html[dir="rtl"] .page-title {
     font-family: 'Heebo', 'Montserrat', sans-serif;
}

/* --- Home/Articles Section --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-glow-hover-color), 0 5px 15px rgba(0,0,0,0.1);
}

.article-card h3 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}
html[dir="rtl"] .article-card h3 {
     font-family: 'Heebo', 'Montserrat', sans-serif;
}

.article-meta {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
}
.read-more-btn:hover{
    text-decoration: underline;
}

.rss-feed {
    margin-top: 40px;
    text-align: center;
}
.rss-feed a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary-color);
    text-decoration: none;
}
.rss-feed a:hover {
    color: var(--primary-color);
}
.rss-feed svg {
    width: 24px;
    height: 24px;
}

/* --- Services & Streams Section --- */
.placeholder-content, .stream-content {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stream-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Footer --- */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary-color);
    font-size: 0.9em;
}

/* --- Modal Styles --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}

.modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: #000;
    text-decoration: none;
}

#modal-article-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-top: 0;
}
#modal-article-content p, #modal-article-content li {
    line-height: 1.8;
    font-size: 1.1em;
}


/* --- Responsive --- */
@media (max-width: 1300px) {
    .ad-placeholder {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .language-switcher {
        margin: 0;
    }
    .page-title {
        font-size: 2em;
    }
    .modal-content {
        padding: 20px;
    }
}
