/* =========================================================
   ALHAQ.NET — PROFESSIONAL URDU NEWS DESIGN
   Header + Footer
   ========================================================= */
/*
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');


 =========================================================
   GLOBAL
   ========================================================= */

:root {
    --alhaq-red: #a90000;
    --alhaq-dark: #171717;
    --alhaq-text: #242424;
    --alhaq-muted: #777;
    --alhaq-border: #dedede;
    --alhaq-light: #f7f5f0;
    --alhaq-white: #ffffff;
    --alhaq-max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--alhaq-text);
    font-size: 17px;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}

a:hover {
    color: var(--alhaq-red);
}

.alhaq-container {
    width: min(94%, var(--alhaq-max-width));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.alhaq-professional-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}


/* =========================================================
   UTILITY BAR
   ========================================================= */

.alhaq-utility {
    border-bottom: 1px solid #ededed;
    background: #fafafa;
    color: #555;
    font-size: 14px;
}

.alhaq-utility-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.alhaq-utility-right,
.alhaq-utility-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alhaq-date {
    font-weight: 500;
}

.utility-separator {
    color: #aaa;
}


/* =========================================================
   MAIN IDENTITY — one slim band (120px at most) holding the logo
   picture, which already contains the logo, its name and its slogans.
   The picture keeps its own wide shape and is centred.
   ========================================================= */

.alhaq-identity {
    background: #fff;
}

.alhaq-identity-inner {
    min-height: 120px;
    padding-top: 4px;
    padding-bottom: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.alhaq-logo {
    display: block;
    line-height: 0;
    max-width: 100%;
}

.alhaq-logo img {
    display: block;

    /* 112px + the band's 4px above and below = 120px. The width follows the picture's shape. */
    width: auto;
    height: 112px;
    max-width: 100%;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.alhaq-main-nav {
    background: #fff;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #d5d5d5;
}

.alhaq-nav-inner {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0;
}

.alhaq-nav-inner a {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;
    padding: 0 17px;

    color: #222;

    font-size: 17px;
    font-weight: 600;

    white-space: nowrap;
}

.alhaq-nav-inner a::after {
    content: "";

    position: absolute;
    bottom: 0;
    right: 17px;
    left: 17px;

    height: 2px;

    background: transparent;

    transition: background .2s ease;
}

.alhaq-nav-inner a:hover {
    color: var(--alhaq-red);
}

.alhaq-nav-inner a:hover::after {
    background: var(--alhaq-red);
}


/* Home button */

.alhaq-nav-inner .alhaq-home {
    width: 54px;
    padding: 0;

    color: var(--alhaq-red);

    font-family: Arial, sans-serif;
    font-size: 28px;
}

.alhaq-nav-inner .alhaq-home::after {
    display: none;
}


/* =========================================================
   NEWS TICKER
   ========================================================= */

.alhaq-ticker {
    background: var(--alhaq-dark);
    color: #fff;
}

.alhaq-ticker-inner {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 18px;

    overflow: hidden;
}

.alhaq-ticker strong {
    flex: 0 0 auto;

    padding: 2px 13px;

    background: var(--alhaq-red);

    color: #fff;

    font-size: 15px;
    font-weight: 700;
}

/* No breaking news: the slogan stays still. */
.alhaq-ticker-static {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #eee;
    font-size: 15px;
}

/* Breaking news: one headline at a time inside a clipped track.
   waiting  = parked off the left edge, invisible
   active   = in view
   leaving  = gone off the right edge, fading out
   The old headline is fading out before the new one starts to slide in. */
.alhaq-ticker-track {
    position: relative;

    flex: 1 1 auto;
    align-self: stretch;

    min-height: 42px;
    min-width: 0;

    overflow: hidden;
}

.alhaq-ticker-item {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-items: center;

    color: #eee;
    font-size: 15px;
    line-height: 1.45;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
}

.alhaq-ticker-item:hover,
.alhaq-ticker-item:focus-visible {
    color: #fff;
}

.alhaq-ticker-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.alhaq-ticker-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);

    transition:
        transform .7s cubic-bezier(.22, .61, .36, 1) .25s,
        opacity .5s ease-out .25s;
}

.alhaq-ticker-item.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translateX(100%);

    transition:
        transform .6s ease-in,
        opacity .35s ease-in;
}

/* People who ask their device for less motion get a plain change of headline. */
@media (prefers-reduced-motion: reduce) {

    .alhaq-ticker-item,
    .alhaq-ticker-item.is-active,
    .alhaq-ticker-item.is-leaving {
        transform: none;
        transition: none;
    }

}


/* =========================================================
   PAGE CONTENT
   ========================================================= */

.alhaq-page-content {
    min-height: 350px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.alhaq-footer {
    margin-top: 70px;

    background: #151515;
    color: #ddd;
}


/* Main footer */

.alhaq-footer-main {
    border-top: 4px solid var(--alhaq-red);
    background: #171717;
}

.alhaq-footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.25fr;

    gap: 55px;

    padding-top: 55px;
    padding-bottom: 50px;
}


/* Footer columns */

.alhaq-footer-column {
    min-width: 0;
}

.alhaq-footer-column h3 {
    position: relative;

    margin: 0 0 20px;

    padding-bottom: 10px;

    color: #fff;

    font-size: 21px;
    font-weight: 700;
}

.alhaq-footer-column h3::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 42px;
    height: 2px;

    background: var(--alhaq-red);
}


/* Footer brand */

.alhaq-footer-brand {
    display: inline-flex;
    flex-direction: column;

    margin-bottom: 13px;

    line-height: 1;
}

.alhaq-footer-brand span {
    color: #fff;

    font-size: 42px;
    font-weight: 700;
}

.alhaq-footer-brand small {
    margin-top: 7px;

    direction: ltr;

    color: #999;

    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.alhaq-footer-about p {
    max-width: 420px;

    margin: 0;

    color: #aaa;

    font-size: 16px;
    line-height: 2;
}


/* Footer slogan */

.alhaq-footer-slogan {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-top: 20px;

    padding-right: 14px;

    border-right: 3px solid var(--alhaq-red);

    color: #ddd;

    font-size: 16px;
    line-height: 1.8;
}


/* Footer lists */

.alhaq-footer-column ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.alhaq-footer-column li {
    border-bottom: 1px solid #2b2b2b;
}

.alhaq-footer-column li:last-child {
    border-bottom: 0;
}

.alhaq-footer-column li a {
    display: block;

    padding: 7px 0;

    color: #aaa;

    font-size: 16px;
}

.alhaq-footer-column li a:hover {
    padding-right: 7px;
    color: #fff;
}


/* Mission */

.alhaq-footer-mission p {
    margin: 0;

    color: #aaa;

    font-size: 16px;
    line-height: 2;
}

.alhaq-footer-contact {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-top: 20px;

    color: #aaa;
}

.alhaq-footer-contact a {
    color: #fff;
    font-weight: 600;
}

.alhaq-footer-contact a:hover {
    color: #e00000;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.alhaq-footer-bottom {
    border-top: 1px solid #2d2d2d;

    background: #0f0f0f;
}

.alhaq-footer-bottom-inner {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.alhaq-footer-copy {
    color: #777;

    font-size: 14px;
}

.alhaq-footer-bottom-links {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #777;

    font-size: 14px;
}

.alhaq-footer-bottom-links a:hover {
    color: #fff;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .alhaq-nav-inner {
        justify-content: flex-start;
        overflow-x: auto;

        scrollbar-width: thin;
    }

    .alhaq-nav-inner a {
        flex: 0 0 auto;
    }

    .alhaq-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    body {
        font-size: 16px;
    }

    .alhaq-utility-inner {
        min-height: 38px;

        justify-content: center;
    }

    .alhaq-utility-right {
        display: none;
    }

    .alhaq-utility-left {
        font-size: 13px;
    }

    /* A little lower on a phone, still the picture's own shape. */
    .alhaq-identity-inner {
        min-height: 0;
        padding: 4px 0;
    }

    .alhaq-logo img {
        height: 92px;
    }

    .alhaq-nav-inner {
        justify-content: flex-start;
    }

    .alhaq-nav-inner a {
        min-height: 50px;
        padding: 0 13px;

        font-size: 15px;
    }

    .alhaq-nav-inner a::after {
        right: 13px;
        left: 13px;
    }

    .alhaq-ticker-inner {
        min-height: 38px;
        gap: 10px;
    }

    .alhaq-ticker strong {
        padding: 1px 9px;
        font-size: 13px;
    }

    .alhaq-ticker-static,
    .alhaq-ticker-item {
        font-size: 13px;
    }

    .alhaq-ticker-track {
        min-height: 38px;
    }

    .alhaq-footer {
        margin-top: 45px;
    }

    .alhaq-footer-grid {
        grid-template-columns: 1fr;

        gap: 32px;

        padding-top: 38px;
        padding-bottom: 35px;
    }

    .alhaq-footer-brand span {
        font-size: 38px;
    }

    .alhaq-footer-bottom-inner {
        min-height: auto;

        flex-direction: column;

        justify-content: center;

        padding-top: 15px;
        padding-bottom: 15px;

        text-align: center;
    }

    .alhaq-footer-bottom-links {
        justify-content: center;
    }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .alhaq-utility,
    .alhaq-main-nav,
    .alhaq-ticker,
    .alhaq-footer {
        display: none !important;
    }

    .alhaq-identity {
        border-bottom: 1px solid #000;
    }

}
