/* ===========================
   NEWS — MAGAZINE GRID
=========================== */
.news-section {
    background:#f0f4fa;
    padding: 20px 0;
}

.news-magazine {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===========================
   MAIN GRID (featured + 2 secondary)
=========================== */
.news-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* ===========================
   FEATURED CARD
=========================== */
.news-featured-card {
    grid-row: 1 / 3;
    background: #1D3557;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(29, 53, 87, .18);
    transition: transform .35s ease, box-shadow .35s ease;
}
.news-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(29, 53, 87, .25);
}

.news-featured-card__img {
    display: block;
    height: 260px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 0;
}
.news-featured-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.news-featured-card:hover .news-featured-card__img img {
    transform: scale(1.06);
}
.news-featured-card__img .news-img-placeholder {
    height: 100%;
    background: linear-gradient(160deg, #3C78B4, #1D3557);
}
.news-featured-card__img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 90px;
    background: linear-gradient(transparent, #1D3557);
    pointer-events: none;
}
.news-featured-card__date {
    position: absolute;
    bottom: 14px;
    right: 16px;
    z-index: 1;
    background: #3C78B4;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-featured-card__body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.news-featured-card__title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}
.news-featured-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.news-featured-card__title a:hover { color: #5A96D2; }
.news-featured-card__excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-featured-card .btn-link { color: #5A96D2; }
.news-featured-card .btn-link:hover { color: #ffffff; }

/* ===========================
   SECONDARY CARDS
=========================== */
.news-secondary-card {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(29, 53, 87, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.news-secondary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(29, 53, 87, .14);
}

.news-secondary-card__img {
    width: 200px;
    min-height: 150px;
    flex-shrink: 0;
    display: flex;
    overflow: hidden;
    position: relative;
    align-self: stretch;
}
.news-secondary-card__img img {
    width: 100%;
    object-fit: cover;
    display: block;
    flex: 1;
    transition: transform .4s ease;
}
.news-secondary-card:hover .news-secondary-card__img img {
    transform: scale(1.06);
}
.news-secondary-card .news-card__thumb-wrap {
    width: 100%;
    height: 100%;
    display: block;
}
.news-secondary-card .news-card__thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-secondary-card__img .news-img-placeholder {
    height: 100%;
    background: linear-gradient(160deg, #3C78B4, #1D3557);
}
.news-secondary-card:nth-child(3) .news-secondary-card__img .news-img-placeholder {
    background: linear-gradient(160deg, #00783C, #003d1e);
}

.news-secondary-card__body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
}
.news-secondary-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1D3557;
    line-height: 1.45;
    margin: 0;
    flex: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-secondary-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.news-secondary-card__title a:hover { color: #3C78B4; }
.news-secondary-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* ===========================
   MINI GRID (posts 4–6)
=========================== */
.news-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.news-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #3C78B4;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(29, 53, 87, .06);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.news-mini-card:nth-child(2) { border-color: #00783C; }
.news-mini-card:nth-child(3) { border-color: #1D3557; }
.news-mini-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(29, 53, 87, .12);
    background: #f0f6ff;
}

.news-mini-card__img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-mini-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-mini-card__img .news-img-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #3C78B4, #1D3557);
}
.news-mini-card:nth-child(2) .news-mini-card__img .news-img-placeholder {
    background: linear-gradient(135deg, #00783C, #003d1e);
}
.news-mini-card:nth-child(3) .news-mini-card__img .news-img-placeholder {
    background: linear-gradient(135deg, #1D3557, #0a1f3a);
}

.news-mini-card__body { flex: 1; min-width: 0; }
.news-mini-card__date {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.news-mini-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #1D3557;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.news-mini-card:hover .news-mini-card__title { color: #3C78B4; }

.news-mini-card__arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.news-mini-card__arrow svg {
    width: 16px;
    height: 16px;
    stroke: #CBD5E0;
    fill: none;
    transition: stroke .2s;
}
.news-mini-card:hover .news-mini-card__arrow svg { stroke: #3C78B4; }

/* ===========================
   SHARED ELEMENTS
=========================== */
.news-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3C78B4, #1D3557);
}
.news-tag {
    display: inline-block;
    background: #3C78B4;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    width: fit-content;
}
.news-date {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}
.news-meta {
    font-size: 12px;
    font-weight: 600;
    color: #3C78B4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3C78B4;
    text-decoration: none;
    transition: gap .2s ease;
    white-space: nowrap;
}
.btn-link:hover { gap: 10px; }
.btn-link svg {
    stroke: currentColor;
    fill: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.btn-link--sm { font-size: 11px; }

/* ===========================
   SCROLL ANIMATIONS
=========================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-featured-card,
.news-secondary-card,
.news-mini-card {
    opacity: 0;
    transform: translateY(30px);
}
.news-section.is-visible .news-featured-card {
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.news-section.is-visible .news-secondary-card:nth-child(2) {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.news-section.is-visible .news-secondary-card:nth-child(3) {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.news-section.is-visible .news-mini-card:nth-child(1) {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.news-section.is-visible .news-mini-card:nth-child(2) {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}
.news-section.is-visible .news-mini-card:nth-child(3) {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.71s forwards;
}

/* ===========================
   RTL
=========================== */
[dir="rtl"] .news-featured-card__date {
    right: auto;
    left: 16px;
}
[dir="rtl"] .news-mini-card {
    border-left: none;
    border-right: 4px solid #3C78B4;
    transform-origin: right center;
}
[dir="rtl"] .news-mini-card:nth-child(2) { border-right-color: #00783C; }
[dir="rtl"] .news-mini-card:nth-child(3) { border-right-color: #1D3557; }
[dir="rtl"] .news-mini-card:hover        { transform: translateX(-5px); }
[dir="rtl"] .btn-link svg                { transform: scaleX(-1); }
[dir="rtl"] .news-mini-card__arrow svg   { transform: scaleX(-1); }

/* ===========================
   RESPONSIVE — tablet landscape
=========================== */
@media (max-width: 1024px) {
    .news-magazine { padding: 0 20px; }
    .news-main-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 16px;
    }
    .news-featured-card__img  { height: 220px; }
    .news-featured-card__title { font-size: 18px; }
    .news-secondary-card__img  { width: 100px; }
    .news-mini-grid { gap: 12px; }
}

/* ===========================
   RESPONSIVE — tablet portrait / mobile
=========================== */
@media (max-width: 768px) {
    .news-section   { padding: 60px 0; }
    .news-magazine  { padding: 0 16px; gap: 14px; }

    .news-main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 14px;
    }
    .news-featured-card        { grid-row: auto; }
    .news-featured-card__img   { height: 200px; }
    .news-featured-card__title { font-size: 17px; }
    .news-featured-card__body  { padding: 18px 20px 22px; }

    .news-secondary-card__img  { width: 90px; }
    .news-secondary-card__title { font-size: 13px; }

    .news-mini-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .news-mini-card { padding: 12px 14px; }
}

.news-secondary-card__excerpt {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    margin: 4px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Scroll Reveal ── */
@keyframes newsReveal {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-section .news-featured-card,
.news-section .news-secondary-card,
.news-section .news-mini-card {
    opacity: 0;
    transform: translateY(36px);
}

.news-section.is-visible .news-featured-card {
    animation: newsReveal 1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.news-section.is-visible .news-secondary-card:nth-child(1) {
    animation: newsReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}
.news-section.is-visible .news-secondary-card:nth-child(2) {
    animation: newsReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.45s forwards;
}
.news-section.is-visible .news-mini-card:nth-child(1) {
    animation: newsReveal 0.8s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
.news-section.is-visible .news-mini-card:nth-child(2) {
    animation: newsReveal 0.8s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
}
.news-section.is-visible .news-mini-card:nth-child(3) {
    animation: newsReveal 0.8s cubic-bezier(0.22,1,0.36,1) 0.7s forwards;
}

/* ── Video play icon on cards ── */
.news-card__thumb-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
}
.news-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.news-card__thumb-wrap:hover .news-card__play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===========================
   BLOCKQUOTE STYLES
   =========================== */
.post-content blockquote,
.entry-content blockquote,
.sycac-content blockquote {
    position: relative;
    margin: 30px 0;
    padding: 24px 28px 24px 36px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ee 100%);
    border-left: 5px solid var(--color-secondary, #00783C);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.05em;
    line-height: 1.8;
    color: #2c5f4a;
}

.post-content blockquote p,
.entry-content blockquote p,
.sycac-content blockquote p {
    margin: 0;
}

[dir="rtl"] .post-content blockquote,
[dir="rtl"] .entry-content blockquote,
[dir="rtl"] .sycac-content blockquote {
    border-left: none;
    border-right: 5px solid var(--color-secondary, #00783C);
    border-radius: 8px 0 0 8px;
    padding: 24px 36px 24px 28px;
}

/* ===========================
   NEWS SECTION BADGES
   =========================== */

.news-featured-card__body .arc-badges,
.news-secondary-card__body .arc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.news-featured-card__body .arc-badge,
.news-secondary-card__body .arc-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    transition: opacity 0.2s;
}

.news-featured-card__body .arc-badge:hover,
.news-secondary-card__body .arc-badge:hover {
    opacity: 0.85;
    color: #ffffff;
}
