/*
Theme Name: YWN Custom
Theme URI: https://www.theyeshivaworld.com
Description: Custom WordPress theme for Yeshiva World News — rebuilt from Elementor to clean, semantic, maintainable code.
Version: 1.0.0
Author: YWN Dev Team
Author URI: https://www.theyeshivaworld.com
Text Domain: ywn
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
*/

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2b85f4;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a6ad4;
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Martel', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

svg {
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-main {
    padding-top: 40px;
}

.content-wrap {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 370px;
    flex-shrink: 0;
}

/* ==========================================================================
   HEADER — ENTIRE BLOCK IS NAVY
   ========================================================================== */

.site-header {
    background-color: #1A385D;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Top Strip — all right-aligned --- */
.header-top {
    padding: 6px 0 10px 0;
    font-size: 12px;
}

.header-top .site-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header-top__right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-top__advertise {
    background-color: #B80B0B;
    color: #fff;
    padding: 5px 20px;
    border: 1px solid #B80B0B;
    border-radius: 5px;
    font-family: 'Martel', Georgia, serif;
    font-weight: 700;
    font-size: 13px;
}

.header-top__advertise:hover {
    background-color: #d40d0d;
    color: #fff;
    text-decoration: none;
}

.header-top__links {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-top__links li a {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Martel', Georgia, serif;
    font-size: 13px;
    padding: 2px 12px;
    text-transform: none;
}

.header-top__links li a:hover {
    color: #fff;
    text-decoration: none;
}

.header-top__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-top__social a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
}

.header-top__social a:hover {
    color: #fff;
    text-decoration: none;
}

/* --- Main Nav Bar --- */
.header-main {
    padding: 10px 0 20px;
}

.header-main .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img,
.site-logo__img {
    height: 60px;
    width: auto;
}

.site-logo a {
    display: flex;
    align-items: center;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.primary-nav .menu li a {
    display: block;
    padding: 8px 16px;
    font-family: 'Martel', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: none;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav .menu li a:hover,
.primary-nav .menu li.current-menu-item a {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

/* Header Search */
.header-search {
    position: relative;
}

.header-search__toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}

.header-search__toggle:hover {
    color: #fff;
}

.header-search__form {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 100;
    min-width: 300px;
}

.header-search__form.is-active {
    display: flex;
}

.header-search__form input[type="search"] {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 3px 0 0 3px;
    outline: none;
}

.header-search__form input[type="search"]:focus {
    border-color: #1A385D;
}

.header-search__form button[type="submit"] {
    background: #1A385D;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle — lives in header-top, only visible on mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    margin-right: auto;
}

/* ==========================================================================
   PROMO BAR (below header)
   ========================================================================== */

.promo-bar {
    border: 2px solid #000000;
    background: #fff;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    flex: 1;
    justify-content: center;
    text-decoration: none;
}

.promo-bar__item:hover {
    text-decoration: none;
}

.promo-bar__icon {
    width: 50px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.promo-bar__text {
    font-family: 'Martel', Georgia, serif;
    font-size: 14px;
    line-height: 1.2;
}

.promo-bar__text--link {
    color: #1A385D;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.promo-bar__text--bold {
    color: #c0392b;
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================================================
   HERO / FEATURED ARTICLES
   ========================================================================== */

.hero-section {
    margin-bottom: 25px;
}

.hero-article {
    overflow: hidden;
    margin-bottom: 15px;
}

.hero-article__link {
    display: block;
    text-decoration: none;
}

.hero-article__link:hover {
    text-decoration: none;
}

.hero-article__image {
    width: 100%;
    height: 416px;
    object-fit: cover;
    display: block;
}

.hero-article__caption {
    background-color: #1A385D;
    padding: 20px;
    color: #fff;
}

.hero-article__title {
    font-family: 'Martel', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
}

.hero-article__link:hover .hero-article__title {
    text-decoration: none;
}

.hero-article__meta {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    color: #fff;
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-article__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-article__meta svg {
    fill: #fff;
}

/* Secondary hero */
.hero-article--secondary .hero-article__image {
    height: auto;
}

/* ==========================================================================
   ARTICLE GRID (2x2)
   ========================================================================== */

.grid-section {
    margin-bottom: 25px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-card__image-link {
    display: block;
}

.grid-card__image {
    width: 100%;
    object-fit: cover;
}

.grid-card__body {
    background-color: #1A385D;
    padding: 20px;
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card__title {
    font-family: 'Martel', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 30px;
    color: #fff;
}

.grid-card__title a {
    color: #fff;
}

.grid-card__title a:hover {
    text-decoration: none;
}

.grid-card__meta {
    font-family: 'Martel', Georgia, serif;
    font-size: 15px;
    color: #ffffff;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.grid-card__meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ==========================================================================
   ARTICLE CARD (Standard - thumbnail + text)
   ========================================================================== */

.article-card {
    display: flex;
    gap: 16px;
    padding: 16px 0 25px;
}

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

.article-card__image {
    flex-shrink: 0;
    width: 200px;
}

.article-card__image img {
    width: 200px;
    height: 130px;
    object-fit: cover;
}

.article-card__body {
    flex: 1;
    min-width: 0;
}

.article-card__category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c0392b;
    margin-bottom: 3px;
}

.article-card__category:hover {
    color: #a93226;
    text-decoration: none;
}

.article-card__title {
    font-family: 'Martel', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 5px;
}

.article-card__title a {
    color: #333333;
}

.article-card__title a:hover {
    color: #1A385D;
    text-decoration: none;
}

.article-card__meta {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: #757575;
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 15px 0;
}

.article-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card__excerpt {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.article-card__badge-row {
    margin-top: 5px;
    margin-bottom: 8px;
}

.communicated-badge {
    display: inline-block;
    text-align: center;
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    background: #fff;
    color: #153052;
    padding: 2px 11px;
    border: 1px solid #D1D7DF;
    border-radius: 50px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar-section {
    background: #fff;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-videos {
    margin-top: 20px;
}

.sidebar-section__header {
    background-color: #000;
    color: #fff;
    padding: 12px 15px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.sidebar-section__content {
    padding: 15px;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.popular-post:last-child {
    margin-bottom: 0;
}

.popular-post__image {
    flex-shrink: 0;
    width: 100px;
}

.popular-post__image img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    padding: 10px;
}

.popular-post__body {
    flex: 1;
    min-width: 0;
}

.popular-post__title {
    font-family: 'Martel', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 10px 0;
}

.popular-post__title a {
    color: #333333;
    line-height: 1.1;
}

.popular-post__title a:hover {
    color: #1A385D;
    text-decoration: none;
}

.popular-post__meta {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 10px;
    align-items: center;
}

.popular-post__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   COFFEE ROOM
   ========================================================================== */

.coffee-room {
    background: #F5F5F5;
    border: 3px solid #1A385D;
    padding: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.coffee-room__header {
    background-color: #000;
    color: #fff;
    padding: 10px;
    margin: 8px 0 0px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.coffee-room__header a {
    color: #fff;
}

.coffee-room__header a:hover {
    text-decoration: none;
}

.coffee-room__list {
    padding: 8px 15px;
}

.coffee-room__item {
    padding: 7px 0;
    border-bottom: 1px solid #eee;
}

.coffee-room__item:last-child {
    border-bottom: none;
}

.coffee-room__item a {
    font-size: 13px;
    color: #1A385D;
    font-weight: 600;
    line-height: 1.4;
}

.coffee-room__item-meta {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

/* bbPress Recent Topics widget inside Coffee Room */
.coffee-room__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coffee-room__list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.coffee-room__list li:last-child {
    border-bottom: none;
}

.coffee-room__list li a {
    color: #1A385D;
    font-size: 18px;
    line-height: 14px;
    font-family: 'Martel', Georgia, serif;
    font-weight: 600;
    text-decoration: none;
}

.coffee-room__list li a:hover {
    text-decoration: none;
}

.coffee-room__list li .bbp-topic-meta,
.coffee-room__list li span {
    font-size: 12px;
    color: #000;
    display: block;
    margin-top: 6px;
}

.coffee-room__list li .bbp-topic-meta a {
    font-size: 12px;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.coffee-room__list li .bbp-topic-meta .bbp-topic-freshness-time,
.coffee-room__list li time,
.coffee-room .bbp-topic-freshness-time,
.coffee-room time,
.coffee-room__list .bbp-topic-meta {
    font-size: 12px !important;
    color: gray !important;
}

.coffee-room ul div {
    font-size: 12px;
    color: gray;
}

.bbp-author-name {
    text-transform: uppercase;
}

/* ==========================================================================
   LATEST VIDEOS
   ========================================================================== */

.videos-section {
    margin: 30px 0;
}

.videos-section__header {
    font-family: 'Martel', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #1A385D;
    color: #1A385D;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.video-card {
    border-radius: 4px;
    overflow: hidden;
}

.video-card__thumb {
    position: relative;
    display: block;
    padding-top: 56.25%;
    background: #000;
}

.video-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.video-card__title {
    padding: 10px 0;
    font-family: 'Martel', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.video-card__title a {
    color: #1a1a1a;
}

.video-card__title a:hover {
    color: #1A385D;
    text-decoration: none;
}

/* ==========================================================================
   AD SLOTS
   ========================================================================== */


.ad-slot {
    text-align: center;
    padding: 15px 0;
    margin: 10px 0;
}

.ad-slot--inline {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ad-slot__label {
    font-size: 9px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

/* ==========================================================================
   SECTION DIVIDERS
   ========================================================================== */

.more-news-btn {
    display: block;
    background-color: #1A385D;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-family: 'Martel', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.more-news-btn:hover {
    background-color: #0d1f35;
    color: #fff;
    text-decoration: none;
}

.section-header {
    background-color: #1A385D;
    color: #fff;
    padding: 12px 15px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 18px 0;
    text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: #1A385D;
    color: #ccc;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #889;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: #dfdfdf;
    font-weight: 700;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-social a {
    color: #ccc;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-title {
    font-family: 'Martel', Georgia, serif;
    font-size: 35px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    text-decoration: none;
    color: inherit;
}

.contact-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.contact-card__label {
    font-family: 'Martel', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-card__label {
        font-size: 18px;
    }
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-results-title {
    font-family: 'Martel', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==========================================================================
   PAGE TEMPLATE
   ========================================================================== */

.page-header {
    margin-bottom: 20px;
    text-align: center;
}

.page-title {
    font-family: 'Martel', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
}

.page-content {
    font-size: 15px;
    line-height: 1.6;
}

.page-content p {
    margin-bottom: 1em !important;
}

.page-content br {
    display: block;
    content: "";
    margin-bottom: 0.5em;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
    list-style: revert;
}

/* ==========================================================================
   TISHA B'AV TEMPLATE
   ========================================================================== */

.tisha-scroll-prompt,
.tisha-banner,
.tisha-wysiwyg-wrap,
.tisha-promo {
    max-width: 100%;
}

.tisha-scroll-prompt {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    margin: 20px 0;
    overflow-wrap: break-word;
}

.tisha-scroll-prompt__link {
    text-decoration: none;
    display: inline-block;
}

.tisha-scroll-prompt__link:hover {
    text-decoration: none;
}

.tisha-scroll-prompt__text {
    color: #d00;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.tisha-banner {
    margin: 20px 0;
    text-align: center;
}

.tisha-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tisha-wysiwyg-wrap {
    margin-top: 20px;
    overflow-wrap: break-word;
}

.tisha-wysiwyg-wrap .main-content,
.tisha-wysiwyg-wrap .sidebar {
    font-size: 15px;
    line-height: 1.6;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tisha-wysiwyg-wrap img,
.tisha-wysiwyg-wrap video,
.tisha-wysiwyg-wrap iframe,
.tisha-wysiwyg-wrap embed,
.tisha-wysiwyg-wrap object {
    max-width: 100%;
    height: auto;
    display: block;
}

.tisha-wysiwyg-wrap table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.tisha-wysiwyg-wrap pre,
.tisha-wysiwyg-wrap code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.tisha-promo {
    margin: 25px 0;
    scroll-margin-top: 120px;
}

.tisha-promo .promo-bar {
    margin-top: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.ywn-tisha-bav .tisha-wysiwyg-wrap h1,
body.ywn-tisha-bav .tisha-scroll-prompt h1,
body.ywn-tisha-bav .tisha-banner h1,
body.ywn-tisha-bav .tisha-promo h1,
body.ywn-tisha-bav .tisha-wysiwyg-wrap h3,
body.ywn-tisha-bav .tisha-scroll-prompt h3,
body.ywn-tisha-bav .tisha-banner h3,
body.ywn-tisha-bav .tisha-promo h3 {
    font-size: 25px;
    font-weight: 500;
}

.tb-title {
    padding-top: 15px;
    padding-bottom: 0px;
    font-size: 25px;
    line-height: 30px;
    margin-bottom: 15px;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-article,
.single-article__comments {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-article__header {
    margin-bottom: 18px;
}

.single-article__title {
    font-family: 'Martel', Georgia, serif;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.25;
    color: #333333;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-article__meta {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    color: #333333;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.single-article__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.single-article__meta a {
    color: #333333;
}

.single-article__meta a:hover {
    color: #1A385D;
    text-decoration: none;
}

.single-article__figure {
    margin: 0 0 20px 0;
}

.single-article__image {
    width: 100%;
    height: auto;
    display: block;
}

.single-article__caption {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    color: #333333;
    font-style: italic;
    padding: 8px 0;
    text-align: center;
    line-height: 1.4;
}

.single-article__content {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #333333;
}

.single-article__content p {
    margin-bottom: 1.1em;
}

.single-article__content h2,
.single-article__content h3,
.single-article__content h4 {
    font-family: 'Martel', Georgia, serif;
    margin: 1.4em 0 0.5em;
    line-height: 1.3;
}

.single-article__content h2 { font-size: 22px; }
.single-article__content h3 { font-size: 19px; }
.single-article__content h4 { font-size: 17px; }

.single-article__content a {
    color: #1A385D;
    text-decoration: underline;
}

.single-article__content a:hover {
    color: #2b85f4;
}

.single-article__content img,
.single-article__content video,
.single-article__content iframe,
.single-article__content embed,
.single-article__content object {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    display: block;
}

.single-article__content iframe {
    height: auto;
    aspect-ratio: 16 / 9;
}

.single-article__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.single-article__content pre,
.single-article__content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.single-article__content .wp-block-embed,
.single-article__content .wp-embed,
.single-article__content figure {
    max-width: 100%;
    margin: 12px 0;
}

.single-article__content .wp-block-embed iframe,
.single-article__content .wp-embed iframe,
.single-article__content figure iframe {
    width: 100%;
}

.single-article__content blockquote {
    border-left: 4px solid #1A385D;
    padding: 4px 16px;
    margin: 16px 0;
    color: #444;
    font-style: italic;
}

.single-article__content ul,
.single-article__content ol {
    margin: 0 0 1.1em 1.5em;
    list-style: revert;
}

.single-article__content ul li,
.single-article__content ol li {
    margin-bottom: 0.4em;
}

/* Ad containers — prevent iframe overflow on mobile */
.main-content > [data-tagid],
.main-content [data-tagid],
.sidebar [data-tagid] {
    max-width: 100%;
    overflow: hidden;
}

.main-content [data-tagid] iframe,
.main-content [data-tagid] img,
.sidebar [data-tagid] iframe,
.sidebar [data-tagid] img {
    max-width: 100%;
    height: auto;
}

/* Share Buttons */
.ywn-share {
    display: flex;
    gap: 6px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.ywn-share__btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.ywn-share__btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ywn-share__btn:hover,
.ywn-share__btn:focus {
    color: #fff;
    text-decoration: none;
    filter: saturate(1.5) brightness(1.1);
    outline: none;
}

.ywn-share__btn:focus-visible {
    outline: 2px solid #1A385D;
    outline-offset: 2px;
}

.ywn-share__btn--facebook  { background-color: #1877F2; }
.ywn-share__btn--x-twitter { background-color: #000000; }
.ywn-share__btn--linkedin  { background-color: #0A66C2; }
.ywn-share__btn--email     { background-color: #EA4335; }
.ywn-share__btn--print     { background-color: #6B6B6B; }
.ywn-share__btn--whatsapp  { background-color: #25D366; }

/* WhatsApp Bar (below article body) */
.whatsapp-bar {
    border: 2px solid #000;
    background: #fff;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
}

.whatsapp-bar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.whatsapp-bar__item:last-child {
    border-bottom: none;
}

.whatsapp-bar__item:hover {
    text-decoration: none;
    background: #fafafa;
}

.whatsapp-bar__icon {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

.whatsapp-bar__text {
    font-family: 'Martel', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A385D;
    line-height: 1.2;
}

/* Prev/Next navigation */
.single-article__nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.single-article__nav-prev,
.single-article__nav-next {
    flex: 1;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-article__nav-next {
    text-align: right;
}

.single-article__nav a {
    color: #999;
    text-decoration: none;
    font-weight: 700;
}

.single-article__nav a span {
    display: block;
    color: #1a1a1a;
    font-family: 'Martel', Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 4px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-article__nav a:hover {
    color: #1A385D;
    text-decoration: none;
}

.single-article__nav a:hover span {
    color: #1A385D;
}

/* Comments */
.single-article__comments {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 3px solid #1A385D;
}

.ywn-comments__title {
    font-family: 'Martel', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 28px;
}

.ywn-comments__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.ywn-comments__list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 20px;
}

.ywn-comment {
    padding: 18px 0;
}

/* Thin divider between top-level threads only */
.ywn-comments__list > .ywn-comment {
    border-bottom: 1px solid #e5e5e5;
}

.ywn-comments__list > .ywn-comment:last-child {
    border-bottom: none;
}

/* Nested replies inside a thread use a softer internal divider */
.ywn-comments__list .children .ywn-comment + .ywn-comment {
    border-top: 1px solid #f0f0f0;
}

.ywn-comment__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ywn-comment__author {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.ywn-comment__says {
    font-weight: 400;
    color: #333;
}

.ywn-comment__date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #2b85f4;
    white-space: nowrap;
}

.ywn-comment__body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #333;
}

.ywn-comment__body p {
    margin-bottom: 0.6em;
}

.ywn-comment__body p:last-child {
    margin-bottom: 0;
}

.ywn-comment__moderation {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.ywn-comment__reply {
    margin-top: 8px;
    font-size: 13px;
}

.ywn-comment__reply a {
    color: #1A385D;
    font-weight: 600;
}

#reply-title {
    font-family: 'Martel', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.single-article__comments .comment-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.single-article__comments .comment-form input[type="text"],
.single-article__comments .comment-form input[type="email"],
.single-article__comments .comment-form input[type="url"],
.single-article__comments .comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 12px;
    font-family: inherit;
}

.single-article__comments .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.single-article__comments .comment-form input:focus,
.single-article__comments .comment-form textarea:focus {
    outline: none;
    border-color: #1A385D;
}

.single-article__comments .form-submit .submit,
.single-article__comments #submit {
    background-color: #1A385D;
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-family: 'Martel', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.single-article__comments .form-submit .submit:hover,
.single-article__comments #submit:hover {
    background-color: #0d1f35;
}

.single-article__comments .logged-in-as,
.single-article__comments .comment-notes {
    font-size: 16px;
    color: #333333;
    margin-bottom: 12px;
}

/* ==========================================================================
   BBPRESS
   ========================================================================== */

.bbp-topic-permalink {
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
}

.bbp-topic-permalink:hover {
    text-decoration: none;
}

.bbp-topic-started-by {
    font-weight: bold;
}

#bbp_reply_submit,
#bbp_topic_submit,
.bbp-submit-wrapper .button.submit {
    background-color: #1A385D;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-family: 'Martel', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#bbp_reply_submit:hover,
#bbp_topic_submit:hover,
.bbp-submit-wrapper .button.submit:hover {
    background-color: #0d1f35;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    padding: 30px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #1A385D;
    background: #fff;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #1A385D;
    color: #fff;
    border-color: #1A385D;
    text-decoration: none;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    /* Hide chrome, ads, nav, social, comments — keep just the article */
    .site-header,
    .site-footer,
    .sidebar,
    .header-ad-grid,
    .promo-bar,
    .whatsapp-bar,
    .ywn-share,
    .single-article__nav,
    .ywn-comments,
    .more-news-btn,
    .header-search,
    .mobile-menu-toggle,
    [data-tagid],
    [id^="avp_zid_"],
    [id^="jag_avp_zid_"],
    [id^="GraphicBanner"],
    [title="Advertisement"] {
        display: none !important;
    }

    /* Drop the URL suffix some browsers append after printed links */
    a[href]:after {
        content: none !important;
    }

    /* Full-width content, no padding leftovers */
    .site-container,
    .site-main,
    .content-wrap,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Normalize colors and shadows */
    * {
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
    }

    /* Keep article sections together across pages */
    .single-article,
    .single-article__figure,
    .single-article__content {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Give printed article some breathing room */
    .single-article__title {
        font-size: 22pt;
        margin-bottom: 8pt;
    }

    .single-article__meta {
        font-size: 10pt;
        margin-bottom: 12pt;
    }

    .single-article__content {
        font-size: 11pt;
        line-height: 1.5;
    }
}

/* ==========================================================================
   RESPONSIVE — TABLET (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 270px;
    }

    .article-card__image {
        width: 170px;
    }

    .article-card__image img {
        width: 170px;
        height: 110px;
    }

    .hero-article__image {
        height: 300px;
    }

    .hero-article--secondary .hero-article__image {
        height: 240px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-card__image {
        height: 130px;
    }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .header-ad-grid {
        display: none;
    }

    .promo-bar {
        flex-direction: column;
    }

    .promo-bar__item {
        justify-content: flex-start;
        padding: 8px 15px;
    }

    .site-logo img,
    .site-logo__img {
        height: 40px;
        width: auto;
    }

    .header-top__links,
    .header-top__social {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1A385D;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
        padding: 5px 0;
    }

    .primary-nav.is-active {
        display: block;
    }

    .primary-nav .menu {
        flex-direction: column;
    }

    .primary-nav .menu li a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .content-wrap {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .hero-article__image {
        height: 220px;
    }

    .hero-article--secondary .hero-article__image {
        height: 190px;
    }

    .article-card {
        flex-direction: column;
        gap: 12px;
    }

    .article-card__image {
        width: 100%;
    }

    .article-card__image img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .article-card__title {
        font-size: 20px;
    }

    .article-card__excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-grid,
    .search-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: relative;
    }

    .single-article__title {
        margin-bottom: 18px;
    }

    .single-article__meta {
        row-gap: 4px;
        column-gap: 14px;
        line-height: 1.2;
    }

    .single-article__nav {
        flex-direction: column;
        gap: 12px;
    }

    .single-article__nav-next {
        text-align: left;
    }

    .whatsapp-bar__text {
        font-size: 14px;
    }

    body.ywn-tisha-bav .site-main {
        padding-top: 20px;
    }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (480px)
   ========================================================================== */

@media (max-width: 480px) {
    .hero-article__image {
        height: 180px;
    }

    .header-top__social {
        gap: 8px;
    }
}
