/* =========================================================
   ALHAQ.NET — MAIN WEBSITE STYLES
   Urdu News / Public Interest Portal
   ========================================================= */

:root {
    --alhaq-red: #8b0000;
    --alhaq-dark: #161616;
    --alhaq-text: #252525;
    --alhaq-muted: #777;
    --alhaq-border: #e4e4e4;
    --alhaq-light: #f6f6f4;
    --alhaq-white: #fff;
    --alhaq-gold: #b28a3b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--alhaq-text);
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq",
        "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--alhaq-red);
}

img {
    max-width: 100%;
    height: auto;
}

.container.alhaq-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}




/* =========================================================
   ALHAQ.NET — PROFESSIONAL HEADER
   Keeps the existing news/content design unchanged.
   ========================================================= */

.site-header,
.alhaq-header,
header {
    width: 100%;
    background: #fff;
    color: var(--alhaq-dark);
    direction: rtl;
    border-bottom: 1px solid #ddd;
}

.site-header .alhaq-container,
.alhaq-header .alhaq-container,
header .alhaq-container {
    position: relative;
}

/* ---------- Top information bar ---------- */

.site-topbar,
.header-topbar,
.topbar {
    min-height: 38px;
    border-bottom: 1px solid #ededed;
    background: #fafafa;
}

.site-topbar .alhaq-container,
.header-topbar .alhaq-container,
.topbar .alhaq-container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-date,
.site-date,
.topbar-date {
    color: #777;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    white-space: nowrap;
}

.header-links,
.site-links,
.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #555;
    font-size: 13px;
}

.header-links a,
.site-links a,
.topbar-links a {
    position: relative;
    transition: color .2s ease;
}

.header-links a + a::before,
.site-links a + a::before,
.topbar-links a + a::before {
    content: "";
    position: absolute;
    right: calc(100% + 9px);
    top: 50%;
    width: 3px;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #aaa;
}

/* ---------- Main brand area ---------- */

.site-branding,
.header-branding,
.branding,
.site-brand {
    padding: 24px 0 20px;
    text-align: center;
    background: #fff;
}

.site-branding a,
.header-branding a,
.branding a,
.site-brand a {
    text-decoration: none;
}

.brand-wrap,
.brand-inner,
.site-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-main,
.site-title,
.brand-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--alhaq-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .8px;
}

.brand-main .brand-mark,
.site-title .brand-mark,
.brand-title .brand-mark {
    color: var(--alhaq-red);
    font-family: "Noto Naskh Arabic", Tahoma, sans-serif;
    font-size: 39px;
    font-weight: 900;
    line-height: 1;
}

.brand-urdu,
.site-title-urdu,
.brand-urdu-title {
    margin-top: 5px;
    color: var(--alhaq-red);
    font-family: "Noto Naskh Arabic", "Noto Nastaliq Urdu",
        "Jameel Noori Nastaleeq", Tahoma, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
}

.brand-slogan,
.site-slogan,
.header-slogan {
    margin-top: 8px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 700;
}

.brand-slogan strong,
.site-slogan strong,
.header-slogan strong {
    color: var(--alhaq-red);
}

/* ---------- Navigation ---------- */

.site-nav,
.main-navigation,
.main-nav,
.primary-nav {
    border-top: 1px solid #e5e5e5;
    border-bottom: 4px solid var(--alhaq-dark);
    background: #fff;
}

.site-nav .alhaq-container,
.main-navigation .alhaq-container,
.main-nav .alhaq-container,
.primary-nav .alhaq-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.site-nav ul,
.main-navigation ul,
.main-nav ul,
.primary-nav ul {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li,
.main-navigation li,
.main-nav li,
.primary-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a,
.main-navigation a,
.main-nav a,
.primary-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 8px 17px 9px;
    color: #222;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 800;
    white-space: nowrap;
    transition:
        color .2s ease,
        background .2s ease;
}

.site-nav a::after,
.main-navigation a::after,
.main-nav a::after,
.primary-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -4px;
    width: 0;
    height: 4px;
    transform: translateX(50%);
    background: var(--alhaq-red);
    transition: width .2s ease;
}

.site-nav a:hover,
.main-navigation a:hover,
.main-nav a:hover,
.primary-nav a:hover,
.site-nav a.active,
.main-navigation a.active,
.main-nav a.active,
.primary-nav a.active {
    color: var(--alhaq-red);
    background: #fafafa;
}

.site-nav a:hover::after,
.main-navigation a:hover::after,
.main-nav a:hover::after,
.primary-nav a:hover::after,
.site-nav a.active::after,
.main-navigation a.active::after,
.main-nav a.active::after,
.primary-nav a.active::after {
    width: 65%;
}

/* ---------- Header utility/search/social area ---------- */

.header-tools,
.site-tools,
.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-tool,
.site-tool,
.nav-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 13px;
    transition: .2s ease;
}

.header-tool:hover,
.site-tool:hover,
.nav-tool:hover {
    color: #fff;
    border-color: var(--alhaq-red);
    background: var(--alhaq-red);
}

/* ---------- Breaking-news strip ---------- */

.breaking-bar,
.important-news,
.important-bar {
    border-bottom: 1px solid #e7e7e7;
    background: #f8f8f6;
}

.breaking-bar .alhaq-container,
.important-news .alhaq-container,
.important-bar .alhaq-container {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 42px;
}

.breaking-label,
.important-label {
    flex: 0 0 auto;
    padding: 4px 12px;
    background: var(--alhaq-red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}

.breaking-text,
.important-text {
    overflow: hidden;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- Common header structures from the first design ---------- */

.header-row,
.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.header-center,
.site-header-center {
    flex: 1;
    text-align: center;
}

.header-left,
.site-header-left,
.header-right,
.site-header-right {
    flex: 0 0 auto;
}

/* ---------- Mobile header ---------- */

@media (max-width: 800px) {

    .site-topbar .alhaq-container,
    .header-topbar .alhaq-container,
    .topbar .alhaq-container {
        justify-content: center;
        min-height: 34px;
    }

    .header-date,
    .site-date,
    .topbar-date {
        display: none;
    }

    .header-links,
    .site-links,
    .topbar-links {
        justify-content: center;
        font-size: 12px;
    }

    .site-branding,
    .header-branding,
    .branding,
    .site-brand {
        padding: 18px 0 15px;
    }

    .brand-main,
    .site-title,
    .brand-title {
        font-size: 28px;
    }

    .brand-main .brand-mark,
    .site-title .brand-mark,
    .brand-title .brand-mark {
        font-size: 32px;
    }

    .brand-urdu,
    .site-title-urdu,
    .brand-urdu-title {
        font-size: 24px;
    }

    .brand-slogan,
    .site-slogan,
    .header-slogan {
        font-size: 13px;
    }

    .site-nav ul,
    .main-navigation ul,
    .main-nav ul,
    .primary-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        scrollbar-width: thin;
    }

    .site-nav a,
    .main-navigation a,
    .main-nav a,
    .primary-nav a {
        min-height: 44px;
        padding: 7px 13px;
        font-size: 13px;
    }

    .breaking-bar .alhaq-container,
    .important-news .alhaq-container,
    .important-bar .alhaq-container {
        min-height: 40px;
    }

    .breaking-text,
    .important-text {
        font-size: 13px;
    }
}

@media (max-width: 500px) {

    .header-links,
    .site-links,
    .topbar-links {
        gap: 12px;
    }

    .brand-main,
    .site-title,
    .brand-title {
        font-size: 24px;
    }

    .brand-urdu,
    .site-title-urdu,
    .brand-urdu-title {
        font-size: 21px;
    }

    .brand-slogan,
    .site-slogan,
    .header-slogan {
        font-size: 12px;
    }

    .site-nav a,
    .main-navigation a,
    .main-nav a,
    .primary-nav a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }
}


/* =========================================================
   GLOBAL SECTION
   ========================================================= */

.home-page {
    background: #fff;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid var(--alhaq-dark);
    margin-bottom: 22px;
    padding-bottom: 8px;
}

.section-title {
    position: relative;
    color: var(--alhaq-dark);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.7;
    padding-right: 14px;
}

.section-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 9px;
    width: 5px;
    height: 30px;
    background: var(--alhaq-red);
}

.section-more {
    color: var(--alhaq-red);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.story-category {
    color: var(--alhaq-red);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.story-meta {
    color: var(--alhaq-muted);
    font-size: 12px;
    margin-top: 10px;
}


/* =========================================================
   IMAGE PLACEHOLDERS
   ========================================================= */

.image-placeholder {
    width: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #eeeeeb 0%,
            #dcdcd8 50%,
            #eeeeeb 100%
        );
    color: #888;
    font-size: 17px;
    font-weight: 700;
    overflow: hidden;
}

.image-placeholder.small {
    min-height: 115px;
    font-size: 13px;
}

.image-placeholder.photo {
    min-height: 220px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    padding: 30px 0 35px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: 28px;
    direction: ltr;
}

.hero-main,
.hero-side {
    direction: rtl;
}

.hero-main {
    border-bottom: 1px solid var(--alhaq-border);
}

.hero-image {
    display: block;
    overflow: hidden;
}

.hero-image .image-placeholder {
    min-height: 430px;
    transition: transform .3s ease;
}

.hero-image:hover .image-placeholder {
    transform: scale(1.02);
}

.story-content {
    padding: 17px 0 12px;
}

.story-content h1 {
    margin: 0;
    color: #111;
    font-size: 34px;
    line-height: 1.7;
    font-weight: 900;
}

.story-content p {
    margin: 8px 0 0;
    color: #555;
    font-size: 16px;
    line-height: 2;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   HORIZONTAL NEWS CARDS
   ========================================================= */

.horizontal-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 15px;
    direction: ltr;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--alhaq-border);
}

.horizontal-card .card-image,
.horizontal-card .card-content {
    direction: rtl;
}

.horizontal-card .card-image {
    display: block;
}

.horizontal-card h2 {
    margin: 0;
    color: #171717;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 800;
}

.horizontal-card .story-meta {
    margin-top: 5px;
}


/* =========================================================
   LATEST NEWS
   ========================================================= */

.latest-section {
    padding: 30px 0 38px;
    background: var(--alhaq-light);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.latest-card {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 15px;
    background: #fff;
    border: 1px solid var(--alhaq-border);
    padding: 20px;
    direction: ltr;
}

.latest-card > div {
    direction: rtl;
}

.latest-number {
    color: #ddd;
    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.latest-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.75;
}

.latest-card p {
    margin: 7px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.content-section {
    padding: 42px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 325px;
    gap: 35px;
    direction: ltr;
}

.main-column,
.sidebar {
    direction: rtl;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
}

.news-card .card-image {
    display: block;
    overflow: hidden;
}

.news-card .card-image .image-placeholder {
    transition: transform .3s ease;
}

.news-card:hover .card-image .image-placeholder {
    transform: scale(1.025);
}

.card-content {
    padding-top: 12px;
}

.card-content h2 {
    margin: 0;
    color: #151515;
    font-size: 21px;
    line-height: 1.75;
    font-weight: 800;
}

.card-content p {
    margin: 6px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    border: 1px solid var(--alhaq-border);
    background: #fff;
}

.sidebar-heading {
    padding: 10px 15px;
    background: var(--alhaq-dark);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border-right: 5px solid var(--alhaq-red);
}

.religious-box .sidebar-heading {
    background: var(--alhaq-red);
}

.religious-content {
    padding: 20px 18px;
    text-align: center;
}

.arabic-text {
    direction: rtl;
    color: #222;
    font-family: "Noto Naskh Arabic", Tahoma, sans-serif;
    font-size: 23px;
    line-height: 2;
}

.translation {
    margin-top: 12px;
    color: #555;
    font-size: 15px;
    line-height: 2;
}

.reference {
    margin-top: 10px;
    color: var(--alhaq-muted);
    font-size: 12px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid var(--alhaq-border);
}

.sidebar-list li:last-child {
    border-bottom: 0;
}

.sidebar-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    transition: .2s ease;
}

.sidebar-list a:hover {
    background: #f8f8f8;
    color: var(--alhaq-red);
    padding-right: 20px;
}

.help-box {
    background: #faf7f2;
    border-color: #e6dccd;
}

.help-box p {
    margin: 0;
    padding: 16px;
    color: #555;
    font-size: 14px;
    line-height: 2;
}

.help-button {
    display: block;
    margin: 0 16px 16px;
    padding: 10px 15px;
    background: var(--alhaq-red);
    color: #fff !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.help-button:hover {
    background: #620000;
}


/* =========================================================
   PHOTO REPORT
   ========================================================= */

.photo-heading {
    margin-top: 45px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.photo-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: #111;
}

.photo-card .image-placeholder {
    transition: transform .35s ease;
}

.photo-card:hover .image-placeholder {
    transform: scale(1.04);
}

.photo-card span {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 14px 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .85)
    );
}


/* =========================================================
   VIDEO
   ========================================================= */

.video-section {
    padding: 42px 0;
    background: #111;
    color: #fff;
}

.video-section .section-heading {
    border-bottom-color: #444;
}

.video-section .section-title {
    color: #fff;
}

.video-section .section-more {
    color: #ddd;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.video-card {
    display: block;
}

.video-image {
    position: relative;
    overflow: hidden;
}

.video-image .image-placeholder {
    min-height: 220px;
    background:
        linear-gradient(
            135deg,
            #2c2c2c,
            #111
        );
    color: #777;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(139, 0, 0, .95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 2px;
    font-family: Arial, sans-serif;
    font-size: 19px;
}

.video-card h2 {
    margin: 11px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   ARTICLES
   ========================================================= */

.articles-section {
    padding: 45px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.article-card {
    padding: 25px;
    border: 1px solid var(--alhaq-border);
    background: #fff;
    border-top: 4px solid var(--alhaq-red);
}

.article-author {
    color: var(--alhaq-red);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.article-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.75;
}

.article-card p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 2;
}

.article-card > a {
    color: var(--alhaq-red);
    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   MISSION
   ========================================================= */

.mission-section {
    padding: 60px 0;
    background:
        linear-gradient(
            135deg,
            #faf8f3,
            #f2eee6
        );
    border-top: 1px solid #e5dfd4;
}

.mission-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.mission-logo {
    color: var(--alhaq-red);
    font-family: "Noto Naskh Arabic", serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
}

.mission-content h2 {
    margin: 10px 0;
    color: #161616;
    font-size: 28px;
}

.mission-content p {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
    font-size: 17px;
    line-height: 2.2;
}

.mission-slogan {
    display: inline-block;
    margin-top: 20px;
    color: var(--alhaq-red);
    font-size: 22px;
    font-weight: 900;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image .image-placeholder {
        min-height: 360px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 800px) {

    .container.alhaq-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 21px;
    }

    .hero-section,
    .content-section,
    .articles-section,
    .video-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .story-content h1 {
        font-size: 27px;
    }

    .news-grid,
    .photo-grid,
    .video-grid,
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .horizontal-card {
        grid-template-columns: 125px minmax(0, 1fr);
    }

}


@media (max-width: 600px) {

    .section-heading {
        margin-bottom: 17px;
    }

    .section-title {
        font-size: 19px;
    }

    .section-title::before {
        height: 24px;
        top: 8px;
    }

    .section-more {
        font-size: 12px;
    }

    .hero-image .image-placeholder {
        min-height: 250px;
    }

    .story-content h1 {
        font-size: 24px;
        line-height: 1.8;
    }

    .story-content p {
        font-size: 14px;
    }

    .horizontal-card {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }

    .horizontal-card h2 {
        font-size: 16px;
    }

    .image-placeholder.small {
        min-height: 90px;
    }

    .news-grid,
    .photo-grid,
    .video-grid,
    .articles-grid,
    .sidebar {
        grid-template-columns: 1fr;
    }

    .latest-card {
        grid-template-columns: 45px minmax(0, 1fr);
        padding: 16px;
    }

    .latest-card h2 {
        font-size: 17px;
    }

    .latest-card p {
        font-size: 13px;
    }

    .card-content h2 {
        font-size: 19px;
    }

    .photo-card .image-placeholder {
        min-height: 210px;
    }

    .video-image .image-placeholder {
        min-height: 200px;
    }

    .mission-section {
        padding: 45px 0;
    }

    .mission-logo {
        font-size: 44px;
    }

    .mission-content h2 {
        font-size: 24px;
    }

    .mission-content p {
        font-size: 15px;
        line-height: 2.1;
    }

    .mission-slogan {
        font-size: 19px;
    }
}

/* =========================================================
   DYNAMIC NEWS PAGES
   Added with the database-driven pages (article, category,
   pagination, About / Contact). Nothing above this line was
   changed.
   ========================================================= */

/* A real photo fills the same box the placeholder uses, so sizes and hover effects stay the same */
.image-placeholder.has-image {
    position: relative;
}

.image-placeholder.has-image img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shown when there are no stories yet */
.home-empty {
    margin: 0;
    padding: 50px 0;
    text-align: center;
    color: var(--alhaq-muted);
    font-size: 17px;
    line-height: 2;
}

/* Category page */
.category-description {
    margin: 0 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 2;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 35px 0 10px;
    direction: rtl;
}

.pagination a,
.pagination span {
    min-width: 40px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--alhaq-border);
    font-size: 14px;
    text-align: center;
}

.pagination a:hover {
    border-color: var(--alhaq-red);
    color: var(--alhaq-red);
}

.pagination .pagination-current {
    background: var(--alhaq-red);
    border-color: var(--alhaq-red);
    color: #fff;
    font-weight: 700;
}

.pagination .pagination-gap {
    border-color: transparent;
}

/* Article page */
.article-detail {
    margin-bottom: 40px;
}

.article-title {
    margin: 0;
    color: #111;
    font-size: 34px;
    line-height: 1.7;
    font-weight: 900;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 10px 0 20px;
    color: var(--alhaq-muted);
    font-size: 13px;
}

.article-image {
    display: block;
    overflow: hidden;
    margin-bottom: 22px;
}

.article-image .image-placeholder {
    min-height: 420px;
}

/* Video report: an uploaded video file or a YouTube video, in the place of the main picture */
.article-video {
    margin-bottom: 22px;
    background: #000;
}

.article-video video {
    display: block;
    width: 100%;
    max-height: 75vh;
    background: #000;
}

.article-video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
}

.article-video-embed iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

.article-lead {
    margin: 0 0 22px;
    padding-right: 15px;
    border-right: 4px solid var(--alhaq-red);
    color: #444;
    font-size: 19px;
    line-height: 2.1;
    font-weight: 700;
}

.article-body {
    color: #222;
    font-size: 18px;
    line-height: 2.3;
}

.article-body p {
    margin: 0 0 18px;
}

.article-body h2,
.article-body h3 {
    margin: 28px 0 12px;
    color: #111;
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.article-body a {
    color: var(--alhaq-red);
    text-decoration: underline;
}

.article-body blockquote {
    margin: 20px 0;
    padding: 4px 18px;
    border-right: 4px solid var(--alhaq-gold);
    background: var(--alhaq-light);
    color: #444;
}

.article-detail .photo-heading {
    margin-top: 35px;
}

.article-preview-banner {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff6e0;
    border: 1px solid #e8d49a;
    color: #6b4f00;
    font-weight: 700;
    line-height: 1.9;
}

/* Plain pages (About, Contact) */
.static-page {
    max-width: 820px;
    padding-bottom: 50px;
}

@media (max-width: 800px) {

    .article-title {
        font-size: 26px;
    }

    .article-image .image-placeholder {
        min-height: 240px;
    }
}

/* =========================================================
   SEARCH
   Header search box and the search results page.
   ========================================================= */

.alhaq-search {
    display: flex;
    align-items: stretch;
    margin: 0 8px 0 0;
}

.alhaq-search input {
    width: 130px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-left: 0;
    background: #fff;
    color: var(--alhaq-text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    transition: width .2s ease, border-color .2s ease;
}

.alhaq-search input:focus {
    width: 190px;
    border-color: var(--alhaq-red);
    outline: 0;
}

.alhaq-search button {
    padding: 0 10px;
    border: 1px solid var(--alhaq-red);
    background: var(--alhaq-red);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.alhaq-search button:hover {
    background: #620000;
    border-color: #620000;
}

.search-page-form {
    display: flex;
    margin: 0 0 25px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--alhaq-border);
    border-left: 0;
    background: #fff;
    color: var(--alhaq-text);
    font-family: inherit;
    font-size: 16px;
}

.search-page-form input:focus {
    border-color: var(--alhaq-red);
    outline: 0;
}

.search-page-form button {
    padding: 0 24px;
    border: 1px solid var(--alhaq-red);
    background: var(--alhaq-red);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.search-page-form button:hover {
    background: #620000;
    border-color: #620000;
}

.search-summary {
    margin: 0 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 2;
}

@media (max-width: 768px) {
    .alhaq-search input,
    .alhaq-search input:focus {
        width: 110px;
    }
}

/* =========================================================
   ERROR PAGES (404 / 500)
   ========================================================= */

.error-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 55px 0 65px;
    text-align: center;
}

.error-page .error-code {
    color: var(--alhaq-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 4px;
}

.error-page h1 {
    margin: 18px 0 14px;
    color: #111;
    font-size: 30px;
    line-height: 1.7;
    font-weight: 900;
}

.error-page p {
    margin: 0 0 22px;
    color: #555;
    font-size: 16px;
    line-height: 2;
}

.error-page .search-page-form {
    margin: 0 0 22px;
}

.error-page .help-button.error-home {
    display: inline-block;
    margin: 0;
    padding: 10px 34px;
}
