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

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.7;
}

/* ── Header ── */
#header {
    padding: 32px 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 2px solid #1a1a1a;
}

#site-title h1 {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}

#site-title p {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
}


/* ── Navigation ── */
nav {
    border-bottom: 1px solid #ddd;
    background: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 4px;
}

nav ul li a {
    display: block;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

nav ul li a:hover {
    color: #2255aa;
    border-bottom-color: #2255aa;
}

nav ul li a.active {
    color: #2255aa;
    border-bottom-color: #2255aa;
    font-weight: bold;
}

/* ── Content ── */
#content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

#content h1 {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 36px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

/* ── Home ── */
.home-intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.home-photo {
    flex: 0 0 auto;
    width: 260px;
}

.home-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.home-bio {
    flex: 1;
    font-size: 16px;
    line-height: 1.85;
    color: #1a1a1a;
}

.home-bio a {
    color: #2255aa;
    text-decoration: none;
}

.home-bio a:hover { text-decoration: underline; }

.home-research {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

/* ── Contact ── */
.contact-info {
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.contact-info a {
    color: #2255aa;
    text-decoration: none;
}

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

/* ── CV ── */
.cv-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.cv-content a {
    color: #2255aa;
    text-decoration: none;
}

.cv-content a:hover { text-decoration: underline; }

/* ── Article list ── */
.article-list {
    list-style: none;
}

.article-list li {
    font-size: 15px;
    line-height: 1.75;
    color: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-list li:first-child {
    padding-top: 0;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li a {
    color: #2255aa;
    text-decoration: none;
}

.article-list li a:hover { text-decoration: underline; }

.article-title {
    font-style: italic;
}

/* Hebrew articles */
.hebrew-text {
    direction: rtl;
    unicode-bidi: embed;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

/* ── Infographics ── */
.infographic-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.infographic-item:last-child {
    border-bottom: none;
}

.infographic-item p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.infographic-item a {
    color: #2255aa;
    text-decoration: none;
}

.infographic-item a:hover { text-decoration: underline; }

/* ── AI Chat Widget ── */
#ai-chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;
}

#chat-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

#chat-toggle:hover { background: #2255aa; }

#chat-panel {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 340px;
    height: 460px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 6px 28px rgba(0,0,0,0.14);
}

#chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1a1a1a;
    flex-shrink: 0;
}

#chat-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #999;
    padding: 0;
    line-height: 1;
}

#chat-close:hover { color: #1a1a1a; }

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 88%;
    padding: 9px 12px;
    word-wrap: break-word;
}

.chat-user {
    background: #1a1a1a;
    color: #fff;
    align-self: flex-end;
}

.chat-assistant {
    background: #f4f4f4;
    color: #1a1a1a;
    align-self: flex-start;
    border: 1px solid #e8e8e8;
}

.chat-typing { color: #aaa; font-style: italic; }

#chat-input-area {
    border-top: 1px solid #ddd;
    padding: 10px;
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
}

#chat-input:focus { border-color: #2255aa; }

#chat-send {
    padding: 7px 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s;
}

#chat-send:hover { background: #2255aa; }

/* ── Footer ── */
footer {
    border-top: 2px solid #1a1a1a;
    padding: 20px 40px;
    text-align: center;
    font-size: 12px;
    color: #888;
    font-family: Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    #header {
        padding: 24px 20px 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    nav ul {
        padding: 0 20px;
        flex-wrap: wrap;
    }
    nav ul li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    #content {
        padding: 32px 20px 60px;
    }
    footer {
        padding: 16px 20px;
    }
    .home-intro {
        flex-direction: column;
    }
    .home-photo {
        width: 100%;
        max-width: 280px;
    }
}
