/* ==========================================================================
  TIQEN THEME — Clean, organized, and responsive CSS
  - Desktop UI preserved
  - English comments only
  - Semantic grouping
  - Deduplicated rules
  - Accessibility & performance tweaks
========================================================================== */

/* =======================================================================
  0) Root: Design tokens
======================================================================= */
:root {
    /* Brand */
    --color-primary: #B13A50;
    --color-primary-hover: #962F48;
    --color-secondary: #BC8CA4;
    --color-secondary-hover: #A37188;
    --color-tertiary: #CE6783;
    --color-tertiary-hover: #B35C70;

    /* Accents & Links */
    --color-accent: #EEE3E8;
    --color-link: #005F99;
    --color-link-hover: #004E80;

    /* Neutrals */
    --color-surface: #F9F9F9;
    --color-content-bg: #FFFFFF;
    --color-border: #E1E1E1;
    --color-dark: #1D242B;
    --color-muted: #6E6E6E;

    /* States */
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #D9534F;

    /* Typography */
    --text-primary: #212121;
    --text-secondary: #4A4A4A;
    --text-muted: #777777;

    /* Spacing scale */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 64px;

    /* Fluid spacing */
    --space-fluid-sm: min(var(--space-sm), 4%);
    --space-fluid-md: min(var(--space-md), 6%);
    --space-fluid-lg: min(var(--space-lg), 8%);

    /* Container paddings */
    --container-padding-horizontal: min(2em, 8%);
    --container-padding-vertical: min(2em, 5%);

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 32px;

    /* Fluid font sizes */
    --font-xs: clamp(0.75rem, 0.75rem + 0.5vw, 0.875rem);
    --font-sm: clamp(0.875rem, 0.875rem + 0.75vw, 1rem);
    --font-md: clamp(1rem, 1rem + 1vw, 1.25rem);
    --font-lg: clamp(1.25rem, 1.25rem + 1.5vw, 1.5rem);
    --font-xl: clamp(1.5rem, 1.5rem + 2vw, 2rem);
    --font-xxl: clamp(2rem, 2rem + 3vw, 3rem);
    --font-display: clamp(3rem, 3rem + 4vw, 5rem);
}

/* =======================================================================
  1) Base Reset & Typography
======================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

ul {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
    line-height: 1.2;
}

span {
    line-height: 1.2;
}

input::placeholder {
    text-align: right;
    font-size: var(--font-sm);
}

/* Webfont */
@font-face {
    font-family: "reg";
    src: url(../fonts/din.otf);
    font-display: swap;
}

/* Body & headings */
body {
    font-family: "reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: var(--font-md);
    color: var(--text-primary);
    direction: rtl;
    background: var(--color-surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "reg";
    line-height: 1.4;
}

h1 {
    font-size: var(--font-display);
}

h2 {
    font-size: var(--font-xxl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

h5 {
    font-size: var(--font-md);
}

h6 {
    font-size: var(--font-sm);
}

p {
    font-size: var(--font-md);
    margin-bottom: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid rgba(177, 58, 80, .35);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =======================================================================
  2) Utilities
======================================================================= */
.text-muted {
    color: var(--text-secondary) !important;
}

.rounded {
    border-radius: var(--radius-md) !important;
}

.section {
    padding: var(--container-padding-vertical) 0;
}

.overlay {
    background: rgba(0, 0, 0, .6);
    color: var(--text-primary);
}

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

.container.back-max1100 {
    max-width: 1100px;
}

/* ============================
   Categories Container (pro)
   - Pill tabs, active underline
   - Edge fade + horizontal scroll
   - Sticky option
============================ */
/* ==========================================================================
   Categories — Comfort Tabs v2 (calmer, pill-style, accessible)
   - drop-in replacement for your current tabs block
   - uses your :root tokens
   - RTL-safe, mobile-friendly, no JS needed
========================================================================== */

/* Shell */
.categories-container {
    position: relative;
    /*background: var(--color-content-bg);*/
    border: 1px solid #eee;
    padding: 12px 14px;
    margin: 0 auto 20px;
    /*box-shadow: 0 6px 20px rgba(0,0,0,.04);*/
    overflow: hidden; /* keep masks inside */
}

/* Optional sticky */
.categories-container.is-sticky {
    position: sticky;
    top: calc(var(--space-sm) + 2px);
    z-index: 5;
}

/* Scrollable tab row (chips / pills) */
.categories-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px;
    border: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-tabs::-webkit-scrollbar {
    display: none;
}

/* Edge fades */
.categories-container::before,
.categories-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38px;
    pointer-events: none;
    z-index: 2;
}

.categories-container::before {
    right: 0;
    background: linear-gradient(to left, var(--color-content-bg), transparent);
}

.categories-container::after {
    left: 0;
    background: linear-gradient(to right, var(--color-content-bg), transparent);
}

/* Tab chip */
.categories-tabs .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md); /* pill */
    font-size: var(--font-sm);
    font-weight: 600;
    /*color: color-mix(in oklab, var(--text-primary) 85%, #000);*/
    /*background: color-mix(in oklab, var(--color-primary) 6%, #fff);*/
    /*border: 1px solid color-mix(in oklab, var(--color-border) 80%, #fff);*/
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02) inset;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
    scroll-snap-align: center;
    white-space: nowrap;
}

/* Hover — gentle, no jumpiness */
.categories-tabs .nav-link:hover {
    /*background: color-mix(in oklab, var(--color-primary) 12%, #fff);*/
    /*border-color: color-mix(in oklab, var(--color-primary) 30%, var(--color-border));*/
    color: unset;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

/* Active — solid but soft */
.categories-tabs .nav-link.active {
    /*background: color-mix(in oklab, var(--color-primary) 16%, #fff);*/
    /*color: var(--color-primary);*/
    /*border-color: color-mix(in oklab, var(--color-primary) 40%, var(--color-border));*/
    box-shadow: 0 2px 10px rgba(177, 58, 80, .08);
}

/* Subtle active focus bar (inside chip) */
.categories-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    inset-inline: 5%;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    /*background: color-mix(in oklab, var(--color-primary) 55%, #fff);*/
    opacity: .9;
}

/* Keyboard focus */
.categories-tabs .nav-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px #fff,
    0 0 0 4px rgba(177, 58, 80, .35);
}

/* Loading state (Livewire) */
.categories-tabs .nav-link.is-loading {
    pointer-events: none;
    opacity: .75;
}

/* Global slim progress bar */
.categories-container .tabs-loading {
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
    color-mix(in oklab, var(--color-primary) 0%, transparent) 0%,
    var(--color-primary) 40%,
    color-mix(in oklab, var(--color-primary) 0%, transparent) 100%);
    animation: tiqenProgress 1.2s ease-in-out infinite;
}

@keyframes tiqenProgress {
    0% {
        transform: translateX(-40%);
        opacity: .55;
    }
    50% {
        transform: translateX(0%);
        opacity: .95;
    }
    100% {
        transform: translateX(40%);
        opacity: .55;
    }
}

/* Density & mobile polish */
@media (max-width: 767.98px) {
    .categories-container {
        padding: 10px 12px;
        border-radius: var(--radius-lg);
    }

    .categories-tabs {
        gap: 6px;
        justify-content: start !important;

    }

    .categories-tabs .nav-link {
        height: 34px;
        padding: 0 12px;
        font-weight: 600;
    }

    .categories-tabs .nav-link.active::after {
        bottom: 5px;
    }

    .categories-container.is-sticky {
        top: 8px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .categories-tabs .nav-link,
    .categories-container .tabs-loading {
        transition: none !important;
        animation: none !important;
    }
}


/* =======================================================================
  3) Buttons
======================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .3s ease;
    height: 40px;
    line-height: 1.2;
    border: 1px solid transparent;
}

.btn-sm {
    padding: calc(var(--space-xs) - 2px) calc(var(--space-sm) - 2px);
    font-size: var(--font-xs);
    height: 36px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
}

.btn-outline-primary {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
}

/* =======================================================================
  4) Loader (preload)
======================================================================= */
#preloadr {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 9999;
    opacity: 1;
}

/* Typewriter loader (Nawsome) */
.typewriter {
    --blue: var(--color-primary);
    --blue-dark: var(--color-primary-hover);
    --key: var(--color-content-bg);
    --paper: var(--color-accent);
    --text: var(--color-muted);
    --tool: var(--color-tertiary);
    --duration: 3s;
    position: relative;
    animation: bounce05 var(--duration) linear infinite;
}

.typewriter .slide {
    width: 92px;
    height: 20px;
    border-radius: 3px;
    margin-left: 14px;
    transform: translateX(14px);
    background: linear-gradient(var(--blue), var(--blue-dark));
    animation: slide05 var(--duration) ease infinite;
}

.typewriter .slide:before,
.typewriter .slide:after,
.typewriter .slide i:before {
    content: "";
    position: absolute;
    background: var(--tool);
}

.typewriter .slide:before {
    width: 2px;
    height: 8px;
    top: 6px;
    left: 100%;
}

.typewriter .slide:after {
    left: 94px;
    top: 3px;
    height: 14px;
    width: 6px;
    border-radius: 3px;
}

.typewriter .slide i {
    position: absolute;
    right: 100%;
    width: 6px;
    height: 4px;
    top: 4px;
    background: var(--tool);
}

.typewriter .slide i:before {
    right: 100%;
    top: -2px;
    width: 4px;
    border-radius: 2px;
    height: 14px;
}

.typewriter .paper {
    position: absolute;
    left: 24px;
    top: -26px;
    width: 40px;
    height: 46px;
    border-radius: 5px;
    background: var(--paper);
    transform: translateY(46px);
    animation: paper05 var(--duration) linear infinite;
}

.typewriter .paper:before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 7px;
    height: 4px;
    transform: scaleY(.8);
    background: var(--text);
    border-radius: 2px;
    box-shadow: 0 12px 0 var(--text), 0 24px 0 var(--text), 0 36px 0 var(--text);
}

.typewriter .keyboard {
    width: 120px;
    height: 56px;
    margin-top: -10px;
    position: relative;
    z-index: 1;
}

.typewriter .keyboard:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    transform: perspective(10px) rotateX(2deg);
    transform-origin: 50% 100%;
}

.typewriter .keyboard:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 25px;
    width: 11px;
    height: 4px;
    border-radius: 2px;
    box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key),
    60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key),
    22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key),
    60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    animation: keyboard05 var(--duration) linear infinite;
}

/* Loader animations */
@keyframes bounce05 {

    85%,
    92%,
    100% {
        transform: translateY(0)
    }

    89% {
        transform: translateY(-4px)
    }

    95% {
        transform: translateY(2px)
    }
}

@keyframes slide05 {
    5% {
        transform: translateX(14px)
    }

    15%,
    30% {
        transform: translateX(6px)
    }

    40%,
    55% {
        transform: translateX(0)
    }

    65%,
    70% {
        transform: translateX(-4px)
    }

    80%,
    89% {
        transform: translateX(-12px)
    }

    100% {
        transform: translateX(14px)
    }
}

@keyframes paper05 {
    5% {
        transform: translateY(46px)
    }

    20%,
    30% {
        transform: translateY(34px)
    }

    40%,
    55% {
        transform: translateY(22px)
    }

    65%,
    70% {
        transform: translateY(10px)
    }

    80%,
    85% {
        transform: translateY(0)
    }

    92%,
    100% {
        transform: translateY(46px)
    }
}

@keyframes keyboard05 {

    5%,
    12%,
    21%,
    30%,
    39%,
    48%,
    57%,
    66%,
    75%,
    84% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    9% {
        box-shadow: 15px 2px 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    18% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 2px 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    27% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 12px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    36% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 12px 0 var(--key), 60px 12px 0 var(--key), 68px 12px 0 var(--key), 83px 10px 0 var(--key);
    }

    45% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 2px 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    54% {
        box-shadow: 15px 0 0 var(--key), 30px 2px 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    63% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 12px 0 var(--key);
    }

    72% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 2px 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 10px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }

    81% {
        box-shadow: 15px 0 0 var(--key), 30px 0 0 var(--key), 45px 0 0 var(--key), 60px 0 0 var(--key), 75px 0 0 var(--key), 90px 0 0 var(--key), 22px 10px 0 var(--key), 37px 12px 0 var(--key), 52px 10px 0 var(--key), 60px 10px 0 var(--key), 68px 10px 0 var(--key), 83px 10px 0 var(--key);
    }
}

:root {
    --nav-height: 72px;
}

@media (max-width: 991.98px) {
    :root {
        --nav-height: 64px;
    }
}

/* Prevent content from hiding under fixed navbar */
body {
    padding-top: var(--nav-height);
}

/* Base */
.tiqen-navbar {
    background: var(--color-content-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    backdrop-filter: saturate(180%) blur(8px);
}

.tiqen-navbar .nav-link {
    color: var(--color-primary);
}

.tiqen-navbar .nav-link.active,
.tiqen-navbar .nav-link.show {
    color: var(--color-primary-hover);
}

.tiqen-navbar.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    background-color: rgba(255, 255, 255, .9);
}

.navbar-logo {
    height: 50px;
    width: auto;
}


.btn-search {
    width: 40px;
    height: 40px;
}

/* Desktop dropdown (hover only on fine pointers) */
@media (hover: hover) and (pointer: fine) {
    .tiqen-navbar .dropdown {
        position: relative;
    }

    .tiqen-navbar .dropdown-menu {
        display: block;
        /* keep flow for animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .tiqen-navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.tiqen-navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--color-content-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 6px 0;
    margin: var(--space-xs) 0 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    z-index: 1000;
    overflow: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.tiqen-navbar .dropdown-item {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-sm);
    color: var(--text-primary);
    transition: background .2s ease, color .2s ease, padding .2s ease;
}

.tiqen-navbar .dropdown-item:hover {
    background: var(--color-primary-hover);
    color: #fff;
    padding-right: calc(var(--space-sm) + 4px);
}

/* Offcanvas for mobile */
.tiqen-offcanvas {
    width: min(85vw, 380px);
    background: var(--color-content-bg);
    border-left: 1px solid var(--color-border);
}

.tiqen-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--color-border);
}

.tiqen-accordion-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: var(--font-md);
}

.tiqen-accordion-btn i {
    transition: transform .2s;
}

.tiqen-accordion-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.tiqen-submenu .dropdown-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin: 4px 0;
}

.tiqen-submenu .dropdown-item:hover {
    background: var(--color-accent);
    color: var(--color-dark);
}

/* Toggler polish */
.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    filter: contrast(1.5);
}

.offcanvas {
    display: none;
    height: 100vh !important;
}


@media (max-width: 991.98px) {
    .navbar-logo {
        height: 44px;
    }

    .offcanvas {
        display: block;
    }


}

/* =======================================================================
  6) Featured Articles (grid)
======================================================================= */
.featured-articles__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    height: 500px;
}

/* Card placement */
.featured-articles__grid > article:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.featured-articles__grid > article:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.featured-articles__grid > article:nth-child(3),
.featured-articles__grid > article:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    width: calc((100% - var(--space-sm)) / 2);
}

.featured-articles__grid > article:nth-child(3) {
    justify-self: start;
}

.featured-articles__grid > article:nth-child(4) {
    justify-self: end;
}

.featured-articles__grid > article:nth-child(1) .article-card__title {
    font-size: var(--font-xl);
}

.article-card--medium .article-card__title {
    font-size: var(--font-lg);
    color: #fff;
}

.featured-articles__grid .contributors__label {
    color: #fff;

}

/* =======================================================================
  7) Article Cards (shared UI)
======================================================================= */
.article-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.article-card__overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: var(--space-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.article-card__meta {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.article-card__date {
    display: flex;
    align-items: center;
    gap: var(--space-xxs);
    font-size: var(--font-xs);
}

.article-card__title {
    font-size: var(--font-md);
    margin: 0;
}


.article-card__date {
    color: #6b7280;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.article-card__date i {
    margin-left: 0.3rem;
}


.article-card__title a {
    color: #fff;
    text-decoration: none;
}

.article-card__title a:hover {
    color: #fff;
}

.featured-articles
.article-card__date {
    color: #fff;

}


.contributors__label {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
}

/**/

.article-card__label {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.author-dropdown-wrapper {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

/* Icon and label */
.author-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    background: #f0f0f0;
    border-radius: 8px;
    transition: background 0.3s;
}

.author-icon:hover {
    background: #e0e0e0;
}

.icon-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}


/* Contributors dropdown */
.contributors__dropdown {
    position: absolute;
    bottom: calc(100% + 2px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--color-content-bg);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    white-space: nowrap;
    z-index: 10;
    font-size: 14px;
    width: max-content;
}

.contributors__dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.contributors__item--publisher .contributors__dropdown {
    left: 0;
    right: unset;
}

.contributors__dropdown .contributors__icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 90%;
    object-fit: cover;

}

.contributors__dropdown::after {
    content: "";
    position: absolute;
    bottom: -11px;
    right: var(--space-md);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-content-bg) transparent transparent transparent;
}

.contributors__item:hover .contributors__dropdown {
    display: flex;
}

/* Badge (type & category) */
.article-card__label {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 12px;
    transition: transform .2s ease;
    color: hsl(210 12% 35%);
    padding: 10px 14px;
    max-width: max-content;
    border-radius: 4px;
    background: #EEE;
    height: 25px;
    border: 1px solid #EEE;
}

.article-card__label:hover {
    transform: scale(1.05);
}

.resources-item {
    position: relative;
}

.resources-extra {
    background: #3b82f6;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.resources-dropdown-hover {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 250px;
    z-index: 100;
    margin-top: 0.5rem;
}

.resources-item:hover .resources-dropdown-hover {
    display: block;
}

.dropdown-resource-item {
    padding: 0.75rem;
    text-decoration: none;
    color: #2d3748;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.dropdown-resource-item:last-child {
    margin-bottom: 0;
}

.dropdown-resource-item:hover {
    background: #f8f9fa;
}

.author-main-container {
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.author-main-container:hover {
    background: #e9ecef;
}

.author-info {
    flex-grow: 1;
}

.author-social-media {
    flex-shrink: 0;
}

.social-links {
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #3b82f6;
}

.social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Ribbon badge (corner) */
.custom-badge {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-badge::before {
    content: attr(data-label);
    position: absolute;
    width: 150%;
    height: 30px;
    transform: rotate(-45deg) translateY(-20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    color: #fff;
    background: hsl(2 64% 58%);
}

.badge-default::before {
    background: #666;
}

.badge-zayef::before {
    background: hsl(2 64% 58%);
}

.badge-mudallal::before {
    background: hsl(45 100% 51%);
}

.badge-mufabrak::before {
    background: hsl(261 51% 51%);
}

.badge-qadim::before {
    background: hsl(210 5% 38%);
}

.badge-tawdi7::before {
    background: hsl(214 100% 50%);
}

.badge-ta2kid::before {
    background: hsl(134 61% 41%);
}

/* =======================================================================
  8) Breaking News (carousel)
======================================================================= */
.breaking-news .section-title-breaking {
    font-size: 15px;
    padding: 5px 10px;
    background: var(--color-primary);
    display: inline-block;
    border-radius: 10px 10px 0 0;
    color: #fff;
    margin-bottom: 0;
}

.breaking-news__container {
    background: hsl(349 51% 98%);
    border-top: 1px solid hsl(349 51% 90%);
    border-bottom: 1px solid hsl(349 51% 90%);
    padding: 0;
    border-radius: 16px 0 16px 16px;
    overflow: hidden;
}

.breaking-news__item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin: -1px;
    border-left: 1px solid hsl(349 51% 90%);
    border-right: 1px solid hsl(349 51% 90%);
    border-radius: 0;
}

.container_breaking_image {
    flex-shrink: 0;
    flex: 0 0 105px;

}


.breaking-news__image {
    width: 100% !important;
    height: 105px;
    object-fit: cover;
    border-radius: 6px;
}

.breaking-news__meta {
    align-items: center;
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.breaking-news__time-icon {
    margin-top: 2px;
    width: 20px !important;
    height: auto;
}

.breaking-news__title {
    font-size: var(--font-md);
    margin: 0;
}

.breaking-news__title a {
    color: var(--color-dark);
    transition: color .2s ease;
}

.breaking-news__title a:hover {
    color: var(--color-primary);
}

/* Owl nav overrides */
.owl-nav button {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: var(--space-xxs) var(--space-xs);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.owl-nav .owl-prev {
    right: calc(100% + var(--space-sm));
}

.owl-nav .owl-next {
    left: calc(100% + var(--space-sm));
}

/* =======================================================================
  9) Top Highlights grid + card variants
======================================================================= */
.section-title {
    font-size: var(--font-xl);
    line-height: 1em;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 20px;
    margin: 0 0 30px;
}

.section-title:before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 5px;
    border-radius: 6px;
    background: var(--color-primary);
}

.section-title:after {
    content: "";
    position: absolute;
    right: 110px;
    bottom: 0;
    width: 30px;
    height: 5px;
    border-radius: 6px;
    background: var(--color-primary);
}

.top-highlights__grid {
    border: 1px solid #eee;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.regular-article-card .article-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.regular-article-card .article-card__body {
    padding: 20px 0;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    flex-flow: column;
    gap: var(--font-xs);
}

.regular-article-card .article-card__body .article-card__title a {
    color: inherit;
}

.regular-article-card .article-card__body .article-card__date,
.regular-article-card .article-card__body .contributors__label {
    color: var(--text-muted);
}

.article-card__date img {
    margin-top: 4px;
    width: 20px !important;
    height: auto;
}

.regular-article-card {
    position: relative;
}

/* =======================================================================
  10) Sidebar (Blog)
======================================================================= */
.blog-sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eef0fc;
}

.blog-sidebar .widget h3 {
    font-size: 1.53333rem;
    color: var(--text-primary);
    margin: 0 0 1.3em;
    position: relative;
    text-transform: capitalize;
    padding-bottom: 20px;
}

.blog-sidebar .widget h3:before {
    content: "";
    background: var(--color-primary);
    width: 55px;
    height: 4px;
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: 10px;
}

.blog-sidebar .widget h3:after {
    content: "";
    background: #f2f2f2;
    width: 75%;
    height: 4px;
    position: absolute;
    right: 65px;
    bottom: 0;
    border-radius: 10px;
}

/* Categories */
.blog-sidebar .category-widget ul li {
    font-size: var(--font-md);
    position: relative;
}

.blog-sidebar .category-widget ul a {
    display: block;
    color: var(--text-muted);
    padding-right: 30px;
    position: relative;
}

.blog-sidebar .category-widget ul a::before {
    content: "\f053";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-40%);
    font-size: 15px;
    color: var(--text-muted);
}

.blog-sidebar .category-widget ul > li + li {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef0fc;
}

.blog-sidebar .category-widget ul a span {
    display: inline-block;
    text-align: center;
    font-size: 18px;
}

.blog-sidebar .category-widget ul li span {
    position: absolute;
    left: 0;
}

/* Recent posts */
.blog-sidebar .recent-post-widget .post {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blog-sidebar .recent-post-widget .post .img-holder {
    width: 70px;
}

.blog-sidebar .recent-post-widget .post .img-holder img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
}

.blog-sidebar .recent-post-widget .post .details {
    width: calc(100% - 70px);
    padding-right: 16px;
}

.blog-sidebar .recent-post-widget .post .details .date {
    font-size: var(--font-xs);
    color: var(--text-primary);
    position: relative;
    top: -2px;
}

.blog-sidebar .recent-post-widget .post h4 {
    font-size: var(--font-sm);
    font-weight: 500;
    line-height: 1.3em;
    margin: .3em 0 0;
}

.blog-sidebar .recent-post-widget .post h4 a {
    color: #232f4b;
}

.blog-sidebar .recent-post-widget .posts > .post + .post {
    margin-top: 15px;
    padding-top: 15px;
}

/* =======================================================================
  11) Footer
======================================================================= */
.wpo-site-footer {
    background: var(--color-dark);
    position: relative;
    font-size: var(--font-sm);
    overflow: hidden;
}

.wpo-site-footer .wpo-upper-footer {
    padding: 40px 0 30px;
}

.wpo-site-footer .about-widget .logo {
    max-width: 120px;
}

.wpo-site-footer p {
    color: #fff;
    font-weight: 500;
    font-size: var(--font-sm);
}

.wpo-site-footer .widget-title {
    margin-bottom: 30px;
}

.wpo-site-footer .widget-title h3 {
    font-size: var(--font-lg);
    color: #fff;
    margin: 0;
    font-weight: 500;
}

.wpo-site-footer li {
    color: #fff;
}

.wpo-site-footer .link-widget ul li + li {
    padding-top: 15px;
}

.wpo-site-footer .link-widget ul li a {
    color: #fff;
    font-size: var(--font-sm);
}

/* Tag chips */
.wpo-site-footer .tag-widget ul {
    display: flex;
    flex-wrap: wrap;
}

.wpo-site-footer .tag-widget ul li a {
    display: block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, .1);
    font-size: 16px;
    color: #fff;
    margin-left: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Social links (icons only) */
.wpo-site-footer .social-widget ul li a {
    background: transparent !important;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.wpo-site-footer .social-widget ul li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
    background: #777;
    color: #fff;
    transition: background .3s ease;
    margin-top: 5px;
}

.wpo-site-footer .social-widget ul li a.facebook i {
    background: #3b5998;
}

.wpo-site-footer .social-widget ul li a.twitter i {
    background: #1da1f2;
}

.wpo-site-footer .social-widget ul li a.instagram i {
    background: #e4405f;
}

.wpo-site-footer .social-widget ul li a.youtube i {
    background: #ff0000;
}

.wpo-site-footer .social-widget ul li a i:hover {
    filter: brightness(.9);
}

@media (min-width: 1200px) {
    .wpo-site-footer .link-widget {
        padding-right: 75px;
    }
}

.wpo-site-footer .wpo-lower-footer .row {
    padding: 20px 0;
    position: relative;
}

/* =======================================================================
  12) Floating WhatsApp Button
======================================================================= */
.fixed-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gaurang7717 */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .199);
    background: #00d757;
}

.btn-whatsapp .sign {
    width: 100%;
    transition-duration: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp .sign svg {
    width: 25px;
}

.btn-whatsapp .sign svg path {
    fill: #fff;
}

.btn-whatsapp .text {
    position: absolute;
    left: 0;
    width: 0;
    opacity: 0;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    transition-duration: .3s;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-whatsapp:hover {
    width: 130px;
    border-radius: 40px;
}

.btn-whatsapp:hover .sign {
    width: 30%;
    padding-right: 10px;
}

.btn-whatsapp:hover .text {
    opacity: 1;
    width: 70%;
    padding-right: 10px;
}

.btn-whatsapp:active {
    transform: translate(2px, 2px);
}

/* =======================================================================
  13) Breadcrumbs
======================================================================= */
.back-breadcrumbs .breadcrumbs-wrap {
    position: relative;
    overflow: hidden;
}

.back-breadcrumbs .breadcrumbs-wrap .breadcrumbs-inner {
    padding: 40px 0;
    background: hsl(0 0% 95%);
}

.back-breadcrumbs .breadcrumbs-text {
    text-align: center;
}

.back-breadcrumbs .breadcrumbs-title {
    width: 100%;
    font-size: var(--font-xl);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 10px;
}

.back-breadcrumbs .back-nav ul li {
    display: inline;
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 400;
    opacity: .8;
}

.back-breadcrumbs .back-nav ul li a {
    color: var(--text-primary);
}

.back-breadcrumbs .back-nav ul li a:hover {
    opacity: .7;
}

.back-breadcrumbs .back-nav ul li:after {
    content: "";
    margin: 0 12px 0 6px;
    background: var(--text-primary);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.back-breadcrumbs .back-nav ul li:last-child:after {
    content: unset;
    margin: 0;
}

/* =======================================================================
  14) Blog Details (article page)
======================================================================= */
.back-blog-page-single {
    padding: 60px 0;
}

.back-blog-page-single .blog-single-inner .blog-image {
    margin-bottom: 20px;
    line-height: 0;
}

.back-blog-page-single .blog-single-inner .blog-image img {
    width: 100%;
    aspect-ratio: 16/9;
}

.back-blog-page-single .blog-single-inner .blog-image audio {
    width: 100%;
}

.back-blog-page-single .blog-single-inner .blog-content {
    color: var(--text-primary);
}

.back-blog-page-single .blog-single-inner .blog-content p:first-child {
    margin: -8px 0 0;
    overflow: hidden;
}

.back-blog-page-single .blog-single-inner .blog-content p {

    line-height: 30px;
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-muted);
}

.back-blog-page-single .blog-single-inner .blog-content p:last-child {
    margin-bottom: 0;
}

.back-blog-page-single .blog-single-inner .blog-content .back-order-list h3 {
    font-size: var(--font-lg);
    font-weight: 700;
}

.back-blog-page-single .blog-single-inner .blog-content .back-order-list ul li {
    margin: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding-right: 50px;
}

.back-blog-page-single .blog-single-inner .blog-content .back-order-list ul li i {
    background: rgba(12, 22, 54, .051);
    border-radius: 50%;
    margin-left: 12px;
    position: absolute;
    right: 0;
    top: -5px;
    width: 35px;
    height: 35px;
    line-height: 34px;
    text-align: center;
}

/* Pull-quote */
.back-blog-page-single .blog-single-inner .blog-content blockquote {
    position: relative;
    margin: 50px 0 60px;
    padding: 50px 50px 50px 90px;
    color: #0a0a0a;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 11, 47, .08), inset 0 3px 0 rgba(42, 109, 245, .004);
    border-right: 3px solid var(--color-primary);
    border-radius: 0;
    font-size: 24px;
    line-height: 33px;
    font-weight: 400;
    overflow: hidden;
    z-index: 1;
}

.back-blog-page-single .blog-single-inner .blog-content blockquote:before {
    content: "";
    position: absolute;
    background: url(../img/qu.jpg) no-repeat right bottom;
    bottom: -20px;
    left: 120px;
    width: 107px;
    height: 107px;
    z-index: -1;
}

/* Tags & share */
.back-blog-page-single .blog-single-inner .blog-content .blog-tags {

    display: block;
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags ul.mata-tags li {
    display: inline-block;
    margin-left: 5px;
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags ul.mata-tags li a {
    padding: 3px 20px 6px;
    border: 2px solid #ecedf3;
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    border-radius: 6px;
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags ul.mata-tags li a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags ul.mata-tags li.tags {
    font-size: 18px;
    color: var(--text-primary);
    margin-left: 20px;
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags .social-links li {
    display: inline-block;
    padding-left: 5px;
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags .social-links li a {
    color: #54565c;
    border: 2px solid #e7e9ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 13px;
    border-radius: 6px;
    background: none;
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags .social-links li a:hover {
    color: #fff;
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.back-blog-page-single .blog-single-inner .blog-content .blog-tags .social-links li.shares {
    font-size: 18px;
    color: var(--text-primary);
    margin-left: 20px;
}

/* Author box */
.back-blog-page-single .blog-single-inner .blog-content .post-author {
    display: flex;
    align-items: center;
    padding: 40px;
    margin-top: 50px;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

.back-blog-page-single .blog-single-inner .blog-content .post-author .avatar {
    margin-left: 20px;
}

.back-blog-page-single .blog-single-inner .blog-content .post-author .avatar img {
    border-radius: 50%;
    width: 122px;
}

.back-blog-page-single .blog-single-inner .blog-content .post-author .info .name {
    margin: 0;
    color: var(--text-primary);
    transition: color .3s;
    font-size: 20px;
    font-weight: 700;
}

.back-blog-page-single .blog-single-inner .blog-content .post-author .info .designation {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.back-blog-page-single .blog-single-inner .blog-content .post-author p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 9px 0 12px;
    line-height: 24px;
}

.back-blog-page-single .blog-single-inner .blog-content .post-author:hover .info .name {
    color: var(--color-primary);
}

/* Prev/Next */
.back-blog-page-single .single-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    margin-top: 25px;
    position: relative;
}

.back-blog-page-single .single-nav:before {
    content: "";
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(50%);
    width: 1px;
    background: #e6e7eb;
}

.back-blog-page-single .single-nav .back-next {
    text-align: left;
}

.back-blog-page-single .single-nav .back-prev a,
.back-blog-page-single .single-nav .back-next a {
    color: #85838c;
    font-size: 16px;
    font-weight: 500;
}

.back-blog-page-single .single-nav .back-prev a em,
.back-blog-page-single .single-nav .back-next a em {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.back-blog-page-single .single-nav .back-prev a:hover,
.back-blog-page-single .single-nav .back-next a:hover {
    color: var(--color-primary);
}

.back-blog-page-single .single-nav .back-prev a:hover em,
.back-blog-page-single .single-nav .back-next a:hover em {
    color: var(--color-primary);
}

.back-blog-page-single .single-nav .back-prev {
    position: relative;
    padding-right: 28px;
    transition: all .5s;
}

.back-blog-page-single .single-nav .back-prev i:before {
    content: "";
    /* keep layout safe even if no icon font loaded */
    position: absolute;
    top: 5px;
    right: 0;
}

.back-blog-page-single .single-nav .back-prev:hover i:before {
    right: -6px;
}

.back-blog-page-single .single-nav .back-next {
    position: relative;
    padding-left: 28px;
    transition: all .5s;
}

.back-blog-page-single .single-nav .back-next i:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
}

.back-blog-page-single .single-nav .back-next:hover i:before {
    left: -6px;
}

/* Related */
.back-blog-related {
    padding-top: 60px;
}

.back-blog-related .container {
    padding-left: 0;
    padding-right: 0;
}

.back-blog-related .back-title-related {
    margin: 0 0 36px;
    font-size: 24px;
    color: var(--text-primary);
}

.back-blog-related .container #back-blog-slider li .back-inner {
    box-shadow: -6px 30px 30px -6px rgba(10, 0, 45, .05);
    margin-bottom: 40px;
    border-radius: 5px;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-image img {
    border-radius: 5px 5px 0 0;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content {
    padding: 20px;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content h3 {
    margin: 6px 0 25px;
    font-size: 14px;
    line-height: 24px;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content h3 a {
    color: #0a0a0a;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content h3:hover {
    color: #0088cb;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content ul li {
    color: #777;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding-right: 30px;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content ul li a {
    color: #000;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content ul li a:hover {
    color: #0088cb;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content ul li span {
    margin-right: 10px;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content ul li.back-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content ul li:last-child {
    padding-right: 0;
}

.back-blog-related .container #back-blog-slider li .back-inner .back-blog-content em {
    font-size: 13px;
    color: #777;
    font-style: normal;
}

/* Small section title */
.back-small-title h3 {
    font-size: 1.53333rem;
    color: var(--text-primary);
    margin: 0 0 1.3em;
    position: relative;
    text-transform: capitalize;
    padding-bottom: 20px;
    width: max-content;
}

.back-small-title h3:before {
    content: "";
    background: var(--color-primary);
    width: 55px;
    height: 4px;
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: 10px;
}

.back-small-title h3:after {
    content: "";
    background: #f2f2f2;
    width: 75%;
    height: 4px;
    position: absolute;
    right: 65px;
    bottom: 0;
    border-radius: 10px;
}

/* =======================================================================
  15) Article shared blocks (claim, verification, sources…)
======================================================================= */
/* ===== Article shared blocks ===== */
.blog-content {
    color: var(--text-primary);
    line-height: 1.6
}

.article-title {
    font-size: var(--font-xl);
    font-weight: 700;
    line-height: 150%
}

.post-meta {
    font-size: var(--font-sm);
    color: var(--text-muted)
}

.post-meta a {
    color: var(--color-primary)
}

.post-meta a:hover {
    text-decoration: underline
}

.post-hero img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block
}

.post-section {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    background: var(--color-accent)
}

.section-heading {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-primary)
}

.section-claim {
    background: hsl(0 0% 98%)
}

.section-publisher {
    background: hsl(210 5% 98%)
}

.section-news {
    background: hsl(120 5% 98%)
}

.section-verification {
    background: hsl(45 5% 98%)
}

.section-sources {
    background: hsl(240 5% 98%)
}

.claim-summary {
    background: var(--color-accent);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg)
}

.article-section2 {
    background: #fff;
    border-left: 4px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--radius-sm)
}

.article-section2 .h5 {
    font-size: var(--font-lg)
}

.article-section {
    margin-bottom: var(--space-lg)
}

.article-section h2 {
    font-size: var(--font-lg);
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
    position: relative
}

.article-section h2::after {
    content: "";
    position: absolute;
    bottom: -14px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px
}

.article-section p {
    font-size: var(--font-md);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md)
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg)
}

.share-buttons h2 {
    font-size: var(--font-md);
    color: var(--color-dark);
    margin: 0
}

.share-buttons .social-links {
    display: flex;
    gap: var(--space-sm)
}

.share-buttons .social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: var(--font-md);
    color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
    transition: transform .2s, background .3s
}

.share-buttons .social-links li a:hover {
    background: var(--color-primary-hover);
    transform: scale(1.1)
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs)
}

.article-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) !important;
    font-size: var(--font-sm);
    color: var(--text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg)
}

.metadata-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-sm);
    color: var(--text-muted);
    text-decoration: none
}

.metadata-item img {
    width: 18px;
    height: auto
}

/* ===== Contributors (authors/publishers) ===== */

/* Contributors */
.article-card__contributors {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xs);
}

.contributors__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: default;
}

.contributors__icon {
    width: 30px !important;
    height: 30px;
    border-radius: 50%;
}

.contributors__label {
    font-size: var(--font-xs);
    display: inline-flex;
}

.contributors__extra {
    line-height: 1.2;
    margin-right: var(--space-xxs);
}

/* Contributors dropdown */
.contributors__dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--color-content-bg);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    white-space: nowrap;
    z-index: 10;
    font-size: 14px;
    width: max-content;
}

.contributors__dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.contributors__item--publisher .contributors__dropdown {
    left: 0;
    right: unset;
}

.contributors__dropdown .contributors__icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
}

.contributors__dropdown::after {
    content: "";
    position: absolute;
    bottom: -11px;
    right: var(--space-md);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-content-bg) transparent transparent transparent;
}

.contributors__item:hover .contributors__dropdown {
    display: flex;
}

/* ===== Sources (show ALL, no dropdown) ===== */
.sources-card {
    background: var(--color-content-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px
}

.sources-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.sources-card__title {
    font-size: 1.05rem;
    margin: 0;
    color: var(--color-dark);
    font-weight: 700
}

.sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface)
}

.source-chip__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover
}

.source-chip__label {
    font-size: .9rem;
    color: var(--text-secondary);
    max-width: 34ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

@media (max-width: 768px) {
    .source-chip__label {
        max-width: 22ch
    }
}

.back-blog-page-single .blog-single-inner .blog-content
    /* Role chip for contributors (author/publisher) */
.contributors__role {
    font-size: .9rem;
    color: var(--text-muted);


    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =======================================================================
  16) About page
======================================================================= */
.about-page {
    background: var(--color-content-bg);
}

.width-max {
    width: max-content;
}

.about-intro {
    gap: var(--space-lg);
}

.about-intro .section-title {
    font-size: var(--font-xxl);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.timeline {
    gap: var(--space-lg);
}

.timeline-item {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.timeline-item i {
    color: var(--color-primary);
}

/* Section subtitle */
.section-subtitle {
    font-size: var(--font-xl);
    color: var(--color-dark);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-sm);
    margin: 0 auto 40px;
    font-weight: 700;
    width: max-content;
}

.section-subtitle::before,
.section-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 5px;
    border-radius: 6px;
    background: var(--color-primary);
}

.section-subtitle::before {
    right: 0;
    width: 100px;
}

.section-subtitle::after {
    right: 110px;
    width: 30px;
}

.about-ownership p,
.about-where p {
    font-size: var(--font-md);
    color: var(--text-muted);
    line-height: 1.7;
}

.about-where img {
    max-width: 100%;
}

.team-carousel .item {
    background: var(--color-content-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    transition: transform .3s ease;
    margin-bottom: 10px;
}

.team-carousel .item:hover {
    transform: translateY(-5px);
}

.team-avatar {
    margin: auto;
    width: 120px !important;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--color-primary);
}

/* Team carousel nav */
.team-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    border: none;
    padding: var(--space-xs);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: background .3s ease;
}

.team-carousel .owl-nav .owl-prev {
    right: -var(--space-lg);
}

.team-carousel .owl-nav .owl-next {
    left: -var(--space-lg);
}

.team-carousel .owl-nav button:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =======================================================================
  17) Advanced Search / Pagination
======================================================================= */
.advanced-search-box {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eef0fc;
}

.advanced-search-box h4 {
    color: var(--color-primary);
    font-weight: 700;
}

.advanced-search-box .form-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.advanced-search-box .form-control,
.advanced-search-box .form-select {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.advanced-search-box .form-control:focus,
.advanced-search-box .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(177, 58, 80, .15);
}

/* Bootstrap pagination theming via CSS vars */
.pagination {
    --bs-pagination-padding-x: .9rem;
    --bs-pagination-padding-y: .5rem;
    --bs-pagination-font-size: var(--font-sm);
    --bs-pagination-color: var(--color-primary);
    --bs-pagination-bg: var(--color-content-bg);
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: var(--color-border);
    --bs-pagination-border-radius: var(--radius-sm);
    --bs-pagination-hover-color: var(--color-primary-hover);
    --bs-pagination-hover-bg: var(--color-accent);
    --bs-pagination-hover-border-color: var(--color-border);
    --bs-pagination-focus-color: var(--color-primary-hover);
    --bs-pagination-focus-bg: var(--color-accent);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(177, 58, 80, .15);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--color-primary);
    --bs-pagination-active-border-color: var(--color-primary);
    --bs-pagination-disabled-color: var(--color-muted);
    --bs-pagination-disabled-bg: var(--color-surface);
    --bs-pagination-disabled-border-color: var(--color-border);
    gap: var(--space-xs);
}

.page-item .page-link {
    border-radius: var(--bs-pagination-border-radius) !important;
}

.page-item.active .page-link {
    transform: scale(1.05);
}

/* =======================================================================
  18) Author page
======================================================================= */
.author-profile-box {
    background: var(--color-content-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    border-top: 4px solid var(--color-primary);
}

.author-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-content-bg);
    box-shadow: 0 0 0 4px var(--color-primary);
}

.author-name {
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-xxs);
}

.author-tagline {
    font-size: var(--font-md);
    margin-bottom: var(--space-sm);
}

.author-bio {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.author-social-links {
    display: flex;
    gap: var(--space-sm);
}

.author-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-primary);
    font-size: 1rem;
    transition: all .3s;
}

.author-social-links a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
}

.author-stats {
    display: flex;
    gap: var(--space-lg);
    border-right: 1px solid var(--color-border);
    padding-right: var(--space-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

/* ===========================
   Contact page (scoped)
=========================== */
.contact-page-area {
    --card-bg: color-mix(in oklab, var(--color-content-bg) 90%, transparent);
    --card-bd: var(--color-border, rgba(0, 0, 0, .08));
    --card-r: var(--radius-lg, 16px);
    --shadow-1: 0 6px 24px rgba(0, 0, 0, .08);
    --shadow-2: 0 12px 40px rgba(0, 0, 0, .12);
    --grad-1: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover, #0b5ed7) 100%);
}

/* Card base */
.contact-page-area .tiq-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-bd);
    border-radius: var(--card-r);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    backdrop-filter: saturate(140%) blur(8px);
}

.contact-page-area .tiq-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: color-mix(in oklab, var(--color-primary) 30%, var(--card-bd));
}

/* Soft button */
.contact-page-area .btn-soft {
    --soft: color-mix(in oklab, var(--color-primary) 10%, #fff);
    background: var(--soft);
    border: 1px solid color-mix(in oklab, var(--color-primary) 20%, #fff);
    color: var(--color-primary);
    padding: .5rem .75rem;
    border-radius: 10px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-page-area .btn-soft:hover {
    background: color-mix(in oklab, var(--color-primary) 15%, #fff);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

/* Spotlight cards */
.contact-page-area .contact-spotlight {
    padding: 22px;
}

.contact-page-area .contact-spotlight .spotlight-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in oklab, var(--color-primary) 15%, #fff);
    color: var(--color-primary);
    margin-bottom: 14px;
}

.contact-page-area .contact-spotlight .spotlight-icon i {
    font-size: 20px;
}

.contact-page-area .contact-spotlight .spotlight-title {
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.contact-page-area .contact-spotlight .spotlight-text {
    margin: 0 0 12px;
    color: var(--text-primary, #222);
}

.contact-page-area .contact-spotlight .spotlight-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Form card */
.contact-page-area .contact-form-card {
    padding: 0;
}

.contact-page-area .contact-form-card .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--card-bd);
    background: radial-gradient(1200px 1200px at 110% -10%, color-mix(in oklab, var(--color-primary) 15%, transparent) 0%, transparent 50%),
    linear-gradient(to left, #fff, #fff);
}

.contact-page-area .contact-form-card .head-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad-1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(13, 110, 253, .35);
}

.contact-page-area .contact-form-card form {
    padding: 18px;
}

.contact-page-area .form-floating > label {
    font-size: 16px;
    right: .75rem;
    left: auto;
}

.contact-page-area .form-floating > .form-control:focus,
.contact-page-area .form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.contact-page-area .form-control {
    border-radius: 12px;
    border-color: var(--card-bd);
}

.contact-page-area .form-control:focus {
    border-color: color-mix(in oklab, var(--color-primary) 50%, var(--card-bd));
    box-shadow: 0 0 0 .2rem color-mix(in oklab, var(--color-primary) 15%, transparent);
}

/* Submit button spinner layout */
.contact-page-area #sendBtn {
    position: relative;
}

.contact-page-area #sendBtn .btn-spinner {
    margin-inline-start: .5rem;
}

/* Status toast */
.contact-page-area .form-status {
    margin-top: .25rem;
    min-height: 1.5rem;
    font-size: .95rem;
}

.contact-page-area .form-status .ok,
.contact-page-area .form-status .err {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: 10px;
}

.contact-page-area .form-status .ok {
    background: color-mix(in oklab, var(--color-primary) 10%, #fff);
    color: var(--color-primary);
    border: 1px solid color-mix(in oklab, var(--color-primary) 25%, #fff);
}

.contact-page-area .form-status .err {
    background: hsl(2 85% 97%);
    color: hsl(2 60% 48%);
    border: 1px solid hsl(2 60% 90%);
}

/* Map card */
.contact-page-area .map-card {
    padding: 0;
    position: relative;
}

.contact-page-area .map-card .map-ratio {
    aspect-ratio: 16/12;
    height: 100%;
    width: 100%;
    background: #f2f5f8;
}

.contact-page-area .map-card iframe {
    border-radius: var(--card-r);
}

.contact-page-area .map-card .map-overlay {
    position: absolute;
    inset-inline-start: 14px;
    inset-block-start: 14px;
    background: color-mix(in oklab, #fff 65%, transparent);
    backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid var(--card-bd);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow-1);
    max-width: min(92%, 320px);
}

.contact-page-area .map-card .overlay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.contact-page-area .map-card .overlay-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}

.contact-page-area .map-card .overlay-close:hover {
    opacity: 1;
}

.contact-page-area .badge-soft {
    display: inline-block;
    padding: .35rem .55rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--color-primary) 10%, #fff);
    color: var(--color-primary);
    font-size: .8rem;
    border: 1px solid color-mix(in oklab, var(--color-primary) 20%, #fff);
}

.contact-page-area .map-card .schedule li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #445;
    font-size: 14px;
}

/* FAQ */
.contact-page-area .faq-card {
    padding: 16px;
}

.contact-page-area .faq-card .accordion-button {
    border-radius: 10px;
    line-height: 1.6;
}

.contact-page-area .faq-card .accordion-button:focus {
    box-shadow: none;
}

/* Small tweaks */
@media (max-width: 991.98px) {
    .contact-page-area .contact-form-card form {
        padding: 14px;
    }

    .contact-page-area .map-card .map-overlay {
        inset-inline-start: 10px;
        inset-block-start: 10px;
    }
}

/* =======================================================================
  19) Responsive adjustments
  - Mobile-only tweaks without altering desktop UI
======================================================================= */
@media (min-width: 768px) and (max-width: 1180px) {


    .featured-articles__grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .top-highlights__grid {
        grid-template-columns: 1fr;

    }

    .blog-sidebar .recent-post-widget .post .details .date {
        display: none;
    }
}

@media (max-width: 992px) {
    .about-intro {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .article-metadata {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .author-profile-box {
        text-align: center;
    }

    .author-stats {
        border-right: none;
        padding-right: 0;
        width: 100%;
        justify-content: center;
        margin-bottom: var(--space-md);
    }

    .author-social-links {
        width: 100%;
        justify-content: center;
    }

    .contact-card {
        margin-bottom: 30px;
    }

    .col-md-4:last-child .contact-card {
        margin-bottom: 0;
    }

    .featured-articles__grid {
        grid-template-columns: 1fr;
        height: auto;
        grid-template-rows: unset;
        gap: 20px 0;
    }

    .featured-articles__grid article:nth-child(1),
    .featured-articles__grid article:nth-child(2),
    .featured-articles__grid article:nth-child(3),
    .featured-articles__grid article:nth-child(4) {
        grid-row: unset !important;
        width: 100% !important;

    }

    .top-highlights__grid {
        grid-template-columns: 1fr;
    }

    .owl-nav {
        display: none !important;
    }
}

.input-group .btn {
    height: 50px;
    width: 50px;
}

/* Make nav-link respect type-* colors (background, border, text) */
.categories-tabs .nav-link.type-zayef,
.categories-tabs .nav-link.type-mudallal,
.categories-tabs .nav-link.type-mufabrak,
.categories-tabs .nav-link.type-qadim,
.categories-tabs .nav-link.type-tawdi7,
.categories-tabs .nav-link.type-ta2kid {
    /* type-* already sets background, color, border-color */
    border-width: 1px;
    border-style: solid;
}

/* Keep a gentle emphasis for active state without breaking the palette */
.categories-tabs .nav-link.type-zayef.active,
.categories-tabs .nav-link.type-mudallal.active,
.categories-tabs .nav-link.type-mufabrak.active,
.categories-tabs .nav-link.type-qadim.active,
.categories-tabs .nav-link.type-tawdi7.active,
.categories-tabs .nav-link.type-ta2kid.active {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}

/* Hover shouldn’t override the palette; just add a soft lift */
.categories-tabs .nav-link.type-zayef:hover,
.categories-tabs .nav-link.type-mudallal:hover,
.categories-tabs .nav-link.type-mufabrak:hover,
.categories-tabs .nav-link.type-qadim:hover,
.categories-tabs .nav-link.type-tawdi7:hover,
.categories-tabs .nav-link.type-ta2kid:hover {
    filter: saturate(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}


/* ============================
   Badge dropdowns (types & categories)
   Works exactly like contributors dropdown,
   but scoped to .badges__group / .badge-more
============================ */
.badges__group {
    position: relative;
    gap: var(--space-xs);
}

.badge-pill {
    /* neutral + more sign */
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #e5e7eb !important;
    height: 25px;
    padding: 6px 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.badge-more {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.badge-dropdown {
    position: absolute;
    bottom: calc(100% + 2px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--color-content-bg, #fff);
    color: var(--text-primary, #111);
    padding: var(--space-sm, 10px) var(--space-xs, 8px);
    border-radius: var(--radius-sm, 6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    white-space: nowrap;
    z-index: 12;
    min-width: 120px;
}

.badge-dropdown::after {
    content: "";
    position: absolute;
    bottom: -11px;
    right: calc(var(--space-md, 16px));
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-content-bg, #fff) transparent transparent transparent;
}

.badge-more:hover .badge-dropdown {
    display: flex;
}

.badge-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs, 8px);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease;
}

/* Hover state for items */
.badge-dropdown__item:hover {
    background: #f3f4f6; /* neutral hover */
}

/* If the grid sits near right edge on small screens, flip the dropdown horizontally */
.badges__group .badge-more.flip .badge-dropdown {
    left: 0;
    right: auto;
}

.badges__group .badge-more.flip .badge-dropdown::after {
    right: auto;
    left: calc(var(--space-md, 16px));
}


/* Keep your existing type/category schemes (type-* / cat-*) */

/* ============================
   VERDICT / TYPE BADGES
   Semantics:
   - False      → Red (danger)
   - Misleading → Amber/Orange (warning)
   - Fabricated → Magenta (severe/inauthentic)
   - Old        → Neutral Gray (archival)
   - Clarify    → Blue (info)
   - Confirmed  → Green (success)
   Pattern per badge:
   background: very light tint
   color: readable mid tone
   border-color: soft outline
============================ */

/* False (زائف) – red/danger */
.type-zayef {
    background: hsl(0 75% 97%);
    color: hsl(0 70% 45%);
    border-color: hsl(0 65% 85%);
}

.type-zayef.active::after {
    background: hsl(0 70% 45%);
}

/* Misleading (مضلل) – amber/warning */
.type-mudallal {
    background: hsl(34 100% 97%);
    color: hsl(34 100% 40%);
    border-color: hsl(34 95% 85%);
}

.type-mudallal.active::after {
    background: hsl(34 100% 40%);
}

/* Fabricated (مفبرك) – magenta/severe */
.type-mufabrak {
    background: hsl(330 75% 97%);
    color: hsl(330 65% 45%);
    border-color: hsl(330 60% 85%);
}

.type-mufabrak.active::after {
    background: hsl(330 65% 45%);
}

/* Old (قديم) – neutral gray */
.type-qadim {
    background: hsl(210 10% 96%);
    color: hsl(210 12% 35%);
    border-color: hsl(210 12% 82%);
}

.type-qadim.active::after {
    background: hsl(210 12% 35%);
}

/* Clarification (توضيح) – blue/info */
.type-tawdi7 {
    background: hsl(210 100% 97%);
    color: hsl(210 85% 40%);
    border-color: hsl(210 90% 85%);
}

.type-tawdi7.active::after {
    background: hsl(210 85% 40%);

}

/* Confirmed (تأكيد) – green/success */
.type-ta2kid {
    background: hsl(152 60% 96%);
    color: hsl(152 45% 35%);
    border-color: hsl(152 45% 82%);
}

.type-ta2kid.active::after {
    background: hsl(152 45% 35%);
}

/* ============================
   CATEGORY BADGES (core)
   Guidelines:
   - Health     → Green
   - Politics   → Crimson/Red family
   - Economy    → Gold/Yellow
   - Culture    → Violet/Magenta
   - Investig.  → Teal/Blue (analytical)
============================ */

/* Investigations (تحقيقات) – teal/blue (analytical) */
.cat-tahqiqat {
    background: hsl(196 85% 98%);
    color: hsl(196 85% 32%);
    border-color: hsl(196 80% 82%);
}

/* Health (صحة) – green (care) */
.cat-seha {
    background: hsl(150 55% 98%);
    color: hsl(150 45% 34%);
    border-color: hsl(150 45% 82%);
}

/* Politics (سياسة) – crimson/red family */
.cat-siyasa {
    background: hsl(352 80% 98%);
    color: hsl(352 70% 42%);
    border-color: hsl(352 70% 84%);
}

/* Economy (اقتصاد) – gold/yellow (value) */
.cat-iqtisad {
    background: hsl(43 100% 98%);
    color: hsl(43 95% 38%);
    border-color: hsl(43 95% 82%);
}

/* Culture (ثقافة) – violet/magenta (arts & ideas) */
.cat-thaqafa {
    background: hsl(290 65% 98%);
    color: hsl(290 55% 42%);
    border-color: hsl(290 55% 82%);
}


/* ============================
   CATEGORY BADGES (extended)
   Notes:
   - Technology → Cyan/Blue
   - Environment→ Fresh Green
   - Sports     → Green (as requested)
   - Education  → Indigo
   - Society    → Orange
   - Science    → Aqua/Cyan
   - History    → Sepia/Brown
   - Art        → Purple/Pink
============================ */

/* Technology (تكنولوجيا) */
.cat-taghazul {
    background: hsl(190 85% 98%);
    color: hsl(190 80% 35%);
    border-color: hsl(190 75% 82%);
}

/* Environment (بيئة) */
.cat-bi2a {
    background: hsl(110 55% 98%);
    color: hsl(110 50% 32%);
    border-color: hsl(110 50% 82%);
}

/* Sports (رياضة) – bright green */
.cat-riyada {
    background: hsl(145 60% 98%);
    color: hsl(145 55% 38%);
    border-color: hsl(145 55% 82%);
}

/* Education (تعليم) – indigo */
.cat-ta3leem {
    background: hsl(245 60% 98%);
    color: hsl(245 55% 42%);
    border-color: hsl(245 55% 82%);
}

/* Society (مجتمع) – orange */
.cat-mujtama3 {
    background: hsl(24 95% 98%);
    color: hsl(24 90% 40%);
    border-color: hsl(24 90% 82%);
}

/* Science (علوم) – aqua/cyan */
.cat-3oloom {
    background: hsl(190 60% 98%);
    color: hsl(190 55% 35%);
    border-color: hsl(190 55% 80%);
}

/* History (تاريخ) – sepia/brown */
.cat-tareekh {
    background: hsl(28 55% 98%);
    color: hsl(28 55% 38%);
    border-color: hsl(28 55% 82%);
}

/* Art (فن) – purple/pink */
.cat-fann {
    background: hsl(315 60% 98%);
    color: hsl(315 55% 45%);
    border-color: hsl(315 55% 82%);
}

/* --- Fact Boxes (Claim / Verify) --- */
:root {
    --claim-bg: hsl(0 85% 98%);
    --claim-border: hsl(0 70% 85%);
    --claim-text: hsl(0 70% 40%);
    --verify-bg: hsl(152 60% 96%);
    --verify-border: hsl(152 45% 82%);
    --verify-text: hsl(152 45% 30%);
}

.fact-box {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0;
    border: 1px solid var(--claim-border);
    background: var(--claim-bg);
}

.fact-box--verify {
    border-color: var(--verify-border);
    background: var(--verify-bg);
}

.fact-box__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fact-box__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    border: 1px solid var(--claim-border);
    color: var(--claim-text);
    background: #fff;
}

.fact-box--verify .fact-box__chip {
    border-color: var(--verify-border);
    color: var(--verify-text);
}

.fact-box__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    mask: var(--mask) no-repeat center/contain;
    -webkit-mask: var(--mask) no-repeat center/contain;
}

/* Simple icons (check / cross) via CSS mask (can replace with inline SVG if تحب) */
.fact-box--verify .fact-box__icon {
    --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

.fact-box--claim .fact-box__icon {
    --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M18.3 5.71 12 12.01l-6.3-6.3L4.3 7.1l6.3 6.29-6.3 6.3 1.4 1.41 6.3-6.3 6.29 6.3 1.41-1.41-6.3-6.3 6.3-6.29z'/%3E%3C/svg%3E");
}

.fact-box__title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--claim-text);
}

.fact-box--verify .fact-box__title {
    color: var(--verify-text);
}

.fact-box__content {
    line-height: 1.9;
    font-size: 1.05rem;
}

.fact-box__content p {
    margin: 0 0 .9rem;
}

.fact-box__tools {
    display: flex;
    gap: 8px;
    margin-right: auto;
}

.fact-box__copy {
    font-size: .85rem;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
}

/* Keep your existing styles */
.copy-btn-container {
    display: flex;
    justify-content: flex-end !important;
    margin-top: 15px
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px
}
