/* public_html/style.css */

:root {
    --bg-color: #fdfdfb; /* לבן-קרם עדין שנותן תחושה של נייר עיתון */
    --text-color: #1a1a1a;
    --accent-color: #2c3e50;
    --border-color: #e0e0e0;
    --header-bg: rgba(253, 253, 251, 0.95);
    --header-bg-scrolled: rgba(253, 253, 251, 1);
}

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

body {
    font-family: 'Georgia', serif; /* גיבוי קלאסי לעיתונות */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* === Global Journalistic Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -0.5px; /* ריווח צפוף שמאפיין מכבשי דפוס */
    color: var(--text-color);
    line-height: 1.15;
}

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

/* Header & Navbar */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    z-index: 1000;
}

#main-header.scrolled {
    background: var(--header-bg-scrolled); 
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: 'Playfair Display', serif; /* לוגו בפונט עיתונאי */
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, sans-serif; /* שמירת הניווט בסנס-סריף לשבירת קונטרסט מודרנית */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Search Bar */
.search-form {
    display: flex;
}

.search-form input {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    background: transparent;
}

.search-form button {
    padding: 5px 15px;
    background: var(--text-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: bold;
}

/* Main Content Padding */
.main-content {
    padding-top: 0px; 
    min-height: 80vh;
}

/* Footer */
#main-footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
    margin-top: 0px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}

/* --- index.php Homepage Styles --- */

/* Flagship Block */
.flagship-section {
    padding: 60px 20px;
    margin-bottom: 40px;
    min-height: 60vh; 
    display: flex;
    align-items: center;
}

.flagship-content {
    max-width: 800px;
}

.category-label {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #666;
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.flagship-title {
    font-size: 4rem; /* מוגדל מעט לנוכחות של כותרת ראשית בעיתון */
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.flagship-excerpt {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 30px;
    max-width: 600px;
    font-family: 'Georgia', serif;
}

.read-more {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Series Cards */
.series-cards-section {
    margin-bottom: 80px;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.series-card {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.series-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.series-card h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;
}

.series-card h3 a:hover {
    color: #555;
}

.series-card p {
    color: #555;
    font-size: 1rem;
}

/* The Archive Section */
.archive-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 50px 0;
    border-top: 4px solid var(--text-color);
    min-height: 40vh; 
}

.archive-left {
    padding-right: 20px;
}

.archive-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 900;
    font-style: italic; /* סגנון נטוי ואלגנטי למדורי ארכיון */
}

.archive-description {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-color);
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #333;
}

.archive-micro-links {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-micro-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: bold;
}

.archive-micro-links a:hover {
    color: var(--text-color);
}

.archive-micro-links .separator {
    color: #ccc;
    margin: 0 5px;
}

/* Archive Right - Stacked Papers Aesthetic */
.archive-right {
    position: relative;
    height: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stacked-papers {
    position: relative;
    width: 280px;
    height: 360px;
}

.paper {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

.paper-3 {
    top: 20px;
    left: 20px;
    transform: rotate(4deg);
    z-index: 1;
}

.paper-2 {
    top: 10px;
    left: 10px;
    transform: rotate(-2deg);
    z-index: 2;
}

.paper-1 {
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
}

.paper-text {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    color: #ccc;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    transform: rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flagship-title {
        font-size: 2.8rem;
    }
    
    .archive-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .archive-right {
        min-height: 400px;
    }
}

/* --- article.php Single Article Styles --- */

.single-article {
    max-width: 750px; /* הצרת השוליים נותנת מראה של טור עיתון */
    margin: 0 auto;
    padding: 60px 20px;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 20px;
}

.article-header .category-label a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.article-header .category-label a:hover {
    color: var(--text-color);
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 15px 0;
    font-weight: 900;
    letter-spacing: -1px;
}

.article-meta {
    color: #888;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #222;
}

/* Dropcap (אות ראשית גדולה) לתחילת מאמר - קלאסי בעיתונות */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 4px;
    font-weight: 900;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2, 
.article-content h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.article-content a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content blockquote {
    border-left: 4px solid var(--text-color);
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    color: #333;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }
    .article-content {
        font-size: 1.1rem;
    }
}

/* --- Featured Image Styling (article.php) --- */
.article-featured-image {
    margin: 0 0 40px 0; 
    width: 100%;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    /* תמונות בשחור לבן או מראה קונטרסטי יכול להיות מעניין כאן, כרגע נשאיר נקי */
}

/* --- series.php Styles --- */

/* Series Index (All Series) */
.page-header {
    margin-bottom: 50px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 20px;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 900;
    font-style: italic;
}

.page-description {
    font-size: 1.2rem;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.series-list-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.series-list-item h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.series-list-item h2 a {
    color: var(--text-color);
    text-decoration: none;
}

/* Single Series Page */
.series-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.series-title {
    font-size: 4rem;
    line-height: 1.1;
    margin: 15px 0;
    font-weight: 900;
    letter-spacing: -1px;
}

.series-description {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 20px;
}

.series-meta {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: bold;
}

/* Start Here Section */
.start-here-section {
    margin-bottom: 60px;
    background: transparent;
    padding: 40px 0;
    border-top: 4px solid var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.start-here-label {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: bold;
    color: #d35400; 
    display: block;
    margin-bottom: 20px;
}

.start-here-card {
    display: flex;
    gap: 40px;
    align-items: center;
}

.start-here-image {
    flex: 1;
    max-width: 400px;
}

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

.start-here-content {
    flex: 2;
}

.start-here-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.start-here-content h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.start-here-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 20px;
}

/* Series Articles List */
.section-divider {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: bold;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.series-article-card {
    display: flex;
    flex-direction: column;
}

.series-article-card .publish-date {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.series-article-card h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 900;
}

.series-article-card h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.series-article-card h4 a:hover {
    color: #555;
}

.series-article-card p {
    color: #666;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .start-here-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .start-here-image {
        max-width: 100%;
    }
    .series-title {
        font-size: 2.8rem;
    }
}

/* --- course.php Styles --- */

/* Course Header */
.course-header-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 50px;
    margin-top: -40px; 
}

.course-brand {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    display: block;
    font-weight: bold;
}

.course-label {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: bold;
}

.course-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 900;
    font-style: italic;
}

.course-description {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.course-meta {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    color: #999;
}

/* Lessons Timeline */
.course-content {
    max-width: 800px; 
    margin: 0 auto;
}

.lessons-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lesson-card {
    display: flex;
    gap: 30px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.lesson-number {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    text-align: center;
}

.lesson-number span {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.lesson-number strong {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 900;
}

.lesson-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 900;
}

.lesson-details h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.lesson-details p {
    color: #555;
    margin-bottom: 15px;
}

.read-lesson {
    display: inline-block;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .course-title {
        font-size: 2.8rem;
    }
    .lesson-card {
        flex-direction: column;
        gap: 15px;
    }
    .lesson-number {
        width: 60px;
        height: 60px;
    }
    .lesson-number strong {
        font-size: 1.5rem;
    }
}