/* Emdadgaran News — self-contained so it remains stable across Astra updates. */
.emdad-news-index,.emdad-news-single,.emdad-news-related{--en-ink:#1d3044;--en-muted:#64748b;--en-blue:#398cf4;--en-sky:#eaf4ff;--en-line:#dbe9f5;--en-radius:22px;font-family:inherit;color:var(--en-ink);direction:rtl}.emdad-news-index{max-width:1180px;margin:clamp(28px,5vw,70px) auto;padding:0 20px}.emdad-news-controls{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px;border-bottom:1px solid var(--en-line);padding-bottom:25px}.emdad-news-eyebrow{display:block;color:var(--en-blue);font-size:.81rem;font-weight:700;letter-spacing:.02em;margin-bottom:7px}.emdad-news-controls h2,.emdad-news-related h2{font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.25;margin:0;font-weight:800;color:var(--en-ink)}.emdad-news-controls__actions{display:flex;gap:10px;flex-wrap:wrap}.emdad-news-controls input,.emdad-news-controls select{min-height:46px;border:1px solid var(--en-line);border-radius:12px;background:#fff;color:var(--en-ink);padding:0 14px;font:inherit;outline-offset:3px}.emdad-news-controls input{min-width:215px}.emdad-news-controls input:focus,.emdad-news-controls select:focus{border-color:var(--en-blue);outline:2px solid #cae3ff}.emdad-news-grid{display:grid;grid-template-columns:repeat(var(--emdad-columns,3),minmax(0,1fr));gap:22px}.emdad-news-index[data-columns="1"] .emdad-news-grid{--emdad-columns:1}.emdad-news-index[data-columns="2"] .emdad-news-grid{--emdad-columns:2}.emdad-news-index[data-columns="3"] .emdad-news-grid{--emdad-columns:3}.emdad-news-index[data-columns="4"] .emdad-news-grid{--emdad-columns:4}.emdad-news-card{overflow:hidden;border:1px solid var(--en-line);border-radius:var(--en-radius);background:#fff;box-shadow:0 6px 23px rgba(44,83,120,.06);transition:transform .22s ease,box-shadow .22s ease;display:flex;flex-direction:column}.emdad-news-card:hover{transform:translateY(-5px);box-shadow:0 16px 35px rgba(44,83,120,.13)}.emdad-news-card__image{display:block;position:relative;aspect-ratio:1.45;overflow:hidden;background:linear-gradient(90deg,rgba(107, 213, 255, 1) 30%, rgba(99, 188, 255, 1) 0%, rgba(255, 255, 255, 1) 16%)}.emdad-news-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.emdad-news-card:hover .emdad-news-card__image img{transform:scale(1.04)}.emdad-news-card__placeholder{display:grid;place-items:center;height:100%;font-size:3rem;color:var(--en-blue)}.emdad-news-card__body{display:flex;flex:1;flex-direction:column;padding:18px 19px}.emdad-news-card__meta{display:flex;justify-content:space-between;gap:8px;color:var(--en-muted);font-size:.75rem}.emdad-news-card__meta span{color:var(--en-blue);font-weight:700}.emdad-news-card h3{font-size:0.85rem;line-height:1.65;margin:10px 0 8px;font-weight:800}.emdad-news-card h3 a{color:var(--en-ink);text-decoration:none}.emdad-news-card h3 a:hover{color:var(--en-blue)}.emdad-news-card p{font-size:.89rem;line-height:1.8;color:var(--en-muted);margin:0 0 15px}.emdad-news-card__more{margin-top:auto;display:flex;justify-content:space-between;align-items:center;color:var(--en-blue)!important;font-weight:800;font-size:.84rem;text-decoration:none}.emdad-news-card__more span{font-size:1.25rem}.emdad-news-empty{padding:40px;text-align:center;background:var(--en-sky);border-radius:var(--en-radius);color:var(--en-muted)}.emdad-news-pagination{margin-top:35px}.emdad-news-pagination ul{display:flex;justify-content:center;gap:6px;list-style:none;margin:0;padding:0}.emdad-news-pagination a,.emdad-news-pagination span{display:grid;place-items:center;min-width:38px;height:38px;border-radius:10px;text-decoration:none;color:var(--en-ink);border:1px solid var(--en-line)}.emdad-news-pagination .current,.emdad-news-pagination a:hover{background:var(--en-blue);color:#fff;border-color:var(--en-blue)}
.emdad-news-single{max-width:1180px;margin:clamp(30px,6vw,80px) auto 0;padding:0 20px}.emdad-news-single__header{display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);gap:clamp(25px,5vw,80px);align-items:center;margin-bottom:45px}.emdad-news-single__intro{border-left:1px solid var(--en-line);padding-left:clamp(25px,5vw,70px)}.emdad-news-single__chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.emdad-news-single__chips a{background:#dcecff;color:#3b7ab7;text-decoration:none;padding:5px 13px;border-radius:999px;font-size:.76rem;font-weight:700}.emdad-news-single h1{color:var(--en-ink);font-size:clamp(1.8rem,4vw,3.2rem);line-height:1.42;margin:0 0 19px;font-weight:900;letter-spacing:-.035em}.emdad-news-single__date{display:flex;gap:15px;flex-wrap:wrap;color:var(--en-muted);font-size:.86rem}.emdad-news-single__date span:before{content:'•';padding-left:15px;color:#a8c8e8}.emdad-news-single__cover{margin:0;border-radius:clamp(22px,4vw,42px);overflow:hidden;background:var(--en-sky);aspect-ratio:1.35}.emdad-news-single__cover img{width:100%;height:100%;object-fit:cover}.emdad-news-single__content{max-width:785px;margin:0 auto;color:#334155;font-size:1.07rem;line-height:2.25}.emdad-news-single__content>*:first-child{margin-top:0}.emdad-news-single__content h2,.emdad-news-single__content h3{color:var(--en-ink);line-height:1.55;margin-top:2em}.emdad-news-single__content a{color:#1678dc;text-decoration-thickness:1px;text-underline-offset:4px}.emdad-news-single__content img{max-width:100%;height:auto;border-radius:18px}.emdad-news-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:930px;margin:42px auto}.emdad-news-gallery a{display:block;aspect-ratio:1.5;overflow:hidden;border-radius:13px}.emdad-news-gallery img{height:100%;width:100%;object-fit:cover;transition:transform .25s}.emdad-news-gallery a:hover img{transform:scale(1.05)}.emdad-news-single__nav{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin:55px auto 0;max-width:960px;overflow:hidden;border-radius:16px;background:var(--en-line)}.emdad-news-single__nav a{min-height:82px;display:grid;grid-template-columns:26px 1fr;column-gap:11px;align-content:center;padding:15px 23px;background:#f6faff;text-decoration:none;color:var(--en-ink);transition:background .2s}.emdad-news-single__nav a:hover{background:#e9f4ff}.emdad-news-single__nav a>span{grid-row:1/3;align-self:center;color:var(--en-blue);font-size:1.5rem}.emdad-news-single__nav small{color:#7b96af;font-size:.75rem}.emdad-news-single__nav strong{font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emdad-news-related{position:relative;margin-top:80px;padding:65px 20px;background:linear-gradient(180deg,#edf6ff 0%,#f8fbff 100%)}.emdad-news-related:before{content:'';position:absolute;top:-20px;right:0;left:0;height:22px;background:radial-gradient(28px at 50% 0,transparent 96%,#edf6ff 98%) 50% 0/60px 22px repeat-x}.emdad-news-related__inner{max-width:1180px;margin:auto}.emdad-news-related h2{margin-bottom:27px}.emdad-news-related .emdad-news-card{border-color:transparent}@media(max-width:850px){.emdad-news-controls{align-items:stretch;flex-direction:column}.emdad-news-controls__actions>*{flex:1}.emdad-news-index[data-columns] .emdad-news-grid{--emdad-columns:2}.emdad-news-single__header{grid-template-columns:1fr}.emdad-news-single__intro{border-left:0;border-bottom:1px solid var(--en-line);padding:0 0 28px}.emdad-news-single__cover{max-height:440px}.emdad-news-single__content{font-size:1rem}.emdad-news-gallery{grid-template-columns:repeat(3,1fr)}}@media(max-width:540px){.emdad-news-index{padding:0 0px}.emdad-news-index[data-columns] .emdad-news-grid{--emdad-columns:1}.emdad-news-controls input{min-width:0}.emdad-news-single{padding:0 15px}.emdad-news-single h1{font-size:1.75rem}.emdad-news-gallery{grid-template-columns:repeat(2,1fr)}.emdad-news-single__nav{grid-template-columns:1fr}.emdad-news-related{padding:48px 15px}}

/* Reference single-news composition: story at left, title and hero image at right. */
.emdad-news-single--reference{max-width:1000px;margin-top:54px}.emdad-news-single--reference .emdad-news-single__hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"story visual";gap:44px;align-items:start;position:relative;margin-bottom:0}.emdad-news-single--reference .emdad-news-single__story{grid-area:story;padding:0 0 0 43px;border-left:1px solid #d7e6f5;position:relative;min-height:370px}.emdad-news-single--reference .emdad-news-single__story:after{content:"";position:absolute;width:15px;height:15px;left:-8px;top:49%;background:#c6ddf8;transform:rotate(45deg)}.emdad-news-single--reference .emdad-news-single__visual{grid-area:visual}.emdad-news-single--reference .emdad-news-single__chips{margin:0 0 52px;gap:9px}.emdad-news-single--reference .emdad-news-single__chips a{background:#c9e0fb;color:#fff;padding:6px 15px;font-size:.68rem}.emdad-news-single--reference h1{font-size:clamp(1.85rem,3.3vw,2.75rem);line-height:1.25;text-align:right;margin:0 0 16px;font-weight:900;color:#2e4052}.emdad-news-single--reference .emdad-news-single__date{display:none}.emdad-news-single--reference .emdad-news-single__cover{aspect-ratio:1.38;margin:20px 0 0;border-radius:48px 0 48px 48px;background:#4297fb}.emdad-news-single--reference .emdad-news-single__cover--empty{display:grid;place-items:center;color:#fff;font-size:3rem}.emdad-news-single--reference .emdad-news-single__content{max-width:none;margin:0;font-size:.88rem;line-height:2.06;text-align:right;color:#3c4d5e}.emdad-news-single--reference .emdad-news-single__content p{margin:0 0 20px}.emdad-news-single--reference .emdad-news-single__content h2,.emdad-news-single--reference .emdad-news-single__content h3{font-size:1.1rem;margin:0 0 12px}.emdad-news-single--reference .emdad-news-gallery{grid-template-columns:repeat(5,minmax(0,1fr));max-width:none;margin:48px 0 34px;gap:10px}.emdad-news-single--reference .emdad-news-gallery a{aspect-ratio:1.55;border-radius:14px}.emdad-news-single--reference .emdad-news-single__nav{margin:0;max-width:none;border-radius:15px;background:#eef6ff;min-height:62px}.emdad-news-single--reference .emdad-news-single__nav a{min-height:62px;background:linear-gradient(90deg,#eff6ff,#fbfdff);padding:10px 20px}.emdad-news-single--reference .emdad-news-single__nav a:nth-child(2){text-align:left}.emdad-news-single--reference .emdad-news-single__nav strong{color:#7294b2}.emdad-news-single--reference .emdad-news-related{margin-top:67px}@media(max-width:850px){.emdad-news-single--reference .emdad-news-single__hero{grid-template-columns:1fr;grid-template-areas:"visual" "story";gap:32px}.emdad-news-single--reference .emdad-news-single__story{padding:32px 0 0;border-left:0;border-top:1px solid #d7e6f5}.emdad-news-single--reference .emdad-news-single__story:after{top:-8px;left:50%}.emdad-news-single--reference .emdad-news-single__chips{margin-bottom:25px}.emdad-news-single--reference .emdad-news-gallery{grid-template-columns:repeat(3,1fr)}}@media(max-width:540px){.emdad-news-single--reference{margin-top:35px}.emdad-news-single--reference .emdad-news-single__cover{border-radius:34px 0 34px 34px}.emdad-news-single--reference .emdad-news-gallery{grid-template-columns:repeat(2,1fr);gap:8px}.emdad-news-single--reference .emdad-news-single__nav a{padding:10px 14px}.emdad-news-single--reference .emdad-news-single__nav a:nth-child(2){text-align:right}}

/* Astra integration: make the plugin's page wrapper the only flex item. */
#primary.emdad-news-primary{display:block!important;float:none!important;width:100%!important;max-width:none!important;flex:0 0 100%!important;margin:0!important;padding:0!important}.emdad-news-page{display:block!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;clear:both}.emdad-news-page>.emdad-news-single,.emdad-news-page>.emdad-news-related{float:none!important;clear:both!important;width:100%!important;max-width:none!important;display:block!important}.emdad-news-page .emdad-news-single--reference h1{font-size:clamp(1.85rem,3.3vw,2.75rem)!important;line-height:1.25!important}.emdad-news-page .emdad-news-related{position:relative!important;inset:auto!important}

/* Final visual details matching the approved reference. */
.emdad-news-page .emdad-news-single--reference .emdad-news-single__hero{grid-template-areas:"story visual"!important}.emdad-news-page .emdad-news-single--reference h1{font-size:clamp(22px,var(--emdad-news-title-size,34px),56px)!important}.emdad-news-single--reference .emdad-news-single__cover{position:relative;border-top:5px solid #4c9cff!important}.emdad-news-single--reference .emdad-news-single__cover:after{content:"";position:absolute;z-index:2;top:-5px;right:0;left:0;height:5px;background:#4c9cff;pointer-events:none}.emdad-news-single--reference .emdad-news-single__chips a{background:#a9cff9!important;color:#fff!important;font-weight:800;box-shadow:0 2px 5px rgba(55,128,208,.12)}.emdad-news-related .emdad-news-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.emdad-news-related .emdad-news-card--compact{min-height:0;border:0;border-radius:13px;background:#4a98f8;box-shadow:0 6px 16px rgba(36,103,181,.16);overflow:hidden}.emdad-news-related .emdad-news-card--compact .emdad-news-card__image{aspect-ratio:1.42;background:#d8ebff}.emdad-news-related .emdad-news-card--compact .emdad-news-card__body{min-height:104px;padding:10px 12px;background:#4a98f8;color:#fff}.emdad-news-related .emdad-news-card--compact:nth-child(odd){flex-direction:column-reverse}.emdad-news-related .emdad-news-card--compact .emdad-news-card__meta{align-items:center;color:#eaf4ff;font-size:.61rem;line-height:1}.emdad-news-related .emdad-news-card--compact .emdad-news-card__category{order:-1;display:inline-block;background:#f59e0b!important;color:#fff!important;border-radius:999px;padding:4px 7px;font-size:.57rem;font-weight:800;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}.emdad-news-related .emdad-news-card--compact h3{margin:8px 0 0;font-size:.78rem;line-height:1.6;text-align:right;font-weight:800}.emdad-news-related .emdad-news-card--compact h3 a{color:#fff!important}.emdad-news-related .emdad-news-card--compact p,.emdad-news-related .emdad-news-card--compact .emdad-news-card__more{display:none!important}.emdad-news-related .emdad-news-card--compact:hover{transform:translateY(-4px);box-shadow:0 12px 25px rgba(36,103,181,.22)}@media(max-width:850px){.emdad-news-related .emdad-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emdad-news-related .emdad-news-card--compact h3{font-size:.76rem}}@media(max-width:540px){.emdad-news-related .emdad-news-grid{grid-template-columns:1fr}.emdad-news-related .emdad-news-card--compact{flex-direction:row!important}.emdad-news-related .emdad-news-card--compact .emdad-news-card__image{flex:0 0 45%;aspect-ratio:auto}.emdad-news-related .emdad-news-card--compact .emdad-news-card__body{flex:1}}

/* Fix physical placement independently of the theme's RTL grid direction. */
.emdad-news-page .emdad-news-single--reference .emdad-news-single__hero{direction:ltr!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__story{grid-column:1!important;grid-row:1!important;direction:rtl!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__visual{grid-column:2!important;grid-row:1!important;direction:rtl!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__nav{direction:rtl!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__previous{grid-column:1!important;text-align:right!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__next{grid-column:2!important;text-align:left!important}@media(max-width:850px){.emdad-news-page .emdad-news-single--reference .emdad-news-single__story,.emdad-news-page .emdad-news-single--reference .emdad-news-single__visual{grid-column:1!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__visual{grid-row:1!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__story{grid-row:2!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__next,.emdad-news-page .emdad-news-single--reference .emdad-news-single__previous{grid-column:1!important;text-align:right!important}}

/* The divider belongs on the inner edge of the text column, not its outer edge. */
.emdad-news-page .emdad-news-single--reference .emdad-news-single__story{border-left:0!important;border-right:1px solid #d7e6f5!important;padding:0 43px 0 0!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__story:after{right:-8px!important;left:auto!important}@media(max-width:850px){.emdad-news-page .emdad-news-single--reference .emdad-news-single__story{border-right:0!important;border-top:1px solid #d7e6f5!important;padding:32px 0 0!important}.emdad-news-page .emdad-news-single--reference .emdad-news-single__story:after{top:-8px!important;right:auto!important;left:50%!important}}

/* News index themes: magazine, editorial, and spotlight. */
.emdad-news-index .emdad-news-card__category{display:inline-flex;align-items:center;background:#fff1df;color:#c76b00;border-radius:999px;padding:3px 8px;font-size:.68rem;font-weight:800}.emdad-news-index--theme-magazine .emdad-news-card{border:0;box-shadow:0 8px 28px rgba(28,72,115,.1)}.emdad-news-index--theme-magazine .emdad-news-card__image:after{content:"";position:absolute;right:0;bottom:0;left:0;height:5px;background:linear-gradient(90deg,#f59e0b,#4697f7)}.emdad-news-index--theme-magazine .emdad-news-card__body{border-top:0}.emdad-news-index--theme-magazine .emdad-news-card h3{font-size:0.85rem}.emdad-news-index--theme-editorial{max-width:1040px}.emdad-news-index--theme-editorial .emdad-news-controls{border-bottom:2px solid #dbeafe}.emdad-news-index--theme-editorial .emdad-news-grid{grid-template-columns:1fr;gap:16px}.emdad-news-index--theme-editorial .emdad-news-card{display:grid;grid-template-columns:minmax(0,1fr) 290px;grid-template-areas:"body image";min-height:200px;border:0;border-radius:18px;box-shadow:0 8px 25px rgba(22,65,106,.08);direction:ltr}.emdad-news-index--theme-editorial .emdad-news-card__image{grid-area:image;aspect-ratio:auto;min-height:200px}.emdad-news-index--theme-editorial .emdad-news-card__body{grid-area:body;direction:rtl;padding:25px 29px;position:relative}.emdad-news-index--theme-editorial .emdad-news-card__body:before{content:"";position:absolute;top:25px;bottom:25px;right:0;width:4px;background:#f59e0b;border-radius:8px}.emdad-news-index--theme-editorial .emdad-news-card h3{font-size:0.85rem;margin:12px 0 9px}.emdad-news-index--theme-editorial .emdad-news-card p{max-width:650px;margin-bottom:12px}.emdad-news-index--theme-editorial .emdad-news-card:nth-child(even) .emdad-news-card__body:before{background:#4697f7}.emdad-news-index--theme-spotlight{max-width:1120px}.emdad-news-index--theme-spotlight .emdad-news-controls{padding:22px 25px;border:0;border-radius:20px;background:linear-gradient(120deg,#eff7ff,#fff8eb)}.emdad-news-index--theme-spotlight .emdad-news-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:205px;gap:16px}.emdad-news-index--theme-spotlight .emdad-news-card{position:relative;border:0;border-radius:20px;box-shadow:0 10px 25px rgba(25,77,127,.14)}.emdad-news-index--theme-spotlight .emdad-news-card__image{position:absolute;inset:0;aspect-ratio:auto}.emdad-news-index--theme-spotlight .emdad-news-card__image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(14,49,85,.92),rgba(14,49,85,.04) 78%)}.emdad-news-index--theme-spotlight .emdad-news-card__body{z-index:1;margin-top:auto;padding:17px;background:transparent;color:#fff}.emdad-news-index--theme-spotlight .emdad-news-card__meta{color:#d9edff}.emdad-news-index--theme-spotlight .emdad-news-card__category{background:#f59e0b;color:#fff}.emdad-news-index--theme-spotlight .emdad-news-card h3{margin:8px 0 0;font-size:1rem;line-height:1.55}.emdad-news-index--theme-spotlight .emdad-news-card h3 a,.emdad-news-index--theme-spotlight .emdad-news-card__more{color:#fff!important}.emdad-news-index--theme-spotlight .emdad-news-card p,.emdad-news-index--theme-spotlight .emdad-news-card__more{display:none}.emdad-news-index--theme-spotlight .emdad-news-card--featured{grid-column:span 2;grid-row:span 2}.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__body{padding:27px}.emdad-news-index--theme-spotlight .emdad-news-card--featured h3{font-size:clamp(1.35rem,2.4vw,2rem);max-width:680px}.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__meta{font-size:.82rem}@media(max-width:850px){.emdad-news-index--theme-editorial .emdad-news-card{grid-template-columns:minmax(0,1fr) 220px}.emdad-news-index--theme-spotlight .emdad-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.emdad-news-index--theme-editorial .emdad-news-card{grid-template-columns:1fr;grid-template-areas:"image" "body"}.emdad-news-index--theme-editorial .emdad-news-card__image{min-height:180px}.emdad-news-index--theme-editorial .emdad-news-card__body{padding:21px}.emdad-news-index--theme-editorial .emdad-news-card h3{font-size:1.0rem}.emdad-news-index--theme-spotlight .emdad-news-grid{grid-auto-rows:220px}.emdad-news-index--theme-spotlight .emdad-news-card--featured{grid-column:span 2;grid-row:span 1}}

/* Spotlight refinements: image first, then a readable title panel underneath. */
.emdad-news-index--theme-spotlight .emdad-news-grid{grid-auto-rows:auto!important;align-items:start}.emdad-news-index--theme-spotlight .emdad-news-card{min-height:0!important;background:#fff;overflow:hidden}.emdad-news-index--theme-spotlight .emdad-news-card__image{position:relative!important;inset:auto!important;display:block;aspect-ratio:1.42!important;min-height:0!important}.emdad-news-index--theme-spotlight .emdad-news-card__image:after{background:linear-gradient(180deg,rgba(20,112,222,.12),rgba(10,46,87,.72))}.emdad-news-index--theme-spotlight .emdad-news-card__body{margin:0!important;padding:14px 16px!important;background:#fff!important;color:#1d3044!important}.emdad-news-index--theme-spotlight .emdad-news-card__meta{color:#68819b!important}.emdad-news-index--theme-spotlight .emdad-news-card h3{margin:8px 0 0!important;font-size:.95rem!important;line-height:1.65!important}.emdad-news-index--theme-spotlight .emdad-news-card h3 a{color:#1d3044!important}.emdad-news-index--theme-spotlight .emdad-news-card--featured{grid-column:span 2;grid-row:auto;min-height:0!important}.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__image{aspect-ratio:1.72!important;min-height:0!important}.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__body{padding:19px 22px!important}.emdad-news-index--theme-spotlight .emdad-news-card--featured h3{font-size:clamp(1.2rem,2vw,1.65rem)!important;max-width:none}.emdad-news-index--theme-spotlight.emdad-news-index--spotlight-no-featured .emdad-news-card--featured{grid-column:auto}.emdad-news-index--spotlight-gradient-blue .emdad-news-card__image:after{background:linear-gradient(180deg,rgba(23,119,226,.08),rgba(12,55,104,.72))}.emdad-news-index--spotlight-gradient-azure .emdad-news-card__image:after{background:linear-gradient(135deg,rgba(63,172,255,.14),rgba(9,72,135,.68))}.emdad-news-index--spotlight-gradient-sunset .emdad-news-card__image:after{background:linear-gradient(135deg,rgba(245,158,11,.3),rgba(18,85,158,.74))}.emdad-news-index--spotlight-gradient-none .emdad-news-card__image:after{display:none}@media(max-width:850px){.emdad-news-index--theme-spotlight .emdad-news-card--featured{grid-column:span 2}.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__image{aspect-ratio:1.55!important}}@media(max-width:540px){.emdad-news-index--theme-spotlight .emdad-news-grid{grid-template-columns:1fr}.emdad-news-index--theme-spotlight .emdad-news-card--featured{grid-column:span 1}.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__image{aspect-ratio:1.42!important}}

/* Spotlight: honour the columns attribute and keep the small category badge on the image. */
.emdad-news-index--theme-spotlight[data-columns="1"] .emdad-news-grid{grid-template-columns:1fr!important}.emdad-news-index--theme-spotlight[data-columns="2"] .emdad-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.emdad-news-index--theme-spotlight[data-columns="3"] .emdad-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.emdad-news-index--theme-spotlight[data-columns="4"] .emdad-news-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.emdad-news-index--spotlight-gradient-sunset .emdad-news-card__image:after{background:linear-gradient(135deg,rgba(255,255,255,.56),rgba(34,119,210,.73))!important}.emdad-news-index--theme-spotlight .emdad-news-card__image:after{z-index:1}.emdad-news-index--theme-spotlight .emdad-news-card__image-badge{position:absolute;z-index:2;top:10px;right:10px;display:inline-flex;align-items:center;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;background:#f59e0b;color:#fff;padding:4px 7px;font-size:.59rem;font-weight:800;line-height:1.2;box-shadow:0 3px 8px rgba(94,52,0,.22)}.emdad-news-index--theme-spotlight .emdad-news-card__meta .emdad-news-card__category{display:none!important}@media(max-width:850px){.emdad-news-index--theme-spotlight[data-columns="3"] .emdad-news-grid,.emdad-news-index--theme-spotlight[data-columns="4"] .emdad-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:540px){.emdad-news-index--theme-spotlight[data-columns] .emdad-news-grid{grid-template-columns:1fr!important}}

/* Blue-white: a light-blue accent on only the first fifth, with a soft white veil elsewhere. */
.emdad-news-index--spotlight-gradient-sunset .emdad-news-card__image:after{background:linear-gradient(135deg,rgba(192,224,255,.58) 0%,rgba(209,233,255,.42) 20%,rgba(255,255,255,.2) 20%,rgba(255,255,255,.2) 100%)!important}

/* AJAX pagination controls. */
.emdad-news-pagination-slot{min-height:1px}.emdad-news-pagination__numbers{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:35px}.emdad-news-pagination__numbers a,.emdad-news-pagination__numbers .current{display:grid;place-items:center;min-width:40px;height:40px;padding:0 8px;border:1px solid var(--en-line);border-radius:10px;background:#fff;color:var(--en-ink);font-size:.86rem;text-decoration:none}.emdad-news-pagination__numbers a:hover,.emdad-news-pagination__numbers .current{border-color:#398cf4;background:#398cf4;color:#fff}.emdad-news-pagination--more{display:flex;justify-content:center;margin-top:35px}.emdad-news-load-more{appearance:none;min-width:164px;border:0;border-radius:999px;background:linear-gradient(135deg,#398cf4,#2678d7);color:#fff;padding:13px 25px;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(37,119,215,.25);transition:transform .2s ease,box-shadow .2s ease}.emdad-news-load-more:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 13px 25px rgba(37,119,215,.32)}.emdad-news-load-more:disabled{cursor:wait;opacity:.72}.emdad-news-load-more.is-loading:after{content:"…";padding-right:5px}

/* Refined news cards: equal-height layout, richer metadata and restrained charity colors. */
.emdad-news-index {
    --en-card-blue: #3f87ca;
    --en-card-blue-soft: #edf7ff;
    --en-card-orange: #d77a24;
    --en-card-orange-soft: #fff4e8;
    --en-card-mint: #3d826b;
    --en-card-mint-soft: #edf8f3;
}

/* Archive header keeps the all-news link visible without adding a duplicate section title. */
.emdad-news-index__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto 16px;
    padding: 4px 0 10px;
    direction: rtl;
}

.emdad-news-index__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
    padding: 6px 0;
    color: #0782c8 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .18s ease, transform .18s ease;
}

.emdad-news-index__all:hover {
    color: #0569a5 !important;
    transform: translateX(-2px);
}

.emdad-news-index__all:focus-visible {
    outline: 2px solid #0782c8;
    outline-offset: 4px;
    border-radius: 3px;
}

.emdad-news-index .emdad-news-index__all > svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
}

.emdad-news-index__header--link-only {
    justify-content: flex-end;
}

.emdad-news-index__header + .emdad-news-controls {
    margin-top: 0;
}

.emdad-news-index__header ~ .emdad-news-controls .emdad-news-controls__filter-wrap {
    max-width: none;
}

@media (max-width: 768px) {
    .emdad-news-index__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-top: 8px;
    }

    .emdad-news-index__all {
        margin: 0;
        font-size: 14px;
    }

    .emdad-news-index__header--link-only {
        align-items: flex-end;
    }
}

.emdad-news-index .emdad-news-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
    gap: clamp(18px, 2.4vw, 26px);
}

.emdad-news-index .emdad-news-card {
    position: relative;
    min-width: 0;
    height: 100%;
    border: 1px solid #d8e8f5;
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 30px rgba(42, 91, 137, .09);
    transform: translateZ(0);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.emdad-news-index .emdad-news-card:hover,
.emdad-news-index .emdad-news-card:focus-within {
    border-color: #abccec;
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(42, 91, 137, .16);
}

.emdad-news-index .emdad-news-card__image {
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #e5f3ff, #f8fbff 62%, #fff2e3);
}

.emdad-news-index .emdad-news-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 -1px rgba(255, 255, 255, .7);
}

.emdad-news-index .emdad-news-card__image img {
    display: block;
    filter: saturate(.92) contrast(.98);
    transform: scale(1.002);
}

.emdad-news-index .emdad-news-card:hover .emdad-news-card__image img,
.emdad-news-index .emdad-news-card:focus-within .emdad-news-card__image img {
    filter: saturate(1) contrast(1);
    transform: scale(1.055);
}

.emdad-news-card__image-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(19, 67, 108, 0) 54%, rgba(26, 73, 113, .15) 100%);
}

.emdad-news-card__image-badge {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 26px);
    min-height: 29px;
    overflow: hidden;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 999px;
    background: rgba(255, 247, 237, .92);
    color: #a95e1f;
    font-size: .67rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(92, 61, 27, .12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.emdad-news-index .emdad-news-card__body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 19px 20px 20px;
}

.emdad-news-index .emdad-news-card__body::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 48px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #75b3e8, #efb06e);
}

.emdad-news-index .emdad-news-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 30px;
    color: #617d98;
    font-size: .68rem;
}

.emdad-news-index .emdad-news-card__meta time,
.emdad-news-index .emdad-news-card__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #dceaf7;
    border-radius: 999px;
    background: #f6faff;
    color: #5b7791;
    line-height: 1.3;
    white-space: nowrap;
}

.emdad-news-index .emdad-news-card__reading-time {
    border-color: #d7eadf;
    background: var(--en-card-mint-soft);
    color: var(--en-card-mint);
}

.emdad-news-index .emdad-news-card__meta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.emdad-news-index .emdad-news-card h3 {
    min-height: calc(1.62em * 2);
    max-height: calc(1.62em * 2);
    margin: 12px 0 9px;
    color: #24445f;
    font-size: clamp(1rem, 1.2vw, 0.85rem);
    font-weight: 850;
    line-height: 1.62;
    overflow: hidden;
}

.emdad-news-index .emdad-news-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.emdad-news-index .emdad-news-card h3 a:hover {
    color: #2f7fc5;
}

.emdad-news-index .emdad-news-card p {
    display: -webkit-box !important;
    min-height: calc(1.85em * 3);
    max-height: calc(1.85em * 3);
    overflow: hidden;
    margin: 0 0 17px;
    color: #687f94;
    font-size: .82rem;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.emdad-news-index .emdad-news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px;
    min-height: 38px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.emdad-news-index .emdad-news-card__category {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    max-width: 52%;
    overflow: hidden;
    padding: 4px 10px;
    border: 1px solid #f5ddc6;
    border-radius: 999px;
    background: var(--en-card-orange-soft);
    color: var(--en-card-orange);
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emdad-news-index .emdad-news-card__more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    margin: 0;
    padding: 5px 7px 5px 11px;
    border-radius: 999px;
    background: var(--en-card-blue-soft);
    color: var(--en-card-blue) !important;
    font-size: .74rem;
    font-weight: 850;
    line-height: 1.3;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.emdad-news-index .emdad-news-card__more span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    font-size: .95rem;
    box-shadow: 0 3px 9px rgba(58, 118, 176, .12);
}

.emdad-news-index .emdad-news-card__more:hover {
    background: #3f87ca;
    color: #fff !important;
    transform: translateX(-2px);
}

.emdad-news-index .emdad-news-card__more:focus-visible,
.emdad-news-index .emdad-news-card h3 a:focus-visible,
.emdad-news-index .emdad-news-card__image:focus-visible {
    outline: 3px solid rgba(63, 135, 202, .28);
    outline-offset: 3px;
}

/* Keep every card in the index visually equal even in the alternative themes. */
.emdad-news-index--theme-magazine .emdad-news-card {
    border: 1px solid #d8e8f5;
}

.emdad-news-index--theme-editorial .emdad-news-grid,
.emdad-news-index--theme-spotlight .emdad-news-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
}

.emdad-news-index--theme-editorial .emdad-news-card,
.emdad-news-index--theme-spotlight .emdad-news-card {
    height: 100%;
}

.emdad-news-index--theme-editorial .emdad-news-card__image {
    height: 100%;
    min-height: 230px;
}

.emdad-news-index--theme-editorial .emdad-news-card h3 {
    min-height: calc(1.55em * 2);
    max-height: calc(1.55em * 2);
    line-height: 1.55;
}

.emdad-news-index--theme-spotlight .emdad-news-card__body {
    display: flex !important;
    min-height: 240px;
    padding: 18px 19px 19px !important;
}

.emdad-news-index--theme-spotlight .emdad-news-card h3,
.emdad-news-index--theme-spotlight .emdad-news-card--featured h3 {
    min-height: calc(1.62em * 2);
    max-height: calc(1.62em * 2);
    font-size: clamp(1rem, 1.4vw, 1.12rem) !important;
    line-height: 1.62 !important;
}

.emdad-news-index--theme-spotlight .emdad-news-card p {
    display: -webkit-box !important;
}

.emdad-news-index--theme-spotlight .emdad-news-card__more {
    display: inline-flex !important;
    color: var(--en-card-blue) !important;
}

.emdad-news-index--theme-spotlight .emdad-news-card__image-badge {
    top: 13px;
    right: 13px;
    min-height: 29px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .76);
    background: rgba(255, 247, 237, .92);
    color: #a95e1f;
    font-size: .67rem;
    box-shadow: 0 6px 16px rgba(92, 61, 27, .12);
}

.emdad-news-index--theme-spotlight .emdad-news-card--featured {
    grid-column: auto !important;
    grid-row: auto !important;
}

.emdad-news-index--theme-spotlight .emdad-news-card__image,
.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__image {
    aspect-ratio: 16 / 10 !important;
}

.emdad-news-index--theme-spotlight .emdad-news-card--featured .emdad-news-card__body {
    padding: 18px 19px 19px !important;
}

@media (max-width: 600px) {
    .emdad-news-index .emdad-news-grid {
        grid-auto-rows: auto;
        gap: 18px;
    }

    .emdad-news-index .emdad-news-card {
        min-height: 0;
        border-radius: 20px;
    }

    .emdad-news-index .emdad-news-card__body,
    .emdad-news-index--theme-spotlight .emdad-news-card__body {
        min-height: 255px;
        padding: 17px 17px 18px !important;
    }

    .emdad-news-index .emdad-news-card__meta {
        gap: 6px;
    }

    .emdad-news-index .emdad-news-card__meta time,
    .emdad-news-index .emdad-news-card__reading-time {
        padding-inline: 8px;
    }

    .emdad-news-index--theme-editorial .emdad-news-card__image {
        height: auto;
        min-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emdad-news-index .emdad-news-card,
    .emdad-news-index .emdad-news-card__image img,
    .emdad-news-index .emdad-news-card__more {
        transition: none;
    }
}

/* Ajax archive filters: appended separately to preserve project-specific card styles. */
.emdad-news-controls__filter-wrap {
    flex: 1;
    max-width: 890px;
}

.emdad-news-controls__actions {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) minmax(145px, .9fr) repeat(2, minmax(140px, .85fr)) auto;
    align-items: end;
    gap: 10px;
}

.emdad-news-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #526b83;
    font-size: .73rem;
    font-weight: 800;
}

.emdad-news-filter-field > span {
    padding-inline: 4px;
}

.emdad-news-controls .emdad-news-filter-field input,
.emdad-news-controls .emdad-news-filter-field select {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.emdad-news-controls .emdad-news-filter-field--date input {
    direction: ltr;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.emdad-news-filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.emdad-news-filter-submit,
.emdad-news-filter-reset {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 6px 14px;
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.emdad-news-filter-submit {
    background: linear-gradient(135deg, #287fdc, #55a9f6);
    color: #fff;
    box-shadow: 0 7px 16px rgba(40, 127, 220, .18);
}

.emdad-news-filter-reset {
    border-color: #f8c98d;
    background: #fff8ee;
    color: #b86609;
}

.emdad-news-filter-submit:hover,
.emdad-news-filter-reset:hover {
    transform: translateY(-1px);
}

.emdad-news-filter-submit:focus-visible,
.emdad-news-filter-reset:focus-visible {
    outline: 3px solid rgba(57, 140, 244, .25);
    outline-offset: 2px;
}

.emdad-news-controls__notice {
    margin: 9px 3px 0;
    padding: 8px 12px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff4f4;
    color: #a62323;
    font-size: .78rem;
    font-weight: 700;
}

.emdad-news-controls__notice[hidden] {
    display: none !important;
}

.emdad-news-results[aria-busy="true"] {
    min-height: 170px;
    opacity: .58;
    pointer-events: none;
    transition: opacity .18s ease;
}

@media (max-width: 1180px) {
    .emdad-news-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .emdad-news-controls__filter-wrap {
        max-width: none;
    }
}

@media (max-width: 850px) {
    .emdad-news-controls__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emdad-news-filter-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .emdad-news-controls {
        padding-inline: 14px;
    }

    .emdad-news-controls__actions {
        grid-template-columns: 1fr;
    }

    .emdad-news-filter-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .emdad-news-filter-submit,
    .emdad-news-filter-reset {
        min-height: 44px;
    }
}
