/*
Theme Name: Rocket25
Description: قالب Rocket25 - قالب إخباري حديث للمجلات والمواقع الإخبارية
Theme URI: https://www.almasaronline.com/
Author: Almasar Online
Author URI: https://www.almasaronline.com/
Version: 2.4.5
*/

/************************************/
/* bs-break-points: sm=0:575, md=576:767, lg=768:991, xl=992:1199, xxl=1200:1399 */
/************************************/

body {
    --site-gap: 1.25rem;
    --site-gap-negative: calc(var(--site-gap) * -1);
    --item-width-base: 32px;
    --item-width-factor: 10;
    --item-gap: var(--site-gap);
    --site-border-radius: 0.5rem;
    --site-border-radius-lg: 0.75rem;
    --site-border-radius-sm: 0.3rem;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --focus-ring: 0 0 0 3px rgba(var(--site-color-rgb), 0.2);
    --z-header: 100;
    --z-overlay: 120;
    --z-modal: 130;
}

body {
    --text-color-light: #1a1a2e;
    --text-color-dark: #E8E8EC;
    --text-muted-light: #6b7280;
    --text-muted-dark: #9ca3af;
    --shadow-color-light: rgba(0,0,0,0.06);
    --shadow-color-dark: rgba(0,0,0,0.35);
    --highlight-color-light: #FFF8E1;
    --highlight-color-dark: #564913;
    --text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    --divider-light: rgba(0,0,0,0.06);
    --divider-dark: rgba(255,255,255,0.08);
}

[data-theme="light"],
.light-theme {
    --site-bg-color: var(--site-bg-color-light);
    --bs-body-bg: var(--bg-color);
    --bg-color: var(--bg-color-light);
    --bg-color-2: var(--bg-color-light-2);
    --bg-color-3: var(--bg-color-light-3);
    --bs-border-color: var(--bg-color-3);
    --text-color: var(--text-color-light);
    --shadow-color: var(--shadow-color-light);
    --highlight-color: var(--highlight-color-light);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.12);
    --card-shadow-active: 0 1px 2px rgba(0,0,0,0.05);
    --text-muted: var(--text-muted-light);
    --divider: var(--divider-light);
    --select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    color: var(--text-color);
    color-scheme: light;
}

[data-theme="dark"],
.dark-theme {
    --site-bg-color: var(--site-bg-color-dark);
    --bs-body-bg: var(--bg-color);
    --bg-color: var(--bg-color-dark);
    --bg-color-2: var(--bg-color-dark-2);
    --bg-color-3: var(--bg-color-dark-3);
    --bs-border-color: var(--bg-color-3);
    --text-color: var(--text-color-dark);
    --shadow-color: var(--shadow-color-dark);
    --highlight-color: var(--highlight-color-dark);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.3);
    --card-shadow-active: 0 1px 2px rgba(0,0,0,0.15);
    --text-muted: var(--text-muted-dark);
    --divider: var(--divider-dark);
    --select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    color: var(--text-color);
    color-scheme: dark;
}

@media (min-width: 992px) {
    [data-visibility="mobile"] {
        display: none !important;
    }
}

@media (max-width: 991px) {
    [data-visibility="desktop"] {
        display: none !important;
    }
}

.bg-site-color {
    background-color: var(--site-color) !important;
}

/************************************/

body {
    overflow-y: scroll;
    background-color: var(--site-bg-color) !important;
    font-family: var(--site-font-family);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    overflow-wrap: break-word;
}

/************************************/

body {
    --bs-tertiary-bg: var(--bg-color-2) !important;
}

.modal-backdrop {
    --bs-backdrop-opacity: 0.7;
}

.dropdown-item {
    --bs-dropdown-link-active-bg: var(--site-color);
}

.btn-primary {
    --bs-btn-bg: rgba(var(--site-color-rgb), 1);
    --bs-btn-border-color: rgba(var(--site-color-rgb), 1);
    --bs-btn-hover-bg: rgba(var(--site-color-rgb), 0.8);
    --bs-btn-hover-border-color: rgba(var(--site-color-rgb), 0.8);
    --bs-btn-focus-shadow-rgb: var(--site-color-rgb);
    --bs-btn-active-bg: rgba(var(--site-color-rgb), 1);
    --bs-btn-active-border-color: rgba(var(--site-color-rgb), 1);
    --bs-btn-disabled-bg: rgba(var(--site-color-rgb), 1);
    --bs-btn-disabled-border-color: rgba(var(--site-color-rgb), 1);
}

.btn-outline-primary {
    --bs-btn-color: var(--site-color);
    --bs-btn-border-color: var(--site-color);
    --bs-btn-hover-bg: var(--site-color);
    --bs-btn-hover-border-color: var(--site-color);
    --bs-btn-focus-shadow-rgb: var(--site-color-rgb);
    --bs-btn-active-bg: var(--site-color);
    --bs-btn-active-border-color: var(--site-color);
    --bs-btn-disabled-color: var(--site-color);
    --bs-btn-disabled-border-color: var(--site-color);
}

.btn:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

.btn {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.form-control,
.form-select {
    transition: none;
    box-shadow: 0px 0px 0.25rem var(--bg-color-3) inset;
    background-clip: unset;
}

.input-group .form-control,
.input-group .form-select {
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--site-color);
    box-shadow: 0px 0px 0px 0.25rem rgba(var(--site-color-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--site-color);
    border-color: var(--site-color);
}

.input-group .input-group-text {
    background-color: var(--bg-color);
}

.text-primary {
    color: var(--site-color) !important;
}

.progress-bar {
    --bs-progress-bar-bg: var(--site-color) !important;
}

.table {
    --bs-border-color: var(--bg-color-3);
    --bs-table-color: unset !important;
    --bs-table-color-type: unset !important;
}

.table-dark {
    --bs-table-bg: var(--bg-color-dark);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--bs-table-striped-bg);
    --bs-table-striped-bg: var(--bg-color-2);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: unset !important;
    --bs-table-bg-state: var(--bg-color-2);
}

.table-fixed {
    table-layout: fixed;
}

.table-responsive {
    margin-right: var(--site-gap-negative);
    margin-left: var(--site-gap-negative);
    padding-right: var(--site-gap);
    padding-left: var(--site-gap);
}

th {
    font-weight: inherit;
}

.row {
    --bs-gutter-x: var(--site-gap) !important;
}

.modal {
    top: var(--adminbar-height, 0px);
}

.container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
    --bs-gutter-x: calc(var(--site-gap) * 2) !important;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin-bottom: 0px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-feature-settings: "kern" 1;
}

h1, .h1 {
    font-size: clamp(1.6em, 4vw, 2.5em);
    font-weight: 800;
    line-height: 1.2;
}

h2, .h2 {
    font-size: clamp(1.3em, 3vw, 1.7em);
    font-weight: 700;
    line-height: 1.3;
}

h3, .h3 {
    font-size: clamp(1.1em, 2vw, 1.3em);
    font-weight: 700;
    line-height: 1.35;
}

h4, .h4 {
    font-size: 1em;
}

h5, .h5 {
    font-size: 0.9em;
}

h6, .h6 {
    font-size: 0.8em;
}

.dir-rtl {
    direction: rtl;
}

.dir-ltr {
    direction: ltr;
}

.rtl [type=number] {
    direction: rtl;
}

.fs-90 {
    font-size: 0.9em;
}

.fs-85 {
    font-size: 0.85em;
}

.fs-80 {
    font-size: 0.8em;
}

a {
    color: var(--text-color);
    text-decoration: var(--text-decoration, none);
    word-break: break-word;
    transition: color var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.rtl a {
    text-underline-offset: 0.4em;
}

.ltr a {
    text-underline-offset: 0.2em;
}

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

button, input, select, textarea, table, iframe, video, .wp-video {
    max-width: 100%;
}

.form-control, .form-select {
    color: unset !important;
}

.form-select {
    background-image: var(--select-bg-img) !important;
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.video-outer {
    margin-bottom: 1em;
}

.aligncenter {
    display: table !important;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

/************************************/

#site::after {
    content: "";
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: #000000;
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    opacity: 0;
    z-index: 110;
}

body.overlay-on {
    overflow: hidden;
}

body.overlay-on #site::after {
    visibility: visible;
    opacity: 0.7;
}

[aria-hidden=true] a[href],
[aria-hidden=true] area[href], 
[aria-hidden=true] input:not([disabled]), 
[aria-hidden=true] select:not([disabled]), 
[aria-hidden=true] textarea:not([disabled]), 
[aria-hidden=true] button:not([disabled]), 
[aria-hidden=true] [tabindex]:not([disabled]), 
[aria-hidden=true] [contenteditable=true]:not([disabled]) {
    visibility: hidden;
}

/************************************/
  
.content-loading {
    font-size: 2.2em;
    text-align: center;
    animation: pulse-loading 1.2s ease-in-out infinite;
    display: none;
}
  
@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(0.98);
    }
}

/************************************/

.action-link {
    display: inline-flex;
    gap: 0.5em;
    padding: 0.5em;
    border-radius: var(--site-border-radius);
}

.action-link svg {
    width: 1.5em;
    height: 1.5em;
}

.action-link .title {
    display: none;
}

@media (hover: hover) {
    .action-link:hover {
        background-color: var(--bg-color-2);
    }
}

@media (hover: none) {
    .action-link:active {
        background-color: var(--bg-color-2);
    }
}

/************************************/

.search-form {
    width: 100%;
    max-width: 500px;
    --search-padding: 0.6em;
}

.search-form .label {
    display: inline-block;
    margin-bottom: 0.5em;
}

.search-form-inner {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: var(--bg-color-2);
    border: 1px solid var(--bg-color-3);
    border-radius: var(--site-border-radius-lg);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.search-form-inner:focus-within {
    border-color: var(--site-color);
    box-shadow: var(--focus-ring);
    background-color: var(--bg-color);
}

.bg-site-color .search-form-inner {
    background-color: var(--bg-color-2);
}

.search-form-inner[data-theme="light"] {
    background-color: var(--bg-color-light);
}

.search-field,
.search-select,
.search-submit,
.search-icon {
    font-size: 1em;
    padding: var(--search-padding);
    border: none;
    border-radius: 0px;
}

.search-field {
    flex-grow: 1;
}

.search-field,
.search-field:focus,
.search-select,
.search-select:focus {
    background-color: transparent;
    transition: none;
    box-shadow: none;
}

.rtl .search-select,
.rtl .search-select:focus {
    border-left: 1px solid var(--bg-color-2);
}

.ltr .search-select,
.ltr .search-select:focus {
    border-right: 1px solid var(--bg-color-2);
}

.search-select option {
    color: var(--text-color-light);
    background-color: #FFFFFF;
}

.search-submit {
    background-color: transparent;
    display: none;
}

.ltr .search-form .search-icon,
.ltr .search-form .search-submit {
    transform: scale(-1,1);
}

/************************************/

.site-copyrights {
    text-align: center;
}

.site-copyrights p:last-of-type {
    margin-bottom: 0px;
}

/************************************/

.theme-switch {
    gap: 0px;
}

.theme-switch .site-icon {
    transition: transform 0.3s;
}

body[data-theme="dark"] .theme-switch .site-icon-sun,
body[data-theme="light"] .theme-switch .site-icon-moon {
    transform: scale(0.6);
}

/************************************/

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    --text-decoration: none;
    --text-decoration-hover: none;
}

.social-links a {
    display: inline-flex;
    padding: 0.5em;
    align-items: center;
    gap: 0.5em;
    line-height: 1;
    font-weight: bold;
}

.social-links a svg {
    width: 1.5em;
    height: 1.5em;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-links a {
    border-radius: var(--site-border-radius);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--bg-color-2);
    transform: translateY(-1px);
}

/************************************/

#overlay-loading {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 100;
     align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.7);
    display: none;
}

#overlay-loading .content-loading {
    display: block;
}

/************************************/

#overlay-menu-outer {
    position: fixed;
    top: 0px;
    bottom: 0px;
    max-width: 100%;
    z-index: 120;
}

.rtl #overlay-menu-outer {
    right: 0px;
}

.ltr #overlay-menu-outer {
    left: 0px;
}

#overlay-menu {
    --vspacing: var(--site-gap);
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-color);
}

#overlay-menu .layout-row {
    padding-right: var(--site-gap);
    padding-left: var(--site-gap);
}

#overlay-menu .layout-column {
    gap: var(--hspacing) 4em;
}

#overlay-menu .layout-item {
    align-items: flex-start;
    flex-basis: 200px;
}

#overlay-menu .layout-row.sticky {
    position: sticky;
    background-color: var(--bg-color);
    box-shadow: 0 1px 0 var(--divider);
    z-index: 10;
}

#overlay-menu .layout-row:first-of-type.sticky {
    top: 0px;
}

#overlay-menu .layout-row:last-of-type.sticky {
    bottom: 0px;
}

.rtl.overlay-panels-over-body #overlay-menu-outer {
    transform: translateX(200%);
}

.ltr.overlay-panels-over-body #overlay-menu-outer {
    transform: translateX(-200%);
}

body.overlay-panels-over-body.overlay-menu-opened #overlay-menu-outer {    
    transform: translateX(0);
}

body.overlay-panels-over-body #overlay-menu-outer {
    width: var(--overlay-menu-width-sm, 300px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 576px) {
    body.overlay-panels-over-body #overlay-menu-outer {
        width: var(--overlay-menu-width-md, 340px);
    }
}

body.overlay-panels-below-header #overlay-menu-outer {
    width: 100%;
}

#overlay-menu-outer .overlay-close {
    top: 1em;
}

.rtl #overlay-menu-outer .overlay-close {
    left: -10px;
    transform: translateX(-100%);
}

.ltr #overlay-menu-outer .overlay-close {
    right: -10px;
    transform: translateX(100%);
}

/************************************/

#overlay-search-outer {
    position: fixed;
    top: 0px;
    right: 0px;
    left: 0px;
    z-index: 130;
}

#overlay-search {
    height: 100%;
    display: flex;
    justify-content: center;
    padding: 3em var(--site-gap);
    background-color: var(--bg-color);
    backdrop-filter: blur(12px);
}

body.overlay-panels-over-body #overlay-search-outer {
    transform: translateY(-100%);
    visibility: hidden;
}

body.overlay-panels-over-body.overlay-search-opened #overlay-search-outer {
    transform: translateY(0);
    visibility: visible;
}

#overlay-search .overlay-close {
    right: 50%;
    bottom: -10px;
    transform: translate(50%, 100%);
}

/************************************/

:is(#overlay-menu-outer, #overlay-search-outer) > .container {
    height: 100%;
}

:is(#overlay-menu-outer, #overlay-search-outer) .container {
    padding: 0px !important;
}

body.overlay-panels-over-body :is(#overlay-menu-outer, #overlay-search-outer) {
    top: var(--adminbar-height, 0px);
}

body.overlay-panels-below-header :is(#overlay-menu-outer, #overlay-search-outer) {
    background-color: var(--bg-color);
    top: var(--header-height, 0px);
    visibility: hidden;
}

body.overlay-panels-below-header.overlay-menu-opened #overlay-menu-outer, body.overlay-panels-below-header.overlay-search-opened #overlay-search-outer {
    visibility: visible;
}

body.overlay-panels-over-body :is(#overlay-menu-outer, #overlay-search-outer) > .container {
    max-width: unset !important;
}

/************************************/

body.overlay-panels-below-header #header {
    z-index: 150;
}

body.overlay-panels-below-header #overlay-search-outer {
    bottom: 0px;
}

.overlay-close {
    position: fixed;
    background: transparent !important;
    color: #EEEEEE;
    border-radius: 100%;
    z-index: 10;
}

.overlay-close:hover {
    color: #FFFFFF;
    background: transparent !important;
}

/************************************/

#header, #main, #footer {
    position: relative;
}

#header {
    z-index: 30;
}

#main {
    z-index: 10;
}

#footer {
    z-index: 20;
}

/************************************/

#header {
    box-shadow: 0 1px 0 var(--divider), 0 4px 20px rgba(0,0,0,0.04);
    border-top: 4px solid var(--site-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#footer {
    border-top: 4px solid var(--site-color);
}

/************************************/

.layout-row[data-theme="light"] [data-display="dark"],
.layout-row[data-theme="dark"] [data-display="light"],
body[data-theme="light"] [data-theme=""] [data-display="dark"],
body[data-theme="dark"] [data-theme=""] [data-display="light"] {
    display: none !important;
}

.layout-row[data-visibility="mobile"] + .layout-row[data-visibility="mobile"],
.layout-row[data-visibility="desktop"] + .layout-row[data-visibility="desktop"],
.layout-row[data-visibility=""] + .layout-row[data-visibility=""] {
    border-top: var(--border-sep-width, 0px) solid var(--bg-color-2);
}

/************************************/

.layout-row {
    --hspacing: 1em;
    position: relative;
    padding-top: var(--vspacing, var(--hspacing));
    padding-bottom: var(--vspacing, var(--hspacing));
}

.layout-row-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hspacing);
    position: relative;
}

.layout-column {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hspacing);
}

.layout-column[data-position="middle"] {
    flex-grow: 1;
}

.layout-column[data-position="start"].empty, .layout-column[data-position="end"].empty {
    display: none;
}

.layout-item {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.layout-item[data-content^="block_"] {
    flex-direction: column;
    align-items: unset;
}

.layout-item[data-content^="block_"] p:last-of-type {
    margin-bottom: 0px;
}

/************************************/

#header .layout-row,
#footer .layout-row {
    background-color: var(--bg-color);
}

/************************************/

#header {
    --vspacing: 8px;
    --border-sep-width: 1px;
}

body.header-dynamic #header,
body.header-fixed #header {
    position: sticky;
    top: var(--adminbar-height, 0px);
    right: 0px;
    left: 0px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.header-dynamic.scroll-down #header {
    transform: translateY(calc(-100% + var(--header-sticky-row-height, 0px)));
}

/************************************/

#footer {
    --vspacing: 24px;
}

#footer .layout-item:not([data-content="social_links"]) {
    font-size: 0.9em;
}

.theme-copyrights {
    padding: 1.2em;
    text-align: center;
    font-size: 0.8em;
    opacity: 0.6;
    border-top: 1px solid var(--divider);
    letter-spacing: 0.01em;
}

/************************************/

#main {
    min-height: 700px;
}

#main a:not(.btn) {
    text-decoration: var(--text-decoration, none);
}

#main a:not(.btn):hover {
    text-decoration: var(--text-decoration-hover, underline);
}

/************************************/

.site-logo {
    text-align: center;
}

.site-logo a {
    display: inline-block;
}

.site-logo img {
    max-width: var(--logo-max-width-sm, 140px);
}

@media (min-width: 576px) {
    .site-logo img {
        max-width: var(--logo-max-width-md, 200px);
    }
}

.site-logo .title {
    margin-bottom: 0px;
    font-weight: bold;
    display: none;
    white-space: nowrap;
}

/************************************/

body[data-theme="light"] :is(#header, #footer) .layout-row:not([data-theme="dark"]) .social-link,
body[data-theme="dark"] .layout-row[data-theme="light"] .social-link,
body[data-theme="light"] #overlay-menu-outer:not([data-theme="dark"]) .social-link,
body[data-theme="dark"] #overlay-menu-outer[data-theme="light"] .social-link,
body[data-theme="light"] .widget-content .social-link,
body[data-theme="light"] .primary-content-body .site-icon
{
    color: var(--color) !important;
}

/************************************/

.nav-menu {
    display: flex;
}

.nav-menu,
.nav-menu :is(ul, li, a, div) {
    flex-grow: 1;
    position: relative;
}

.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.nav-menu a { 
    display: flex;
    z-index: 5;
}

.nav-menu div { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em 0.4em;
    border-radius: var(--site-border-radius);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-menu .menu-item-icon,
.nav-menu .menu-item-image {
    text-align: center;
}

.nav-menu .menu-item-icon i {
    line-height: 1;
    font-size: 1.5em;
}

.nav-menu .menu-item-image img {
    max-width: 30px;
}

.nav-menu .menu-item-arrow {
    transition: transform 0.3s;
}

.nav-menu li.active > a > div > .menu-item-arrow {
    transform: rotate(180deg);
}

.nav-menu .menu-item:hover > a > div {
    background-color: var(--bg-color-2);
}

.nav-menu .menu-item:active > a > div {
    background-color: var(--bg-color-3);
}

/************************************/

.nav-menu li.menu-item[class*="current"] {
    --color-highlight: var(--site-color);
}

.nav-menu li.menu-item[class*="current"] > a {
    --color-highlight: var(--site-color);
}

/************************************/

#overlay-menu .nav-menu {
    max-width: 400px;
}

#overlay-menu .nav-menu ul {
    flex-direction: column;
}

#overlay-menu .nav-menu > ul > li {
    margin-right: calc(var(--site-gap) * -0.5);
    margin-left: calc(var(--site-gap) * -0.5);
}

#overlay-menu .nav-menu li:not(.no-toggle) > ul {
    display: none;
}

#overlay-menu .nav-menu a {
    cursor: pointer;
}

#overlay-menu .nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--bg-color-2), transparent);
    display: none;
}

#overlay-menu .nav-menu div {
    gap: 0em 1em;
    margin-top: 2px;
    margin-bottom: 1px;
    padding: 0.5em calc(var(--site-gap) * 0.5);
}

#overlay-menu .nav-menu .menu-item-title {
    flex-grow: 1;
}

#overlay-menu .nav-menu li.opened > .sub-menu {
    display: block;
}

#overlay-menu .nav-menu li.no-toggle > a .menu-item-arrow {
    display: none;
}

#overlay-menu .nav-menu li.opened > a .menu-item-arrow {
    transform: rotate(180deg);
}

/************************************/

:is(#header, #footer) .nav-menu div {
    padding: 0.5em 1em;
}

:is(#header, #footer) .nav-menu > ul > li > a > div {
    flex-wrap: wrap;
}

:is(#header, #footer) .nav-menu > ul > li > a :is(.menu-item-icon, .menu-item-image) {
    flex-basis: 100%;
}

#header .nav-menu ul ul {
    --sub-menu-gap: 1em;
    position: absolute;
    top: 100%;
    right: 50%;
    flex-direction: column;
    transform: translate(50%, 10px);
    width: var(--sub-menu-width, 250px);
    padding-top: var(--sub-menu-gap);
    padding-bottom: var(--sub-menu-gap);
    background: var(--bg-color);
    transition: 0.25s transform cubic-bezier(0.4, 0, 0.2, 1), 0.25s opacity;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

#header .nav-menu ul ul li {
    padding-right: var(--sub-menu-gap);
    padding-left: var(--sub-menu-gap);
}

#header .nav-menu ul li:not(.click):hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translate(50%, 0px);
}

#header .nav-menu ul li.click.active > ul {
    visibility: visible;
    opacity: 1;
    transform: translate(50%, 0px);
}

#header .nav-menu > ul > li > ul::before {
    content: "";
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    border: 10px solid transparent;
    border-bottom-color: var(--site-color);
}

#header .nav-menu ul ul .menu-item-title {
    flex-grow: 1;
}

#header .nav-menu ul ul li div {
    flex-wrap: nowrap;
}

.rtl #header ul ul .menu-item-arrow {
    transform: rotate(90deg);
}

.ltr #header .nav-menu ul ul .menu-item-arrow {
    transform: rotate(-90deg);
}

#header .nav-menu ul ul ul {
    transform: none !important;
    top: calc((var(--sub-menu-gap) * -1) - 2px);
    z-index: 7;
}

.rtl #header .nav-menu ul ul ul {
    right: 100%;
}

.ltr #header .nav-menu ul ul ul {
    left: 100%;
}

/************************************/

#footer .nav-menu {
    --vspacing: 6px;
}

#footer .nav-menu ul {
    justify-content: center;
}

#footer .nav-menu li {
    flex-grow: 0;
}

#footer .nav-menu ul ul {
    display: none;
}

/************************************/

#header .layout-row[data-visibility="mobile"] .nav-menu ul ul,
#header .layout-row[data-visibility="mobile"] .menu-item-arrow {
    display: none;
}

#footer .nav-menu ul ul,
#footer .nav-menu .menu-item-arrow {
    display: none;
}

/************************************/

.rtl #overlay-menu .nav-menu ul ul {
    margin-right: var(--site-gap);
}

.ltr #overlay-menu .nav-menu ul ul {
    margin-left: var(--site-gap);
}

#header .nav-menu .sub-menu {
    border-top: 3px solid var(--site-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 0 0 var(--site-border-radius) var(--site-border-radius);
    backdrop-filter: blur(8px);
}

#header .nav-menu > ul > .menu-item::after {
    content: "";
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    bottom: calc(var(--vspacing) * -1);
    border-bottom: 3px solid var(--site-color);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#header .nav-menu > ul > .menu-item[class*="current"]::after,
#header .nav-menu > ul > .menu-item:hover::after {
    width: 100%;
    display: none;
}

#header .nav-menu > ul > .menu-item[class*="current"]::after {
    display: block;
}

/************************************/

.widgets-area {
    position: relative;
}

.widgets-area-inner {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--site-gap) * -0.5);
    margin-left: calc(var(--site-gap) * -0.5);
    padding-top: calc(var(--site-gap) * 0.5);
    padding-bottom: calc(var(--site-gap) * 0.5);
}

.widgets-area-inner .widgets-area-inner {
    margin: 0px !important;
    padding: 0px !important;
}

.widgets-area .widget {
    padding: calc(var(--site-gap) * 0.5);
}

.widgets-area .widgets-list {
    padding: 0px !important;
}

.widgets-list.boxed {
    padding: calc(var(--site-gap) * 0.5) !important;
}

.widgets-list.boxed .widgets-list-inner {
    padding: calc(var(--site-gap) * 0.5) !important;
}

.widgets-list .widgets-list-inner {
    border-radius: var(--site-border-radius);
}

.widgets-list .widgets-list-inner > .widget-header {
    padding: calc(var(--site-gap) * 0.5);
}

.widgets-list .widgets-list-inner > .widget-header h3 {
    margin-bottom: 0px;
}

.widgets-area .widget {
    max-width: 100%;
    flex-basis: 100%;
}
@media (min-width: 992px) {
    .widgets-area .widget-width-75 {
        flex-basis: 75%;
    }
    .widgets-area .widget-width-66 {
        flex-basis: 66.6666%;
    }
    .widgets-area .widget-width-50 {
        flex-basis: 50%;
    }
    .widgets-area .widget-width-33 {
        flex-basis: 33.3333%;
    }
    .widgets-area .widget-width-25 {
        flex-basis: 25%;
    }
}

.widgets-area .widget::before, .widgets-area .widget::after {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: -1;
}

.widget .container, .widgets-list .container {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/************************************/

#primary-error {
    text-align: center;
}

#primary-error h1 {
    margin-bottom: 1rem;
}

#primary-error .search-form {
    margin: 0px auto;
}

.error-icon {
    margin-bottom: 2rem;
    font-size: 6em;
    opacity: 0.1;
    line-height: 1;
    color: var(--site-color);
    animation: pulse-loading 3s ease-in-out infinite;
}

/************************************/

.archive-description {
    position: relative;
}

.archive-description p:last-child {
    margin-bottom: 0px;
}

.archive-description a {
    --text-decoration: underline;
}

/************************************/

body:not([class*="paged"]) .nav-pages[data-position="top"] {
    display: none;
}

.nav-pages-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    --text-decoration-hover: none;
}

.nav-pages-inner > * {
    display: inline-block;
    padding: 0.5em 1em;
}

.nav-show-more {
    display: none;
}

/************************************/

.archive-links .label {
    display: inline-block;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.archive-links-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: -10px;
    padding: 10px;
    --text-decoration-hover: none;
}

@media (max-width: 575px) {
    .archive-links-inner {
        margin-right: var(--site-gap-negative);
        margin-left: var(--site-gap-negative);
        padding-right: var(--site-gap);
        padding-left: var(--site-gap);
        flex-wrap: nowrap;
        overflow-x: scroll;
        white-space: nowrap;
    }
    .archive-links-inner::-webkit-scrollbar {
        width: 0.1em;
    }
    .archive-links-inner::-webkit-scrollbar-thumb {
        background-color: none;
    }
    .archive-links-inner a.current {
        order: 0;
    }
}

.archive-links-inner a {
    flex-shrink: 0;
    order: 1;
    display: inline-block;
    margin: -4px;
    padding: 4px;
}

.archive-links-inner a div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.5em 1em;
}

/************************************/

.primary-header,
.primary-content {
    position: relative;
    padding-top: var(--site-gap);
    padding-bottom: var(--site-gap);
}

.primary-title {
    display: flex;
    gap: 1em;
}

.primary-title img {
    max-width: 60px;
    border-radius: var(--site-border-radius);
}

.primary-title-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.archive-header,
.singular-header {
    position: relative;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(180deg, rgba(var(--site-color-rgb), 0.04) 0%, transparent 100%);
    border: 1px solid var(--divider);
    border-radius: var(--site-border-radius-lg);
    overflow: hidden;
}

.archive-header::before,
.singular-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--site-color), rgba(var(--site-color-rgb), 0.2));
}

.secondary-title {
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.primary-content-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .primary-content-inner {
        flex-direction: row;
        justify-content: center;
    }
}

body.primary-boxed .primary-content-inner {
    gap: var(--site-gap);
}

body.primary-notboxed .primary-content-inner {
    gap: var(--site-gap) calc(var(--site-gap) * 2);
}

.primary-content-primary {
    max-width: 100%;
    flex-basis: 100%;
    order: -1;
}

@media (min-width: 992px) {
    #widgets-area-archive_side, #widgets-area-singular_side {
        flex-basis: 300px;
        flex-shrink: 0;
    }
}

.item-kicker {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 0.1em;
    font-size: 0.76em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.item-kicker a,
.item-kicker span {
    display: inline-flex;
    align-items: center;
    padding: 0.45em 0.8em;
    border-radius: 999px;
    color: var(--site-color);
    background-color: rgba(var(--site-color-rgb), 0.08);
    border: 1px solid rgba(var(--site-color-rgb), 0.16);
}
.item-content > .post-meta {
    font-size: 0.78em;
    opacity: 1;
    color: var(--text-muted);
}
.item-content > .post-meta .meta-content a {
    color: inherit;
}
.item-description {
    color: var(--text-muted);
    line-height: 1.8;
}
.item-description p {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.primary-header-inner, .primary-content-content, .primary-content-header {
    display: flex;
    flex-direction: column;
    gap: var(--site-gap);
}

.items-list .style-overlay .item-kicker a {
    color: #FFFFFF;
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.primary-header-inner {
    position: relative;
    z-index: 5;
}
@media (min-width: 992px) {
    .archive-content .posts-list > .item:first-child .item-content {
        gap: 0.75em;
    }

    .archive-content .posts-list > .item:first-child .item-title {
        font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
        line-height: 1.2;
    }

    .archive-content .posts-list > .item:first-child .item-description {
        font-size: 0.96em;
    }
}

body.primary-notboxed .primary + .primary {
    border-top: 1px solid var(--bg-color-2);
}
.singular-story-shell,
.singular-story-support {
    display: flex;
    flex-direction: column;
    gap: var(--site-gap);
}
.singular-story-intro,
.singular-story-actions,
.singular-story-body-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.singular-story-intro > :is(.singular-share, .singular-meta),
.singular-story-actions > :is(.singular-share, .singular-tags) {
    padding: 0.95rem 1rem;
    background-color: var(--bg-color-2);
    border: 1px solid var(--divider);
    border-radius: var(--site-border-radius-lg);
}
.singular-story-body-wrap {
    padding: clamp(1rem, 2vw, 1.35rem);
    background-color: var(--bg-color);
    border: 1px solid var(--divider);
    border-radius: var(--site-border-radius-lg);
    box-shadow: var(--card-shadow);
}
.singular-story-actions {
    padding-top: 0.25rem;
}
.singular-story-support {
    padding-top: 0.5rem;
}

body.primary-boxed.archive-primary-header-before .primary-archive .primary-header + .primary-content,
body.primary-boxed.singular-primary-header-before .primary-singular .primary-header + .primary-content {
    margin-top: calc(var(--site-gap) * -1);
}

body.primary-boxed.archive-primary-header-before_with_overlay .primary-archive .breadcrusmbs + .primary-header,
body.primary-boxed.singular-primary-header-before_with_overlay .primary-singular .breadcrumbs + .primary-header {
    margin-top: var(--site-gap);
}

/************************************/

#widgets-area-archive_side, #widgets-area-singular_side {
    margin-top: var(--site-gap-negative);
    margin-bottom: var(--site-gap-negative);
}

#widgets-area-singular_end {
    margin-bottom: var(--site-gap-negative);
}

.primary .widgets-area .container {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

body.side-layouts-fixed :is(#widgets-area-archive_side, #widgets-area-singular_side) .container {
    will-change: top;
    position: sticky;
    top: var(--adminbar-height, 0px);
}

body.side-layouts-fixed.header-dynamic.scroll-up :is(#widgets-area-archive_side, #widgets-area-singular_side) .container,
body.side-layouts-fixed.header-fixed :is(#widgets-area-archive_side, #widgets-area-singular_side) .container {
    top: var(--header-height, 0px);
}

body.side-layouts-fixed.header-dynamic.scroll-down :is(#widgets-area-archive_side, #widgets-area-singular_side) .container {
    top: calc(var(--adminbar-height, 0px) + var(--header-sticky-row-height, 0px));
}

/************************************/

.primary-content-body + .primary-content-body {
    margin-top: var(--site-gap);
}

body.primary-notboxed .primary {
    background-color: var(--bg-color);
}

body.primary-notboxed .primary .widget.boxed > .widget-inner,
.primary .primary-content-content .widget.boxed > .widget-inner 
{
    box-shadow: var(--card-shadow, 0 2px 12px rgba(0,0,0,0.06));
}

body.primary-notboxed.singular-primary-header-before .primary-singular .primary-header,
body.primary-notboxed.archive-primary-header-before .primary-archive .primary-header {
    border-bottom: 1px solid var(--bg-color-2);
}

/************************************/

.widget.boxed > .widget-inner,
body.primary-boxed .primary-content-body,
body.primary-boxed.singular-primary-header-before .primary-singular .primary-header-inner,
body.primary-boxed.archive-primary-header-before .primary-archive .primary-header-inner,
.common-container {
    padding: var(--widget-inner-padding, var(--site-gap));
    background-color: var(--bg-color);
    border-radius: var(--site-border-radius-lg);
    border-top: 2px solid var(--site-color);
    box-shadow: var(--boxed-content-shadow, var(--card-shadow));
    transition: box-shadow var(--transition-normal);
}

@media (max-width: 575px) {
    body.primary-boxed:not(.archive-primary-header-before_with_overlay) .primary-archive .primary-header-inner,
    body.primary-boxed:not(.singular-primary-header-before_with_overlay) .primary-singular .primary-header-inner,
    body.primary-boxed .primary-content-body {
        margin-right: calc(var(--site-gap-negative) + var(--boxed-primary-offset, 0px));
        margin-left: calc(var(--site-gap-negative) + var(--boxed-primary-offset, 0px));
        border-radius: var(--boxed-primary-radius, 0px) !important;
    }
}

@media (max-width: 575px) {
    .widget.boxed > .widget-inner,
    .common-container {
        margin-right: calc(var(--site-gap-negative) + var(--boxed-widget-offset, 0px));
        margin-left: calc(var(--site-gap-negative) + var(--boxed-widget-offset, 0px));
        border-radius: var(--boxed-widget-radius, 0px) !important;
    }
    .widgets-list.boxed .widgets-list-inner {
        margin-right: calc(var(--site-gap-negative) + var(--boxed-widget-offset, 0px));
        margin-left: calc(var(--site-gap-negative) + var(--boxed-widget-offset, 0px));
        border-radius: var(--boxed-widget-radius, 0px) !important;
    }
}

.content-sticky {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    background-color: var(--bg-color);
    border-radius: var(--site-border-radius);
}

body.primary-boxed .content-sticky {
    padding-right: var(--site-gap);
    padding-left: var(--site-gap);
}

body.primary-boxed .primary-content-body .content-sticky {
    margin-right: calc(var(--site-gap-negative) + var(--boxed-sticky-offset, 0px));
    margin-left: calc(var(--site-gap-negative) + var(--boxed-sticky-offset, 0px));
}

@media (max-width: 575px) {
    .primary-content-body .content-sticky {
        margin-right: calc(var(--site-gap-negative) + var(--boxed-sticky-offset, 0px));
        margin-left: calc(var(--site-gap-negative) + var(--boxed-sticky-offset, 0px));
        padding-right: var(--site-gap);
        padding-left: var(--site-gap);
        border-radius: var(--boxed-sticky-radius, 0px) !important;
    }
}

.content-sticky.sticky-top.pinned {
    box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08), 0 1px 0 var(--divider);
}

.content-sticky.sticky-bottom.pinned {
    box-shadow: 0 -4px 20px -4px rgba(0,0,0,0.08), 0 -1px 0 var(--divider);
}

/************************************/

body.singular-primary-header-before_with_overlay .primary-singular .primary-header,
body.archive-primary-header-before_with_overlay .primary-archive .primary-header {
    display: flex;
    min-height: var(--overlay-header-min-height, 45vh);
    background-color: #161616;
    background-size: cover;
    background-position: var(--overlay-header-background-position, center);
}

body.singular-primary-header-before_with_overlay .primary-singular .primary-header > .container,
body.archive-primary-header-before_with_overlay .primary-archive .primary-header > .container {
    align-self: flex-end;
}

body.singular-primary-header-before_with_overlay .primary-singular .primary-header::after,
body.archive-primary-header-before_with_overlay .primary-archive .primary-header::after {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.2) 100%);
}

body.singular-primary-header-before_with_overlay .singular-image,
body.singular-primary-header-before_with_overlay .singular-content .singular-meta {
    display: none;
}

/************************************/

.breadcrumbs {
    font-size: 0.8em;
    opacity: 0.85;
    letter-spacing: 0.01em;
}

.breadcrumbs .sep {
    opacity: 0.4;
    margin: 0 0.1em;
}

.rtl .breadcrumbs .sep .site-icon {
    transform: rotate(90deg);
}

.ltr .breadcrumbs .sep .site-icon {
    transform: rotate(-90deg);
}

.primary > .breadcrumbs {
    padding-top: var(--site-gap);
}

/************************************/

.wp-block-image :is(.aligncenter, .alignleft, .alignright) {
    display: block;
}

.wp-block-embed {
    overflow-wrap: unset !important;
}

.wp-caption {
    display: inline-block;
}

.wp-caption img {
    border-radius: var(--site-border-radius);
    position: relative;
    z-index: 1;
}

.wp-caption-text {
    margin-top: -0.5em;
    padding: 0.4em 1em;
    padding-top: 0.8em;
    font-size: 0.8em;
    opacity: 0.85;
    text-align: center;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius);
    font-style: italic;
}

.wp-caption, .wp-block-image {
    position: relative;
    max-width: 100%;
    width: auto !important;
}

.singular-body .singular-image {
    margin-bottom: 1.5em;
}

.singular-image-inner {
    margin-bottom: 0px;
    position: relative;
    margin: 0px auto;
}

.singular-image-inner img {
    width: 100%;
    position: relative;
    object-fit: cover;
    border-radius: var(--site-border-radius-lg);
    z-index: 1;
    transition: opacity var(--transition-fast);
}

.singular-body {
    position: relative;
}

.layout-row-outer[data-name="singular_middle"] {
    margin-top: var(--site-gap);
    margin-bottom: var(--site-gap);
}

.singular-body .singular-share {
    margin-bottom: 1.5em;
}

/************************************/

#comments {
    --depth-spacing: 2em;
    margin-top: var(--site-gap);
    margin-bottom: var(--site-gap);
}

#comments .widget-content {
    font-size: 0.9em;
}

.comments-item {
    display: flex;
    flex-direction: column;
    gap: var(--site-gap);
    margin-right: auto;
    margin-left: auto;
    max-width: 600px;
}

.comments-lists.has-avatars {
    --depth-spacing: 50px;
}

.rtl .comments-lists.has-avatars {
    padding-right: var(--depth-spacing);
}

.ltr .comments-lists.has-avatars {
    padding-left: var(--depth-spacing);
}

.comments-list, .comments-list .children {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.rtl .comment .comment {
    margin-right: var(--depth-spacing);;
}

.ltr .comment .comment {
    margin-left: var(--depth-spacing);;
}

.comment-body {
    position: relative;
    margin-bottom: 2px;
    padding: calc(var(--site-gap) * 0.7);
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius-lg);
    border: 1px solid transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-body:hover {
    background-color: var(--bg-color-3);
    border-color: var(--divider);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1em;
}

.comment-meta .says {
    display: none;
}

.comment-meta .fn {
    min-width: 50px;
}

.comment-meta img {
    position: absolute;
    top: calc(var(--site-gap) * 0.5);
    width: 40px;
    border-radius: 100%;
}

.rtl .comment-meta img {
    right: -50px;
}

.ltr .comment-meta img {
    left: -50px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment.byteam > .comment-body .comment-author::before, .comment.bypostauthor > .comment-body .comment-author::after {
    content: "\2713";
    color: #FFFFFF;
    background-color: var(--site-color);
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    border-radius: 100%;
    font-weight: bold;
    text-align: center;
}

.comment-metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.comment-content p:last-child {
    margin-bottom: 0px;
}

.comment .edit-link a {
    display: inline-block;
    padding: 0.2em 0.5em;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius);
}

.comment .edit-link {
    --text-decoration-hover: none;
}

.comment .edit-link a:hover {
    background-color: var(--bg-color-3);
}

.comment .reply {
    margin-top: 1em;
    --text-decoration-hover: none;
}

.comment .reply a {
    display: inline-block;
    padding: 0.3em 1.2em;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius);
    font-size: 0.85em;
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.comment .reply a:hover {
    background-color: var(--site-color);
    color: #FFFFFF;
}

.comment-respond {
    margin-top: 1em;
    margin-bottom: 1em;
}

.comment-respond .comment-reply-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
    font-weight: bold;
}

.comment-respond .logged-in-as a {
    --text-decoration: underline;
}

.comment-awaiting-moderation {
    flex-basis: 100%;
}

/************************************/

.nav-pages {
    z-index: 1;
}

.archive-links-inner a div,
.nav-pages-inner > * {
    background-color: var(--bg-color-2);
    border: 1.5px solid var(--bg-color-3);
    border-radius: var(--site-border-radius);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.archive-links-inner a:hover div,
.nav-pages-inner a:hover {
    background-color: var(--site-color);
    border-color: var(--site-color);
    color: #FFFFFF;
}

.archive-links-inner a:active div,
.nav-pages-inner a:active {
    background-color: var(--bg-color-2);
}

.archive-links-inner a.current div,
.nav-pages-inner > .current {
    border-color: var(--site-color);
    background-color: var(--site-color);
    color: #FFFFFF;
}

.nav-pages-inner > .current {
    font-size: 1.2em;
}

.singular-image-caption {
    margin-top: -0.5em;
    padding: 0.4em 1em;
    padding-top: 0.8em;
    font-size: 0.8em;
    opacity: 0.85;
    text-align: center;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius);
    font-style: italic;
}

/************************************/

.singular-meta {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 0.9em;
}

.singular-meta-avatar {
    flex-basis: 0;
}

.singular-meta-avatar a {
    display: inline-block;
}

.singular-meta-avatar img {
    max-width: 50px;
    padding: 2px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid var(--bg-color-3);
    transition: box-shadow var(--transition-fast);
}

.singular-meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em 2em;
}

.singular-meta-avatar + .singular-meta-items .post-meta-item[data-type="author_name"] .meta-labelX {
    display: none;
}

.singular-meta .post-meta-item {
    display: flex;
    gap: 0em 1em;
}

.singular-meta .term-sep::after {
    margin-right: 0.5em;
    margin-left: 0.5em;
    content: "\2022";
    opacity: 0.6;
}

.singular-meta .meta-icon {
    display: none;
}

.singular-meta .meta-label {
    opacity: 0.8;
}

.singular-meta .meta-label::after {
    content: ":";
    display: none;
}

.singular-meta .meta-content {
    flex-grow: 1;
}

/************************************/

.singular-share {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 0.9em;
    --text-decoration: none;
    --text-decoration-hover: none;
}

.singular-share-inner {
    display: flex;
    align-self: stretch;
}

.singular-share-inner a {
    flex-grow: 1;
    flex-basis: 0;
    flex-direction: column;
    gap: 0.2em 0.5em;
    padding: 0.8em 1em;
    position: relative;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.singular-share-inner a {
    display: none;
}

.singular-share-inner a:is([data-site_name="facebook"], [data-site_name="x.com"], [data-site_name="whatsapp"], [data-site_name="more"]) {
    display: flex;
}

.singular-share-inner a::after {
    content: "";
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 0px;
    height: 2px;
    background-color: var(--site-color);
    transition: 0.3s width cubic-bezier(0.22, 1, 0.36, 1);
}

.singular-share-inner a::after {
    bottom: -2px;
}

.singular-share-inner a:hover::after {
    width: 100%;
}

.singular-share-inner .social-site-title {
    display: none;
}

.singular-share-inner .social-site-icon {
    font-size: 1.9em;
    transition: 0.3s transform cubic-bezier(0.22, 1, 0.36, 1);
}

.singular-share-inner .social-site-icon .site-icon {
    display: block;
}

.ltr .singular-share-inner .site-icon-share {
    transform: scale(-1);
}

/************************************/

.singular-tags {
    font-size: 0.9em;
}

.singular-tags .label {
    display: inline-block;
    margin-bottom: 0.5em;
}

.singular-tags-inner {
    --text-decoration-hover: none;
}

.singular-tags-inner a {
    display: inline-block;
    margin: -4px;
    padding: 6px;
}

.singular-tags-inner a div {
    padding: 0.5em 0.9em;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius);
    border: 1px solid transparent;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.singular-tags-inner a:hover div {
    background-color: rgba(var(--site-color-rgb), 0.08);
    border-color: rgba(var(--site-color-rgb), 0.2);
    color: var(--site-color);
}

.singular-tags-inner a:active div {
    background-color: var(--bg-color-2);
}

/************************************/

.singular-terms {
    font-size: 0.9em;
}

.singular-terms-inner {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5em;
    --text-decoration-hover: none;
}

.singular-terms-inner a {
    padding: 0.3em 1em;
    border: 2px solid var(--bg-color-3);
    border-radius: var(--site-border-radius);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.singular-terms-inner a:hover {
    border-color: var(--site-color);
    background-color: rgba(var(--site-color-rgb), 0.05);
}

/************************************/

/* Original .singular-author-block — superseded by Section 1 + Section 26 */
/* Original .singular-navigation   — superseded by Section 9 + Section 26 */

/************************************/

.continue-reading-wrap {
    position: absolute;
    right: 0px;
    bottom: 0px;
    left: 0px;
    padding: 2em;
    padding-top: 14em;
    text-align: center;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--site-bg-color-rgb, 255,255,255), 0.1) 20%, var(--bg-color) 85%);
    z-index: 15;
    display: none;
}

html:not(.no-js) .continue-reading-wrap {
    display: block;
}

html:not(.no-js) .primary.continue-reading-on .singular-body:not(.continue-reading-removed), html:not(.no-js) .archive-description.continue-reading-on:not(.continue-reading-removed) {
    max-height: var(--continue-reading-max-height, 400px);
    overflow: hidden;
}

.primary.continue-reading-on .singular-body:not(.continue-reading-removed) {
    min-height: 100px;
}

.continue-reading-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.continue-reading-wrap .site-icon {
    transition: 0.3s;
}

.continue-reading-wrap .btn:hover .site-icon {
    transform: translateY(2px);
}

/************************************/

:is(.singular-body, .widget-content, .archive-description) :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6):not(.unstyled)  {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

:is(.singular-body, .widget-content, .archive-description) :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6):first-child:not(.unstyled) {
    margin-top: 0em;
}

:is(.singular-body, .widget-content, .archive-description) blockquote {
    position: relative;
    padding: 1.5em 2em;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius-lg);
    font-style: italic;
    font-size: 1.05em;
    line-height: 1.8;
}

.rtl :is(.singular-body, .widget-content, .archive-description) blockquote {
    border-right: 4px solid var(--site-color);
}

.ltr :is(.singular-body, .widget-content, .archive-description) blockquote {
    border-left: 4px solid var(--site-color);
}

:is(.singular-body, .widget-content, .archive-description) blockquote p:last-of-type {
    margin-bottom: 0px;
}

.singular-body {
    overflow-wrap: break-word;
}

.singular-body a {
    text-decoration-line: underline !important;
    text-decoration-color: rgba(var(--site-color-rgb), 0.3) !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 0.15em !important;
    transition: text-decoration-color var(--transition-fast), color var(--transition-fast) !important;
}

.singular-body a:hover {
    text-decoration-color: var(--site-color) !important;
    color: var(--site-color) !important;
}

.singular-body .btn {
    text-decoration: none !important;
}

/************************************/

.timer {
    max-width: 400px;
    margin-bottom: 1.5rem;
    padding: 1em 1.5em;
    background-color: var(--bg-color-2);
    border-radius: var(--site-border-radius-lg);
    text-align: center;
    border: 1px solid var(--bg-color-3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.timer-title {
    margin-bottom: 0.5em;
}

.timer-counter {
    display: flex;
    justify-content: center;
    gap: 1em;
    padding: 0.5em;
    background-color: var(--bg-color);
    border-radius: var(--site-border-radius);
}

.timer-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-counter-item .value {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--site-color);
}

/************************************/

#news-ticker {
    --bg-color: #B71C1C;
    --border-color: #7f1313;
    --text-color: #FFFFFF;
    position: fixed;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(135deg, #B71C1C 0%, #d32f2f 50%, #B71C1C 100%);
    border-top: 2px solid var(--border-color);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(200%);
    z-index: 80;
    backdrop-filter: blur(8px);
}

#news-ticker.active {
    transform: translateY(0);
}

#news-ticker-inner {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.1em;
}

@media (min-width: 576px) {
    #news-ticker-inner {
        font-size: 1.5em;
    }
}

#news-ticker-inner .news-ticker-item a {
    display: inline-block;
}

#news-ticker-inner .news-ticker-item a:hover {
    text-decoration: underline;
}

#news-ticker-inner, #news-ticker-inner a {
    color: var(--text-color);
}

.news-ticker-item:not(.active) {
    display: none;
}

.news-ticker-close {
    position: absolute;
    top: 0px;
    display: flex;
    align-items: center;
    padding: 0.3em;
    transform: translateY(-50%);
    line-height: 1;
    border: 2px solid var(--border-color);
    border-radius: 100%;
    background-color: var(--bg-color);
}

.news-ticker-close svg {
    height: 1.2em;
    width: 1.2em;
}

.rtl .news-ticker-close {
    left: 0px;
}

.ltr .news-ticker-close {
    right: 0px;
}

/************************************/

.inserted {
    text-align: center;
}

#header .inserted, #footer .inserted {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.inserted[data-location="header_after"],
.inserted[data-location="footer_before"],
.inserted[data-location="singular_after"],
.inserted[data-location="singular_comments_before"] {
    margin-top: var(--site-gap);
    margin-bottom: var(--site-gap);
}

body.primary-notboxed:not(.archive-primary-header-inside) .inserted[data-location="archive_header_after"],
body.primary-notboxed:not(.singular-primary-header-inside) .inserted[data-location="singular_header_after"],
body.primary-boxed.archive-primary-header-before_with_overlay .inserted[data-location="archive_header_after"],
body.primary-boxed.singular-primary-header-before_with_overlay .inserted[data-location="singular_header_after"]
{
    margin-top: var(--site-gap);
}

.inserted[data-location="singular_content_primary_end"] {
    margin-top: var(--site-gap);
}

.singular-body .inserted {
    margin-bottom: 1rem;
}

.inserted[data-location="sticky"] {
    position: fixed;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: var(--bg-color);
    z-index: 90;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
}

.inserted[data-location="sticky"] .inserted-inner {
    position: relative;
    padding: 10px 0px;
}

.inserted[data-location="sticky"] .inserted-inner > * {
    margin-right: auto;
    margin-left: auto;
}

.inserted-sticky-close {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    padding: 0.3em;
    transform: translateY(-50%);
    line-height: 1;
    border: 2px solid var(--border-color);
    border-radius: 100%;
    background-color: var(--bg-color);
    box-shadow: 0px 0px 5px var(--shadow-color);
}

.inserted[data-location="sticky"].no-close .inserted-sticky-close {
    display: none;
}

.inserted .widgets-area {
    text-align: initial;
}

/************************************/

.widget-title {
    position: relative;
    --text-decoration-hover: none;
}

.widget-title h3 {
    margin-bottom: var(--site-gap);
    border-bottom: 2px solid var(--divider);
    padding-bottom: 0.7em;
    position: relative;
}

.widget-title h3::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: var(--site-color);
}

.widget-title h3, .widget-title a {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    font-weight: bold;
}

.widget-icon i {
    font-size: 1.5em;
    line-height: 1;
}

.widget-link-icon {
    display: inline-block;
}

.rtl .widget-header a:hover .widget-link-icon {
    transform: translateX(-0.2em);
}

.ltr .widget-header a:hover .widget-link-icon {
    transform: translateX(0.2em);
}

.rtl .widget-link-icon svg {
    transform: rotate(90deg);
}

.ltr .widget-link-icon svg {
    transform: rotate(-90deg);
}

.widget-more {
    margin-top: 1em;
    display: none;
}

.widget-more a {
    display: inline-block;
}

.widget.show-more-link .widget-more {
    display: block;
}

/************************************/

.widgets-list.tabbed:not(.tabs-done) .widgets-area-inner .widget:not(:first-child), .widgets-list.tabbed.tabs-done .widgets-area-inner .widget:not(.active) {
    display: none;
}

.widgets-list.tabbed .widgets-area-inner .widget-header {
    display: none;
}

.widget-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: calc(var(--site-gap) * 0.5);
    border-bottom: 2px solid var(--divider);
    --text-decoration-hover: none;
    gap: 0;
}

.widget-tabs a {
    flex-grow: 1;
    display: flex;
    margin-bottom: -2px;
    padding: 5px 0px;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.widget-tabs a div {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    border-radius: var(--site-border-radius);
    text-align: center;
}

.widget-tabs a.active {
    border-bottom-color: var(--site-color);
}

.widget-tabs a.active div {
    opacity: 1;
}

.widget-tabs a:hover div {
    background-color: var(--bg-color-3);
}

/************************************/

.content-sticky {
    position: sticky;
    background-color: var(--bg-color);
}

.content-sticky.sticky-top {
    margin-bottom: var(--site-gap);
    top: var(--adminbar-height, 0px);
    z-index: 20;
}

body.header-fixed .content-sticky.sticky-top,
body.scroll-up .content-sticky.sticky-top {
    top: var(--header-height, 0px);
}

.content-sticky.sticky-bottom {
    margin-top: var(--site-gap);
    bottom: 0px;
    z-index: 25;
}

/************************************/

.content-tabs-links {
    margin-bottom: 1em;
}

.content-tabs-links-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    --text-decoration: none;
    --text-decoration-hover: none;
}

.content-tabs-links a div {
    padding: 0.5em 1.5em;
    border-radius: var(--site-border-radius);
    border: 1.5px solid var(--bg-color-2);
    font-weight: 500;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.content-tabs-links a.current div {
    border-color: var(--site-color);
    background-color: rgba(var(--site-color-rgb), 0.05);
    color: var(--site-color);
}

.content-tabs-links a:not(.current):hover div {
    border-color: var(--bg-color-3);
    background-color: var(--bg-color-2);
}

@media (max-width: 575px) {
    .content-tabs-links-inner {
        overflow-x: scroll;
    }
    .content-tabs-links-inner::-webkit-scrollbar-thumb {
        background-color: none;
    }
    .content-tabs-links-inner {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .content-tabs-links-inner a.current {
        order: -1;
    }
}

/************************************/

.tab-heading {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--divider);
}

.tab-heading a {
    display: inline-block;
    padding: 0.5em;
    border-radius: 100%;
}

.tab-heading a:hover {
    background-color: var(--bg-color-2);
}

.tab-heading svg {
    width: 1.5em;
    height: 1.5em;
}

.rtl .tab-heading svg {
    transform: rotate(90deg);
}

.ltr .tab-heading svg {
    transform: rotate(-90deg);
}

/************************************/

.post-meta {
    align-self: flex-start;
    font-size: 0.8em;
    opacity: 0.8;
    line-height: 2;
}

.post-meta.has-links {
    z-index: 10;
}

.post-meta-items {
    display: flex;
    flex-wrap: wrap;
}

.post-meta .post-meta-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.post-meta .term-sep::after {
    margin-right: 0.5em;
    margin-left: 0.5em;
    content: "\2022";
    opacity: 0.6;
}

.post-meta .post-meta-item + .post-meta-item::before {
    margin-right: 0.5em;
    margin-left: 0.5em;
    content: "\2022";
    opacity: 0.6;
}

.post-meta .meta-icon {
    display: none;
}

.post-meta .meta-label {
    display: none;
    opacity: 0.8;
}

.post-meta .meta-label::after {
    content: ":";
    display: none;
}

.post-meta .meta-content {
    flex-grow: 1;
}

.post-meta .meta-content a {
    display: inline-block;
}

/************************************/

.menu-widgets-list {
    position: fixed;
    right: 0px;
    left: 0px;
    z-index: 1000;
    visibility: hidden;
    transform: translateY(10px);
    opacity: 0;
    margin-top: -2px;
    transition: 0.3s transform cubic-bezier(0.22, 1, 0.36, 1), 0.3s opacity;
    z-index: 10;
    background-color: var(--bg-color);
    border-top: 2px solid var(--site-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04);
    display: none;
}

.menu-widgets-list a:not(.btn):hover {
    text-decoration: var(--text-decoration-hover, underline);
}

/************************************/

.time-now {
    font-size: 0.85em;
}

.time-now span {
    display: inline-block;
}

.time-now span + span::before {
    content: "\2022";
    display: inline-block;
    margin-right: 0.4em;
    margin-left: 0.4em;
    opacity: 0.4;
}

.time-now .time-now-current-time {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--site-color);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.time-now .time-now-hijri {
    display: inline-block;
    opacity: 0.7;
}

/************************************/

.items-list-outer {
    position: relative;
    margin: calc(var(--item-gap) * -1);
    padding: calc(var(--item-gap) * 0.5);
    overflow: hidden;
}

.items-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--item-width-base), 1fr));
    margin: calc(var(--item-gap) * -1);
    padding: calc(var(--item-gap) * 1);
    list-style: none;
    --item-image-hover-opacity: 0.9;
}

.items-list .item {
    grid-column: span var(--item-width-factor);
    flex-basis: calc(var(--item-width-base) * var(--item-width-factor));
}

.items-list + .items-list {
    margin-top: calc(var(--site-gap-negative) * 2);
}

.items-list .item {
    flex-shrink: 0;
    flex-grow: 1;
    display: flex;
    padding: calc(var(--item-gap) * 0.5);
}

.items-list :is(h3, h4) {
    --text-decoration: none;
    --text-decoration-hover: none;
    margin: 0px !important;
}

.item-inner {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5em 1em;
    transition: transform var(--transition-fast);
}

.item-link {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 5;
}

.item-image {
    flex-shrink: 0;
    flex-basis: 150px;
    position: relative;
    overflow: hidden;
    border-radius: var(--site-border-radius);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity var(--transition-fast);
    will-change: transform;
}

.item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.item-content h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}

.item-title {
    flex-grow: 1;
    margin: 0;
}

.item-icon {
    font-size: 1.6em;
}

.item-count {
    order: 1;
}

.item-count div {
    display: inline-block;
    padding: 0.5em;
    line-height: 1;
    border-radius: var(--site-border-radius);
    background-color: var(--bg-color-2);
    opacity: 0.7;
}

.item-description {
    font-size: 0.9em;
    opacity: 0.8;
}

.item-description p:last-of-type {
    margin-bottom: 0px;
}

.item-link:hover ~ .item-content h4 {
    text-decoration-line: underline !important;
    text-decoration-color: var(--site-color) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 0.3em;
}

.item-link:hover ~ .item-image img {
    transform: scale(1.06);
    opacity: var(--item-image-hover-opacity);
}

.items-list .style-boxed .item-link:hover ~ .item-content h4 {
    text-decoration: none !important;
}

.rtl .item.hide-image.style-boxed .item-link:hover,
.rtl .item.no-image.style-boxed .item-link:hover {
    border-right: 2px solid var(--site-color);
}

.ltr .item.hide-image.style-boxed .item-link:hover,
.ltr .item.no-image.style-boxed .item-link:hover {
    border-left: 2px solid var(--site-color);
}

/************************************/

.items-list .style-overlay {
    min-height: 80px;
}

.items-list .style-overlay .item-content {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    padding: var(--site-gap);
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.05) 70%);
    border-radius: var(--site-border-radius);
    --text-color: #FFFFFF;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
}

.items-list .style-overlay .item-image {
    flex-grow: 1;
}

.items-list .style-boxed .item-inner {
    background-color: var(--bg-color);
    border-radius: var(--site-border-radius-lg);
    gap: 0px;
    overflow: hidden;
}

.items-list .style-boxed .item-link {
    box-shadow: var(--card-shadow);
    border-radius: var(--site-border-radius-lg);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.items-list .style-boxed .item-link:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.items-list .style-boxed .item-content {
    margin: 1em;
}

.items-list .style-row .item-inner {
    flex-direction: row;
}

.items-list .style-column .item-inner {
    flex-direction: column;
}

@media (min-width: 576px) {
    .items-list .style-column-desktop .item-inner {
        flex-direction: column;
    }
    .items-list .style-row-desktop .item-inner {
        flex-direction: row;
    }
}
@media (max-width: 575px) {
    .items-list .style-column-mobile .item-inner {
        flex-direction: column;
    }
    .items-list .style-row-mobile .item-inner {
        flex-direction: row;
    }
    .items-list .style-row .item-image,
    .items-list .style-row-image .item-image {
        flex-basis: 100px;
    }
}

.items-list .item.image-auto .item-image {
    flex-basis: auto !important;
}

.items-list .item.image-contain .item-image img {
    height: auto;
}

.items-list .item.width-1_6 {
    --item-width-factor: 5;
}

.items-list .item.width-1_5 {
    --item-width-factor: 6;
}

@media (max-width: 575px) {
    .items-list .item.width-1_5 {
        --item-width-factor: 5;
    }
}

@media (min-width: 1200px) {
    .items-list .item.width-1_4 {
        --item-width-factor: 8;
    }
    .items-list .item.width-1_3 {
        --item-width-factor: 10;
    }
    .items-list .item.width-1_2 {
        --item-width-factor: 16;
    }
    .items-list .item.width-2_3 {
        --item-width-factor: 20;
    }
    .items-list .item.width-1 {
        grid-column: span 1 / -1;
        flex-basis: 100%;
    }
}

@media (min-width: 1200px) {
    .items-list .item.height-3_2 {
        grid-row: span 3;
    }
    .items-list .item.height-2 {
        grid-row: span 4;
    }
    .items-list .item.height-3 {
        grid-row: span 6;
    }
    .items-list .item.title-lg .item-content :is(h3, h4) {
        font-size: calc(1.2em + 0.1vw);
    }
    .items-list .item.title-xl .item-content :is(h3, h4) {
        font-size: calc(1.3em + 0.3vw);
    }
    .items-list .item.title-xxl .item-content :is(h3, h4) {
        font-size: calc(1.4em + 0.5vw);
    }
    .items-list .item.image-fill .item-image {
        flex-basis: 100% !important;
    }
    .items-list .item.image-100 .item-image {
        flex-basis: 100px !important;
    }
    .items-list .item.image-150 .item-image {
        flex-basis: 150px !important;
    }
    .items-list .item.image-200 .item-image {
        flex-basis: 200px !important;
    }
    .items-list .item.image-250 .item-image {
        flex-basis: 250px !important;
    }
    .items-list .item.image-300 .item-image {
        flex-basis: 300px !important;
    }
    .items-list .item.image-350 .item-image {
        flex-basis: 350px !important;
    }
    .items-list .item.image-400 .item-image {
        flex-basis: 400px !important;
    }
}

@media (max-width: 575px) {
    .widget.items-slider-mobile .items-list-outer {
        overflow: hidden;
        margin: var(--site-gap-negative);
    }
    .widget.items-slider-mobile .items-list {
        overflow-x: scroll;
        display: flex !important;
        padding: var(--site-gap);
    }
    .widget.items-slider-mobile .items-list .item {
        --item-width-factor: 7;
    }
}

.hide-meta .post-meta {
    display: none;
}

.hide-title .item-title {
    display: none;
}

.hide-image .item-image {
    display: none;
}

.show-image .item-image {
    display: block;
}

.no-gap .items-list-outer {
    --item-gap: 0px;
}

.sm-gap .items-list-outer {
    --item-gap: 0.5em;
}

/************************************/

.items-list .item-dummy {
    flex-basis: 0px !important;
    margin: 0px !important;
    padding: 0px !important;
    visibility: hidden !important;
    min-height: 0px !important;
}

/************************************/

.links-list-outer .sub-menu {
    margin: calc(var(--item-gap) * -1);
    padding: calc(var(--item-gap) * 0.5);
}

.links-list-outer .item {
    gap: var(--item-gap);
}

/************************************/

.slider-outer {
    overflow: hidden;
}

.slider-outer .items-list .item {
    flex-basis: auto;
    height: auto;
}

/************************************/

.slider-outer {
    cursor: grab;
    --swiper-theme-color: var(--site-color);
    --swiper-pagination-bullet-inactive-color: var(--bg-color-3);
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bottom: var(--site-gap);
    --swiper-navigation-size: 2em;
}

.slider-outer .swiper-pagination {
    position: relative;
    top: 0px !important;
}

.slider-outer .swiper-pagination-bullet-active {
    --swiper-pagination-bullet-width: 1.5em;
    --swiper-pagination-bullet-border-radius: 6px;
}

.slider-outer :is(.swiper-button-next, .swiper-button-prev)::after {
    padding: 12px;
    background-color: var(--bg-color);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: opacity var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    transform: scale(0.9);
}

.slider-outer:hover :is(.swiper-button-next, .swiper-button-prev)::after {
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: scale(1);
}

.hide-pagination .swiper-pagination {
    display: none !important;
}

.hide-navigation :is(.swiper-button-next, .swiper-button-prev) {
    display: none !important;
}

/************************************/

#scroll-top {
    position: fixed;
    bottom: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.5em;
    line-height: 1;
    background-color: var(--site-color);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 50%;
    transition: opacity 0.4s, visibility 0.4s, transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 20;
    cursor: pointer;
}

body:not(.scroll-up) #scroll-top {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
}

#scroll-top svg {
    transition: transform 0.2s;
    fill: #FFFFFF;
}

#scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.rtl #scroll-top {
    right: 1em;
}

.ltr #scroll-top {
    left: 1em;
}

/************************************/

.authors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2em;
}

.authors-list .singular-author-block {
    flex-basis: 300px;
    flex-grow: 1;
}

.authors-list .singular-author-block a {
    --text-decoration: none;
}

/************************************/

.singular-section {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    --text-decoration: none;
}

.singular-section:first-child {
    margin-top: 0px;
}

.singular-section:last-child {
    margin-bottom: 0px;
}

.singular-section a {
    text-decoration-line: none !important;
}

.singular-section a:hover {
    text-decoration-line: underline !important;
}

.singular-section-header {
    border: 1px solid var(--bg-color-3);
    border-bottom: 2px solid var(--site-color);
    border-radius: var(--site-border-radius-lg) var(--site-border-radius-lg) 0px 0px;
    background-color: var(--bg-color-2);
    transition: background-color var(--transition-fast);
}

.singular-section-header h2 {
    margin: 0px;
    padding: 0.8rem var(--site-gap);
    font-size: 1.3em;
    font-weight: normal;
}

.singular-section-header h2,
.singular-section-header h2 > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    flex-grow: 1;
}

.singular-section-header.toggleable h2 {
    cursor: pointer;
}

.singular-section-header .icon-toggle {
    flex-grow: 0;
    transition: 0.3s transform;
}

.singular-section-header.active .icon-toggle {
    transform: rotate(180deg);
}

.singular-section-content {
    border: 1px solid var(--bg-color-3);
    border-radius: var(--site-border-radius-lg);
    overflow: hidden;
}

.singular-section-header + .singular-section-content {
    border-top: none;
    border-radius: 0px 0px var(--site-border-radius-lg) var(--site-border-radius-lg);
}

.singular-section-header:not(.active) + .singular-section-content {
    display: none;
}

html.no-js .singular-section-content {
    display: block !important;
}

/************************************/

.singular-toc .singular-section-content {
    padding: 1em var(--site-gap);
}

.singular-toc[data-theme="numbers"] ul {
    list-style: none;
}

.singular-toc .toc_list {
    display: block !important;
    margin-bottom: 0px;
}

.singular-toc[data-theme="numbers"] .toc_list {
    padding-right: 0px;
    padding-left: 0px;
}

.singular-toc .toc_list a {
    display: flex;
    gap: 0.5em;;
}

.singular-toc .toc_list .toc_number {
    white-space: nowrap;
}

/************************************/

.singular-question + .singular-question {
    border-top: 1px solid var(--bg-color-3);
}

.singular-question:hover :is(.question-header, .question-content),
.singular-question.active :is(.question-header, .question-content) {
    background-color: var(--bg-color-2);
}

.singular-question .question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.singular-question .question-header,
.singular-question .question-content {
    padding: 1em var(--site-gap);
}

.singular-question .question-title {
    flex-grow: 1;
}

.singular-question:not(.active) .question-content {
    display: none;
}

html.no-js .singular-question .question-content {
    display: block !important;
}

.singular-question .icon-toggle {
    transition: 0.3s transform;
}

.singular-question.active .icon-toggle {
    transform: rotate(180deg);
}

.singular-question .question-content p:last-of-type {
    margin-bottom: 0px;
}

/************************************/

.singular-citation {
    padding: 1em var(--site-gap);
}

.singular-citation + .singular-citation {
    border-top: 1px solid var(--bg-color-3);
}

.singular-citation {
    display: flex;
    flex-wrap: wrap;
}

.singular-citation .sep {
    display: flex;
    flex-wrap: wrap;
}

.singular-citation .sep::before {
    content: "\2022";
    font-size: 0.7em;
    opacity: 0.5;
}

.singular-citation .sep {
    display: inline-block;
    margin: 0px 10px;
}

.singular-citation.active {
    background-color: var(--highlight-color);
}

/************************************/

@media print {
    #header {
        position: static !important;
    }

    :is(#widgets-area-archive_side, #widgets-area-singular_side) .container {
        position: static !important;
    }
}

/************************************/

@media (min-width: 1200px) {
    .masonry-widgets .widgets-area-inner {
        display: block;
        column-count: 3;
        column-gap: 0;
    }
    .masonry-widgets .widgets-area-inner .widget {
        display: table;
        width: 100% !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/************************************/
/* ==========================================================================
   Premium Reading Experience & Interactions
   ========================================================================== */

/* Reading Progress Bar */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}
#reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color, #e60023);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(230, 0, 35, 0.4);
    border-radius: 0 2px 2px 0;
}

/* Smart Sticky Header */
body.is-scrolling-down #header {
    transform: translateY(-100%);
    box-shadow: none;
}
body.is-scrolling-up #header {
    position: sticky;
    top: 0;
    z-index: 9990;
    transform: translateY(0);
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    background: var(--body-bg);
}
#header {
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s ease;
    will-change: transform;
}

/* Share Floater & Author Box Improvements */
.singular-story-actions {
    position: sticky;
    top: 80px;
    z-index: 10;
}

/* ==========================================================================
   Premium Newsroom Grid (Homepage Hero Layout)
   ========================================================================== */

@media (min-width: 992px) {
    /* Target only the first block on the homepage for the Hero Grid */
    .home #main > .widget:first-of-type .posts-list,
    .home .primary-archive:first-of-type .posts-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
        gap: 20px;
    }
    
    /* Make the first item massive (Hero) */
    .home .primary-archive:first-of-type .posts-list > .item:first-child {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }
    
    .home .primary-archive:first-of-type .posts-list > .item:first-child .item-inner {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .home .primary-archive:first-of-type .posts-list > .item:first-child .item-image {
        flex-grow: 1;
        min-height: 250px;
    }

    /* Small side items */
    .home .primary-archive:first-of-type .posts-list > .item:not(:first-child) {
        grid-column: span 1;
    }
}

/* ==========================================================================
   Premium Dark Mode Refinements
   ========================================================================== */
[data-theme="dark"] img,
[data-bs-theme="dark"] img {
    filter: brightness(0.85) contrast(1.1);
    transition: filter 0.3s ease;
}
[data-theme="dark"] img:hover,
[data-bs-theme="dark"] img:hover {
    filter: brightness(1) contrast(1);
}
[data-theme="dark"] iframe,
[data-theme="dark"] video {
    filter: brightness(0.85);
}


/* ==========================================================================
   Premium Typography & Sidebar Refinements
   ========================================================================== */

/* Elevate Headings */
h1, h2, h3, h4, h5, h6,
.item-title, .widget-title h3 {
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.item-title {
    font-weight: 800;
}

/* Enhancing the Widget Title */
.widget-title h3 {
    font-size: 1.25rem;
    font-weight: 800;
    padding-bottom: 0.5em;
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color, rgba(0,0,0,0.05));
}
.widget-title h3::after {
    height: 3px;
    border-radius: 3px;
    width: 60px;
    bottom: -2.5px;
    background: var(--primary-color, #e60023);
}

/* Sidebar Widgets Modern Cards */
#main .widget:not(.primary-content-primary .widget) {
    background: var(--bg-color-2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: calc(var(--site-gap) * 1.5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color, rgba(0,0,0,0.03));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#main .widget:not(.primary-content-primary .widget):hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Clean up lists inside widgets */
#main .widget:not(.primary-content-primary .widget) ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#main .widget:not(.primary-content-primary .widget) ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
}
#main .widget:not(.primary-content-primary .widget) ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ==========================================================================
   Core Web Vitals - Rendering Performance
   ========================================================================== */
#footer, 
.singular-story-support, 
#comments, 
.widgets-area .widget:not(:first-child) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px; /* Estimates height to prevent huge CLS */
}

/* Ensure images have no CLS if waiting on load */
img {
    aspect-ratio: attr(width) / attr(height);
}

/* ==========================================================================
   RADICAL NEWS PORTAL REDESIGN
   Inspired by: BBC Arabic, Sky News Arabia, CNN Arabic
   ========================================================================== */

/* --- 1. AUTHOR BOX --- consolidated in Section 26. */


/* ==========================================================================
   2. HEADER - FLAT NEWS DESIGN
   ========================================================================== */

#header {
    background: var(--bg-color) !important;
    border-top: 3px solid var(--site-color) !important;
        box-shadow: none !important;
    position: relative !important;
    padding: 0 !important;
}

#header::before {
    display: none !important;
}

#header_desktop > .layout-row,
#header_mobile > .layout-row {
    --vspacing: 0px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#header_desktop > .layout-row > .container,
#header_mobile > .layout-row > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#header_desktop .layout-row-inner,
#header_mobile .layout-row-inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   2a. DESKTOP HEADER
   ========================================================================== */

#header_desktop .layout-row-inner {
    align-items: center !important;
    min-height: 80px !important;
    padding: 5px 0 !important;
}

#header_desktop .layout-column {
    align-items: center !important;
}

#header_desktop .site-logo a {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#header_desktop .site-logo img {
    max-width: 150px !important;
    height: auto !important;
    transition: opacity 0.25s ease !important;
}

#header_desktop .site-logo .title {
    display: none !important;
}

#header_desktop .site-logo:hover img {
    opacity: 0.8 !important;
}

#header_desktop .layout-column[data-position="middle"] {
    flex-grow: 1 !important;
    min-width: 0 !important;
    padding: 0 20px !important;
}

#header_desktop .nav-menu,
#header_desktop .nav-menu > ul {
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

#header_desktop .nav-menu > ul {
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

#header_desktop .nav-menu > ul > li,
#header_desktop .nav-menu > ul > li > a {
    display: flex !important;
    align-items: center !important;
}

#header_desktop .nav-menu > ul > li > a > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    color: var(--color-1) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

/* Hide theme default underline on menu items */
#header .nav-menu > ul > li::after,
#header .nav-menu > ul > .menu-item::after,
#header_desktop .nav-menu > ul > li::after,
#header_desktop .nav-menu > ul > li > a::after {
    display: none !important;
    content: none !important;
}


#header_desktop .nav-menu > ul > li > a > div::before {
    display: none !important;
}

#header_desktop .nav-menu > ul > li:hover > a > div,
#header_desktop .nav-menu > ul > li[class*="current"] > a > div {
    color: var(--site-color) !important;
    background: var(--bg-color) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
    border-color: var(--site-color) !important;
    transform: translateY(-2px) !important;
}



#header_desktop .layout-column[data-position="end"] {
    flex-shrink: 0 !important;
    gap: 15px !important;
}

#header_desktop .action-link,
#header_mobile .action-link {
    width: auto !important;
    height: auto !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--color-2) !important;
    font-size: 1.1rem !important;
    transition: color 0.2s ease !important;
}

#header_desktop .action-link:hover,
#header_mobile .action-link:hover {
    background: transparent !important;
    border: none !important;
    color: var(--site-color) !important;
    box-shadow: none !important;
    transform: none !important;
}

#header_desktop .action-link .title,
#header_mobile .action-link .title {
    display: none !important;
}

/* ==========================================================================
   2b. SUBMENUS
   ========================================================================== */

#header .nav-menu .sub-menu {
    border: 1px solid var(--divider) !important;
    border-top: 3px solid var(--site-color) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    background: var(--bg-color) !important;
    padding: 10px !important;
}

#header .nav-menu > ul > li > ul::before {
    display: none !important;
}

#header .nav-menu ul ul li {
    margin-bottom: 2px !important;
}

#header .nav-menu ul ul li:last-child {
    margin-bottom: 0 !important;
}

#header .nav-menu ul ul li div {
    border-radius: 0 !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border: none !important;
    color: var(--color-1) !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

#header .nav-menu ul ul li:hover > a > div,
#header .nav-menu ul ul li[class*="current"] > a > div {
    background-color: var(--bg-color-2) !important;
    color: var(--site-color) !important;
}

/* ==========================================================================
   2c. MOBILE HEADER
   ========================================================================== */

#header_mobile .layout-row-inner {
    display: grid !important;
    grid-template-columns: minmax(44px, auto) 1fr minmax(44px, auto) !important;
    align-items: center !important;
    min-height: 70px !important;
    padding: 10px 15px !important;
    column-gap: 12px !important;
}

#header_mobile .layout-column {
    align-items: center !important;
}

#header_mobile .layout-column[data-position="start"] {
    grid-column: 1 !important;
    justify-content: flex-start !important;
    min-width: 44px !important;
}

#header_mobile .layout-column[data-position="middle"] {
    grid-column: 2 !important;
    justify-content: center !important;
    min-width: 0 !important;
}

#header_mobile .layout-column[data-position="end"] {
    grid-column: 3 !important;
    justify-content: flex-end !important;
    min-width: 44px !important;
    gap: 12px !important;
}

#header_mobile .site-logo img {
    max-width: 130px !important;
    height: auto !important;
}

#header_mobile .site-logo .title {
    display: none !important;
}

#header_mobile .overlay-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: var(--bg-hover) !important;
    color: var(--txt-color) !important;
    border: 1px solid var(--divider) !important;
    transition: all 0.3s ease !important;
}

#header_mobile .overlay-toggle-btn:hover,
#header_mobile .overlay-toggle-btn:active {
    background: var(--site-color) !important;
    color: #fff !important;
    border-color: var(--site-color) !important;
}

#header_mobile .overlay-toggle-btn svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

/* ==========================================================================
   2d. SEARCH FORM
   ========================================================================== */

#header .search-form {
    max-width: 300px !important;
}

#header .search-form-inner {
    border-radius: 4px !important;
    border: 1px solid var(--divider) !important;
    background: var(--bg-color) !important;
}

#header .search-form-inner:focus-within {
    border-color: var(--site-color) !important;
}

/* ==========================================================================
   2e. THEME ADJUSTMENTS
   ========================================================================== */

[data-theme="dark"] #header {
    background: var(--bg-color) !important;
    }

[data-theme="dark"] #header .nav-menu .sub-menu {
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-top: 3px solid var(--site-color) !important;
}

/* ==========================================================================
   3. FOOTER - FLAT NEWS PORTAL DESIGN
   ========================================================================== */

#footer {
    position: relative !important;
    margin-top: 40px !important;
    padding: 30px 0 20px !important;
    border-top: 4px solid var(--site-color) !important;
    background: var(--bg-color-2) !important;
    color: var(--color-2) !important;
    box-shadow: none !important;
}

#footer::before {
    display: none !important;
}

#footer .layout-row {
    --vspacing: 0px !important;
    background: transparent !important;
}

#footer_desktop > .layout-row > .container,
#footer_mobile > .layout-row > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#footer_desktop > .layout-row > .container .layout-row-inner,
#footer_mobile > .layout-row > .container .layout-row-inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#footer .layout-column {
    justify-content: center !important;
}

#footer .nav-menu,
#footer .nav-menu > ul {
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}

#footer .nav-menu > ul {
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}

#footer .nav-menu > ul > li,
#footer .nav-menu > ul > li > a {
    display: flex !important;
    align-items: center !important;
}

#footer .nav-menu > ul > li > a > div {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    color: var(--color-2) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    transition: all 0.25s ease !important;
}

#footer .nav-menu > ul > li:hover > a > div,
#footer .nav-menu > ul > li[class*="current"] > a > div {
    background: var(--bg-color) !important;
    border-color: var(--site-color) !important;
    color: var(--site-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transform: translateY(-2px) !important;
}

#footer a {
    color: inherit !important;
}

#footer .theme-copyrights,
#footer .site-copyrights {
    width: 100% !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    padding: 15px 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--divider) !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

[data-theme="dark"] #footer {
    background: var(--bg-color-2) !important;
    border-top: 4px solid var(--site-color) !important;
}



/* ==========================================================================
   4. OVERLAY MENU & SEARCH - NEWS STYLE
   ========================================================================== */

/* Overlay menu panel */
#overlay-menu {
    box-shadow: 4px 0 30px rgba(0,0,0,0.2) !important;
}

.rtl #overlay-menu {
    box-shadow: -4px 0 30px rgba(0,0,0,0.2) !important;
}

/* Remove decorative underlines in overlay */
#overlay-menu .nav-menu a::after {
    display: none !important;
}

/* Overlay nav items - clean and bold */
#overlay-menu .nav-menu > ul > li > a > div {
    font-weight: 700 !important;
    font-size: 1em !important;
    padding: 0.65em 0.8em !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

#overlay-menu .nav-menu li:hover > a > div {
    background-color: var(--site-color) !important;
    color: #fff !important;
}

/* Overlay social - compact */
#overlay-menu .social-links a {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    transition: all 0.2s ease !important;
}

#overlay-menu .social-links a:hover {
    background-color: var(--site-color) !important;
    border-color: var(--site-color) !important;
    color: #fff !important;
    transform: none !important;
}

/* Close button */
#overlay-menu-outer .overlay-close {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--site-color) !important;
    color: #fff !important;
    border-radius: 6px !important;
    transition: opacity 0.2s !important;
}

#overlay-menu-outer .overlay-close:hover {
    opacity: 0.85 !important;
    background: var(--site-color) !important;
    color: #fff !important;
    transform: none !important;
}

@media (max-width: 767px) {
    body.overlay-panels-over-body #overlay-menu-outer {
        width: min(88vw, 360px) !important;
    }

    #overlay-menu {
        --vspacing: 18px !important;
        padding: 18px 0 22px !important;
        background: linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color) 94%, #000 6%) 100%) !important;
    }

    #overlay-menu .layout-row {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    #overlay-menu .layout-row.sticky {
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    #overlay-menu .layout-column {
        gap: 14px !important;
    }

    #overlay-menu .nav-menu {
        max-width: none !important;
        width: 100% !important;
    }

    #overlay-menu .nav-menu > ul > li {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 6px !important;
    }

    #overlay-menu .nav-menu > ul > li:last-child {
        margin-bottom: 0 !important;
    }

    #overlay-menu .nav-menu > ul > li > a > div {
        min-height: 48px !important;
        padding: 0 14px !important;
        border-radius: 14px !important;
        background: var(--bg-color-2) !important;
        border: 1px solid var(--divider) !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
        color: var(--color-1) !important;
        font-size: 0.96rem !important;
        font-weight: 800 !important;
    }

    #overlay-menu .nav-menu .menu-item-title {
        line-height: 1.45 !important;
    }

    #overlay-menu .nav-menu .menu-item-arrow {
        width: 28px !important;
        height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: color-mix(in srgb, var(--site-color) 10%, var(--bg-color) 90%) !important;
        color: var(--site-color) !important;
        flex-shrink: 0 !important;
    }

    #overlay-menu .nav-menu li.opened > a > div {
        border-color: color-mix(in srgb, var(--site-color) 28%, var(--divider) 72%) !important;
        background: color-mix(in srgb, var(--site-color) 6%, var(--bg-color) 94%) !important;
    }

    #overlay-menu .nav-menu li:hover > a > div {
        background: color-mix(in srgb, var(--site-color) 8%, var(--bg-color) 92%) !important;
        color: var(--site-color) !important;
    }

    #overlay-menu .nav-menu ul ul {
        margin-top: 8px !important;
        margin-bottom: 10px !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        border-right: 2px solid color-mix(in srgb, var(--site-color) 22%, transparent 78%) !important;
    }

    #overlay-menu .nav-menu ul ul li div {
        min-height: 40px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
    }

    #overlay-menu .social-links {
        justify-content: center !important;
        gap: 10px !important;
        padding-top: 6px !important;
    }

    #overlay-menu .social-links a {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
    }

    #overlay-menu-outer .overlay-close {
        top: 12px !important;
        inset-inline-end: 12px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.16) !important;
        z-index: 30 !important;
    }
}

@media (max-width: 575px) {
    body.overlay-panels-over-body #overlay-menu-outer {
        width: min(92vw, 340px) !important;
    }

    #overlay-menu {
        padding: 16px 0 20px !important;
    }

    #overlay-menu .layout-row {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    #overlay-menu .nav-menu > ul > li > a > div {
        min-height: 46px !important;
        font-size: 0.92rem !important;
        padding: 0 13px !important;
    }

    #overlay-menu .social-links a,
    #overlay-menu-outer .overlay-close {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }
}

@media (max-width: 767px) {
    [data-theme="dark"] #overlay-menu {
        background: linear-gradient(180deg, rgba(18,18,18,0.98) 0%, rgba(28,28,28,0.98) 100%) !important;
    }

    [data-theme="dark"] #overlay-menu .nav-menu > ul > li > a > div,
    [data-theme="dark"] #overlay-menu .social-links a {
        background: rgba(255,255,255,0.04) !important;
        border-color: rgba(255,255,255,0.08) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.22) !important;
    }

    [data-theme="dark"] #overlay-menu .nav-menu .menu-item-arrow {
        background: rgba(255,255,255,0.06) !important;
        color: #fff !important;
    }

    [data-theme="dark"] #overlay-menu .nav-menu ul ul {
        border-right-color: rgba(255,255,255,0.12) !important;
    }
}

/* Overlay search */
#overlay-search {
    backdrop-filter: blur(20px) !important;
    background: rgba(var(--bg-color-rgb, 255,255,255), 0.95) !important;
}

#overlay-search .search-form {
    max-width: 560px !important;
}

#overlay-search .search-form-inner {
    border-radius: 8px !important;
    font-size: 1.1em !important;
    border: 2px solid var(--bg-color-3) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

#overlay-search .search-form-inner:focus-within {
    border-color: var(--site-color) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 0 0 3px rgba(var(--site-color-rgb), 0.15) !important;
}


/* ==========================================================================
   5. READING PROGRESS BAR - NEWS STYLE
   ========================================================================== */

#reading-progress-container {
    height: 3px !important;
}

#reading-progress-bar {
    background: var(--site-color) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}


/* ==========================================================================
   6. SCROLL TO TOP - NEWS STYLE
   ========================================================================== */

#scroll-top {
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}

#scroll-top:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}


/* ==========================================================================
   7. NEWS TICKER - ENHANCED
   ========================================================================== */

.news-ticker {
    border-top: 2px solid var(--site-color) !important;
}


/* ==========================================================================
   8. RESPONSIVE - NEWS PORTAL
   ========================================================================== */

@media (max-width: 991px) {
    /* Tablet & Mobile header */
    #header .layout-row-outer > .layout-row:first-child {
        --vspacing: 6px !important;
    }

    #header .site-logo img {
        max-width: 140px !important;
    }

    /* Footer compact */
    #footer .layout-row:first-child {
        padding-top: 36px !important;
    }

    #footer .layout-row {
        --vspacing: 12px !important;
    }

    #footer .social-links a {
        width: 40px !important;
        height: 40px !important;
    }

    #footer .nav-menu div {
        font-size: 0.78em !important;
        padding: 0.4em 0.8em !important;
        text-transform: none !important;
    }
}

@media (max-width: 575px) {
    #header .action-link {
        width: 34px !important;
        height: 34px !important;
    }

    #header .site-logo img {
        max-width: 120px !important;
    }

    #footer .social-links a {
        width: 36px !important;
        height: 36px !important;
    }

    #footer .nav-menu div {
        border-left: none !important;
        border-right: none !important;
        padding: 0.3em 0.6em !important;
    }
}

/* ==========================================================================
   8a. MOBILE HEADER & FOOTER POLISH
   ========================================================================== */

@media (max-width: 767px) {
    #header {
        position: sticky !important;
        top: 0 !important;
        z-index: 120 !important;
        background: color-mix(in srgb, var(--bg-color) 92%, transparent 8%) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-bottom: 1px solid color-mix(in srgb, var(--divider) 78%, transparent 22%) !important;
    }

    #header_mobile > .layout-row > .container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    #header_mobile .layout-row-inner {
        min-height: 62px !important;
        padding: 8px 0 !important;
        gap: 12px !important;
    }

    #header_mobile .layout-column[data-position="start"] {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    #header_mobile .site-logo a {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
    }

    #header_mobile .site-logo img {
        max-width: 110px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    #header_mobile .layout-column[data-position="end"] {
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    #header_mobile .action-link {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        background: var(--bg-color-2) !important;
        border: 1px solid var(--divider) !important;
        color: var(--color-1) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.04) !important;
        padding: 0 !important;
        font-size: 1rem !important;
    }

    #header_mobile .action-link:hover,
    #header_mobile .action-link:focus-visible {
        color: var(--site-color) !important;
        border-color: color-mix(in srgb, var(--site-color) 35%, var(--divider) 65%) !important;
        background: var(--bg-color) !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.08) !important;
    }

    #footer {
        margin-top: 28px !important;
        padding: 22px 0 14px !important;
        background: linear-gradient(180deg, var(--bg-color-2) 0%, color-mix(in srgb, var(--bg-color-2) 90%, #000 10%) 100%) !important;
    }

    #footer_mobile > .layout-row > .container {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    #footer_mobile > .layout-row {
        padding-top: 0 !important;
    }

    #footer_mobile .layout-row-inner {
        gap: 0 !important;
    }

    #footer_mobile .layout-column {
        width: 100% !important;
    }

    #footer_mobile .social-links {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    #footer_mobile .social-links a {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 12px !important;
        background: var(--bg-color) !important;
        border: 1px solid var(--divider) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.04) !important;
    }

    #footer_mobile .nav-menu,
    #footer_mobile .nav-menu > ul {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    #footer_mobile .nav-menu > ul {
        justify-content: center !important;
    }

    #footer_mobile .nav-menu > ul > li > a > div {
        min-height: 36px !important;
        padding: 0 12px !important;
        border-radius: 999px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

    #footer_mobile .theme-copyrights,
    #footer_mobile .site-copyrights,
    #footer > .theme-copyrights,
    #footer > .site-copyrights {
        padding-top: 12px !important;
        font-size: 0.78rem !important;
        line-height: 1.8 !important;
        max-width: 30ch !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 575px) {
    #header_mobile > .layout-row > .container,
    #footer_mobile > .layout-row > .container {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    #header_mobile .layout-row-inner {
        min-height: 58px !important;
        gap: 10px !important;
    }

    #header_mobile .site-logo img {
        max-width: 102px !important;
        max-height: 34px !important;
    }

    #header_mobile .action-link {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    #footer_mobile .social-links {
        gap: 8px !important;
    }

    #footer_mobile .social-links a {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    #footer_mobile .nav-menu > ul > li > a > div {
        min-height: 34px !important;
        padding: 0 11px !important;
        font-size: 0.76rem !important;
    }
}

@media (max-width: 767px) {
    [data-theme="dark"] #header_mobile .action-link,
    [data-theme="dark"] #footer_mobile .social-links a {
        background: rgba(255,255,255,0.04) !important;
        border-color: rgba(255,255,255,0.08) !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.2) !important;
    }

    [data-theme="dark"] #footer {
        background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%) !important;
    }
}


/* ==========================================================================
   9. POST NAVIGATION REDESIGN
   ========================================================================== */
.singular-navigation {
    display: flex !important;
    gap: 12px !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}
.singular-navigation a,
.singular-navigation .singular-navigation-item a {
    flex: 1 !important;
    background: var(--bg-color-2) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.singular-navigation .singular-navigation-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.singular-navigation a:hover,
.singular-navigation .singular-navigation-item a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important;
    background: var(--bg-color) !important;
    border-color: var(--site-color) !important;
}
.singular-navigation a span.nav-label {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 4px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
}
.singular-navigation a span.nav-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--color-1) !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.singular-navigation .nav-previous {
    text-align: right !important;
}
.singular-navigation .nav-next {
    text-align: left !important;
}
@media (max-width: 768px) {
    .singular-navigation {
        flex-direction: column !important;
        gap: 10px !important;
    }
}


/* Dark mode specifically for the chic nav cards */
[data-theme="dark"] #header_desktop .nav-menu > ul > li > a > div,
[data-theme="dark"] #footer .nav-menu > ul > li > a > div {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    color: var(--color-2) !important;
}

[data-theme="dark"] #header_desktop .nav-menu > ul > li:hover > a > div,
[data-theme="dark"] #header_desktop .nav-menu > ul > li[class*="current"] > a > div,
[data-theme="dark"] #footer .nav-menu > ul > li:hover > a > div,
[data-theme="dark"] #footer .nav-menu > ul > li[class*="current"] > a > div {
    background: rgba(var(--site-color-rgb), 0.1) !important;
    border-color: var(--site-color) !important;
    color: var(--site-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}



/* ==========================================================================
   10. ARTICLE CONTENT TYPOGRAPHY & TABLES
   ========================================================================== */

/* Paragraphs */
.singular-body p {
    font-size: 1rem !important;
    line-height: 1.95 !important;
    margin-bottom: 1.6rem !important;
    color: var(--color-1) !important;
    font-weight: 500 !important;
}

/* ========== Bullet & Numbered Lists ========== */

/* Shared base for ul & ol */
.singular-body ul,
.singular-body ol {
    font-size: 1.12rem !important;
    line-height: 1.9 !important;
    margin-bottom: 1.8rem !important;
    margin-top: 0.5rem !important;
    color: var(--color-1) !important;
    padding-inline-start: 0 !important;
    list-style: none !important;
}

/* Every list item */
.singular-body li {
    position: relative !important;
    padding-inline-start: 28px !important;
    margin-bottom: 0.7rem !important;
    font-weight: 500 !important;
}

/* ---- Unordered (bullet) list ---- */
.singular-body ul > li::before {
    content: "" !important;
    position: absolute !important;
    inset-inline-start: 0 !important;
    top: 11px !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: var(--site-color) !important;
    opacity: 0.85 !important;
}

/* ---- Ordered (numbered) list ---- */
.singular-body ol {
    counter-reset: list-counter !important;
}

.singular-body ol > li {
    counter-increment: list-counter !important;
}

.singular-body ol > li::before {
    content: counter(list-counter) !important;
    position: absolute !important;
    inset-inline-start: 0 !important;
    top: 2px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: var(--site-color) !important;
    border-radius: 50% !important;
}

/* Nested lists indent */
.singular-body ul ul,
.singular-body ol ol,
.singular-body ul ol,
.singular-body ol ul {
    margin-top: 0.5rem !important;
    margin-bottom: 0.3rem !important;
    padding-inline-start: 12px !important;
}

/* Nested bullet smaller */
.singular-body ul ul > li::before {
    width: 7px !important;
    height: 7px !important;
    background: transparent !important;
    border: 2px solid var(--site-color) !important;
}

/* ---- Dark mode tweaks ---- */
[data-theme="dark"] .singular-body ul > li::before {
    opacity: 1 !important;
}

[data-theme="dark"] .singular-body ol > li::before {
    color: #fff !important;
}

/* ========== Professional Tables ========== */

.singular-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 2rem 0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

/* Header row — works with or without <thead> */
.singular-body table thead,
.singular-body table tr:first-child {
    background: var(--site-color) !important;
}

.singular-body table thead th,
.singular-body table tr:first-child th,
.singular-body table tr:first-child td {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 14px 18px !important;
    text-align: start !important;
    border: none !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
    background: transparent !important;
}

/* Body cells — works with or without <tbody> */
.singular-body table tbody td,
.singular-body table tr:not(:first-child) td {
    padding: 13px 18px !important;
    color: var(--color-1) !important;
    border-bottom: 1px solid var(--divider) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
}

/* Last row no bottom border */
.singular-body table tbody tr:last-child td,
.singular-body table tr:last-child td {
    border-bottom: none !important;
}

/* Zebra striping (skip header row) */
.singular-body table tbody tr:nth-child(even),
.singular-body table tr:nth-child(odd):not(:first-child) {
    background: rgba(0,0,0,0.015) !important;
}

/* Row hover */
.singular-body table tbody tr,
.singular-body table tr:not(:first-child) {
    transition: background 0.2s ease !important;
}
.singular-body table tbody tr:hover,
.singular-body table tr:not(:first-child):hover {
    background: rgba(0,0,0,0.04) !important;
}

/* Responsive wrapper */
.singular-body .wp-block-table,
.singular-body .tablepress-scroll-wrapper,
.singular-body figure.wp-block-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 2rem 0 !important;
}

/* Caption */
.singular-body table caption {
    caption-side: bottom !important;
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
    color: var(--color-3) !important;
    font-weight: 600 !important;
}

/* ---- Dark mode ---- */
[data-theme="dark"] .singular-body table {
    background: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2) !important;
}

[data-theme="dark"] .singular-body table thead,
[data-theme="dark"] .singular-body table tr:first-child {
    background: var(--site-color) !important;
}

[data-theme="dark"] .singular-body table tbody td,
[data-theme="dark"] .singular-body table tr:not(:first-child) td {
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .singular-body table tbody tr:nth-child(even),
[data-theme="dark"] .singular-body table tr:nth-child(odd):not(:first-child) {
    background: rgba(255,255,255,0.02) !important;
}

[data-theme="dark"] .singular-body table tbody tr:hover,
[data-theme="dark"] .singular-body table tr:not(:first-child):hover {
    background: rgba(255,255,255,0.04) !important;
}

/* Headings (H2, H3, H4) inside the article */
.singular-body h2, 
.singular-body h3,
.singular-body h4 {
    font-weight: 800 !important;
    line-height: 1.6 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--color-1) !important;
    background: var(--bg-color-2) !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.rtl .singular-body h2, 
.rtl .singular-body h3,
.rtl .singular-body h4 {
    border-right: 4px solid var(--site-color) !important;
}

.ltr .singular-body h2, 
.ltr .singular-body h3,
.ltr .singular-body h4 {
    border-left: 4px solid var(--site-color) !important;
}

[data-theme="dark"] .singular-body h2, 
[data-theme="dark"] .singular-body h3,
[data-theme="dark"] .singular-body h4 {
    background: rgba(255,255,255,0.03) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-color: rgba(255,255,255,0.05) !important;
}


/* ==========================================================================
   11. FLATTEN CARD-IN-CARD — Remove outer boxed containers
   ========================================================================== */

/* Remove outer boxed wrapper card styling */
body.primary-boxed .primary-content-body,
body.primary-boxed.singular-primary-header-before .primary-singular .primary-header-inner,
body.primary-boxed.archive-primary-header-before .primary-archive .primary-header-inner,
.common-container {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
}

/* Remove ALL widget outer boxed wrappers in main content */
.widget.boxed > .widget-inner,
.primary .widget.boxed > .widget-inner,
body.primary-notboxed .primary .widget.boxed > .widget-inner,
.primary .primary-content-content .widget.boxed > .widget-inner {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    padding: 0 !important;
}

/* Remove widgets-list boxed wrapper */
.widgets-list.boxed,
.widgets-list.boxed .widgets-list-inner {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Remove archive header card wrapper */
.archive-header {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.archive-header::before {
    display: none !important;
}

/* Remove the singular-header inner card (title area) */
.singular-header {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.singular-header::before {
    display: none !important;
}

/* Restore singular-story-body-wrap as a card */
.singular-story-body-wrap {
    background-color: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: clamp(1rem, 2vw, 1.35rem) !important;
}

/* Remove the red top border from header & footer */
#header {
    border-top: none !important;
}
#footer {
    border-top: none !important;
}

/* Keep post listing cards looking clean (they stay as cards) */
.items-list .style-boxed .item-link {
    box-shadow: var(--card-shadow) !important;
    border-radius: var(--site-border-radius-lg) !important;
}
.items-list .style-boxed .item-inner {
    background-color: var(--bg-color) !important;
    border-radius: var(--site-border-radius-lg) !important;
}

/* ==========================================================================
   12. IMPROVED POST CARDS
   ========================================================================== */

/* Hide excerpt/description on small cards — show on large ones */
.item-description {
    display: none !important;
}

/* Show description on width-50 and width-100 cards (lead items) */
.items-list .item.width-50 .item-description,
.items-list .item.width-100 .item-description,
.items-list .item:first-child .item-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Stronger editorial card structure */
.items-list .item {
    margin-bottom: 0 !important;
}

.items-list .item-inner {
    height: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    gap: 0 !important;
}

.items-list .item-inner:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
    border-color: color-mix(in srgb, var(--site-color) 26%, var(--divider) 74%) !important;
}

/* Full-bleed image with editorial crop */
.items-list .item-image {
    position: relative !important;
    border-radius: 0 !important;
    aspect-ratio: 3 / 2 !important;
    flex-basis: auto !important;
    margin: 0 !important;
}

.items-list .item-image::after {
    content: "" !important;
    position: absolute !important;
    inset: auto 0 0 0 !important;
    height: 34% !important;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.24) 100%) !important;
    pointer-events: none !important;
}

.items-list .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.45s ease !important;
}

/* Compact news content area */
.items-list .item-content {
    position: relative !important;
    padding: 14px 16px 16px !important;
    gap: 9px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

/* Category badge */
.items-list .item-content .post-kicker {
    order: -1 !important;
    align-self: flex-start !important;
    margin-bottom: 2px !important;
}

.items-list .item-content .post-kicker a,
.items-list .item-content .post-kicker span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 10%, var(--bg-color) 90%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 26%, transparent 74%) !important;
    color: var(--site-color) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    letter-spacing: 0 !important;
}

/* Reset title wrapper */
.items-list .item-content h4 {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
}

/* Stronger headline styling */
.items-list .item-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem) !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    color: var(--color-1) !important;
    transition: color 0.2s ease !important;
}

/* Cleaner meta row */
.items-list .item-content > .post-meta {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid color-mix(in srgb, var(--divider) 74%, transparent 26%) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    align-items: center !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: var(--color-3) !important;
    opacity: 0.78 !important;
}

.items-list .item-content > .post-meta .post-meta-items {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    align-items: center !important;
}

.items-list .item-content > .post-meta .post-meta-item[data-type="terms"] {
    display: none !important;
}

/* Hide duplicated meta line */
.items-list .item-content > .post-meta ~ .post-meta {
    display: none !important;
}

/* Keep overlay link functional only */
.items-list .item-link {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.items-list .item-link:hover ~ .item-content h4 {
    text-decoration: none !important;
}

.items-list .item-link:hover ~ .item-content .item-title {
    color: var(--site-color) !important;
}

.items-list .item-link:hover ~ .item-image img {
    transform: scale(1.06) !important;
}

/* Give lead story more authority */
@media (min-width: 992px) {
    .archive-content .posts-list > .item:first-child .item-content {
        min-height: 164px !important;
    }

    .archive-content .posts-list > .item:first-child .item-title {
        font-size: 1.22rem !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
}

@media (max-width: 767px) {
    .items-list .item-content {
        min-height: 0 !important;
        padding: 13px 14px 14px !important;
    }

    .items-list .item-title {
        font-size: 1rem !important;
    }
}

/* ---- Dark mode ---- */
[data-theme="dark"] .items-list .item-inner {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.24) !important;
}

[data-theme="dark"] .items-list .item-inner:hover {
    box-shadow: 0 18px 42px rgba(0,0,0,0.34) !important;
    border-color: rgba(255,255,255,0.14) !important;
}

[data-theme="dark"] .items-list .item-content .post-kicker a,
[data-theme="dark"] .items-list .item-content .post-kicker span {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

[data-theme="dark"] .items-list .item-content > .post-meta {
    border-top-color: rgba(255,255,255,0.08) !important;
}


/* Sidebar widgets keep their card styling */
.sidebar .widget.boxed > .widget-inner {
    background-color: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    border-radius: var(--site-border-radius-lg) !important;
    box-shadow: var(--card-shadow) !important;
    border-top: 2px solid var(--site-color) !important;
}

/* Dark mode adjustments */
[data-theme="dark"] body.primary-boxed .primary-content-body,
[data-theme="dark"] .common-container,
[data-theme="dark"] .singular-story-body-wrap,
[data-theme="dark"] .singular-header {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   13. ARCHIVE PAGE REDESIGN
   ========================================================================== */

.primary-archive .archive-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}

.archive-editorial-header {
    margin-bottom: 0 !important;
}

.archive-editorial-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr) !important;
    gap: 20px !important;
    padding: 26px !important;
    border: 1px solid color-mix(in srgb, var(--divider) 78%, transparent 22%) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--site-color) 14%, transparent 86%) 0, transparent 34%),
        linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color) 94%, #000 6%) 100%) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07) !important;
}

.archive-editorial-main {
    min-width: 0 !important;
}

.archive-editorial-kicker {
    margin-bottom: 12px !important;
}

.archive-editorial-kicker span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 12%, var(--bg-color) 88%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 24%, transparent 76%) !important;
    color: var(--site-color) !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
}

.archive-editorial-header .archive-title {
    margin-bottom: 0 !important;
}

.archive-editorial-header .archive-title h1 {
    margin: 0 !important;
    font-size: clamp(2rem, 3vw, 3rem) !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
}

.archive-editorial-header .archive-description {
    margin-top: 14px !important;
    max-width: 62ch !important;
    font-size: 1.02rem !important;
    line-height: 1.95 !important;
    color: var(--color-2) !important;
}

.archive-editorial-aside {
    display: flex !important;
    align-items: stretch !important;
}

.archive-stat-card {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 22px !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--bg-color-2) 88%, transparent 12%) !important;
    border: 1px solid var(--divider) !important;
}

.archive-stat-label,
.archive-stat-caption {
    color: var(--color-3) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

.archive-stat-number {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: var(--color-1) !important;
}

.archive-editorial-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.archive-editorial-links .archive-links {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
}

.archive-editorial-links .archive-links .label {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
    color: var(--color-3) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
}

.archive-editorial-links .archive-links-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    flex: 1 1 auto !important;
}

.archive-editorial-links .archive-links a {
    text-decoration: none !important;
}

.archive-editorial-links .archive-links a > div {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    color: var(--color-2) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.archive-editorial-links .archive-links a:hover > div,
.archive-editorial-links .archive-links a.current > div {
    color: var(--site-color) !important;
    border-color: color-mix(in srgb, var(--site-color) 35%, var(--divider) 65%) !important;
    background: color-mix(in srgb, var(--site-color) 7%, var(--bg-color) 93%) !important;
}

.archive-editorial-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}

.archive-spotlight {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
    padding: 18px !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 98%, #000 2%) 0%, color-mix(in srgb, var(--bg-color) 94%, #000 6%) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 82%, transparent 18%) !important;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08) !important;
}

.archive-spotlight-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.archive-lead-card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    min-height: 320px !important;
    display: flex !important;
    align-items: end !important;
    background: #0f172a !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

.archive-lead-link,
.archive-secondary-link,
.archive-rail-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
}

.archive-lead-media,
.archive-lead-media img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.archive-lead-media img {
    object-fit: cover !important;
}

.archive-lead-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(15,23,42,0.12) 0%, rgba(15,23,42,0.82) 74%, rgba(15,23,42,0.96) 100%) !important;
    z-index: 1 !important;
}

.archive-lead-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.archive-lead-card .post-kicker,
.archive-rail-card .post-kicker {
    align-self: flex-start !important;
}

.archive-lead-card .post-kicker a,
.archive-lead-card .post-kicker span {
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    color: #fff !important;
}

.archive-lead-title {
    margin: 0 !important;
    font-size: clamp(1.22rem, 1.7vw, 1.65rem) !important;
    line-height: 1.32 !important;
    font-weight: 900 !important;
    color: #fff !important;
    max-width: min(26ch, 100%) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.archive-lead-card .post-meta,
.archive-rail-card .post-meta {
    position: relative !important;
    z-index: 2 !important;
}

.archive-lead-card .post-meta,
.archive-lead-card .post-meta a,
.archive-lead-card .post-meta time {
    color: rgba(255,255,255,0.82) !important;
}

.archive-lead-card .post-meta .post-meta-item[data-type="terms"] {
    display: none !important;
}

.archive-lead-excerpt {
    max-width: 58ch !important;
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    color: rgba(255,255,255,0.8) !important;
}

.archive-lead-excerpt p:last-child {
    margin-bottom: 0 !important;
}

.archive-secondary-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: color-mix(in srgb, var(--bg-color) 99%, #000 1%) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 88%, transparent 12%) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05) !important;
}

.archive-secondary-media {
    min-height: 100% !important;
    overflow: hidden !important;
}

.archive-secondary-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.archive-secondary-content {
    position: relative !important;
    z-index: 2 !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.archive-secondary-card .post-kicker {
    align-self: flex-start !important;
}

.archive-secondary-title {
    margin: 0 !important;
    font-size: clamp(0.98rem, 1.1vw, 1.15rem) !important;
    line-height: 1.45 !important;
    font-weight: 850 !important;
    color: var(--color-1) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.archive-secondary-excerpt {
    color: var(--color-2) !important;
    font-size: 0.83rem !important;
    line-height: 1.6 !important;
}

.archive-secondary-excerpt p:last-child {
    margin-bottom: 0 !important;
}

.archive-secondary-card .post-meta {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid color-mix(in srgb, var(--divider) 72%, transparent 28%) !important;
}

.archive-secondary-card .post-meta .post-meta-item[data-type="terms"] {
    display: none !important;
}

.archive-spotlight-rail {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    min-width: 0 !important;
}

.archive-section-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--color-3) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.archive-section-label::before {
    content: "" !important;
    width: 18px !important;
    height: 2px !important;
    background: var(--site-color) !important;
}

.archive-rail-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 116px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 13px !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--bg-color) 99%, #000 1%) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 88%, transparent 12%) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
}

.archive-rail-media {
    overflow: hidden !important;
    border-radius: 14px !important;
    aspect-ratio: 1 / 1 !important;
}

.archive-rail-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.archive-rail-content {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.archive-rail-card .post-kicker a,
.archive-rail-card .post-kicker span {
    min-height: 26px !important;
    padding: 0 10px !important;
}

.archive-rail-title {
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    font-weight: 800 !important;
    color: var(--color-1) !important;
}

.archive-rail-card .post-meta {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid color-mix(in srgb, var(--divider) 72%, transparent 28%) !important;
}

.archive-rail-card .post-meta .post-meta-item[data-type="terms"] {
    display: none !important;
}

.archive-news-stream {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.archive-stream-head {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.archive-stream-title {
    margin: 6px 0 0 !important;
    font-size: clamp(1.5rem, 2vw, 2rem) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
}

.archive-stream-outer {
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 22px !important;
    background: color-mix(in srgb, var(--bg-color) 96%, #000 4%) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 82%, transparent 18%) !important;
    overflow: visible !important;
}

.archive-stream-list {
    --item-width-base: 33.333% !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.archive-stream-list > .item {
    grid-column: span 3 !important;
}

.archive-stream-list > .item .item-inner {
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05) !important;
    border-color: color-mix(in srgb, var(--divider) 84%, transparent 16%) !important;
    background: color-mix(in srgb, var(--bg-color) 99%, #000 1%) !important;
}

.archive-stream-list > .item .item-image {
    aspect-ratio: 16 / 10 !important;
}

.archive-stream-list > .item .item-content {
    padding: 14px 15px 15px !important;
    gap: 8px !important;
}

.archive-stream-list > .item .item-content .post-kicker a,
.archive-stream-list > .item .item-content .post-kicker span {
    min-height: 26px !important;
    padding: 0 10px !important;
    font-size: 0.68rem !important;
}

.archive-stream-list > .item .item-title {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
}

.archive-stream-list > .item .item-description {
    display: none !important;
}

.archive-stream-list > .item .post-meta-item[data-type="terms"] {
    display: none !important;
}

@media (min-width: 992px) {
    .archive-stream-list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .archive-stream-list > .item {
        grid-column: auto !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 0 !important;
    }
}

.archive-stream-list > .dummy {
    display: none !important;
}

@media (max-width: 1199px) {
    .archive-spotlight {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }

    .archive-lead-card {
        min-height: 500px !important;
    }

    .archive-spotlight-rail {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .archive-secondary-card {
        grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr) !important;
    }

    .archive-rail-card {
        grid-template-columns: 1fr !important;
    }

    .archive-rail-media {
        aspect-ratio: 16 / 10 !important;
    }

    .archive-stream-list > .item {
        grid-column: span 4 !important;
    }
}

@media (max-width: 991px) {
    .archive-editorial-hero {
        grid-template-columns: 1fr !important;
        padding: 22px !important;
    }

    .archive-stream-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .archive-spotlight {
        padding: 18px !important;
        border-radius: 24px !important;
    }

    .archive-spotlight-rail {
        grid-template-columns: 1fr !important;
    }

    .archive-stream-outer {
        padding: 16px !important;
        margin: 0 !important;
    }

    .archive-stream-list > .item {
        grid-column: span 6 !important;
    }

    .archive-secondary-card {
        grid-template-columns: 1fr !important;
    }

    .archive-secondary-media {
        aspect-ratio: 16 / 9 !important;
    }
}

@media (max-width: 767px) {
    .primary-archive .archive-content {
        gap: 18px !important;
        min-width: 0 !important;
    }

    .archive-editorial-hero {
        gap: 14px !important;
        padding: 16px !important;
        border-radius: 18px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .archive-editorial-kicker {
        margin-bottom: 8px !important;
    }

    .archive-editorial-header .archive-title h1 {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
        line-height: 1.14 !important;
    }

    .archive-editorial-header .archive-description {
        margin-top: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.9rem !important;
        line-height: 1.8 !important;
    }

    .archive-editorial-aside {
        display: none !important;
    }

    .archive-editorial-links {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .archive-editorial-links .archive-links {
        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .archive-editorial-links .archive-links .label {
        display: none !important;
    }

    .archive-editorial-links,
    .archive-editorial-links .archive-links,
    .archive-editorial-links .archive-links-inner,
    .archive-editorial-page,
    .archive-spotlight,
    .archive-news-stream,
    .archive-stream-outer,
    .archive-stream-list {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .archive-editorial-links .archive-links-inner {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
        scrollbar-width: thin !important;
    }

    .archive-editorial-links .archive-links a {
        flex: 0 0 auto !important;
    }

    .archive-editorial-links .archive-links a > div {
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
    }

    .archive-lead-card {
        min-height: 300px !important;
        border-radius: 20px !important;
    }

    .archive-spotlight {
        padding: 14px !important;
        gap: 14px !important;
        border-radius: 18px !important;
    }

    .archive-lead-content {
        padding: 16px !important;
        gap: 10px !important;
    }

    .archive-secondary-content {
        padding: 14px !important;
    }

    .archive-secondary-title {
        font-size: 1rem !important;
    }

    .archive-lead-title {
        font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
        max-width: none !important;
    }

    .archive-lead-excerpt {
        display: none !important;
    }

    .archive-stream-head {
        align-items: start !important;
    }

    .archive-stream-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .archive-stream-list > .item {
        grid-column: span 12 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .archive-stream-list > .item .item-inner {
        display: grid !important;
        grid-template-columns: 112px minmax(0, 1fr) !important;
        align-items: stretch !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .archive-stream-list > .item .item-image {
        aspect-ratio: auto !important;
        min-height: 100% !important;
        height: 100% !important;
    }

    .archive-stream-list > .item .item-image img {
        height: 100% !important;
    }

    .archive-stream-list > .item .item-content {
        justify-content: center !important;
        padding: 12px !important;
        gap: 6px !important;
    }

    .archive-stream-list > .item .item-content .post-kicker {
        display: none !important;
    }

    .archive-stream-list > .item .item-title {
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        font-size: 0.94rem !important;
        line-height: 1.55 !important;
    }

    .archive-stream-list > .item .item-content > .post-meta {
        margin-top: 2px !important;
        padding-top: 0 !important;
        border-top: 0 !important;
        font-size: 0.72rem !important;
    }

    .archive-stream-list > .item .item-content > .post-meta .post-meta-item:not([data-type="date_updated"]):not([data-type="date_published"]) {
        display: none !important;
    }

    .archive-stream-list > .item .item-inner,
    .archive-stream-list > .item .item-content,
    .archive-stream-list > .item .post-meta,
    .archive-stream-list > .item .post-meta-items,
    .archive-stream-list > .item h4,
    .archive-stream-list > .item .item-title {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .archive-stream-list > .item .item-title,
    .archive-stream-list > .item .meta-content,
    .archive-stream-list > .item .meta-content a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

@media (max-width: 575px) {
    .archive-editorial-hero {
        padding: 14px !important;
    }

    .archive-editorial-links .archive-links {
        padding: 10px !important;
    }

    .archive-editorial-links .archive-links-inner {
        margin-right: -4px !important;
        margin-left: -4px !important;
        padding-right: 4px !important;
        padding-left: 4px !important;
    }

    .archive-lead-card {
        min-height: 260px !important;
    }

    .archive-lead-content {
        padding: 14px !important;
    }

    .archive-rail-card {
        padding: 12px !important;
        gap: 12px !important;
        border-radius: 16px !important;
    }

    .archive-stream-outer {
        padding: 12px !important;
        border-radius: 16px !important;
        margin: 0 !important;
    }

    .archive-stream-list > .item .item-inner {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }
}

[data-theme="dark"] .archive-editorial-hero,
[data-theme="dark"] .archive-stream-outer,
[data-theme="dark"] .archive-rail-card,
[data-theme="dark"] .archive-stat-card,
[data-theme="dark"] .archive-editorial-links .archive-links {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22) !important;
}

[data-theme="dark"] .archive-editorial-links .archive-links a > div,
[data-theme="dark"] .archive-editorial-kicker span {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

[data-theme="dark"] .archive-rail-card .post-meta,
[data-theme="dark"] .items-list .item-content > .post-meta {
    border-top-color: rgba(255,255,255,0.08) !important;
}

/* ==========================================================================
   14. HOMEPAGE NEWSROOM REDESIGN
   ========================================================================== */

.home-newsroom {
    position: relative !important;
    padding: 10px 0 30px !important;
    background: transparent !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.home-newsroom *,
.home-newsroom *::before,
.home-newsroom *::after {
    box-sizing: border-box !important;
}

/* --- Hide sections: Today/Week (home_4) and Explore (home_6) --- */
.home-newsroom #widgets-area-home_4,
.home-newsroom #widgets-area-home_6 {
    display: none !important;
}

/* --- Hide excerpts everywhere except hero slider --- */
.home-newsroom .item-description {
    display: none !important;
}
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-description {
    display: block !important;
}

/* --- Hide duplicate post-meta after description --- */
.home-newsroom .item-description + .post-meta {
    display: none !important;
}

/* ---- Reset theme defaults inside newsroom ---- */
.home-newsroom .widgets-area .container {
    position: relative !important;
}

.home-newsroom .widgets-area-inner {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.home-newsroom .widget {
    padding: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Reset boxed widget styling */
.home-newsroom .widget.boxed > .widget-inner {
    border-top: none !important;
}

/* ---- Widget card containers ---- */
.home-newsroom .widget-inner,
.home-newsroom .widgets-list-inner {
    height: auto !important;
    padding: 18px !important;
    border-radius: 18px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05) !important;
}

/* ---- Widget header ---- */
.home-newsroom .widget-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid rgba(0,0,0,0.05) !important;
    position: relative !important;
}
[data-theme="dark"] .home-newsroom .widget-header {
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

.home-newsroom .widget-title {
    flex: 1 1 auto !important;
    position: relative !important;
}

.home-newsroom .widget-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.home-newsroom .widget-title h3::after {
    display: none !important; /* Hide old pseudo-element */
}

/* Added primary brand color underline to the section title */
.home-newsroom .widget-header::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    right: 0 !important; /* RTL */
    width: 60px !important;
    height: 2px !important;
    background-color: var(--primary, #d82221) !important;
}

/* ---- "More" button ---- */
.home-newsroom .widget-more {
    display: block !important;
    margin-top: 14px !important;
}

.home-newsroom .widget-more a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    color: var(--color-2) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.home-newsroom .widget-more a:hover {
    color: var(--site-color) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
    background: color-mix(in srgb, var(--site-color) 6%, var(--bg-color) 94%) !important;
}

/* ==========================================================================
   14-A. HERO AREA (home_1)
   ========================================================================== */

.home-newsroom #widgets-area-home_1 .widgets-area-inner {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child {
    grid-column: 1 / -1 !important;
}

.home-newsroom #widgets-area-home_1 .widget:nth-child(2),
.home-newsroom #widgets-area-home_1 .widget:nth-child(3) {
    grid-column: span 6 !important;
}

.home-newsroom #widgets-area-home_1 .widget:nth-child(n+4) {
    grid-column: span 4 !important;
}

/* Hero widget — remove the card wrapper styling */
.home-newsroom #widgets-area-home_1 .widget:first-child .widget-inner {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Hero widget header */
.home-newsroom #widgets-area-home_1 .widget:first-child .widget-header {
    display: none !important;
}

/* Hero widget — hide "المزيد" under the slider */
.home-newsroom #widgets-area-home_1 .widget:first-child .widget-more {
    display: none !important;
}

/* ---- Slider container ---- */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer {
    overflow: hidden !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .items-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item {
    height: auto !important;
    display: flex !important;
    flex-shrink: 0 !important;
    flex-basis: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- Slide card: full-bleed image with overlay text ---- */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
    position: relative !important;
    min-height: 460px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
    border-radius: 16px !important;
    background: #111 !important;
    box-shadow: none !important;
    gap: 0 !important;
}

/* Dark gradient overlay */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to bottom,
        transparent 25%,
        rgba(0,0,0,0.12) 40%,
        rgba(0,0,0,0.50) 60%,
        rgba(0,0,0,0.82) 80%,
        rgba(0,0,0,0.92) 100%
    ) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Full-bleed image */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-image {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    flex-basis: auto !important;
    border-radius: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-image::after {
    display: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 6s ease !important;
}

/* Ken Burns: slow zoom while slide is active */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-slide-active .item-image img {
    transform: scale(1.06) !important;
}

/* Content overlay */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    z-index: 2 !important;
    min-height: 0 !important;
    padding: 36px 34px !important;
    gap: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Category badge */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-kicker a,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-kicker span {
    background: var(--site-color, #B71C1C) !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 4px !important;
    letter-spacing: 0.02em !important;
    text-shadow: none !important;
}

/* Headline */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-title {
    font-size: clamp(1.25rem, 2.8vw, 2rem) !important;
    line-height: 1.5 !important;
    font-weight: 800 !important;
    color: #fff !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    max-width: 48ch !important;
}

/* Excerpt */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-description {
    display: block !important;
    max-width: 50ch !important;
    color: rgba(255,255,255,0.80) !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-description p {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* Meta */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-meta,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-meta a,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-meta time {
    color: rgba(255,255,255,0.60) !important;
    border-top: none !important;
    padding-top: 0 !important;
    opacity: 1 !important;
    font-size: 0.78rem !important;
}

/* ---- Swiper Pagination ---- */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-pagination {
    position: absolute !important;
    inset: auto 34px 36px auto !important;
    width: auto !important;
    z-index: 50 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-pagination-bullet {
    width: 7px !important;
    height: 7px !important;
    background: rgba(255,255,255,0.35) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-pagination-bullet-active {
    width: 28px !important;
    height: 7px !important;
    background: #fff !important;
    border-radius: 4px !important;
}

/* ---- Swiper Navigation Arrows ---- */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev) {
    z-index: 50 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    position: absolute !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev)::after {
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.30) !important;
    color: #fff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    font-size: 0.8em !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev):hover::after {
    background: rgba(0,0,0,0.50) !important;
    border-color: rgba(255,255,255,0.20) !important;
}

/* ---- Slider: fix item-link & swiper-wrapper stacking so buttons receive clicks ---- */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-wrapper {
    z-index: 1 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-link {
    z-index: 2 !important;
}


/* ==========================================================================
   14-B. SECTION WIDGETS (non-hero post lists)
   ========================================================================== */

/* ---- CRITICAL: Neutralize base grid system inside newsroom ---- */
.home-newsroom .items-list-outer {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    list-style: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    display: block !important;
    grid-column: unset !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* ---- Base card normalization (non-slider) ---- */
.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-inner {
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    gap: 0 !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-inner:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    border-color: color-mix(in srgb, var(--site-color) 18%, var(--divider) 82%) !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-image {
    border-radius: 0 !important;
    aspect-ratio: 16 / 10 !important;
    flex-basis: auto !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-image::after {
    display: none !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1) !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-content {
    min-height: 0 !important;
    padding: 14px !important;
    gap: 8px !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-content > .post-meta {
    margin-top: auto !important;
    padding-top: 6px !important;
    border-top: 1px solid color-mix(in srgb, var(--divider) 72%, transparent 28%) !important;
    opacity: 0.7 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-content > .post-meta ~ .post-meta {
    display: none !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item .item-link {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---- End base reset ---- */

/* ---- Section posts layout: force flex column ---- */
.home-newsroom #widgets-area-home_1 .widget:not(:first-child) .posts-list,
.home-newsroom .widgets-area:not(#widgets-area-home_1):not(#widgets-area-home_4) .posts-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* ==== LEAD CARD (first item) — vertical card with image on top ==== */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: var(--bg-color) !important;
    gap: 0 !important;
    height: auto !important;
}

/* Lead image — proportional to card width, not too tall */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-image {
    position: relative !important;
    aspect-ratio: 2 / 1 !important;
    flex-basis: auto !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: block !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Hover: zoom image */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-link:hover ~ .item-image img {
    transform: scale(1.04) !important;
}

/* Lead category kicker */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .post-kicker {
    margin: 0 !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .post-kicker a,
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .post-kicker span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 10%, var(--bg-color) 90%) !important;
    border: none !important;
    color: var(--site-color) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Lead content area */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-content {
    padding: 14px !important;
    min-height: 0 !important;
    gap: 8px !important;
}

/* Lead title */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-title {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    transition: color 0.2s ease !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-link:hover ~ .item-content .item-title {
    color: var(--site-color) !important;
}

/* Lead meta */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .post-meta {
    font-size: 0.7rem !important;
    margin-top: auto !important;
    padding-top: 6px !important;
    border-top: 1px solid color-mix(in srgb, var(--divider) 72%, transparent 28%) !important;
}

/* ==== COMPACT CARDS (non-first items) — horizontal thumbnail + text ==== */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner:hover {
    border-color: color-mix(in srgb, var(--site-color) 16%, var(--divider) 84%) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* Compact image */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image {
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    flex-basis: auto !important;
    overflow: hidden !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image img {
    transition: transform 0.4s ease !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-link:hover ~ .item-image img {
    transform: scale(1.06) !important;
}

/* Compact content */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-content {
    min-height: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
}

/* Compact title */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-title {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    transition: color 0.2s ease !important;
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-link:hover ~ .item-content .item-title {
    color: var(--site-color) !important;
}

/* Compact meta */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-meta {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: auto !important;
    opacity: 0.6 !important;
    font-size: 0.66rem !important;
}

/* Compact kicker */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker a,
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 20px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 10%, var(--bg-color) 90%) !important;
    border: none !important;
    color: var(--site-color) !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Hide dummy items */
.home-newsroom .items-list:not(.swiper-wrapper) > .item.item-dummy {
    display: none !important;
}


/* ==========================================================================
   14-C. GRID LAYOUT FOR AREAS
   ========================================================================== */

.home-newsroom .widgets-area:not(#widgets-area-home_1) .widgets-area-inner {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding-top: 14px !important;
    padding-bottom: 0 !important;
    align-items: stretch !important;
}

/* Widget cards fill their grid cell height */
.home-newsroom .widgets-area:not(#widgets-area-home_1) .widget {
    display: flex !important;
    flex-direction: column !important;
}

.home-newsroom .widgets-area:not(#widgets-area-home_1) .widget > .widget-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: auto !important;
}

/* Items list outer fills remaining space */
.home-newsroom .widgets-area:not(#widgets-area-home_1) .widget .items-list-outer {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.home-newsroom .widgets-area:not(#widgets-area-home_1) .widget .items-list {
    flex-grow: 1 !important;
}

/* 2 widgets per row (home_2) */
.home-newsroom #widgets-area-home_2 .widget {
    grid-column: span 6 !important;
}

/* 3 widgets per row (home_3, home_5) */
.home-newsroom #widgets-area-home_3 .widget,
.home-newsroom #widgets-area-home_5 .widget {
    grid-column: span 4 !important;
}

/* Full width: popular (home_4) and explore (home_6) */
.home-newsroom #widgets-area-home_4 .widget,
.home-newsroom #widgets-area-home_6 .widget {
    grid-column: 1 / -1 !important;
}

/* Fallback: any unspecified area defaults to 4-col */
.home-newsroom .widgets-area:not(#widgets-area-home_1):not(#widgets-area-home_2):not(#widgets-area-home_3):not(#widgets-area-home_4):not(#widgets-area-home_5):not(#widgets-area-home_6) .widget {
    grid-column: span 4 !important;
}

/* Hero area grid alignment */
.home-newsroom #widgets-area-home_1 .widgets-area-inner {
    align-items: start !important;
}

.home-newsroom #widgets-area-home_1 .widget:not(:first-child) {
    display: flex !important;
    flex-direction: column !important;
}

.home-newsroom #widgets-area-home_1 .widget:not(:first-child) > .widget-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 0 !important;
    height: auto !important;
}

.home-newsroom #widgets-area-home_1 .widget:not(:first-child) .items-list-outer {
    flex-grow: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.home-newsroom #widgets-area-home_1 .widget:not(:first-child) .items-list {
    flex-grow: 1 !important;
}


/* ==========================================================================
   14-D. POPULAR/TABBED SECTION (home_4)
   ========================================================================== */

.home-newsroom #widgets-area-home_4 .widgets-list-inner {
    padding: 20px !important;
}

.home-newsroom #widgets-area-home_4 .widget-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.home-newsroom #widgets-area-home_4 .widget-tabs a {
    text-decoration: none !important;
}

.home-newsroom #widgets-area-home_4 .widget-tabs a div {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    color: var(--color-2) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    transition: all 0.2s ease !important;
}

.home-newsroom #widgets-area-home_4 .widget-tabs a.active div,
.home-newsroom #widgets-area-home_4 .widget-tabs a:hover div {
    color: var(--site-color) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
    background: color-mix(in srgb, var(--site-color) 6%, var(--bg-color) 94%) !important;
}

/* Posts inside popular section use same compact layout */
.home-newsroom #widgets-area-home_4 .widgets-area-inner .widget {
    padding: 0 !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .widget .widget-inner {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .widget .widget-header {
    display: none !important;
}

/* Popular section post list: horizontal grid */
.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .item-inner {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: auto !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .item-inner:hover {
    transform: none !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .item-image {
    aspect-ratio: 1 !important;
    border-radius: 10px !important;
    flex-basis: auto !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .item-image::after {
    display: none !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .item-content {
    min-height: 0 !important;
    padding: 2px 0 !important;
    gap: 4px !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .item-title {
    font-size: 0.9rem !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .post-meta {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    font-size: 0.7rem !important;
}

.home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list > .item .post-kicker {
    display: none !important;
}


/* ==========================================================================
   14-E. EXPLORE SECTIONS (home_6)
   ========================================================================== */

.home-newsroom #widgets-area-home_6 .widget-inner {
    padding: 20px !important;
}

.home-newsroom #widgets-area-home_6 .terms-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item {
    grid-column: span 1 !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-inner {
    min-height: 110px !important;
    justify-content: center !important;
    padding: 16px !important;
    border-radius: 16px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-image,
.home-newsroom #widgets-area-home_6 .terms-list .item-description {
    display: none !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-content {
    min-height: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-title {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    color: var(--color-1) !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-count > div {
    min-height: 26px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 8%, var(--bg-color) 92%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 20%, transparent 80%) !important;
    color: var(--site-color) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-count > div::after {
    content: " مقال" !important;
    margin-right: 2px !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-inner {
    border-color: color-mix(in srgb, var(--site-color) 24%, var(--divider) 76%) !important;
    transform: translateY(-2px) !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-content .item-title {
    color: var(--site-color) !important;
}


/* ==========================================================================
   14-F. RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
    .home-newsroom #widgets-area-home_1 .widget:nth-child(n+4) {
        grid-column: span 6 !important;
    }

    .home-newsroom #widgets-area-home_3 .widget,
    .home-newsroom #widgets-area-home_5 .widget {
        grid-column: span 6 !important;
    }
}

@media (max-width: 991px) {
    .home-newsroom .widget-inner,
    .home-newsroom .widgets-list-inner {
        padding: 14px !important;
    }

    .home-newsroom #widgets-area-home_1 .widgets-area-inner,
    .home-newsroom .widgets-area:not(#widgets-area-home_1) .widgets-area-inner {
        gap: 10px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:nth-child(2),
    .home-newsroom #widgets-area-home_1 .widget:nth-child(3),
    .home-newsroom #widgets-area-home_1 .widget:nth-child(n+4),
    .home-newsroom .widgets-area:not(#widgets-area-home_1) .widget {
        grid-column: span 6 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        min-height: 380px !important;
    }

    .home-newsroom #widgets-area-home_6 .terms-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-newsroom #widgets-area-home_4 .widgets-area-inner .posts-list {
        grid-template-columns: 1fr !important;
    }

    /* Compact thumbnail smaller */
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    /* Tighter card gap */
    .home-newsroom .items-list {
        gap: 8px !important;
    }
}

@media (max-width: 767px) {
    .home-newsroom {
        padding-top: 8px !important;
        padding-bottom: 24px !important;
        overflow-x: hidden !important;
    }

    .home-newsroom .widget.boxed > .widget-inner,
    .home-newsroom .widgets-list.boxed .widgets-list-inner,
    .home-newsroom .common-container,
    .home-newsroom .items-list-outer {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .home-newsroom .widgets-area-inner {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .home-newsroom .widget-inner,
    .home-newsroom .widgets-list-inner {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .home-newsroom .widget-title h3 {
        font-size: 1.05rem !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:nth-child(2),
    .home-newsroom #widgets-area-home_1 .widget:nth-child(3),
    .home-newsroom #widgets-area-home_1 .widget:nth-child(n+4) {
        grid-column: span 12 !important;
    }

    /* Slider */
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        min-height: 320px !important;
        border-radius: 12px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
        padding: 22px 20px !important;
        gap: 10px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-title {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-description {
        display: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-pagination {
        inset: auto 20px 22px auto !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev)::after {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.7em !important;
    }

    /* All sections → full width */
    .home-newsroom .widgets-area:not(#widgets-area-home_1) .widget {
        grid-column: span 12 !important;
    }

    /* Lead image wider on mobile */
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-image {
        aspect-ratio: 21 / 10 !important;
    }

    /* Compact cards on mobile */
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        grid-template-columns: 76px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 12px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image {
        border-radius: 8px !important;
    }

    /* Lead card radius */
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner {
        border-radius: 12px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-link {
        border-radius: 12px !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom .widget-inner,
    .home-newsroom .widgets-list-inner {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .home-newsroom .widget.boxed > .widget-inner,
    .home-newsroom .widgets-list.boxed .widgets-list-inner,
    .home-newsroom .common-container,
    .home-newsroom .items-list-outer {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Slider */
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer {
        border-radius: 10px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        min-height: 260px !important;
        border-radius: 10px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
        padding: 16px 14px !important;
        gap: 8px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-title {
        font-size: 1rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev) {
        display: none !important;
    }

    /* Compact cards — tighter on small screens */
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        grid-template-columns: 60px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-title {
        font-size: 0.78rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image {
        border-radius: 8px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker a,
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker span {
        font-size: 0.58rem !important;
        min-height: 18px !important;
        padding: 0 5px !important;
    }

    /* Lead card */
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner {
        border-radius: 10px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-link {
        border-radius: 10px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-content {
        padding: 10px !important;
        gap: 6px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-title {
        font-size: 0.92rem !important;
    }

    /* Categories grid */
    .home-newsroom #widgets-area-home_6 .terms-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .home-newsroom #widgets-area-home_6 .terms-list .item-inner {
        min-height: 80px !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .home-newsroom #widgets-area-home_6 .terms-list .item-title {
        font-size: 0.84rem !important;
    }

    /* Card gap tighter */
    .home-newsroom .items-list {
        gap: 6px !important;
    }
}


/* ==========================================================================
   14-G. DARK MODE
   ========================================================================== */

[data-theme="dark"] .home-newsroom .widget-inner,
[data-theme="dark"] .home-newsroom .widgets-list-inner {
    background: rgba(255,255,255,0.025) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.24) !important;
}

[data-theme="dark"] .home-newsroom .widget-header {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}

[data-theme="dark"] .home-newsroom .widget-more a {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

[data-theme="dark"] .home-newsroom .items-list .item-inner {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.18) !important;
}

[data-theme="dark"] .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.18) !important;
}

[data-theme="dark"] .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .post-kicker a,
[data-theme="dark"] .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .post-kicker span {
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
}

[data-theme="dark"] #home-newsroom #widgets-area-home_6 .terms-list .item-inner {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.07) !important;
}

[data-theme="dark"] .home-newsroom #widgets-area-home_6 .terms-list .item-count > div {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: #fff !important;
}


/* ==========================================================================
   15. SEARCH RESULTS PAGE REDESIGN
   ========================================================================== */

.search-results .archive-search-form {
    margin-top: 16px !important;
}

.search-results .archive-search-form .search-form {
    max-width: 100% !important;
}

.search-results .archive-search-form .search-form-inner {
    border-radius: 16px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.search-results .archive-search-form .search-form-inner:focus-within {
    border-color: color-mix(in srgb, var(--site-color) 50%, var(--divider) 50%) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-color) 10%, transparent 90%), 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}

.search-results .archive-search-form .search-field {
    min-height: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.search-results .archive-search-form .search-submit {
    min-width: 50px !important;
    color: var(--site-color) !important;
}

.search-results .archive-stat-card {
    background: color-mix(in srgb, var(--site-color) 6%, var(--bg-color) 94%) !important;
    border-color: color-mix(in srgb, var(--site-color) 16%, var(--divider) 84%) !important;
}

.search-results .archive-stat-number {
    color: var(--site-color) !important;
}

.search-results .archive-editorial-hero {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--site-color) 10%, transparent 90%) 0, transparent 30%),
        linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color) 96%, #000 4%) 100%) !important;
}

.search-results .archive-editorial-links:empty {
    display: none !important;
}

.search-results .no-content,
.search-no-results .no-content {
    text-align: center !important;
    padding: 60px 20px !important;
    font-size: 1.08rem !important;
    color: var(--color-2) !important;
}

[data-theme="dark"] .search-results .archive-search-form .search-form-inner {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .search-results .archive-search-form .search-form-inner:focus-within {
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04) !important;
}

[data-theme="dark"] .search-results .archive-editorial-hero {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%) !important;
}

@media (max-width: 767px) {
    .search-results .archive-search-form .search-form-inner {
        border-radius: 14px !important;
    }
    .search-results .archive-search-form .search-field {
        min-height: 44px !important;
        font-size: 0.92rem !important;
    }
}


/* ==========================================================================
   16. TAG & TAXONOMY ARCHIVE POLISH
   ========================================================================== */

.tag .archive-editorial-kicker span,
.tax-post_tag .archive-editorial-kicker span {
    background: color-mix(in srgb, #6366f1 12%, var(--bg-color) 88%) !important;
    border-color: color-mix(in srgb, #6366f1 24%, transparent 76%) !important;
    color: #6366f1 !important;
}

.tag .archive-stat-card,
.tax-post_tag .archive-stat-card {
    border-color: color-mix(in srgb, #6366f1 18%, var(--divider) 82%) !important;
}

.tag .archive-stat-number,
.tax-post_tag .archive-stat-number {
    color: #6366f1 !important;
}

.tag .archive-section-label,
.tax-post_tag .archive-section-label {
    color: #6366f1 !important;
}

.tag .archive-lead-card,
.tax-post_tag .archive-lead-card {
    background: #1e1b4b !important;
}

.archive-editorial-links:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

[data-theme="dark"] .tag .archive-editorial-kicker span,
[data-theme="dark"] .tax-post_tag .archive-editorial-kicker span {
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.24) !important;
    color: #818cf8 !important;
}

[data-theme="dark"] .tag .archive-stat-number,
[data-theme="dark"] .tax-post_tag .archive-stat-number {
    color: #818cf8 !important;
}


/* ==========================================================================
   17. HOMEPAGE MAXIMUM VISUAL POLISH
   ========================================================================== */


/* ==========================================================================
   17-A. HERO SLIDER — Premium Cinematic Feel
   ========================================================================== */

/* Deeper, more cinematic gradient overlay */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner::before {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.04) 20%,
        rgba(0,0,0,0.18) 45%,
        rgba(0,0,0,0.58) 65%,
        rgba(0,0,0,0.84) 82%,
        rgba(0,0,0,0.94) 100%
    ) !important;
}

/* Vignette corners for editorial/cinematic look */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.25) 100%) !important;
    border-radius: 16px !important;
}

/* Stronger slider outer shadow & border */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer {
    box-shadow:
        0 8px 32px rgba(0,0,0,0.12),
        0 2px 8px rgba(0,0,0,0.06) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 60%, transparent 40%) !important;
}

/* Slide content: wider spacing + text refinement */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
    padding: 40px 38px !important;
    gap: 16px !important;
}

/* Category badge — bolder, distinct */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-kicker a,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .post-kicker span {
    background: var(--site-color, #B71C1C) !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22) !important;
}

/* Headline — larger, tighter, more impactful */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-title {
    font-size: clamp(1.35rem, 3vw, 2.2rem) !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
    color: #fff !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3) !important;
    max-width: 42ch !important;
    letter-spacing: -0.01em !important;
}

/* Excerpt — softer, more readable */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-description {
    max-width: 46ch !important;
    color: rgba(255,255,255,0.78) !important;
    font-size: 0.88rem !important;
    line-height: 1.75 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35) !important;
}

/* Swiper progress bar beneath pagination */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255,255,255,0.30) !important;
    border-radius: 50% !important;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-pagination-bullet-active {
    width: 32px !important;
    height: 8px !important;
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 8px rgba(255,255,255,0.4) !important;
}

/* Navigation arrows — glassmorphism */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev)::after {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
    background: rgba(0,0,0,0.35) !important;
    backdrop-filter: blur(16px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.6) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
    font-size: 0.75em !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer :is(.swiper-button-next, .swiper-button-prev):hover::after {
    background: rgba(0,0,0,0.55) !important;
    border-color: rgba(255,255,255,0.24) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
    transform: scale(1.05) !important;
}

/* Slider min-height bump for more impact */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
    min-height: 480px !important;
}

@media (max-width: 991px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        min-height: 400px !important;
    }
}

@media (max-width: 767px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        min-height: 340px !important;
    }
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner::after {
        border-radius: 14px !important;
    }
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
        padding: 24px 22px !important;
        gap: 12px !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        min-height: 300px !important;
    }
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner::after {
        border-radius: 12px !important;
    }
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
        padding: 20px 18px !important;
    }
}


/* ==========================================================================
   17-B. CATEGORY / TERMS CARDS — Rich Interactive Tiles
   ========================================================================== */

/* Card base — glass card with gradient accent */
.home-newsroom #widgets-area-home_6 .terms-list .item-inner {
    min-height: 120px !important;
    padding: 20px !important;
    border-radius: 18px !important;
    background:
        linear-gradient(135deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color-2) 70%, var(--bg-color) 30%) 100%) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04) !important;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Subtle gradient accent stripe at top */
.home-newsroom #widgets-area-home_6 .terms-list .item-inner::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--site-color), color-mix(in srgb, var(--site-color) 60%, #ff6b6b 40%)) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Hover: lift + show accent + stronger shadow */
.home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-inner {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.04) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-inner::before {
    opacity: 1 !important;
}

/* Title — bolder, better spacing */
.home-newsroom #widgets-area-home_6 .terms-list .item-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    color: var(--text-color) !important;
    transition: color 0.2s ease !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-content .item-title {
    color: var(--site-color) !important;
}

/* Count badge — refined pill */
.home-newsroom #widgets-area-home_6 .terms-list .item-count > div {
    min-height: 28px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 10%, var(--bg-color) 90%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 22%, transparent 78%) !important;
    color: var(--site-color) !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-content .item-count > div {
    background: var(--site-color) !important;
    color: #fff !important;
    border-color: var(--site-color) !important;
}

/* Content spacing */
.home-newsroom #widgets-area-home_6 .terms-list .item-content {
    gap: 8px !important;
}

/* Dark mode category cards */
[data-theme="dark"] .home-newsroom #widgets-area-home_6 .terms-list .item-inner {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2) !important;
}

[data-theme="dark"] .home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-inner {
    box-shadow: 0 12px 36px rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.16) !important;
}

[data-theme="dark"] .home-newsroom #widgets-area-home_6 .terms-list .item-count > div {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.8) !important;
}

[data-theme="dark"] .home-newsroom #widgets-area-home_6 .terms-list .item-link:hover ~ .item-content .item-count > div {
    background: var(--site-color) !important;
    color: #fff !important;
    border-color: var(--site-color) !important;
}

/* Responsive */
@media (max-width: 575px) {
    .home-newsroom #widgets-area-home_6 .terms-list .item-inner {
        min-height: 100px !important;
        padding: 14px !important;
        border-radius: 14px !important;
    }
}


/* ==========================================================================
   17-C. NEWS CARDS — Subtle Polish (complementary to 14-B structural layout)
   ========================================================================== */

/* Lead card — subtle gradient overlay on image bottom */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-image::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.05) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Category kicker badge transitions */
.home-newsroom .items-list .item-content .post-kicker a,
.home-newsroom .items-list .item-content .post-kicker span {
    transition: background 0.2s ease, color 0.2s ease !important;
}

/* Meta row — refined weight */
.home-newsroom .items-list .item-content > .post-meta {
    letter-spacing: 0.01em !important;
}

/* Dark mode shadows */
[data-theme="dark"] .home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}

[data-theme="dark"] .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
    box-shadow: 0 2px 10px rgba(0,0,0,0.16) !important;
}


/* ==========================================================================
   17-D. FOOTER — Premium Editorial Footer
   ========================================================================== */

/* Footer base — layered gradient background */
#footer {
    border-top: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Accent stripe at top instead of flat border */
#footer::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--site-color), color-mix(in srgb, var(--site-color) 65%, #ff6b6b 35%), var(--site-color)) !important;
    z-index: 2 !important;
}

/* Footer layout rows — better spacing */
#footer .layout-row {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

#footer .layout-row + .layout-row {
    border-top: 1px solid var(--divider) !important;
}

/* Footer widget titles — accent underline */
#footer .widget-title h3 {
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--divider) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    position: relative !important;
}

#footer .widget-title h3::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    right: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background: var(--site-color) !important;
}

.ltr #footer .widget-title h3::after {
    right: auto !important;
    left: 0 !important;
}

/* Footer nav links — better readability & hover */
#footer .nav-menu a {
    padding: 5px 0 !important;
    transition: color 0.2s ease, padding 0.2s ease !important;
}

#footer .nav-menu a:hover {
    color: var(--site-color) !important;
}

.rtl #footer .nav-menu a:hover {
    padding-right: 6px !important;
}

.ltr #footer .nav-menu a:hover {
    padding-left: 6px !important;
}

/* Footer layout items — better content spacing */
#footer .layout-item {
    font-size: 0.88em !important;
    line-height: 1.8 !important;
}

/* Site logo in footer — subtle emphasis */
#footer .site-logo {
    margin-bottom: 12px !important;
}

#footer .site-logo img {
    max-height: 44px !important;
}

/* Footer social links — larger, more interactive */
#footer .social-links a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

#footer .social-links a:hover {
    background: var(--site-color) !important;
    border-color: var(--site-color) !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--site-color) 40%, transparent 60%) !important;
}

#footer .social-links a:hover svg {
    fill: #fff !important;
    color: #fff !important;
}

/* Copyright section — editorial, refined */
.theme-copyrights {
    padding: 20px 24px !important;
    text-align: center !important;
    font-size: 0.78em !important;
    opacity: 1 !important;
    color: var(--text-muted) !important;
    border-top: 1px solid var(--divider) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.8 !important;
    position: relative !important;
}

.theme-copyrights a {
    color: var(--site-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.theme-copyrights a:hover {
    opacity: 0.8 !important;
}

/* Dark mode footer */
[data-theme="dark"] #footer {
    background:
        linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color) 94%, #000 6%) 100%) !important;
}

[data-theme="dark"] #footer .social-links a {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] #footer .social-links a:hover {
    background: var(--site-color) !important;
    border-color: var(--site-color) !important;
}

[data-theme="dark"] .theme-copyrights {
    border-top-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.45) !important;
}

/* Responsive footer */
@media (max-width: 767px) {
    #footer .layout-row {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .theme-copyrights {
        padding: 16px 16px !important;
        font-size: 0.74em !important;
    }

    #footer .social-links a {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }
}


/* ==========================================================================
   17-E. WIDGET SECTION HEADERS — Universal Polish
   ========================================================================== */

/* Section card containers — micro-refinement */
.home-newsroom .widget-inner,
.home-newsroom .widgets-list-inner {
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 12px 32px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.3s ease !important;
}

/* Widget header — accent bar refinement */
.home-newsroom .widget-header::after {
    width: 48px !important;
    height: 3px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, var(--site-color), color-mix(in srgb, var(--site-color) 60%, transparent 40%)) !important;
}

/* Widget title — refined typography */
.home-newsroom .widget-title h3 {
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
}

/* "More" button — refined CTA */
.home-newsroom .widget-more a {
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    gap: 5px !important;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

.home-newsroom .widget-more a:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--site-color) 15%, transparent 85%) !important;
}

/* Dark mode widget containers */
[data-theme="dark"] .home-newsroom .widget-inner,
[data-theme="dark"] .home-newsroom .widgets-list-inner {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.18) !important;
}

/* Responsive */
@media (max-width: 767px) {
    .home-newsroom .widget-inner,
    .home-newsroom .widgets-list-inner {
        border-radius: 12px !important;
    }
    .home-newsroom .widget-title h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom .widget-inner,
    .home-newsroom .widgets-list-inner {
        border-radius: 10px !important;
    }
}


/* ==========================================================================
   18. ENHANCED HOMEPAGE STYLES - COMPLEMENTARY TO homepage-redesign.css
   ========================================================================== */

/* Ensure proper box-sizing throughout */
.home-newsroom {
    container-type: inline-size;
    container-name: homepage;
}

/* Loading state for slider */
.home-newsroom .slider-outer.slider-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-color-2);
    z-index: 100;
}

.home-newsroom .slider-outer.slider-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--divider);
    border-top-color: var(--site-color);
    border-radius: 50%;
    animation: slider-loading-spin 1s linear infinite;
    z-index: 101;
}

@keyframes slider-loading-spin {
    to { transform: rotate(360deg); }
}

/* Progress bar for autoplay */
.home-newsroom .swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}

.home-newsroom .swiper-progress-fill {
    height: 100%;
    background: var(--site-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* Enhanced card interactions */
.home-newsroom .item-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.home-newsroom .item-inner {
    position: relative;
}

/* Improved focus states */
.home-newsroom .item-link:focus-visible {
    outline: 2px solid var(--site-color);
    outline-offset: 2px;
    border-radius: var(--hp-radius-md, 12px);
}

/* Widget visibility transitions */
.home-newsroom .widget {
    will-change: transform, opacity;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    .home-newsroom {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .home-newsroom .widget-inner,
    .home-newsroom .item-inner {
        border-width: 2px;
    }
    
    .home-newsroom .slider-outer .item-inner::before {
        background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    }
}

/* Print styles for homepage */
@media print {
    .home-newsroom .slider-outer,
    .home-newsroom .widget-more,
    .home-newsroom .swiper-pagination,
    .home-newsroom .swiper-button-next,
    .home-newsroom .swiper-button-prev {
        display: none !important;
    }
    
    .home-newsroom .widget-inner {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* Container queries for better responsive design */
@container homepage (max-width: 768px) {
    .home-newsroom .slider-outer .item-inner {
        min-height: 300px;
    }
    
    .home-newsroom .slider-outer .item-content {
        padding: 20px;
    }
}

/* Animation for new items loaded via AJAX */
.home-newsroom .item.animate-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Enhanced slider pagination on mobile */
@media (max-width: 767px) {
    .home-newsroom .slider-outer .swiper-pagination {
        bottom: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .home-newsroom .slider-outer .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .home-newsroom .slider-outer .swiper-pagination-bullet-active {
        width: 24px;
    }
}

/* Improve RTL layout consistency */
.rtl .home-newsroom .slider-outer .swiper-pagination {
    right: auto;
    left: 40px;
}

.rtl .home-newsroom .slider-outer .swiper-button-prev {
    right: auto;
    left: 20px;
}

.rtl .home-newsroom .slider-outer .swiper-button-next {
    left: auto;
    right: 20px;
}

@media (max-width: 767px) {
    .rtl .home-newsroom .slider-outer .swiper-pagination {
        left: 15px;
    }
}

/* Fix for Swiper wrapper */
.home-newsroom .swiper-wrapper {
    height: auto !important;
}

.home-newsroom .swiper-slide {
    height: auto !important;
}

/* Ensure images don't cause layout shift */
.home-newsroom .item-image img {
    aspect-ratio: attr(width) / attr(height);
}

/* Category badge animation */
.home-newsroom .post-kicker a,
.home-newsroom .post-kicker span {
    transition: all 0.2s ease;
}

/* Meta information improvements */
.home-newsroom .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-newsroom .post-meta .meta-separator {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

/* Enhanced hover effects for category section */
.home-newsroom #widgets-area-home_6 .terms-list .item-link {
    z-index: 3;
}

/* Tabbed section improvements */
.home-newsroom #widgets-area-home_4 .widget-tabs a:focus-visible {
    outline: 2px solid var(--site-color);
    outline-offset: 2px;
    border-radius: var(--hp-radius-full, 9999px);
}

/* Footer enhancements */
#footer .layout-row-inner {
    gap: var(--hp-gap-lg, 1.5rem);
}

#footer .layout-column {
    display: flex;
    flex-direction: column;
    gap: var(--hp-gap-md, 1rem);
}

/* Sticky footer widgets on scroll */
@media (min-width: 992px) {
    #footer .widget {
        position: sticky;
        top: 100px;
    }
}

/* Footer responsive adjustments */
@media (max-width: 767px) {
    #footer .layout-row-inner {
        flex-direction: column;
    }
    
    #footer .layout-item {
        width: 100%;
    }
    
    #footer .nav-menu ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Ensure proper stacking context */
.home-newsroom .slider-outer {
    isolation: isolate;
}

.home-newsroom .item {
    isolation: isolate;
}

/* Performance optimizations */
.home-newsroom .item-image img {
    content-visibility: auto;
}

.home-newsroom .slider-outer .item-image img {
    will-change: transform;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .home-newsroom .widget {
        animation: none;
        opacity: 1;
    }
    
    .home-newsroom .swiper-progress-fill {
        transition: none;
    }
    
    .home-newsroom .item-image img {
        will-change: auto;
    }
}

/* Dark mode specific enhancements */
[data-theme="dark"] .home-newsroom .slider-outer {
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .home-newsroom .swiper-progress-bar {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] #footer {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] #footer::before {
    opacity: 0.8;
}


/* ==========================================================================
   19. HOMEPAGE REDESIGN 2025 - INTEGRATED STYLES
   Professional News Portal Design - Fully Responsive
   ========================================================================== */

/* Base Variables */
:root {
    --hp-gap-xs: 0.5rem;
    --hp-gap-sm: 0.75rem;
    --hp-gap-md: 1rem;
    --hp-gap-lg: 1.5rem;
    --hp-gap-xl: 2rem;
    --hp-radius-sm: 8px;
    --hp-radius-md: 12px;
    --hp-radius-lg: 16px;
    --hp-radius-xl: 20px;
    --hp-radius-full: 9999px;
    --hp-shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
    --hp-shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06);
    --hp-shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.08);
    --hp-shadow-xl: 0 12px 24px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.12);
    --hp-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --hp-transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hp-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Widget Animations */
.home-newsroom .widget {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.home-newsroom .widget:nth-child(1) { animation-delay: 0.05s; }
.home-newsroom .widget:nth-child(2) { animation-delay: 0.1s; }
.home-newsroom .widget:nth-child(3) { animation-delay: 0.15s; }
.home-newsroom .widget:nth-child(4) { animation-delay: 0.2s; }
.home-newsroom .widget:nth-child(5) { animation-delay: 0.25s; }
.home-newsroom .widget:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Widget Header */
.home-newsroom .widget-header {
    position: relative;
}

.home-newsroom .widget-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--site-color), transparent);
    border-radius: 2px;
}

.rtl .home-newsroom .widget-header::after {
    right: auto;
    left: 0;
    background: linear-gradient(-90deg, var(--site-color), transparent);
}

/* Hero Slider Enhancements */
.home-newsroom .slider-outer {
    border-radius: var(--hp-radius-xl);
    overflow: hidden;
    box-shadow: var(--hp-shadow-xl);
}

.home-newsroom .slider-outer .item-inner {
    min-height: 520px;
    background: #0f172a;
}

.home-newsroom .slider-outer .item-inner::before {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.95) 100%);
}

.home-newsroom .slider-outer .item-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

.home-newsroom .slider-outer .swiper-slide-active .item-image img {
    transform: scale(1.08);
    transition: transform 8s ease;
}

/* Hero Content */
.home-newsroom .slider-outer .item-content {
    max-width: 700px;
}

.home-newsroom .slider-outer .item-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.home-newsroom .slider-outer .item-description {
    max-width: 550px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Swiper Navigation Glassmorphism */
.home-newsroom .slider-outer .swiper-button-next,
.home-newsroom .slider-outer .swiper-button-prev {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--hp-radius-full);
    width: 48px;
    height: 48px;
    transition: all var(--hp-transition-normal);
}

.home-newsroom .slider-outer .swiper-button-next:hover,
.home-newsroom .slider-outer .swiper-button-prev:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Swiper Pagination */
.home-newsroom .slider-outer .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    transition: all var(--hp-transition-normal);
}

.home-newsroom .slider-outer .swiper-pagination-bullet-active {
    width: 32px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Cards Enhancements */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner {
    transition: transform var(--hp-transition-normal), box-shadow var(--hp-transition-normal);
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-lg);
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-image img {
    transition: transform var(--hp-transition-slow);
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:first-child .item-inner:hover .item-image img {
    transform: scale(1.05);
}

/* Compact Cards */
.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-inner {
    transition: transform var(--hp-transition-normal), box-shadow var(--hp-transition-normal), border-color var(--hp-transition-fast);
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-inner:hover {
    transform: translateX(-3px);
    box-shadow: var(--hp-shadow-md);
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%);
}

.rtl .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-inner:hover {
    transform: translateX(3px);
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-image img {
    transition: transform var(--hp-transition-normal);
}

.home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-inner:hover .item-image img {
    transform: scale(1.1);
}

/* Widget More Button */
.home-newsroom .widget-more a {
    transition: all var(--hp-transition-fast);
}

.home-newsroom .widget-more a:hover {
    transform: translateX(-3px);
}

.rtl .home-newsroom .widget-more a:hover {
    transform: translateX(3px);
}

/* Category Cards */
.home-newsroom #widgets-area-home_6 .terms-list .item-inner {
    min-height: 120px;
    transition: all var(--hp-transition-normal);
}

.home-newsroom #widgets-area-home_6 .terms-list .item-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-md);
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%);
}

/* Footer Enhancements */
#footer {
    border-top: none;
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--site-color), color-mix(in srgb, var(--site-color) 70%, #fff 30%), var(--site-color), transparent);
}

#footer .widget-title h3 {
    position: relative;
    padding-bottom: var(--hp-gap-sm);
}

#footer .widget-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--site-color);
    border-radius: 2px;
}

.rtl #footer .widget-title h3::after {
    right: auto;
    left: 0;
}

#footer .nav-menu a {
    transition: all var(--hp-transition-fast);
}

#footer .nav-menu a:hover {
    padding-right: 8px;
}

.rtl #footer .nav-menu a:hover {
    padding-right: 0;
    padding-left: 8px;
}

#footer .social-links a {
    transition: all var(--hp-transition-normal);
}

#footer .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--site-color) 30%, transparent 70%);
}

/* Progress Bar for Slider Autoplay */
.home-newsroom .swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}

.home-newsroom .swiper-progress-fill {
    height: 100%;
    background: var(--site-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .home-newsroom .widget {
        animation: none;
        opacity: 1;
    }
    
    .home-newsroom .slider-outer .item-image img,
    .home-newsroom .items-list .item-image img,
    .home-newsroom .item-inner,
    .home-newsroom .widget-inner {
        transition: none;
    }
}


/* ==========================================================================
   20. URGENT HOMEPAGE FIXES
   ========================================================================== */

/* Fix 1: White space under "المزيد" button */
.home-newsroom .widget {
    display: flex !important;
    flex-direction: column !important;
}

.home-newsroom .widget-inner {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    flex-grow: 0 !important;
}

.home-newsroom .widget-content {
    flex: 0 0 auto !important;
    display: block !important;
}

.home-newsroom .widget-more {
    margin-top: 12px !important;
    padding-top: 0 !important;
    flex: 0 0 auto !important;
}

/* Remove animations that cause layout shifts */
.home-newsroom .widget {
    opacity: 1 !important;
    animation: none !important;
}

/* Fix 2: Slider clickable elements */
.home-newsroom .slider-outer {
    position: relative !important;
    z-index: 1 !important;
}

.home-newsroom .slider-outer .swiper-button-next,
.home-newsroom .slider-outer .swiper-button-prev {
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.home-newsroom .slider-outer .swiper-pagination {
    z-index: 100 !important;
}

.home-newsroom .slider-outer .swiper-pagination-bullet {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Ensure swiper wrapper is clickable */
.home-newsroom .slider-outer .swiper-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

.home-newsroom .slider-outer .item-link {
    z-index: 2 !important;
}

/* Fix 3: Enhanced Footer */
#footer {
    position: relative !important;
    background: var(--bg-color) !important;
    border-top: 4px solid var(--site-color) !important;
    margin-top: 40px !important;
}

#footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--site-color) 20%, 
        color-mix(in srgb, var(--site-color) 70%, white 30%) 50%, 
        var(--site-color) 80%,
        transparent 100%
    ) !important;
}

#footer .layout-row {
    padding: 50px 0 30px !important;
}

#footer .layout-row-inner {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

#footer .widget-title h3 {
    position: relative !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--divider) !important;
}

#footer .widget-title h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    right: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: var(--site-color) !important;
}

.rtl #footer .widget-title h3::after {
    right: auto !important;
    left: 0 !important;
}

#footer .nav-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer .nav-menu li {
    margin-bottom: 8px !important;
}

#footer .nav-menu a {
    display: block !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    padding: 4px 0 !important;
}

#footer .nav-menu a:hover {
    color: var(--site-color) !important;
    padding-right: 8px !important;
}

.rtl #footer .nav-menu a:hover {
    padding-right: 0 !important;
    padding-left: 8px !important;
}

#footer .social-links {
    display: flex !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

#footer .social-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 10px !important;
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
}

#footer .social-links a:hover {
    background: var(--site-color) !important;
    border-color: var(--site-color) !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

.theme-copyrights {
    background: color-mix(in srgb, var(--bg-color) 96%, black 4%) !important;
    padding: 25px 0 !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    border-top: 1px solid var(--divider) !important;
}

/* Responsive Footer */
@media (max-width: 991px) {
    #footer .layout-row-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    #footer .layout-item:first-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 575px) {
    #footer .layout-row-inner {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    #footer .layout-row {
        padding: 30px 0 !important;
    }
}

/* Dark Mode Footer */
[data-theme="dark"] #footer {
    background: linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color) 95%, black 5%) 100%) !important;
}

[data-theme="dark"] .theme-copyrights {
    background: color-mix(in srgb, var(--bg-color) 92%, black 8%) !important;
    color: rgba(255,255,255,0.6) !important;
}


/* ==========================================================================
   21. MOBILE FIXES - Integrated
   ========================================================================== */

/* Mobile Header — subtle enhancement (section 8a is primary) */
@media (max-width: 991px) {
    #header .site-logo img {
        max-height: 45px !important;
    }
}

/* Fix Category Name (Kicker) */
@media (max-width: 767px) {
    .post-kicker a,
    .post-kicker span {
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
    }
    
    /* Hero slider kicker */
    .home-newsroom .slider-outer .post-kicker {
        max-width: calc(100% - 20px) !important;
    }
    
    .home-newsroom .slider-outer .post-kicker a,
    .home-newsroom .slider-outer .post-kicker span {
        max-width: 100% !important;
    }
}

/* Fix Cards Being Cut Off */
@media (max-width: 767px) {
    body,
    #main,
    .home-newsroom {
        overflow-x: hidden !important;
    }
    
    .home-newsroom .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .home-newsroom .widget-inner {
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .home-newsroom .item-inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-inner {
        grid-template-columns: 80px 1fr !important;
    }
    
    .home-newsroom .item-content {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .home-newsroom .item-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child) .item-inner {
        grid-template-columns: 70px 1fr !important;
    }
    
    .home-newsroom .widget-inner {
        padding: 12px !important;
    }
    
    .home-newsroom .slider-outer .item-inner {
        min-height: 260px !important;
    }
    
    .home-newsroom .slider-outer .item-content {
        padding: 15px !important;
    }
}


/* ==========================================================================
   22-23. LEGACY HOMEPAGE MOBILE FIXES
   Consolidated into Section 28 below.
   ========================================================================== */


/* ==========================================================================
   24. RTL SPECIFIC FIXES FOR MOBILE
   ========================================================================== */

/* RTL Mobile fixes */
@media screen and (max-width: 767px) {
    .rtl .home-newsroom .items-list > .item:not(:first-child) .item-inner {
        flex-direction: row !important;
    }
    
    .rtl .home-newsroom .items-list > .item:not(:first-child) .item-image {
        order: 2 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .rtl .home-newsroom .items-list > .item:not(:first-child) .item-content {
        order: 1 !important;
        text-align: right !important;
    }
    
    .rtl .home-newsroom .items-list > .item:not(:first-child) .post-kicker {
        align-self: flex-start !important;
    }
}


/* ==========================================================================
   MOBILE FIXES - Minimal
   ========================================================================== */

/* Fix category badge cutting off on mobile */
@media (max-width: 767px) {
    .post-kicker a,
    .post-kicker span {
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Prevent horizontal scroll */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
}

/* Final mobile normalization for compact news cards */
@media (max-width: 767px) {
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) {
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        display: grid !important;
        grid-template-columns: 88px minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 10px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 88px !important;
        min-width: 88px !important;
        height: 88px !important;
        min-height: 88px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        flex: none !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-content {
        grid-column: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 6px !important;
        text-align: right !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-content h4 {
        width: 100% !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin: 0 !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-kicker,
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker {
        order: -1 !important;
        align-self: flex-start !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-kicker a,
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-kicker span,
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker a,
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-kicker span {
        display: inline-flex !important;
        align-items: center !important;
        max-width: 100% !important;
        min-height: 20px !important;
        padding: 0 7px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 999px !important;
        font-size: 0.64rem !important;
        line-height: 1 !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .post-meta {
        width: 100% !important;
        margin-top: auto !important;
        font-size: 0.68rem !important;
        line-height: 1.4 !important;
    }

    .rtl .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        grid-template-columns: minmax(0, 1fr) 88px !important;
    }

    .rtl .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
    }

    .rtl .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-content {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-image {
        width: 78px !important;
        min-width: 78px !important;
        height: 78px !important;
        min-height: 78px !important;
    }

    .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-title {
        font-size: 0.84rem !important;
    }

    .rtl .home-newsroom .items-list:not(.swiper-wrapper) > .item:not(:first-child):not(.item-dummy) .item-inner {
        grid-template-columns: minmax(0, 1fr) 78px !important;
    }
}

/* Final mobile lock for hero slider background image */
@media (max-width: 767px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer,
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-wrapper,
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-slide {
        width: 100% !important;
        height: 100% !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-inner {
        position: relative !important;
        display: block !important;
        min-height: 260px !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
        margin: 0 !important;
        z-index: 0 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-image::after {
        display: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-image img {
        width: 100% !important;
        min-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
        position: absolute !important;
        inset: auto 0 0 0 !important;
        z-index: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 14px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-link {
        border-radius: 0 !important;
        z-index: 2 !important;
    }
}

/* ============================================
   CLS Prevention & Performance Fixes
   ============================================ */

/* Prevent CLS on featured images */
.singular-image-inner img,
.archive-lead-media img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.item-image img {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* AdSense CLS prevention - reserve space for ad units */
.adsense-unit {
    min-height: 100px;
    contain: layout style;
}

.inserted[data-location] {
    min-height: 90px;
    contain: layout style;
}

.inserted[data-location="head_end"],
.inserted[data-location="body_start"],
.inserted[data-location="body_end"] {
    min-height: 0;
}

/* ==========================================================================
   25. AUTHOR PAGE CARD — Professional Profile
   ========================================================================== */

.archive-author-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 22px;
    align-items: start;
    padding: 18px;
    width: 100%;
    min-width: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 98%, #000 2%) 0%, color-mix(in srgb, var(--bg-color-2) 82%, transparent 18%) 100%);
    border: 1px solid color-mix(in srgb, var(--divider) 82%, transparent 18%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.archive-author-avatar {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: start;
    flex-shrink: 0;
    position: relative;
}

.archive-author-avatar a {
    display: block;
}

.archive-author-avatar img {
    border-radius: 50%;
    width: 92px;
    height: 92px;
    object-fit: cover;
    border: 3px solid color-mix(in srgb, var(--site-color) 88%, white 12%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    background: var(--bg-color);
}

.archive-author-info {
    grid-column: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-author-info .archive-editorial-kicker {
    margin-bottom: 2px;
}

.archive-author-info .archive-title {
    margin-bottom: 0;
}

.archive-author-info .archive-title h1 {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.archive-author-bio {
    margin-top: 4px;
    font-size: 1rem;
    line-height: 1.95;
    color: var(--color-2);
    max-width: none;
}

.archive-author-bio p:last-child {
    margin-bottom: 0;
}

.archive-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.archive-author-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--site-color) 7%, var(--bg-color) 93%);
    border: 1px solid color-mix(in srgb, var(--site-color) 14%, var(--divider) 86%);
    color: var(--color-2);
    font-size: 0.82rem;
    font-weight: 700;
}

.archive-author-meta span svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.archive-author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.archive-author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid color-mix(in srgb, var(--divider) 80%, transparent 20%);
    color: var(--color-2);
    font-size: 14px;
    transition: all 0.25s ease;
}

.archive-author-social a svg {
    width: 16px;
    height: 16px;
}

.archive-author-social a:hover {
    background: var(--site-color);
    border-color: var(--site-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--site-color) 35%, transparent 65%);
}

/* Author card dark mode */
[data-theme="dark"] .archive-author-avatar img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .archive-author-meta span {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .archive-author-social a {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

/* Author card responsive */
@media (max-width: 767px) {
    .archive-author-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }

    .archive-author-avatar {
        grid-column: auto;
        grid-row: auto;
        justify-self: center;
    }

    .archive-author-avatar img {
        width: 88px;
        height: 88px;
    }

    .archive-author-info .archive-title h1 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .archive-author-bio {
        max-width: none;
        font-size: 0.9rem;
    }

    .archive-author-meta {
        justify-content: center;
    }

    .archive-author-social {
        justify-content: center;
    }
}

/* Strong author archive override to beat older theme refinements */
body.author .archive-editorial-main-author .archive-author-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 108px !important;
    gap: 22px !important;
    align-items: start !important;
    padding: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 98%, #000 2%) 0%, color-mix(in srgb, var(--bg-color-2) 82%, transparent 18%) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 82%, transparent 18%) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05) !important;
}

body.author .archive-editorial-main-author .archive-author-avatar {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: end !important;
    align-self: start !important;
    position: relative !important;
}

body.author .archive-editorial-main-author .archive-author-avatar a {
    display: block !important;
}

body.author .archive-editorial-main-author .archive-author-avatar img {
    width: 92px !important;
    height: 92px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid color-mix(in srgb, var(--site-color) 88%, white 12%) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
    background: var(--bg-color) !important;
}

body.author .archive-editorial-main-author .archive-author-info {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body.author .archive-editorial-main-author .archive-author-info .archive-editorial-kicker {
    margin-bottom: 2px !important;
}

body.author .archive-editorial-main-author .archive-author-info .archive-title h1 {
    font-size: clamp(1.45rem, 2.3vw, 2rem) !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

body.author .archive-editorial-main-author .archive-author-bio {
    margin-top: 4px !important;
    font-size: 1rem !important;
    line-height: 1.95 !important;
    color: var(--color-2) !important;
    max-width: none !important;
}

body.author .archive-editorial-main-author .archive-author-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

body.author .archive-editorial-main-author .archive-author-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--site-color) 7%, var(--bg-color) 93%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 14%, var(--divider) 86%) !important;
    color: var(--color-2) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

body.author .archive-editorial-main-author .archive-author-social {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

body.author .archive-editorial-main-author .archive-author-social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: var(--bg-color) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 80%, transparent 20%) !important;
    color: var(--color-2) !important;
}

@media (max-width: 767px) {
    body.author .archive-editorial-main-author .archive-author-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 16px !important;
    }

    body.author .archive-editorial-main-author .archive-author-avatar {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: center !important;
    }

    body.author .archive-editorial-main-author .archive-author-meta,
    body.author .archive-editorial-main-author .archive-author-social {
        justify-content: center !important;
    }
}


/* ==========================================================================
   26. SINGULAR / ARTICLE PAGE — Design Polish
   ========================================================================== */

/* --- Featured Image Enhancement --- */
.singular-image-inner {
    overflow: hidden;
    border-radius: 16px;
}

.singular-image-inner img {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: opacity 0.3s ease;
}

.singular-image-caption {
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--color-3);
    font-weight: 600;
    font-style: italic;
    text-align: center;
    background: var(--bg-color-2);
    border-radius: 10px;
    border: 1px solid var(--divider);
}

/* --- Singular Meta (date, author, reading time) --- */
.singular-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 14px 18px;
    background: var(--bg-color-2);
    border: 1px solid var(--divider);
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-2);
}

.singular-meta .post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.singular-meta .post-meta-item svg {
    width: 15px;
    height: 15px;
    opacity: 0.6;
}

.singular-meta a {
    color: var(--color-1);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.singular-meta a:hover {
    color: var(--site-color);
}

/* --- Share Buttons — Pill Style --- */
.singular-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-color-2);
    border: 1px solid var(--divider);
    border-radius: 12px;
}

.singular-share .label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-3);
    margin-inline-end: 4px;
}

.singular-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    gap: 6px;
    transition: all 0.25s ease;
    border: 1px solid var(--divider);
    background: var(--bg-color);
    color: var(--color-2);
}

.singular-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%);
    color: var(--site-color);
}

.singular-share a svg {
    width: 16px;
    height: 16px;
}

/* --- Tags — Interactive Pills --- */
.singular-tags {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px 14px;
    padding: 16px 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 70%, var(--bg-color-2) 30%) 0%, var(--bg-color-2) 100%);
    border: 1px solid color-mix(in srgb, var(--divider) 82%, var(--site-color) 18%);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.singular-tags .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bg-color);
    border: 1px solid color-mix(in srgb, var(--divider) 74%, var(--site-color) 26%);
    color: var(--color-2);
    font-size: 0.78rem;
    font-weight: 900;
    margin: 0;
    white-space: nowrap;
}

.singular-tags-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    align-items: center;
}

.singular-tags-inner a {
    display: inline-flex;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.singular-tags-inner a div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bg-color);
    border: 1px solid var(--divider);
    color: var(--color-2);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.singular-tags-inner a:hover div {
    color: var(--site-color);
    border-color: color-mix(in srgb, var(--site-color) 34%, var(--divider) 66%);
    background: color-mix(in srgb, var(--site-color) 7%, var(--bg-color) 93%);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.singular-tags-inner a:active div {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Singular Author Block — Enhanced horizontal card --- */
.singular-author-block {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 24px !important;
    background: var(--bg-color-2) !important;
    border-radius: 16px !important;
    border: 1px solid var(--divider) !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: start !important;
    margin: 0 !important;
}

.singular-author-block-avatar {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.singular-author-block-avatar img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--site-color) !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    background: var(--bg-color) !important;
}

.singular-author-block-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    text-align: start !important;
}

.singular-author-block-eyebrow {
    display: inline-flex !important;
    align-self: flex-start !important;
    min-height: 28px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 8%, var(--bg-color) 92%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 20%, transparent 80%) !important;
    color: var(--site-color) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
}

.singular-author-block-avatar + .singular-author-block-info {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.singular-author-block-name {
    font-size: 1.22rem !important;
    font-weight: 900 !important;
    color: var(--color-1) !important;
}

.singular-author-block-name a {
    color: inherit !important;
    text-decoration: none !important;
}

.singular-author-block-name a:hover {
    color: var(--site-color) !important;
}

.singular-author-block-description {
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
    color: var(--color-2) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.singular-author-block-name,
.singular-author-block-name a {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.singular-author-block-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
    margin-top: 2px !important;
}

.singular-author-block-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.singular-author-block-meta span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: color-mix(in srgb, var(--site-color) 6%, var(--bg-color) 94%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 14%, var(--divider) 86%) !important;
    color: var(--color-2) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

.singular-author-block-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    background: var(--site-color) !important;
    border: 1px solid var(--site-color) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    transition: all 0.2s ease !important;
}

.singular-author-block-action:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--site-color) 28%, transparent 72%) !important;
}

.singular-author-block-social-sites {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 0 !important;
    justify-content: flex-start !important;
}

.singular-author-block-social-sites a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--divider) !important;
    color: var(--color-2) !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
    gap: 0 !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

.singular-author-block-social-sites .social-site-title {
    display: none !important;
}

.singular-author-block-social-sites a:hover {
    background: var(--site-color) !important;
    border-color: var(--site-color) !important;
    color: #fff !important;
}

/* --- Singular Story Body — card style --- */
.singular-story-body-wrap {
    padding: clamp(1rem, 2vw, 1.35rem) !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: none !important;
    border-radius: 12px !important;
}

/* Tighten gap between article sections */
body.wp-singular .singular-content {
    gap: 10px !important;
}

body.wp-singular .singular-story-support {
    padding-top: 0 !important;
}

/* --- Singular navigation — Clean next/prev --- */
.singular-navigation {
    display: flex !important;
    gap: 14px !important;
    margin: 0 !important;
}

.singular-navigation .singular-navigation-item {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.singular-navigation .singular-navigation-item a {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 18px 22px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    height: 100% !important;
}

.singular-navigation .singular-navigation-item:not(:empty):hover a,
.singular-navigation .singular-navigation-item a:hover {
    background: var(--bg-color) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

.singular-navigation .singular-navigation-item .label {
    font-size: 0.78rem !important;
    color: var(--color-3) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.singular-navigation .singular-navigation-item a > span:not(.label),
.singular-navigation .singular-navigation-item a > div:not(.label) {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--color-1) !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* --- Singular page dark mode --- */
[data-theme="dark"] .singular-author-block {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2) !important;
}

[data-theme="dark"] .singular-author-block-avatar img {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .singular-author-block-social-sites a {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .singular-meta,
[data-theme="dark"] .singular-share,
[data-theme="dark"] .singular-tags {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .singular-share a,
[data-theme="dark"] .singular-tags a {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .singular-image-inner img {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

[data-theme="dark"] .singular-image-caption {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .singular-navigation .singular-navigation-item a {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .singular-navigation .singular-navigation-item a:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

/* --- Singular page responsive --- */
@media (max-width: 767px) {
    .singular-image-inner,
    .singular-image-inner img {
        border-radius: 12px;
    }

    .singular-meta,
    .singular-share,
    .singular-tags {
        padding: 12px 14px;
        border-radius: 14px;
        gap: 8px 10px;
    }

    .singular-share a {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        border-radius: 8px;
    }

    .singular-tags {
        grid-template-columns: minmax(0, 1fr);
    }

    .singular-tags .label {
        justify-self: start;
        min-height: 32px;
        padding: 0 12px;
    }

    .singular-tags-inner {
        gap: 8px;
    }

    .singular-tags-inner a div {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .singular-author-block {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
        gap: 14px !important;
    }

    .singular-author-block-avatar img {
        width: 64px !important;
        height: 64px !important;
    }

    .singular-author-block-info {
        text-align: center !important;
    }

    .singular-author-block-eyebrow {
        align-self: center !important;
    }

    .singular-author-block-footer {
        justify-content: center !important;
    }

    .singular-author-block-social-sites {
        justify-content: center !important;
    }

    .singular-navigation {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .singular-navigation .singular-navigation-item a {
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }

    .singular-story-body-wrap {
        padding: 0.8rem 0.7rem !important;
    }
}

@media (max-width: 575px) {
    .singular-image-inner,
    .singular-image-inner img {
        border-radius: 10px;
    }

    .singular-meta {
        font-size: 0.8rem;
    }

    .singular-share a {
        min-width: 34px;
        height: 34px;
        font-size: 0;
    }

    .singular-share a svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   27. ARCHIVE PAGINATION — Enhanced Page Navigation
   ========================================================================== */
.nav-pages-archive {
    margin-top: calc(var(--site-gap) * 0.5);
    padding: clamp(12px, 2vw, 20px);
    background: var(--bg-color);
    border: 1px solid var(--divider);
    border-radius: var(--site-border-radius-lg);
}

.nav-pages-archive .nav-pages-inner {
    gap: 6px;
}

.nav-pages-archive .nav-pages-inner > * {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em 0.85em;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.nav-pages-archive .nav-pages-inner > .current {
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(var(--site-color-rgb), 0.25);
}

.nav-pages-archive .nav-pages-inner > .dots {
    background: transparent;
    border-color: transparent;
    letter-spacing: 2px;
    font-weight: 700;
}

.nav-pages-archive .nav-pages-inner > .prev,
.nav-pages-archive .nav-pages-inner > .next {
    font-size: 0.82rem;
    padding: 0.4em 1.1em;
    font-weight: 700;
}

@media (max-width: 575px) {
    .nav-pages-archive .nav-pages-inner > * {
        min-width: 34px;
        height: 34px;
        padding: 0.3em 0.6em;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    .nav-pages-archive .nav-pages-inner > .prev,
    .nav-pages-archive .nav-pages-inner > .next {
        padding: 0.3em 0.8em;
    }
}

[data-theme="dark"] .nav-pages-archive {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}


/* ==========================================================================
   28. FOOTER COMPACT REDESIGN
   ========================================================================== */

/* Override all previous footer styles — compact, proportional footer */
#footer {
    margin-top: 30px !important;
    padding: 0 !important;
    background: var(--bg-color) !important;
    border-top: 3px solid var(--site-color) !important;
    box-shadow: none !important;
}

#footer::before {
    display: none !important;
}

#footer .layout-row {
    --vspacing: 0px !important;
    padding: 20px 0 !important;
    background: transparent !important;
}

#footer .layout-row-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
}

#footer .layout-column {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-direction: row !important;
}

#footer .layout-item {
    flex-grow: 0 !important;
}

/* Footer nav — single horizontal row of pills */
#footer .nav-menu,
#footer .nav-menu > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer .nav-menu > ul > li > a > div {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    box-shadow: none !important;
    color: var(--color-2) !important;
}

#footer .nav-menu > ul > li:hover > a > div,
#footer .nav-menu > ul > li[class*="current"] > a > div {
    color: var(--site-color) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
    background: color-mix(in srgb, var(--site-color) 6%, var(--bg-color) 94%) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Footer social links — compact */
#footer .social-links {
    display: flex !important;
    gap: 8px !important;
    margin: 0 !important;
}

#footer .social-links a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    color: var(--color-2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#footer .social-links a:hover {
    background: var(--site-color) !important;
    border-color: var(--site-color) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Hide widget titles in footer — not needed for compact layout */
#footer .widget-title {
    display: none !important;
}

/* Footer copyrights — slim */
#footer .theme-copyrights,
#footer .site-copyrights {
    width: 100% !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--divider) !important;
    opacity: 0.8 !important;
    font-weight: 400 !important;
}

/* Remove sticky footer widgets */
@media (min-width: 992px) {
    #footer .widget {
        position: static !important;
    }
}

/* Footer block items */
#footer .layout-item[data-content^="block_"] {
    text-align: center !important;
    font-size: 0.85rem !important;
}

/* Footer responsive — mobile */
@media (max-width: 767px) {
    #footer .layout-row {
        padding: 16px 0 !important;
    }

    #footer .layout-row-inner {
        flex-direction: column !important;
        gap: 12px !important;
    }

    #footer .nav-menu > ul {
        justify-content: center !important;
        gap: 6px !important;
    }

    #footer .nav-menu > ul > li > a > div {
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 0.78rem !important;
    }

    #footer .social-links a {
        width: 32px !important;
        height: 32px !important;
    }

    #footer .theme-copyrights,
    #footer .site-copyrights {
        font-size: 0.75rem !important;
        padding: 10px 0 !important;
    }
}

/* Footer dark mode */
[data-theme="dark"] #footer {
    background: var(--bg-color) !important;
    border-top-color: var(--site-color) !important;
}

[data-theme="dark"] #footer .theme-copyrights,
[data-theme="dark"] #footer .site-copyrights {
    border-top-color: rgba(255,255,255,0.06) !important;
}


/* ==========================================================================
   29. HIDE "المزيد" BELOW CATEGORIES ON HOMEPAGE
   ========================================================================== */

.home-newsroom .widget-more {
    display: none !important;
}

/* Hide descriptions from ALL homepage cards including hero slider */
.home-newsroom .item-description,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-description {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================================
   30. CATEGORY NAME SPACING — push title away from card edge
   ========================================================================== */

/* Section title h3 — add inline padding so first letter doesn't touch the card edge */
.home-newsroom .widget-title h3 {
    position: relative !important;
    display: inline-flex !important;
    padding-inline-start: 6px !important;
    padding-bottom: 8px !important;
}

.home-newsroom .widget-title h3::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    right: 6px !important;
    left: auto !important;
    bottom: -2px !important;
    width: calc(100% - 6px) !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--site-color), color-mix(in srgb, var(--site-color) 60%, transparent 40%)) !important;
}

/* Also push the whole widget-header a bit from the card edge */
.home-newsroom .widget-header {
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
    padding-inline-start: 4px !important;
    padding-top: 8px !important;
}

.home-newsroom .widget-header::after,
.rtl .home-newsroom .widget-header::after {
    display: none !important;
}


/* ==========================================================================
   31. SINGULAR PAGE — Related Posts Widget Card Polish
    Safer styling that preserves native list layout
   ========================================================================== */

body.wp-singular #widgets-area-singular_after .widget > .widget-inner,
body.wp-singular #widgets-area-singular_after .widget.boxed > .widget-inner,
body.wp-singular .primary .primary-content-content #widgets-area-singular_after .widget.boxed > .widget-inner,
body.wp-singular #widgets-area-singular_end .widget > .widget-inner,
body.wp-singular #widgets-area-singular_end .widget.boxed > .widget-inner,
body.wp-singular .primary .primary-content-content #widgets-area-singular_end .widget.boxed > .widget-inner {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.wp-singular #widgets-area-singular_after .widget-title h3,
body.wp-singular #widgets-area-singular_end .widget-title h3 {
    font-size: 1.14rem !important;
    font-weight: 900 !important;
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--divider) 82%, transparent 18%) !important;
    position: relative !important;
}

body.wp-singular #widgets-area-singular_after .widget-header,
body.wp-singular #widgets-area-singular_end .widget-header {
    margin-bottom: 8px !important;
}

body.wp-singular #widgets-area-singular_after .widget-title h3::after,
body.wp-singular #widgets-area-singular_end .widget-title h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    right: 0 !important;
    width: 68px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: var(--site-color) !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .item-description,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .item-description {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .item-dummy,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .item-dummy {
    display: none !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: 0 !important;
    gap: 12px !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item {
    grid-column: span 1 !important;
    min-width: 0 !important;
    width: auto !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item > .item-inner,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item > .item-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border: 1px solid color-mix(in srgb, var(--divider) 85%, transparent 15%) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: color-mix(in srgb, var(--bg-color) 97%, #fff 3%) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item > .item-inner:hover,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item > .item-inner:hover {
    transform: translateY(-3px) !important;
    border-color: color-mix(in srgb, var(--site-color) 28%, var(--divider) 72%) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-link,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-link {
    border-radius: 14px !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-image,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-image {
    min-height: 96px !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-image img,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-inner:hover .item-image img,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-inner:hover .item-image img {
    transform: scale(1.04) !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-content,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 10px 10px 11px !important;
    gap: 5px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .post-kicker,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .post-kicker {
    display: none !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item h4,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item h4 {
    margin: 0 !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-title,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    color: var(--color-1) !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-inner:hover .item-title,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-inner:hover .item-title {
    color: var(--site-color) !important;
}

body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .post-meta,
body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .post-meta {
    margin-top: auto !important;
    padding-top: 4px !important;
    border-top: none !important;
    color: var(--text-muted) !important;
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    opacity: 0.86 !important;
}

[data-theme="dark"] body.wp-singular #widgets-area-singular_after .widget > .widget-inner,
[data-theme="dark"] body.wp-singular #widgets-area-singular_after .widget.boxed > .widget-inner,
[data-theme="dark"] body.wp-singular #widgets-area-singular_end .widget > .widget-inner,
[data-theme="dark"] body.wp-singular #widgets-area-singular_end .widget.boxed > .widget-inner {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item > .item-inner,
[data-theme="dark"] body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item > .item-inner {
    background: var(--bg-color-2) !important;
    border-color: rgba(255,255,255,0.06) !important;
}

@media (max-width: 991px) {
    body.wp-singular #widgets-area-singular_after .widget > .widget-inner,
    body.wp-singular #widgets-area-singular_end .widget > .widget-inner {
        padding: 18px !important;
    }

    body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list,
    body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item > .item-inner,
    body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item > .item-inner {
        min-height: 100% !important;
    }
}

@media (max-width: 767px) {
    body.wp-singular #widgets-area-singular_after .widget > .widget-inner,
    body.wp-singular #widgets-area-singular_end .widget > .widget-inner {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list,
    body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-content,
    body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-content {
        padding: 10px !important;
    }

    body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list > .item .item-title,
    body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list > .item .item-title {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 575px) {
    body.wp-singular #widgets-area-singular_after .widget-mp_posts-list .items-list,
    body.wp-singular #widgets-area-singular_end .widget-mp_posts-list .items-list {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   32. SINGULAR — Title (H1) Card  (category badge inline with title)
   ========================================================================== */

body.wp-singular .singular-header {
    background: var(--bg-color-2) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 12px !important;
    padding: 22px 26px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px 16px !important;
}

body.wp-singular .singular-header::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: var(--site-color) !important;
}

/* Category badge — inline pill */
body.wp-singular .singular-header .singular-terms {
    order: -1 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

body.wp-singular .singular-header .singular-terms-inner {
    gap: 6px !important;
}

body.wp-singular .singular-header .singular-terms-inner a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border: none !important;
    border-radius: 50px !important;
    background: var(--site-color) !important;
    color: #fff !important;
    white-space: nowrap !important;
    transition: opacity 0.2s ease !important;
}

body.wp-singular .singular-header .singular-terms-inner a:hover {
    opacity: 0.85 !important;
    background: var(--site-color) !important;
}

/* Title — takes remaining width */
body.wp-singular .singular-header .singular-title {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

body.wp-singular .singular-header h1 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    body.wp-singular .singular-header {
        padding: 16px 14px !important;
        border-radius: 10px !important;
        gap: 10px 12px !important;
    }
    body.wp-singular .singular-header .singular-terms-inner a {
        padding: 4px 12px !important;
        font-size: 0.72rem !important;
    }
}

[data-theme="dark"] body.wp-singular .singular-header {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] body.wp-singular .singular-header .singular-terms-inner a {
    background: rgba(var(--site-color-rgb), 0.85) !important;
}


/* ==========================================================================
   33. ARCHIVE — Fix Featured (Spotlight) Cards for 4 rail cards
   Stable 2-column desktop layout down to 992px
   ========================================================================== */

/* Hide excerpts from featured cards */
.archive-lead-excerpt,
.archive-secondary-excerpt {
    display: none !important;
}

/* Prevent overflow on all containers */
.archive-spotlight,
.archive-spotlight-main,
.archive-spotlight-rail {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Titles must wrap */
.archive-lead-title,
.archive-secondary-title,
.archive-rail-title {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    min-width: 0 !important;
}

/* ===== Desktop ≥992px: keep 2-column layout ===== */
@media (min-width: 992px) {
    /* Override original 1199px breakpoint that switches to 1-col */
    .archive-spotlight {
        display: grid !important;
        grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr) !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    /* Main column stretches to fill */
    .archive-spotlight-main {
        display: grid !important;
        grid-template-rows: minmax(280px, auto) auto !important;
        gap: 12px !important;
        min-height: 0 !important;
    }

    /* Keep lead card visible and stable on desktop */
    .archive-lead-card {
        min-height: 280px !important;
        height: 100% !important;
        flex: none !important;
    }

    /* Rail: vertical flex, 3 cards share height evenly */
    .archive-spotlight-rail {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-self: stretch !important;
    }

    .archive-rail-card {
        flex: 1 1 0 !important;
        grid-template-columns: 80px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .archive-rail-media {
        border-radius: 10px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .archive-rail-title {
        font-size: 0.88rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .archive-rail-content {
        gap: 4px !important;
    }

    .archive-rail-card .post-meta {
        padding-top: 4px !important;
    }

    /* Secondary card: keep side-by-side image+text */
    .archive-secondary-card {
        grid-template-columns: minmax(140px, 0.68fr) minmax(0, 1fr) !important;
        min-height: 132px !important;
    }
}

/* ===== Tablet ≤991px: switch to 1-column ===== */
@media (max-width: 991px) {
    .archive-spotlight {
        grid-template-columns: 1fr !important;
    }

    .archive-spotlight-rail {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .archive-rail-card {
        grid-template-columns: 80px minmax(0, 1fr) !important;
    }
}

/* ===== Mobile ≤767px: rail single column ===== */
@media (max-width: 767px) {
    .archive-spotlight-rail {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   34. ARCHIVE — Hide description from first card in "المزيد من الأخبار"
   ========================================================================== */

.archive-stream-list > .item:first-child .item-description {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================================
   35. Hide category kicker (التصنيف) from ALL cards site-wide
   ========================================================================== */

.items-list .item-content .post-kicker,
.items-list .item-content .item-kicker,
.archive-editorial-page .post-kicker,
.archive-editorial-page .item-kicker,
.archive-stream-list .post-kicker,
.archive-stream-list .item-kicker {
    display: none !important;
}


/* ==========================================================================
   36. HOMEPAGE SLIDER — Fix title click & arrow positions
   ========================================================================== */

/* 1) Let clicks on title/content pass through to .item-link underneath */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content {
    pointer-events: none !important;
}

/* Re-enable pointer-events on interactive children inside content */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content a,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-content button {
    pointer-events: auto !important;
}

/* 2) Make .item-link cover the full card and sit above image but below arrows */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .item-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    cursor: pointer !important;
}

/* 3) Arrows: explicit side positioning so they don't stack */
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-button-prev {
    right: 20px !important;
    left: auto !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-button-next {
    left: 20px !important;
    right: auto !important;
}

@media (max-width: 767px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-button-prev {
        right: 10px !important;
    }
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer .swiper-button-next {
        left: 10px !important;
    }
}

/* ======================================================================
   37. HOMEPAGE HERO SLIDER - YOUM7 STYLE
   ====================================================================== */

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #6b6b6b !important;
    box-shadow: none !important;
    padding: 36px 30px 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-topbar {
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    direction: rtl !important;
    background: #4d4d4d !important;
    z-index: 40 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-breaking {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    background: #333 !important;
    color: #fff !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination {
    position: static !important;
    width: auto !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination-bullet {
    width: 40px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-inline-start: 1px solid rgba(255,255,255,0.12) !important;
    background: transparent !important;
    color: #fff !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    transition: background-color 0.25s ease, color 0.25s ease !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination-bullet span {
    pointer-events: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination-bullet-active {
    background: #c61e1e !important;
    color: #fff !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .items-list {
    display: flex !important;
    align-items: center !important;
    min-height: 360px !important;
    margin: 0 !important;
    padding: 14px 0 16px !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-wrapper {
    align-items: center !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide {
    position: relative !important;
    width: clamp(108px, 8vw, 132px) !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 0.82 !important;
    transform: scale(0.9) !important;
    transition: width 0.35s ease, transform 0.35s ease, opacity 0.35s ease !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide::after {
    content: attr(data-hero-slide-number) !important;
    position: absolute !important;
    inset: auto 8px 8px auto !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.96) !important;
    color: #111 !important;
    border-radius: 2px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    z-index: 5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active {
    width: clamp(430px, 50vw, 620px) !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 3 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-prev,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-next {
    opacity: 0.96 !important;
    transform: scale(0.98) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item {
    padding: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-inner {
    position: relative !important;
    min-height: 162px !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    background: #111 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
    padding: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active .item-inner {
    min-height: 340px !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-inner::before,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-image::after,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-content,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .post-kicker,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-description,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .post-meta {
    display: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-image {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    transition: transform 0.45s ease !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide:hover .item-image img {
    transform: scale(1.04) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 4 !important;
    border-radius: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline {
    display: flex !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    background: #545454 !important;
    color: #fff !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link {
    display: block !important;
    width: 100% !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: clamp(1rem, 1.7vw, 1.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: opacity 0.25s ease !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link:hover {
    color: #fff !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.swiper-button-next, .swiper-button-prev) {
    top: 4px !important;
    bottom: auto !important;
    transform: none !important;
    width: 30px !important;
    height: 26px !important;
    z-index: 45 !important;
    cursor: pointer !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-button-prev {
    left: 10px !important;
    right: auto !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-button-next {
    left: 44px !important;
    right: auto !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.swiper-button-next, .swiper-button-prev)::after {
    width: 30px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    background: rgba(0,0,0,0.45) !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.72rem !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.swiper-button-next, .swiper-button-prev):hover::after {
    background: rgba(0,0,0,0.7) !important;
}

@media (max-width: 991px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 {
        padding: 36px 18px 0 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .items-list {
        min-height: 300px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide {
        width: 94px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active {
        width: min(76vw, 460px) !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-inner {
        min-height: 136px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active .item-inner {
        min-height: 286px !important;
    }
}

@media (max-width: 767px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 {
        padding: 40px 12px 0 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-topbar {
        min-height: 32px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-breaking {
        padding: 0 10px !important;
        font-size: 0.76rem !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination {
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination::-webkit-scrollbar {
        display: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-pagination-bullet {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.84rem !important;
        flex: 0 0 auto !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .items-list {
        min-height: 230px !important;
        padding: 12px 0 16px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide {
        width: 82vw !important;
        opacity: 0.72 !important;
        transform: scale(0.96) !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active {
        width: 84vw !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .item-inner,
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active .item-inner {
        min-height: 206px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline {
        min-height: 52px !important;
        padding: 8px 12px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link {
        font-size: 0.96rem !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide::after {
        min-width: 24px !important;
        height: 24px !important;
        font-size: 0.82rem !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide,
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .swiper-slide-active {
        width: calc(100vw - 42px) !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.swiper-button-next, .swiper-button-prev) {
        display: none !important;
    }
}

/* ======================================================================
   38. HOMEPAGE HERO SLIDER - YOUM7 LAYOUT OVERRIDE
   ====================================================================== */

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 {
    padding: 0 0 12px !important;
    background:
        radial-gradient(circle at top right, rgba(var(--site-color-rgb), 0.08) 0%, transparent 28%),
        linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color-2) 86%, var(--bg-color) 14%) 100%) !important;
    border: 1px solid var(--divider) !important;
    border-top: 3px solid var(--site-color) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 > .items-list {
    display: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-topbar {
    position: static !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: stretch !important;
    min-height: 36px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-color-2) 96%, var(--site-color) 4%) 0%, var(--bg-color-2) 100%) !important;
    border-bottom: 1px solid var(--divider) !important;
    direction: ltr !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 8px !important;
    background: transparent !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-slider-prev, .hero-slider-playpause, .hero-slider-next) {
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    border: 1px solid var(--divider) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--bg-color) 92%, #fff 8%) !important;
    color: var(--color-2) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-slider-prev, .hero-slider-playpause, .hero-slider-next):hover {
    background: color-mix(in srgb, var(--site-color) 8%, var(--bg-color) 92%) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
    color: var(--site-color) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-pagination {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    direction: rtl !important;
    overflow: hidden !important;
    padding-inline: 6px !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-page {
    width: 32px !important;
    min-width: 32px !important;
    height: 36px !important;
    border: 0 !important;
    border-inline-start: 1px solid color-mix(in srgb, var(--divider) 72%, transparent 28%) !important;
    background: transparent !important;
    color: var(--color-2) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: color var(--transition-fast), background-color var(--transition-fast) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-page::before {
    content: "" !important;
    position: absolute !important;
    inset: auto auto 0 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: color-mix(in srgb, var(--site-color) 80%, transparent 20%) !important;
    transform: scaleX(0) !important;
    transform-origin: right center !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-page.is-active {
    background: color-mix(in srgb, var(--site-color) 10%, var(--bg-color) 90%) !important;
    color: var(--site-color) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7:not(.is-paused) .hero-slider-page.is-active::before {
    transform: scaleX(1) !important;
    transition: transform linear var(--hero-autoplay-duration, 3200ms) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-breaking {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    background: linear-gradient(135deg, var(--site-color) 0%, color-mix(in srgb, var(--site-color) 82%, #000 18%) 100%) !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 10px 0 !important;
    background:
        radial-gradient(circle at top center, rgba(var(--site-color-rgb), 0.07) 0%, transparent 40%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-featured-shell {
    position: relative !important;
    min-width: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-track {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-featured {
    min-width: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-inner {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    min-height: 0 !important;
    background: var(--bg-color) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 82%, transparent 18%) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05) !important;
    padding: 0 !important;
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item .item-inner {
    aspect-ratio: 16 / 8.6 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item .item-inner {
    aspect-ratio: 16 / 8.2 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;
    border-color: color-mix(in srgb, var(--site-color) 14%, var(--divider) 86%) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item .item-inner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background-image: var(--hero-image-url) !important;
    background-position: center !important;
    background-size: cover !important;
    filter: blur(22px) saturate(1.08) !important;
    transform: scale(1.06) !important;
    opacity: 0.22 !important;
    z-index: 0 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item .item-inner::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(8,10,18,0.04) 0%, rgba(8,10,18,0.18) 56%, rgba(8,10,18,0.84) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-image {
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform var(--transition-smooth), filter var(--transition-normal) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item .item-image {
    background: linear-gradient(180deg, rgba(var(--site-color-rgb), 0.04) 0%, rgba(0,0,0,0.03) 100%) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item .item-image img {
    object-fit: cover !important;
    padding: 0 !important;
    filter: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item:hover .item-inner {
    transform: translateY(-3px) !important;
    border-color: color-mix(in srgb, var(--site-color) 20%, var(--divider) 80%) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item:hover .item-image img,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item .item-image img {
    transform: scale(1.03) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-inner::before,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-image::after,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-content,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .post-kicker,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .post-meta,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-description {
    display: none !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 :is(.hero-thumb-item, .hero-featured-item) .item-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item::after,
.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item::after {
    content: attr(data-hero-slide-number) !important;
    position: absolute !important;
    inset: 10px 10px auto auto !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.92) !important;
    color: #111827 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.75) !important;
    z-index: 4 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-featured-item::after {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 0.92rem !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline {
    position: absolute !important;
    inset: auto 16px 16px 16px !important;
    z-index: 5 !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    background: linear-gradient(180deg, rgba(17,24,39,0.26) 0%, rgba(17,24,39,0.74) 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 16px !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link {
    display: block !important;
    width: 100% !important;
    color: #fff !important;
    text-decoration: none !important;
    text-align: right !important;
    font-size: clamp(1.04rem, 1.95vw, 1.72rem) !important;
    line-height: 1.5 !important;
    font-weight: 800 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-shadow: 0 4px 14px rgba(0,0,0,0.34) !important;
}

.home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link.is-animating {
    animation: heroHeadlineReveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes heroHeadlineReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-track {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item:nth-child(n+5) {
        display: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-page {
        width: 30px !important;
        min-width: 30px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link {
        font-size: 1rem !important;
    }
}

@media (max-width: 767px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-pagination {
        overflow-x: auto !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-track {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-stage {
        padding: 8px 8px 0 !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-thumb-item:nth-child(n+4) {
        display: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline {
        inset: auto 10px 10px 10px !important;
        padding: 12px 12px !important;
        border-radius: 14px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link {
        font-size: 1rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 {
        border-radius: 16px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-topbar {
        min-height: 34px !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-page {
        width: 28px !important;
        min-width: 28px !important;
        height: 34px !important;
        font-size: 0.72rem !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-track {
        display: none !important;
    }

    .home-newsroom #widgets-area-home_1 .widget:first-child .slider-outer.hero-slider-youm7 .hero-slider-headline-link {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }
}


/* ==========================================================================
   39. HOME_2 STRIP SLIDER
   ========================================================================== */

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 18px !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-inner {
    background:
        radial-gradient(circle at top right, rgba(var(--site-color-rgb), 0.08) 0%, transparent 28%),
        linear-gradient(180deg, var(--bg-color) 0%, color-mix(in srgb, var(--bg-color-2) 88%, var(--bg-color) 12%) 100%) !important;
    border: 1px solid var(--divider) !important;
    border-top: 3px solid var(--site-color) !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--divider) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-color-2) 96%, var(--site-color) 4%) 0%, var(--bg-color-2) 100%) !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-title {
    color: var(--color-1) !important;
    font-size: 1.04rem !important;
    font-weight: 900 !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-links {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-links a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--site-color) 8%, var(--bg-color) 92%) !important;
    border: 1px solid color-mix(in srgb, var(--site-color) 18%, transparent 82%) !important;
    color: var(--site-color) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-controls button {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 1px solid var(--divider) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--bg-color) 95%, #fff 5%) !important;
    color: var(--color-2) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-controls button:hover {
    background: color-mix(in srgb, var(--site-color) 8%, var(--bg-color) 92%) !important;
    border-color: color-mix(in srgb, var(--site-color) 30%, var(--divider) 70%) !important;
    color: var(--site-color) !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-viewport {
    padding: 14px !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-stage {
    position: relative !important;
    min-height: 320px !important;
    height: 320px;
    transition: height 320ms ease !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr) !important;
    background:
        linear-gradient(135deg, rgba(var(--site-color-rgb), 0.03) 0%, transparent 36%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-color) 95%, #fff 5%) 0%, var(--bg-color) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--divider) 88%, transparent 12%) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 320ms ease, transform 320ms ease, visibility 320ms ease !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 4 !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-media {
    position: relative !important;
    min-height: 320px !important;
    background: color-mix(in srgb, var(--bg-color-2) 82%, var(--bg-color) 18%) !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 28px !important;
    min-width: 0 !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-title {
    margin: 0 !important;
    color: var(--color-1) !important;
    font-size: clamp(1.22rem, 1.95vw, 1.9rem) !important;
    line-height: 1.65 !important;
    font-weight: 900 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-time {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 14px 2px !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--divider) 70%, transparent 30%) !important;
    cursor: pointer !important;
    transition: width var(--transition-fast), background-color var(--transition-fast) !important;
}

.home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-dot.is-active {
    width: 34px !important;
    background: var(--site-color) !important;
}

@media (max-width: 991px) {
    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide {
        grid-template-columns: minmax(260px, 40%) minmax(0, 1fr) !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-content {
        padding: 22px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-title {
        font-size: 1.24rem !important;
    }
}

@media (max-width: 767px) {
    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-topbar {
        padding: 10px 12px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-links {
        display: none !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-controls {
        gap: 4px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-stage {
        min-height: 430px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide {
        grid-template-columns: 1fr !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-media {
        min-height: 210px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-content {
        padding: 18px 16px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-title {
        font-size: 1.04rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
}

@media (max-width: 575px) {
    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider {
        margin-bottom: 14px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-stage {
        min-height: 360px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-inner {
        border-radius: 18px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-title {
        font-size: 0.92rem !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-controls button {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-media {
        min-height: 180px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-content {
        padding: 14px !important;
        gap: 10px !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slide-title {
        font-size: 0.94rem !important;
    }

    .home-newsroom :is(#widgets-area-home_2, #widgets-area-home_3, #widgets-area-home_5) .home-2-strip-slider-dot.is-active {
        width: 26px !important;
    }
}
