/* General body and background */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;



    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f5f5f3;      /* warm, paper-white */
    background-image: none;   /* kills the rock texture */
    position: relative;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* gentle, clinical warmth */

    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(250, 245, 240, 0.9); /* off-white with warmth */

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #6e8d9d; /* soft cool blue-gray */


    padding: 10px 20px;
}

.title a {
    color: white;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.navbar ul li a:hover {
    text-decoration: underline;
}

/* Headers */
header h4,
section h2,
section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Tag section */
.tag-section {
    margin-bottom: 20px;
}

.tag-section h3 {
    font-size: 1.2em;
    margin-top: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

/* Tag buttons */
.tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #2980b9;
}

/* Search bar and button */
#tag-search {
    width: 70%;
    padding: 8px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#search-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #27ae60;
}

/* Blog posts list */
.blog-posts ul {
    list-style-type: none;
    padding: 0;
}

.blog-posts ul li {
    margin: 10px 0;
}

.blog-posts ul li a {
    text-decoration: none;
    color: #3498db;
    font-size: 1.1em;
}

.blog-posts ul li a:hover {
    text-decoration: underline;
}

/* Social media icons */
.social-media {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.social-media a {
    margin-left: 10px;
}

.social-media img {
    width: 24px;
    height: 24px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        margin-right: 0;
    }

    #tag-search {
        width: 100%;
        margin-bottom: 10px;
    }

    #search-button {
        width: 100%;
    }
}
/* Style for the filtered posts section */
#filtered-posts {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    border-radius: 8px;
}

#filtered-posts ul {
    list-style-type: none;
    padding-left: 0;
}

#filtered-posts li {
    margin-bottom: 10px;
    padding: 8px;
  border-bottom: none;
}



#filtered-posts li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

#filtered-posts li a:hover {
    text-decoration: underline;
    color: #007acc;
}

#filtered-posts p {
    font-style: italic;
    color: #666;
}
#tag-filter {
    padding: 8px;
    margin-top: 10px;
    font-size: 1rem;
}

#tag-filter option {
    padding: 4px;
}
.resource-book-list {
  font-family: 'Georgia', serif;
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.resource-book-list h2 {
  margin-top: 30px;
  font-size: 1.5em;
  color: #4a4a4a;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.book-entry {
  margin: 15px 0;
  line-height: 1.6;
  font-size: 1.05em;
}

.hero-title {
    color: #2c3e50;
    text-align: center;
    font-family: 'Lora', serif;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
}




/* ======= Times-of-Israel–style home layout ======= */
.homepage{
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* HERO */
.hero{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-article{
    position: relative;
}
.hero-article img{
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.hero-text{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.85);
    padding: 1rem;
}
.hero-article h1{
    margin: 0;
    font-size: 2rem;
}
.hero-article .meta{
    font-size: 0.9rem;
    color: #555;
}

/* LEAD ROW – two stacked / side-by-side */
.lead-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.lead-article img{
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.lead-article h2{
    font-size: 1.25rem;
    margin: 0.5rem 0 0;
}

/* ARTICLE GRID */
.article-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.grid-article img{
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.grid-article h3{
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

/* Links styling */
.homepage a{
    text-decoration: none;
    color: inherit;
}
.homepage a:hover{
    text-decoration: underline;
}

/* Ensure the overlay stays behind new layout */
.overlay{
    z-index: -1;
}


/* ===== Uniform responsive images (2025‑06‑24 update) ===== */
/* Keeps hero, lead, and card images the same 16:9 ratio and mobile‑friendly */
.hero img,
.lead-card img,
.article-card img {
    width: 100%;
    aspect-ratio: 16 / 9;      /* uniform height regardless of original dimensions */
    height: auto;
    object-fit: cover;         /* crops elegantly if needed */
    display: block;
}

/* Optional tweak: stack everything nicely on phones */
@media (max-width: 600px) {
    .lead-row {
        grid-template-columns: 1fr;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
}
