:root {
    --ejaz-blue: #1e40af;
    --ejaz-blue-2: #2563eb;
    --ejaz-navy: #0f172a;
    --ejaz-ink: #111827;
    --ejaz-muted: #667085;
    --ejaz-line: #e5e7eb;
    --ejaz-soft: #f6f8fc;
    --ejaz-gold: #f59e0b;
    --ejaz-radius: 16px;
    --ejaz-shadow: 0 18px 46px rgba(15, 23, 42, .11);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ejaz-ink);
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.ejaz-lock-scroll {
    overflow: hidden;
}

.ejaz-container {
    width: min(100% - 32px, 1360px);
    margin-inline: auto;
}

.ejaz-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(229, 231, 235, .85);
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
    backdrop-filter: blur(16px);
}

.ejaz-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100% - 32px, 1440px);
    min-height: 78px;
    margin-inline: auto;
}

.ejaz-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    text-decoration: none;
}

.ejaz-logo-img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 58px;
    object-fit: contain;
}

.ejaz-logo-mark {
    display: inline-grid;
    min-width: 104px;
    min-height: 48px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ejaz-blue), var(--ejaz-blue-2));
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
}

.ejaz-logo-tagline {
    display: block;
    max-width: 120px;
    color: var(--ejaz-muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
}

.ejaz-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.ejaz-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ejaz-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #263244;
    text-decoration: none;
    font-size: .96rem;
    font-weight: 800;
    transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ejaz-nav a:hover,
.ejaz-nav a.is-active {
    background: linear-gradient(135deg, var(--ejaz-blue), var(--ejaz-blue-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
    transform: translateY(-1px);
}

.ejaz-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ejaz-icon-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: #edf2ff;
    color: var(--ejaz-blue);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.ejaz-icon-btn:hover {
    background: var(--ejaz-blue);
    color: #fff;
    transform: translateY(-1px);
}

.ejaz-mobile-toggle {
    display: none;
}

.ejaz-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(15, 23, 42, .45);
}

.ejaz-mobile-menu {
    position: fixed;
    inset-block: 0;
    right: 0;
    z-index: 2000;
    width: min(86vw, 340px);
    padding: 18px;
    background: #fff;
    box-shadow: -22px 0 60px rgba(15, 23, 42, .22);
    transform: translateX(110%);
    transition: transform .24s ease;
    overflow-y: auto;
}

.ejaz-mobile-menu.is-open {
    transform: translateX(0);
}

.ejaz-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ejaz-mobile-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--ejaz-line);
    border-radius: 14px;
    background: #fff;
}

.ejaz-mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 0;
    outline: 0;
}

.ejaz-mobile-search button {
    width: 48px;
    border: 0;
    background: var(--ejaz-blue);
    color: #fff;
}

.ejaz-mobile-menu nav {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.ejaz-mobile-menu nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--ejaz-ink);
    text-decoration: none;
    font-weight: 800;
}

.ejaz-mobile-menu nav a:hover {
    background: var(--ejaz-soft);
    color: var(--ejaz-blue);
}

.ejaz-mobile-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--ejaz-line);
    color: var(--ejaz-muted);
    font-size: .9rem;
}

.ejaz-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, .74);
    backdrop-filter: blur(10px);
}

.ejaz-search-close {
    position: absolute;
    top: 24px;
    left: 24px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ejaz-navy);
}

.ejaz-search-box {
    display: flex;
    width: min(720px, 100%);
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--ejaz-shadow);
}

.ejaz-search-box input {
    flex: 1;
    min-width: 0;
    padding: 20px;
    border: 0;
    outline: 0;
    font-size: 1.15rem;
}

.ejaz-search-box button {
    min-width: 126px;
    border: 0;
    background: var(--ejaz-blue);
    color: #fff;
    font-weight: 900;
}

.ejaz-home,
.ejaz-archive,
.ejaz-page,
.ejaz-single {
    background: #fff;
}

.ejaz-hero {
    padding: 26px 0 30px;
}

.ejaz-main-story-area {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ejaz-main-story,
.ejaz-main-story a {
    position: relative;
    display: block;
    min-height: clamp(360px, 47vw, 560px);
    overflow: hidden;
    border-radius: 22px;
    background: var(--ejaz-navy);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--ejaz-shadow);
}

.ejaz-main-story img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .22s ease;
}

.ejaz-main-story:hover img {
    transform: scale(1.025);
}

.ejaz-story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .04), rgba(15, 23, 42, .88));
}

.ejaz-story-content {
    position: absolute;
    inset-inline: 32px;
    bottom: 28px;
    display: grid;
    gap: 12px;
}

.ejaz-story-badge,
.ejaz-article-category {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
    text-decoration: none;
}

.ejaz-story-content h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 3.9rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0;
}

.ejaz-story-content small,
.ejaz-article-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
}

.ejaz-headlines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ejaz-headline-card a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    min-height: 118px;
    padding: 10px;
    border: 1px solid var(--ejaz-line);
    border-radius: 18px;
    background: #fff;
    color: var(--ejaz-ink);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ejaz-headline-card a:hover,
.ejaz-headline-card:focus-within a {
    border-color: rgba(37, 99, 235, .42);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .13);
    transform: translateY(-2px);
}

.ejaz-headline-card img {
    width: 112px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.ejaz-headline-card h3 {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--ejaz-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ejaz-section {
    padding: 42px 0;
}

.ejaz-infographic-section,
.ejaz-opinion-section {
    background: var(--ejaz-soft);
}

.ejaz-video-section {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.ejaz-video-section .ejaz-section-head {
    border-bottom-color: rgba(255, 255, 255, .16);
}

.ejaz-video-section .ejaz-section-head h2,
.ejaz-video-section .ejaz-section-head h2 i,
.ejaz-video-section .ejaz-section-head a {
    color: #fff;
}

.ejaz-section-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--ejaz-line);
}

.ejaz-section-head::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 84px;
    height: 2px;
    background: #dc2626;
}

.ejaz-section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ejaz-navy);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 900;
}

.ejaz-section-head h2 i {
    color: var(--ejaz-blue);
}

.ejaz-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ejaz-blue);
    text-decoration: none;
    font-weight: 900;
}

.ejaz-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ejaz-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ejaz-news-card,
.ejaz-video-card,
.ejaz-infographic-card,
.ejaz-writer-card,
.ejaz-list-card {
    height: 100%;
}

.ejaz-news-card a,
.ejaz-video-card a,
.ejaz-infographic-card a,
.ejaz-writer-card a,
.ejaz-list-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ejaz-line);
    border-radius: 18px;
    background: #fff;
    color: var(--ejaz-ink);
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ejaz-news-card a:hover,
.ejaz-video-card a:hover,
.ejaz-infographic-card a:hover,
.ejaz-writer-card a:hover,
.ejaz-list-card a:hover {
    border-color: rgba(37, 99, 235, .38);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
    transform: translateY(-3px);
}

.ejaz-news-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ejaz-soft);
}

.ejaz-news-image img,
.ejaz-infographic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ejaz-news-image em {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .84);
    color: #fff;
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
}

.ejaz-news-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.ejaz-news-body small {
    color: var(--ejaz-blue);
    font-size: .82rem;
    font-weight: 900;
}

.ejaz-news-body h3,
.ejaz-infographic-card h3,
.ejaz-writer-card h3,
.ejaz-list-card h3 {
    margin: 0;
    color: var(--ejaz-ink);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.45;
}

.ejaz-news-body p {
    margin: 0;
    color: var(--ejaz-muted);
    line-height: 1.75;
}

.ejaz-video-card a {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    backdrop-filter: blur(10px);
}

.ejaz-video-card a:hover {
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 22px 46px rgba(0, 0, 0, .22);
}

.ejaz-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ejaz-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ejaz-video-thumb span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .42));
}

.ejaz-video-thumb i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ejaz-blue);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.ejaz-video-card h3 {
    padding: 16px 16px 8px;
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.5;
}

.ejaz-video-card small {
    display: block;
    padding: 0 16px 16px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.ejaz-slider-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.ejaz-infographic-track {
    display: flex;
    gap: 18px;
    padding: 4px 2px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.ejaz-infographic-card {
    flex: 0 0 min(320px, 78vw);
    scroll-snap-align: start;
}

.ejaz-infographic-card a {
    min-height: 100%;
}

.ejaz-infographic-card img {
    aspect-ratio: 4 / 3;
}

.ejaz-infographic-card h3 {
    padding: 15px;
    font-size: 1rem;
}

.ejaz-slider-btn {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ejaz-blue);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    cursor: pointer;
}

.ejaz-writers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ejaz-writer-card a {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 24px 18px;
    text-align: center;
}

.ejaz-writer-avatar {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ejaz-blue), var(--ejaz-gold));
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
}

.ejaz-writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ejaz-writer-card strong {
    color: var(--ejaz-blue);
    font-weight: 900;
}

.ejaz-writer-card h3 {
    color: var(--ejaz-muted);
    font-size: .98rem;
}

.ejaz-footer {
    padding: 48px 0 22px;
    background: #111827;
    color: #fff;
}

.ejaz-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr .8fr;
    gap: 32px;
}

.ejaz-footer h2 {
    margin: 0 0 16px;
    font-size: 1.12rem;
    font-weight: 900;
}

.ejaz-footer p,
.ejaz-footer a {
    color: rgba(255, 255, 255, .78);
}

.ejaz-footer ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ejaz-footer a {
    text-decoration: none;
}

.ejaz-footer a:hover {
    color: #fff;
}

.ejaz-footer-bottom {
    padding-top: 22px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .68);
    text-align: center;
}

.ejaz-page-head {
    padding: 44px 0 24px;
    text-align: center;
}

.ejaz-page-head h1,
.ejaz-article h1 {
    margin: 0;
    color: var(--ejaz-navy);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
}

.ejaz-page-head p,
.ejaz-article-lead {
    max-width: 860px;
    margin: 16px auto 0;
    color: var(--ejaz-muted);
    font-size: 1.12rem;
    line-height: 1.85;
}

.ejaz-empty {
    padding: 56px 20px;
    border: 1px dashed var(--ejaz-line);
    border-radius: 18px;
    color: var(--ejaz-muted);
    text-align: center;
}

.ejaz-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.ejaz-pagination a {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--ejaz-line);
    border-radius: 12px;
    color: var(--ejaz-ink);
    text-decoration: none;
    font-weight: 900;
}

.ejaz-pagination a.is-active,
.ejaz-pagination a:hover {
    border-color: var(--ejaz-blue);
    background: var(--ejaz-blue);
    color: #fff;
}

.ejaz-single,
.ejaz-page {
    padding: 38px 0 54px;
}

.ejaz-article {
    width: min(100%, 920px);
    margin-inline: auto;
}

.ejaz-article-category {
    margin-bottom: 16px;
}

.ejaz-article-meta {
    flex-wrap: wrap;
    margin: 18px 0 24px;
    color: var(--ejaz-muted);
}

.ejaz-article-meta span,
.ejaz-article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ejaz-article-image {
    margin: 0 0 30px;
}

.ejaz-article-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: var(--ejaz-shadow);
}

.ejaz-content {
    color: #1f2937;
    font-size: 1.16rem;
    line-height: 2.05;
}

.ejaz-content :where(p, ul, ol, blockquote, figure, table) {
    margin-bottom: 1.25em;
}

.ejaz-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.ejaz-content a {
    color: var(--ejaz-blue);
    font-weight: 800;
}

.ejaz-related {
    width: min(100%, 1100px);
    padding-top: 38px;
    margin: 42px auto 0;
    border-top: 1px solid var(--ejaz-line);
}

.ejaz-related h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
    font-weight: 900;
}

.ejaz-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ejaz-list-card a {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 13px;
    padding: 10px;
}

.ejaz-list-card img {
    width: 128px;
    height: 94px;
    border-radius: 12px;
    object-fit: cover;
}

.ejaz-list-card small {
    display: inline-block;
    margin-top: 7px;
    color: var(--ejaz-muted);
    font-size: .82rem;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .ejaz-nav a {
        padding-inline: 10px;
        font-size: .9rem;
    }

    .ejaz-headlines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ejaz-nav {
        display: none;
    }

    .ejaz-mobile-toggle {
        display: inline-grid;
    }

    .ejaz-header-inner {
        min-height: 68px;
    }

    .ejaz-news-grid,
    .ejaz-video-grid,
    .ejaz-writers-grid,
    .ejaz-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ejaz-container,
    .ejaz-header-inner {
        width: min(100% - 22px, 1360px);
    }

    .ejaz-logo-tagline {
        display: none;
    }

    .ejaz-hero {
        padding-top: 16px;
    }

    .ejaz-main-story,
    .ejaz-main-story a {
        min-height: 410px;
        border-radius: 18px;
    }

    .ejaz-story-content {
        inset-inline: 18px;
        bottom: 18px;
    }

    .ejaz-headlines,
    .ejaz-news-grid,
    .ejaz-video-grid,
    .ejaz-writers-grid,
    .ejaz-footer-grid,
    .ejaz-related-grid {
        grid-template-columns: 1fr;
    }

    .ejaz-headline-card a {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .ejaz-headline-card img {
        width: 96px;
        height: 84px;
    }

    .ejaz-section {
        padding: 30px 0;
    }

    .ejaz-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ejaz-slider-shell {
        grid-template-columns: 1fr;
    }

    .ejaz-slider-btn {
        display: none;
    }

    .ejaz-search-box {
        display: grid;
    }

    .ejaz-search-box button {
        min-height: 52px;
    }

    .ejaz-list-card a {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .ejaz-list-card img {
        width: 104px;
        height: 82px;
    }
}
